/* ============================================================
   JASON WALKER — PRESENTATION FRAME ("museum placard")
   A light, editorial frame wrapped around the Radiant Mobile
   website prototype. The frame uses the JasonWalker.design brand
   identity (Inter wordmark + labels, paper / ink / blueprint-blue
   palette) so the visitor always knows they are inside
   JasonWalker.design — while the prototype itself dominates below.

   Three-zone exhibition header:
     LEFT   · Jason Walker wordmark (site-standard, the anchor)
     CENTER · Radiant Mobile · Website Prototype  (context only)
     RIGHT  · Back to Case Study (filled) + universal close (X)

   This file is additive and self-contained. It does not alter
   any prototype styling; it only adds the fixed top bar, the
   dismissal control, and offsets the prototype so nothing is
   hidden beneath the frame.
   ============================================================ */



:root{
  --jw-bar-h: 52px;
  --jw-paper:        #FCFCFD;
  --jw-ink:          #171717;
  --jw-ink-2:        #4A4A4A;
  --jw-muted:        #767676;
  --jw-blueprint:    #393E70;   /* doctrine blue — primary, structural */
  --jw-blueprint-deep:#13153F;  /* hover / pressed */
  --jw-rule:         rgba(19,21,63,.16);
  --jw-dismiss-size: 44px;      /* ~1/2in — shared dismissal-control diameter */
}

/* Make room for the fixed placard, and keep in-page anchors clear
   of both the placard and the prototype's own sticky nav. */
html{ scroll-padding-top: calc(var(--jw-bar-h) + 72px); }
body{ padding-top: var(--jw-bar-h) !important; }

/* Push the prototype's own sticky header below the placard. */
.site-header{ top: var(--jw-bar-h) !important; }

/* ---------- The placard ---------- */
#jw-placard{
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--jw-bar-h);
  z-index: 4000;
  display: flex; align-items: center;
  padding: 0 clamp(16px, 3vw, 30px);
  background: rgba(252, 252, 253, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--jw-rule);
  color: var(--jw-ink);
  font-family:var(--font-brand), 'Helvetica Neue', Arial, sans-serif;
}
#jw-placard a{ text-decoration: none; color: inherit; }

/* LEFT · site-standard wordmark (the identity anchor) */
#jw-placard .jw-brand{
  display: inline-flex; align-items: center;
  font-family:var(--font-brand), system-ui, sans-serif;
  font-weight: 500;
  font-size: 19px; line-height: 1; letter-spacing: -.01em;
  color: var(--jw-ink); white-space: nowrap;
}
#jw-placard .jw-brand .jw-dot{
  display: inline-block; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--jw-blueprint); margin: 0 7px;
}

/* CENTER · contextual label, optically centered in the header */
#jw-placard .jw-meta{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 11px;
  pointer-events: none; max-width: 46vw;
}
#jw-placard .jw-title{
  font-family:var(--font-brand), system-ui, sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--jw-ink-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
#jw-placard .jw-tag{
  flex: none;
  font-family:var(--font-brand), system-ui, sans-serif; font-weight: 500;
  font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--jw-blueprint);
  border: 1px solid rgba(57, 62, 112, .42);
  border-radius: 5px; padding: 3px 8px; white-space: nowrap;
}

/* RIGHT · exit cluster */
#jw-placard .jw-right{
  margin-left: auto;
  display: flex; align-items: center;
  gap: clamp(10px, 1.6vw, 16px);
}

/* Filled oxblood "Back to Case Study" pill — the primary, labeled exit. */
#jw-placard .jw-back{
  display: inline-flex; align-items: center; gap: 8px;
  font-family:var(--font-brand), system-ui, sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--jw-blueprint);
  border: 1px solid var(--jw-blueprint); border-radius: 6px;
  padding: 8px 15px; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
#jw-placard .jw-back:hover{
  background: var(--jw-blueprint-deep); border-color: var(--jw-blueprint-deep);
  transform: translateY(-1px);
}
#jw-placard .jw-back .arw{ font-size: 12px; line-height: 1; color: #fff; }

/* ============================================================
   .jw-dismiss — CANONICAL DISMISSAL CONTROL (design-system)
   The oxblood circle with a white X. Reused for the prototype
   viewer, image lightboxes, expanded media, overlays and modals.
   Consistent size, color, hover and accessibility everywhere.
   (Mirrored in /assets/site.css for site-wide use.)
   ============================================================ */
.jw-dismiss{
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--jw-dismiss-size); height: var(--jw-dismiss-size);
  border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: var(--jw-blueprint); color: #fff;
  box-shadow: 0 2px 10px rgba(21, 20, 15, .22);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.jw-dismiss svg{ width: 44%; height: 44%; display: block; }
.jw-dismiss svg line{ stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.jw-dismiss:hover{
  background: var(--jw-blueprint-deep); transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(21, 20, 15, .30);
}
.jw-dismiss:focus-visible{
  outline: 2px solid #fff; outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(57, 62, 112, .55);
}
@media (prefers-reduced-motion: reduce){
  .jw-dismiss{ transition: none; }
  .jw-dismiss:hover{ transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  #jw-placard .jw-title{ display: none; }   /* keep center calm; tag remains */
}
@media (max-width: 720px){
  :root{ --jw-bar-h: 54px; }
  #jw-placard .jw-tag{ display: none; }     /* center clears on small screens */
}
@media (max-width: 520px){
  #jw-placard .jw-brand{ font-size: 20px; }
  #jw-placard .jw-back{ padding: 7px 12px; letter-spacing: .08em; }
}
@media (max-width: 400px){
  /* keep both exits; drop the pill's words to its arrow if truly tight */
  #jw-placard .jw-back .arw{ font-size: 13px; }
}

/* Print: drop the frame entirely. */
@media print{
  #jw-placard{ display: none; }
  body{ padding-top: 0 !important; }
}
