/* ═══════════════════════════════════════════════════════════════════
   GLAMMBOX 2026 — TOKENS
   The single source of truth for colour, type, space, motion.
   Load AFTER site.css so these variables win. Never hard-code a hex,
   a duration or an easing in a page stylesheet — reach for a token.
   ─────────────────────────────────────────────────────────────────── */

/* ── Type: self-hosted, zero-leak. Geist (variable grotesk),
      Geist Mono (labels), Instrument Serif (editorial accent).
      Anton and Space Mono are RETIRED. ───────────────────────────── */
@font-face{
  font-family:"GB Grotesk";
  src:url("fonts/geist-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"GB Grotesk";
  src:url("fonts/geist-var-ext.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"GB Mono";
  src:url("fonts/geist-mono-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"GB Mono";
  src:url("fonts/geist-mono-var-ext.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"GB Serif";
  src:url("fonts/instrument-serif.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"GB Serif";
  src:url("fonts/instrument-serif-ext.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"GB Serif";
  src:url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight:400;font-style:italic;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"GB Serif";
  src:url("fonts/instrument-serif-italic-ext.woff2") format("woff2");
  font-weight:400;font-style:italic;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  /* ── COLOUR ────────────────────────────────────────────────────
     Monochrome first. One warm accent, used like punctuation.
     Neon aqua / lime / magenta are RETIRED as UI colour — they
     survive only as radio genre marks, desaturated below. */
  --gb-black:#07080A;          /* the stage */
  --gb-ink:#0B0D10;            /* raised ground */
  --gb-panel:#111419;          /* panels, sheets */
  --gb-panel-2:#171B21;
  --gb-bone:#EFEBE3;           /* warm off-white — never #fff */
  --gb-bone-soft:rgba(239,235,227,.78);
  --gb-dim:rgba(239,235,227,.60);
  --gb-mute:rgba(239,235,227,.40);
  --gb-faint:rgba(239,235,227,.20);
  --gb-line:rgba(239,235,227,.10);
  --gb-line-soft:rgba(239,235,227,.06);
  --gb-line-strong:rgba(239,235,227,.22);

  --gb-ember:#E85F2C;          /* the one accent */
  --gb-ember-lift:#FF7A47;
  --gb-ember-deep:#B33F17;
  --gb-ember-veil:rgba(232,95,44,.14);

  --gb-glass:rgba(11,13,16,.62);
  --gb-glass-hi:rgba(239,235,227,.045);
  --gb-shadow:0 30px 80px -30px rgba(0,0,0,.9);
  --gb-shadow-soft:0 18px 50px -24px rgba(0,0,0,.85);

  /* legacy aliases so untouched site.css keeps working while it is
     being migrated — they now resolve to the 2026 palette. */
  --void:var(--gb-black);
  --cream:var(--gb-bone);
  --ink:#07080A;
  --dim:var(--gb-bone-soft);
  --mute:var(--gb-dim);
  --line:var(--gb-line);
  --chassis:var(--gb-ink);
  --aqua:var(--gb-ember);
  --coral:var(--gb-ember);
  --lime:var(--gb-bone);
  --magenta:var(--gb-ember-lift);

  /* radio genre marks — kept as a data contract, tuned off neon */
  --ed-country:#C99150;--ed-country-rap:#C4643A;--ed-lofi:#6FA8B8;
  --ed-beats:#A7B865;--ed-reggae:#C9A855;
  --ed-caliente:#C9557E;--ed-gypsy:#BDA98A;--ed-rock:#C2402F;
  --ed-bollywood:#8E6BC4;--ed-italian:#4E8C5C;
  --ed-rnb:#6A6FB0;

  /* ── TYPE ──────────────────────────────────────────────────── */
  --f-display:"GB Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --f-text:"GB Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --f-mono:"GB Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --f-serif:"GB Serif",Georgia,"Times New Roman",serif;

  /* fluid scale, 390 → 1600 */
  --t-mega:clamp(3.4rem,11.5vw,11rem);   /* hero only */
  --t-xxl:clamp(2.6rem,7vw,6.2rem);      /* section openers */
  --t-2xl:var(--t-xxl);                   /* alias: B2 reached for this name */
  --t-xl:clamp(2rem,4.6vw,4rem);
  --t-lg:clamp(1.5rem,2.8vw,2.5rem);
  --t-md:clamp(1.16rem,1.5vw,1.44rem);
  --t-body:clamp(1rem,1.05vw,1.14rem);
  --t-sm:.92rem;
  --t-label:.7rem;                        /* mono kickers */

  --lh-tight:.9;
  --lh-head:1.02;
  --lh-body:1.62;
  --tr-mega:-.045em;   /* big type must be TIGHT — this is the 2026 tell */
  --tr-head:-.03em;
  --tr-body:-.011em;
  --tr-label:.22em;    /* mono labels are WIDE */

  /* ── SPACE / GRID ──────────────────────────────────────────── */
  --s-1:.25rem;--s-2:.5rem;--s-3:.75rem;--s-4:1rem;--s-5:1.5rem;
  --s-6:2rem;--s-7:3rem;--s-8:4rem;--s-9:6rem;--s-10:9rem;--s-11:13rem;
  --gutter:clamp(1.15rem,4vw,4.5rem);
  --measure:min(62ch,100%);
  --shell:min(1440px,100% - var(--gutter) * 2);
  --shell-narrow:min(980px,100% - var(--gutter) * 2);
  --section-y:clamp(5rem,12vh,11rem);

  /* ── RADII / BORDERS ───────────────────────────────────────── */
  --r-xs:4px;--r-sm:8px;--r-md:14px;--r-lg:22px;--r-xl:32px;--r-pill:999px;

  /* ── MOTION ────────────────────────────────────────────────── */
  --d-xs:.16s;--d-sm:.28s;--d-md:.5s;--d-lg:.85s;--d-xl:1.3s;
  --e-out:cubic-bezier(.16,1,.3,1);          /* expo out — the house curve */
  --e-inout:cubic-bezier(.76,0,.24,1);
  --e-soft:cubic-bezier(.33,1,.68,1);
  --e-snap:cubic-bezier(.2,.9,.2,1);
  --lenis-lerp:.085;                          /* locked by the house recipe */

  --top-h:5.4rem;
  --dock-clear:4.75rem;
  --z-film:0;--z-page:2;--z-chrome:40;--z-nav:45;--z-over:70;
}

/* ── REVEAL CONVENTION ─────────────────────────────────────────
   Put [data-reveal] on anything that should arrive on scroll.
   motion.js flips it to [data-reveal="in"].

   THE LAW (2026-09-17): the resting state IS the finished state.
   Nothing is ever hidden waiting for a trigger — the arrival is a
   keyframe animation that PLAYS FROM the offset when the element is
   revealed, instead of a transition OUT of a parked opacity:0.

   Why this was rewritten: the old form parked every [data-reveal] at
   opacity:0 and relied on motion.js's scroll sweep to release it. That
   sweep only runs on scroll/resize, and only frees elements whose top
   is above 0.88 x viewport — so ANY agent that does not scroll saw a
   black page below the fold. Measured on the live site: 35/37 reveals
   still hidden on /welcome and 47/50 on /radio at 390px after full
   load with no scroll. A tall crawler viewport was WORSE, not better
   (37/37 and 50/50), because a 100svh hero pushes every section past
   the trigger line. Full-page screenshots, link unfurlers, reader
   modes and any JS-rendering crawler all got the empty version.
   no-JS and prefers-reduced-motion were already correct and stay so.

   The visitor's experience is unchanged: same fade, same 26px rise,
   same stagger, same line wipe — it is simply expressed as an
   animation on arrival rather than as a default of invisibility. */
.gb-motion [data-reveal="in"]{
  animation:gbReveal var(--d-lg) var(--e-out) both;
  animation-delay:var(--reveal-delay,0s);
}
@keyframes gbReveal{
  from{opacity:0;transform:translate3d(0,var(--reveal-y,26px),0)}
  to{opacity:1;transform:none}
}
.gb-motion [data-reveal="in"][data-reveal-from="left"]{animation-name:gbRevealLeft}
@keyframes gbRevealLeft{from{opacity:0;transform:translate3d(-34px,0,0)}to{opacity:1;transform:none}}
.gb-motion [data-reveal="in"][data-reveal-from="right"]{animation-name:gbRevealRight}
@keyframes gbRevealRight{from{opacity:0;transform:translate3d(34px,0,0)}to{opacity:1;transform:none}}
.gb-motion [data-reveal="in"][data-reveal-from="scale"]{animation-name:gbRevealScale}
@keyframes gbRevealScale{from{opacity:0;transform:translate3d(0,20px,0) scale(.965)}to{opacity:1;transform:none}}
.gb-motion [data-reveal="in"][data-reveal-from="blur"]{animation-name:gbRevealBlur}
@keyframes gbRevealBlur{from{opacity:0;transform:translate3d(0,var(--reveal-y,26px),0);filter:blur(12px)}to{opacity:1;transform:none;filter:blur(0)}}

/* line-by-line headline reveal (motion.js splits into .gb-line > span).
   Same law: the span rests at its final position and the wipe plays
   from below on arrival, so an unrevealed headline is readable text
   rather than an empty clipped box. */
.gb-line{display:block;overflow:hidden;padding-bottom:.18em;margin-bottom:-.14em}
.gb-line > span{display:block;transform:none}
.gb-motion [data-reveal="in"] .gb-line > span,
.gb-motion .gb-lines-in .gb-line > span{
  animation:gbLineWipe 1.05s var(--e-out) both;
  animation-delay:calc(var(--i,0) * .075s + var(--reveal-delay,0s));
}
@keyframes gbLineWipe{from{transform:translate3d(0,110%,0)}to{transform:none}}

@media (prefers-reduced-motion:reduce){
  .gb-motion [data-reveal],
  .gb-motion [data-reveal="in"]{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
  .gb-motion .gb-line > span,
  .gb-motion [data-reveal="in"] .gb-line > span,
  .gb-motion .gb-lines-in .gb-line > span{animation:none!important;transform:none!important}
  html{scroll-behavior:auto!important}
}
