/* =====================================================================
   header.css — the v2 pill header and the bottom sheet menu.

   Ported verbatim from site/index.html so the two pages cannot drift.
   If the header changes there, re-copy it rather than hand-editing here.

   One behavioural difference, in header.js not in this file: the live
   page reveals the bar with an IntersectionObserver on the scrolling
   intro section. This page has no scroll — the title card ends on an
   event — so the bar rides `intro:done` like the globe and the pills.
   The reason for holding it back is the same either way: the wordmark
   resolves during the title card, and a second copy of it in the header
   at that moment reads as a duplicate.
   ===================================================================== */

/* ------ pill header (design-system v2) ------
   The spec's .menubar is drawn for the paper ground. This page is ink from
   the intro onward, so it takes the dock treatment instead: glass over the
   deck rather than a solid bar on it. Glass is legitimate here because the
   header genuinely sits OVER something, which is the case the rule allows. */
.pillbar{ position:fixed; z-index:90; top:calc(env(safe-area-inset-top) + 16px);
  left:var(--edge); right:var(--edge); max-width:1600px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:10px 11px 10px 20px; border-radius:999px;
  border:1px solid var(--line-2); background:rgba(17,17,17,0.72);
  backdrop-filter:blur(18px) saturate(160%); -webkit-backdrop-filter:blur(18px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(244,243,241,0.10), 0 10px 30px rgba(0,0,0,0.35);
  opacity:0; transform:translateY(-10px); pointer-events:none;
  transition:opacity .45s var(--ease), transform .45s var(--ease); }
/* Held back through the intro so the logo reveal is not competing with a
   second copy of the same wordmark. */
.pillbar.on{ opacity:1; transform:none; pointer-events:auto; }
.pillbar .pb-logo{ display:block; flex:none; line-height:0; color:var(--hi); opacity:.92; }
.pillbar .pb-logo svg{ height:15px; width:auto; display:block; }
.pillbar .pb-logo:hover{ opacity:1; }
.pillbar .pb-right{ display:flex; align-items:center; gap:8px; }

.pb-btn,.pb-burger{ display:inline-flex; align-items:center; gap:10px;
  font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-weight:400;
  font-size:11.5px; letter-spacing:.16em; white-space:nowrap;
  border-radius:999px; padding:11px 18px; cursor:pointer;
  border:1px solid var(--line-2); background:transparent; color:var(--mid);
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
/* Hover fills with paper and flips the type to ink. Neon was dropped from the
   system; this matches every other page's bar on a dark ground. */
.pb-btn:hover,.pb-burger:hover{ background:var(--paper); border-color:var(--paper); color:var(--ink); }
.pb-burger i{ display:block; width:16px; height:8px;
  border-top:1.5px solid currentColor; border-bottom:1.5px solid currentColor; }

/* ---------- menu: bottom sheet (P-02) with the compact glass layout ----------
   Replaces the full-screen takeover. The menu is the digital marketing page, two industries and a
   call to book, which does not earn the whole screen. It rises off the
   bottom edge like the P-02 sheet (thumb reachable on a phone), and inside
   it is the compact glass menu: a group label, Fjalla caps rows with a
   Manrope line under each, a hairline split, then two actions.

   The neon glow from the spec is replaced by vermilion. The current page's
   row takes the vermilion ground, and a vermilion ground carries white
   type. House rule. */
.msheet{ position:fixed; inset:0; z-index:100; opacity:0; visibility:hidden;
  transition:opacity .32s var(--ease), visibility .32s; }
.msheet.on{ opacity:1; visibility:visible; }
.ms-scrim{ position:absolute; inset:0; background:rgba(10,10,10,0.42);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.ms-panel{ position:absolute; left:50%; bottom:calc(env(safe-area-inset-bottom) + 12px);
  width:min(440px, calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto;
  transform:translate(-50%, calc(100% + 24px));
  transition:transform .44s var(--ease);
  border-radius:24px; padding:8px 10px 10px;
  --hi:#F4F3F1; --mid:rgba(244,243,241,0.62); --low:rgba(244,243,241,0.42);
  --line:rgba(244,243,241,0.12); --line-2:rgba(244,243,241,0.22);
  color:var(--hi);
  background:
    radial-gradient(70% 90% at 92% -12%, rgba(241,69,63,0.34), transparent 64%),
    radial-gradient(60% 70% at -10% 118%, rgba(241,69,63,0.16), transparent 62%),
    rgba(14,14,14,0.84);
  -webkit-backdrop-filter:blur(26px) saturate(170%); backdrop-filter:blur(26px) saturate(170%);
  border:1px solid rgba(244,243,241,0.16);
  box-shadow:inset 0 1px 0 rgba(244,243,241,0.22), 0 24px 70px rgba(10,10,10,0.45); }
.msheet.on .ms-panel{ transform:translate(-50%, 0); }
.ms-panel.drag{ transition:none; }
.ms-grip{ width:40px; height:4px; border-radius:999px; background:var(--line-2); margin:4px auto 8px;
  cursor:grab; touch-action:none; }
.ms-grp{ font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-size:9.5px;
  letter-spacing:.22em; color:var(--low); padding:10px 12px 6px; }
.ms-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 12px;
  border-radius:14px; color:var(--hi);
  font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-size:15px; letter-spacing:.06em;
  transition:background .25s var(--ease); }
.ms-row:hover, .ms-row:focus-visible{ background:rgba(244,243,241,0.08); color:var(--hi); outline:none; }
.ms-row em{ font-family:'Manrope',sans-serif; font-style:normal; font-weight:300; text-transform:none;
  font-size:12px; line-height:1.35; letter-spacing:0; color:var(--low); text-align:right; max-width:58%; text-wrap:balance; }
.ms-row.on{ background:var(--accent); color:#FFFFFF; }
.ms-row.on em{ color:#FFFFFF; font-weight:500; }
.ms-split{ height:1px; background:var(--line); margin:8px 12px; }
.ms-foot{ display:flex; gap:8px; padding:4px 2px 2px; }
.ms-b{ flex:1; text-align:center; padding:13px 10px; border-radius:14px; white-space:nowrap;
  font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-size:11.5px; letter-spacing:.14em;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.ms-b.p{ background:var(--paper); color:var(--ink); }
.ms-b.p:hover{ background:var(--accent); color:#FFFFFF; }
.ms-b.s{ border:1px solid var(--line-2); color:var(--hi); }
.ms-b.s:hover{ border-color:var(--hi); color:var(--hi); }
.ms-meta{ display:flex; justify-content:center; gap:22px; padding:12px 0 4px; }
.ms-meta a{ font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-size:10px;
  letter-spacing:.16em; color:var(--low); transition:color .25s var(--ease); }
.ms-meta a:hover{ color:var(--hi); }
body.ms-open{ overflow:hidden; }
@media (prefers-reduced-motion:reduce){ .msheet, .ms-panel{ transition:none; } }

body.tk-open{ overflow:hidden; }

@media (max-width:640px){
  .pillbar{ padding:9px 9px 9px 16px; }
  .pb-btn{ display:none; }   /* one action survives on a phone: the menu */
}

/* ------ industries bottom sheet ------
   NOT part of the ported v2 block above — this one is new. The menu
   takeover is a full-screen overlay because it is the whole site's
   navigation; picking an industry is a much smaller decision, so it gets
   a sheet that rises off the bottom edge and leaves the globe visible
   behind it. Same glass, same Fjalla caps, vermilion active state. */
.sheet-wrap{
  position:fixed; inset:0; z-index:100;
  opacity:0; visibility:hidden;
  transition:opacity .3s var(--ease), visibility .3s;
}
.sheet-wrap.on{ opacity:1; visibility:visible; }

.sheet-scrim{
  position:absolute; inset:0;
  background:rgba(5,5,5,0.58);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}

.sheet{
  position:absolute; left:50%; bottom:0;
  width:min(100%, 540px);
  /* starts below the fold and rides up; translateX keeps it centred */
  transform:translate(-50%, 100%);
  background:rgba(17,17,17,0.82);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  backdrop-filter:blur(22px) saturate(160%);
  border:1px solid var(--line-2); border-bottom:0;
  border-radius:26px 26px 0 0;
  box-shadow:inset 0 1px 0 rgba(244,243,241,0.10), 0 -24px 70px rgba(0,0,0,0.55);
  padding:10px 0 calc(env(safe-area-inset-bottom) + 14px);
  transition:transform .42s var(--ease);
}
.sheet-wrap.on .sheet{ transform:translate(-50%, 0); }

.sheet-grip{
  width:38px; height:4px; border-radius:999px; margin:0 auto 6px;
  background:var(--line-2);
}

.sheet-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:8px 22px 12px;
}
.sheet-k{
  font-family:'Fjalla One',sans-serif; text-transform:uppercase;
  font-size:10.5px; letter-spacing:.24em; color:var(--low);
}
.sheet-x{
  font-family:'Fjalla One',sans-serif; text-transform:uppercase;
  font-size:10.5px; letter-spacing:.16em; color:var(--mid);
  background:transparent; border:1px solid var(--line-2); border-radius:999px;
  padding:8px 15px; cursor:pointer;
  transition:background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.sheet-x:hover{ background:var(--paper); border-color:var(--paper); color:var(--ink); }

.sheet-item{
  display:flex; align-items:baseline; gap:14px;
  padding:15px 22px;
  border-top:1px solid var(--line);
  font-family:'Fjalla One',sans-serif; text-transform:uppercase; font-weight:400;
  font-size:clamp(20px,5.2vw,26px); letter-spacing:.01em; line-height:1.1;
  color:var(--hi);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.sheet-item:hover,.sheet-item:focus-visible{ color:var(--accent); background:rgba(244,243,241,0.04); outline:none; }
.sheet-item .s{
  font-family:'Manrope',sans-serif; text-transform:none;
  font-size:12.5px; font-weight:300; letter-spacing:0; color:var(--low);
}
/* the arrow is the affordance that this leaves the page */
.sheet-item::after{
  content:''; margin-left:auto; align-self:center; flex:none;
  width:7px; height:7px;
  border-right:1.5px solid currentColor; border-top:1.5px solid currentColor;
  transform:rotate(45deg); opacity:.5;
  transition:transform .2s var(--ease), opacity .2s var(--ease);
}
.sheet-item:hover::after{ transform:rotate(45deg) translate(2px,-2px); opacity:1; }

@media (prefers-reduced-motion: reduce){
  .sheet-wrap, .sheet{ transition:none; }
}
