/* ============================================================
   INFINITE360 — DESIGN TOKENS
   Palette pulled directly from the logo mark.
   ============================================================ */
:root{
  --void:      #04060C;
  --void-2:    #080C16;
  --ice:       #E9F2FB;
  --ice-dim:   #A9BACE;
  --slate:     #63758C;
  --slate-dk:  #2A3445;

  --amber:     #F7A03B;   /* MarTech loop */
  --ember:     #F2643C;
  --magenta:   #E0479E;   /* the crossing  */
  --azure:     #1E9BFF;   /* AI loop       */

  --line:      rgba(233,242,251,.10);
  --line-2:    rgba(233,242,251,.18);

  /* --font-sora / --font-mono are injected by next/font in app/layout.tsx */
  --display: var(--font-sora), 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: var(--font-mono), 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  /* .nav is taller than it looks: 16px padding ×2 + the 40px .pill (opacity:0 but
     still in flow) + 1px border ≈ 73px. Pinned sections reserve this. */
  --nav-h: 76px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--void); color:var(--ice);
  font-family:var(--display); font-weight:300;
  font-size:clamp(15px,1.05vw,17px); line-height:1.62;
  overflow-x:hidden; letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--magenta); color:#fff; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
img{ max-width:100%; display:block; }

:focus-visible{ outline:2px solid var(--azure); outline-offset:3px; border-radius:2px; }

/* ---------- canvas + atmosphere ---------- */
#gl{ position:fixed; inset:0; z-index:0; display:block; }
.atmos{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(4,6,12,.55) 100%),
    radial-gradient(80% 60% at 50% 100%, rgba(4,6,12,.9) 0%, transparent 70%);
}
.atmos::after{
  content:''; position:absolute; inset:-50%;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
  opacity:.035; mix-blend-mode:overlay;
}
.scanline{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.35;
  background:repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
}

/* ---------- shared type ---------- */
.eyebrow{
  font-family:var(--mono); font-size:11px; font-weight:500;
  letter-spacing:.22em; text-transform:uppercase; color:var(--slate);
}
.eyebrow b{ color:var(--ice-dim); font-weight:500; }
h1,h2,h3,h4{ font-weight:700; letter-spacing:-.03em; line-height:1.02; margin:0; }
h1{ font-size:clamp(44px,7.4vw,116px); font-weight:800; }
h2{ font-size:clamp(34px,5.2vw,76px); }
h3{ font-size:clamp(21px,2.1vw,30px); letter-spacing:-.02em; line-height:1.16; }
.em{
  font-weight:200; font-style:italic;
  letter-spacing:0; padding-right:.1em;
  background:linear-gradient(96deg,var(--amber),var(--magenta) 48%,var(--azure));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* .em's own padding-right only lands after its LAST rendered line — no help
   when the italic run wraps and a different word ends up rightmost on an
   earlier line (e.g. "Sit in on a real / class"). background-clip:text
   clips per line to the shaped-text run's advance box, and italic ink
   overhangs past that box with nowhere to bleed at a line's end, so it gets
   cut. Reserving a little width on the whole block — not just the span —
   gives every line room, regardless of which word wraps where. */
h1:has(.em), h2:has(.em), h3:has(.em), h4:has(.em), p:has(.em){ padding-right:.35em; }
.lede{ font-size:clamp(16px,1.35vw,20px); color:var(--ice-dim); font-weight:300; max-width:62ch; }
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }

/* ============================================================
   PRELOADER
   ============================================================ */
#boot{
  position:fixed; inset:0; z-index:200; background:var(--void);
  display:grid; place-items:center; gap:0;
  transition:opacity .9s var(--ease), visibility .9s;
}
#boot.done{ opacity:0; visibility:hidden; }
.boot-in{ display:grid; justify-items:center; gap:30px; padding:20px; }
.boot-mark{ width:min(230px,54vw); }
.boot-mark path{
  fill:none; stroke-width:5; stroke-linecap:round;
  stroke-dasharray:var(--len,900); stroke-dashoffset:var(--len,900);
  animation:draw 2.1s var(--ease) forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
.boot-bar{ width:min(230px,54vw); height:1px; background:var(--line-2); position:relative; overflow:hidden; }
.boot-bar i{ position:absolute; inset:0 100% 0 0; background:linear-gradient(90deg,var(--amber),var(--magenta),var(--azure)); transition:right .25s linear; }
.boot-txt{ font-family:var(--mono); font-size:10.5px; letter-spacing:.28em; color:var(--slate); text-transform:uppercase; }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:16px var(--gut);
  transition:background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom:1px solid transparent;
}
.nav.stuck{ background:rgba(4,6,12,.72); backdrop-filter:blur(16px) saturate(140%); border-bottom-color:var(--line); }
.brand{ display:flex; align-items:center; gap:11px; }
.brand svg{ width:40px; height:22px; }
.brand span{ font-weight:800; letter-spacing:.2em; font-size:13.5px; }
.nav-links{ display:flex; gap:32px; }
.nav-links a{
  font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ice-dim); transition:color .25s; position:relative; padding:4px 0;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:linear-gradient(90deg,var(--amber),var(--azure)); transition:width .35s var(--ease);
}
.nav-links a:hover{ color:var(--ice); }
.nav-links a:hover::after{ width:100%; }

.pill{
  display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  padding:11px 20px; border-radius:999px; color:var(--void); font-weight:700;
  background:linear-gradient(96deg,var(--amber),var(--magenta) 55%,var(--azure));
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.pill:hover{ transform:translateY(-2px); box-shadow:0 10px 34px rgba(224,71,158,.34); filter:brightness(1.08); }
.pill:disabled{ opacity:.55; cursor:progress; transform:none; box-shadow:none; }
.pill.ghost{
  background:none; color:var(--ice); border:1px solid var(--line-2); font-weight:500;
}
.pill.ghost:hover{ border-color:var(--ice-dim); box-shadow:none; }
.nav .pill{ opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity .45s var(--ease), transform .45s var(--ease); }
.nav.stuck .pill{ opacity:1; transform:none; pointer-events:auto; }
/* interior pages have no hero to scroll past — show the CTA immediately */
.nav.always-cta .pill{ opacity:1; transform:none; pointer-events:auto; }

/* orbit progress */
.orbit{ position:fixed; right:calc(var(--gut) - 6px); bottom:92px; z-index:98; display:grid; justify-items:center; gap:7px; }
.orbit svg{ width:52px; height:29px; }
.orbit .track{ fill:none; stroke:rgba(233,242,251,.13); stroke-width:3; }
.orbit .live{ fill:none; stroke:url(#og); stroke-width:3; stroke-linecap:round; }
.orbit b{ font-family:var(--mono); font-size:9.5px; letter-spacing:.2em; color:var(--slate); font-weight:500; }

/* ============================================================
   CHAPTER SCAFFOLD
   ============================================================ */
.ch{ position:relative; z-index:2; }
.ch--pin{ height:200vh; }
.ch__pin{
  position:sticky; top:0; height:100vh; height:100svh;
  padding-top:var(--nav-h);            /* box-sizing:border-box — eats into 100svh */
  display:grid;
  align-items:center;
  /* When content is taller than the box, start-align (below the nav) instead of
     centring and overflowing upward into it. Plain `center` above is the fallback. */
  align-items:safe center;
}
.flow{ padding-block:clamp(90px,12vh,170px); }

/* scrub-driven fade (JS sets --lp 0..1) */
[data-scrub]{
  opacity:calc(1 - clamp(0, (var(--lp,0) - .45) * 2.6, 1));
  transform:translate3d(0, calc(var(--lp,0) * -46px), 0);
  will-change:opacity, transform;
}

/* reveal on enter */
.rv{ opacity:0; transform:translateY(26px); transition:opacity .95s var(--ease), transform .95s var(--ease); transition-delay:calc(var(--i,0) * 85ms); }
.rv.in{ opacity:1; transform:none; }

/* ============================================================
   CH 01 — HERO
   ============================================================ */
.hero-in{ display:grid; gap:clamp(16px,2.6vh,26px); justify-items:start; position:relative; }
/* The ribbon's white core passes directly behind the headline. Damp it locally
   rather than dimming the whole scene, so the type keeps contrast on every frame. */
.hero-in::before{
  content:''; position:absolute; z-index:-1; pointer-events:none;
  inset:-16% -12% -20% -10%;
  background:radial-gradient(72% 64% at 32% 46%,
    rgba(4,6,12,.88) 0%, rgba(4,6,12,.66) 44%, transparent 78%);
}
/* Cool ice→slate fall, same treatment as the stat figures. Reads as type
   rather than as another bright object competing with the mark behind it. */
.hero h1{
  max-width:15ch;
  /* The hero's binding constraint is height, not width — min() sizes the display
     type off whichever axis is scarcer, so a short window can't overflow the pin. */
  font-size:clamp(44px, min(7.2vw, 11.5vh), 110px);
  background:linear-gradient(174deg,var(--ice) 0%,#BCCCDE 54%,var(--slate) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .l2{
  display:block; padding-left:clamp(0px,7vw,150px);
  /* Kicker line, not a second headline — same height-aware min() logic as the
     parent, scaled down so five stacked lines can't blow past a short viewport. */
  font-size:clamp(20px, min(3.6vw, 5.2vh), 52px);
}
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; }
.stats{ display:flex; gap:clamp(26px,4vw,60px); flex-wrap:wrap;
  margin-top:clamp(14px,2.6vh,26px); padding-top:clamp(14px,2.4vh,24px);
  border-top:1px solid var(--line); width:min(100%,660px); }
.stat b{ display:block; font-size:clamp(26px,3vw,40px); font-weight:700; letter-spacing:-.04em; line-height:1;
  background:linear-gradient(180deg,var(--ice),var(--slate)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat span{ font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--slate); }
.scroll-hint{
  position:absolute; bottom:32px; left:var(--gut); display:flex; align-items:center; gap:12px;
  font-family:var(--mono); font-size:10px; letter-spacing:.28em; text-transform:uppercase; color:var(--slate);
}
.scroll-hint i{ display:block; width:44px; height:1px; background:linear-gradient(90deg,var(--slate),transparent); position:relative; overflow:hidden; }
.scroll-hint i::after{ content:''; position:absolute; inset:0; background:var(--amber); animation:sweep 2.4s var(--ease) infinite; }
@keyframes sweep{ 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

/* ============================================================
   CH 02 — THE SPLIT
   ============================================================ */
.split{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:clamp(18px,4vw,64px); }
.limb{ display:grid; gap:14px; }
.limb--r{ justify-items:end; text-align:right; }
.limb .tag{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.24em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px;
}
.dot{ width:7px; height:7px; border-radius:2px; display:inline-block; }
.limb h2{ font-size:clamp(26px,3.6vw,52px); font-weight:700; }
.limb h2 .kw{
  display:block; font-family:var(--mono); font-size:11px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:var(--slate); margin-top:6px;
}
.limb p{ margin:0; color:var(--ice-dim); font-size:clamp(13.5px,1.05vw,15.5px); max-width:34ch; }
.limb--r p{ margin-left:auto; }
.knot{ display:grid; justify-items:center; gap:10px; }
.knot .glyph{ font-size:clamp(40px,5vw,74px); line-height:1; background:linear-gradient(96deg,var(--amber),var(--magenta),var(--azure)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.knot small{ font-family:var(--mono); font-size:9.5px; letter-spacing:.22em; color:var(--slate); text-transform:uppercase; }

/* ============================================================
   CH 03 — THESIS
   ============================================================ */
.thesis{ display:grid; gap:clamp(36px,5vw,64px); }
.thesis h2{ max-width:19ch; }
.claims{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1px; background:var(--line); border-block:1px solid var(--line); }
.claim{ background:var(--void); padding:30px clamp(20px,2.4vw,34px) 34px; display:grid; gap:12px; align-content:start; transition:background .4s; }
.claim:hover{ background:var(--void-2); }
.claim b{ font-family:var(--mono); font-size:10px; letter-spacing:.2em; color:var(--slate); font-weight:500; }
.claim h4{ font-size:clamp(17px,1.5vw,22px); font-weight:600; line-height:1.24; }
.claim p{ margin:0; color:var(--ice-dim); font-size:14.5px; }

/* ============================================================
   CH 04 — CATALOGUE
   ============================================================ */
.cat-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap; margin-bottom:38px; }
.filters{ display:flex; gap:8px; flex-wrap:wrap; }
.filters button{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  padding:9px 16px; border:1px solid var(--line-2); border-radius:999px; color:var(--slate);
  transition:color .3s, border-color .3s, background .3s;
}
.filters button:hover{ color:var(--ice-dim); border-color:var(--ice-dim); }
.filters button.on{ color:var(--void); background:var(--ice); border-color:var(--ice); font-weight:700; }

.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.card{
  background:rgba(8,12,22,.72); backdrop-filter:blur(9px);
  padding:26px clamp(20px,2vw,28px) 24px; text-align:left; width:100%;
  display:grid; gap:14px; align-content:start; position:relative; overflow:hidden;
  transition:background .45s var(--ease), transform .45s var(--ease);
}
.card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:var(--tc,var(--slate)); transform:scaleY(0); transform-origin:top; transition:transform .5s var(--ease);
}
.card:hover{ background:rgba(14,20,34,.9); }
.card:hover::before{ transform:scaleY(1); }
.card--hide{ display:none; }
.card-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.badge{
  font-family:var(--mono); font-size:9.5px; letter-spacing:.2em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:7px; color:var(--tc);
}
.code{ font-family:var(--mono); font-size:9.5px; color:var(--slate-dk); letter-spacing:.14em; }
.card h3{ font-size:clamp(19px,1.65vw,24px); font-weight:600; }
.card p{ margin:0; color:var(--ice-dim); font-size:14px; line-height:1.55; }
.meta{ display:flex; gap:16px; flex-wrap:wrap; padding-top:14px; margin-top:2px; border-top:1px solid var(--line); }
.meta i{ font-style:normal; font-family:var(--mono); font-size:10px; letter-spacing:.13em; color:var(--slate); text-transform:uppercase; }
.card-go{ display:flex; align-items:center; gap:8px; font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--ice); opacity:.55; transition:opacity .3s, gap .3s; }
.card:hover .card-go{ opacity:1; gap:14px; }

.dmeta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.dmeta div{ background:#070A12; padding:15px 16px; display:grid; gap:5px; }
.dmeta span{ font-family:var(--mono); font-size:9px; letter-spacing:.18em; color:var(--slate); text-transform:uppercase; }
.dmeta b{ font-size:14px; font-weight:600; }
.dsec{ display:grid; gap:14px; }
.dsec > .eyebrow{ padding-bottom:10px; border-bottom:1px solid var(--line); }
.mods{ display:grid; gap:1px; background:var(--line); }
.mod{ background:#070A12; padding:15px 2px 15px 0; display:grid; grid-template-columns:36px 1fr; gap:14px; align-items:start; }
.mod b{ font-family:var(--mono); font-size:10.5px; color:var(--tc); font-weight:500; padding-top:3px; }
.mod p{ margin:0; font-size:14px; }
.mod p strong{ display:block; font-weight:600; margin-bottom:3px; }
.mod p span{ color:var(--slate); }
.outs{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.outs li{ display:grid; grid-template-columns:14px 1fr; gap:12px; font-size:14.5px; color:var(--ice-dim); }
.outs li::before{ content:'∞'; color:var(--tc); font-size:13px; line-height:1.5; }
.chips{ display:flex; gap:7px; flex-wrap:wrap; }
.chip{ font-family:var(--mono); font-size:10px; letter-spacing:.1em; padding:6px 11px; border:1px solid var(--line-2); border-radius:999px; color:var(--ice-dim); }

/* ============================================================
   CH 05 — CROSSING
   ============================================================ */
.cross{ display:grid; justify-items:center; text-align:center; gap:22px; }
.cross h2{ max-width:16ch; }
.cross .lede{ text-align:center; }
.cross-strip{ display:flex; gap:1px; background:var(--line); border:1px solid var(--line); margin-top:16px; flex-wrap:wrap; }
.cross-strip div{ background:var(--void); padding:18px 26px; display:grid; gap:4px; min-width:150px; }
.cross-strip b{ font-size:19px; font-weight:600; }
.cross-strip span{ font-family:var(--mono); font-size:9.5px; letter-spacing:.18em; color:var(--slate); text-transform:uppercase; }

/* ============================================================
   CH 06 — ARC
   ============================================================ */
.arc{ display:grid; gap:44px; }
.rail{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1px; background:var(--line); position:relative; }
.rail::before{ content:''; position:absolute; left:0; right:0; top:0; height:1px; background:linear-gradient(90deg,var(--ice),var(--amber),var(--magenta),var(--azure)); }
.node{ background:var(--void); padding:26px 22px 30px; display:grid; gap:9px; align-content:start; }
.node b{ font-family:var(--mono); font-size:10px; letter-spacing:.2em; color:var(--slate); }
.node h4{ font-size:17px; font-weight:600; }
.node p{ margin:0; font-size:13.5px; color:var(--ice-dim); }

/* ============================================================
   CH 07 — PROOF
   ============================================================ */
.proof{ display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.quote{ background:var(--void); padding:32px clamp(22px,2.4vw,34px); display:grid; gap:18px; align-content:space-between; }
.quote p{ margin:0; font-size:16px; line-height:1.55; font-weight:300; }
.quote footer{ display:grid; gap:2px; }
.quote footer b{ font-size:13.5px; font-weight:600; }
.quote footer span{ font-family:var(--mono); font-size:10px; letter-spacing:.14em; color:var(--slate); text-transform:uppercase; }

/* ============================================================
   CH 08 — SESSION
   ============================================================ */
.session{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(34px,5vw,80px); align-items:start; }
.agenda{ display:grid; gap:1px; background:var(--line); border-block:1px solid var(--line); margin-top:26px; }
.agenda div{ background:var(--void); padding:17px 0; display:grid; grid-template-columns:64px 1fr; gap:16px; align-items:baseline; }
.agenda b{ font-family:var(--mono); font-size:11px; color:var(--amber); letter-spacing:.08em; }
.agenda p{ margin:0; font-size:14.5px; color:var(--ice-dim); }
.book{ border:1px solid var(--line-2); padding:clamp(24px,3vw,38px); display:grid; gap:16px; background:rgba(8,12,22,.6); backdrop-filter:blur(9px); }
.field{ display:grid; gap:7px; }
.field label{ font-family:var(--mono); font-size:9.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--slate); }
.field input, .field select{
  width:100%; background:transparent; border:0; border-bottom:1px solid var(--line-2);
  padding:11px 2px; color:var(--ice); font-family:var(--display); font-size:15px; border-radius:0;
  transition:border-color .3s;
}
.field select{ appearance:none; cursor:pointer; }
.field select option{ background:#070A12; color:var(--ice); }
.field input:focus, .field select:focus{ outline:none; border-bottom-color:var(--azure); }
.field input::placeholder{ color:var(--slate-dk); }
.phone-row{ display:flex; gap:10px; flex-wrap:wrap; }
.phone-row select{ flex:1 1 132px; min-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-row input{ flex:2 1 140px; min-width:0; }
/* .course-side is a narrow sticky sidebar — stack the pair instead of
   squeezing both into one row. */
.course-side .phone-row select,
.course-side .phone-row input{ flex-basis:100%; }
.book .pill{ justify-content:center; padding:15px 20px; margin-top:6px; }
.book small{ font-family:var(--mono); font-size:9.5px; letter-spacing:.1em; color:var(--slate); line-height:1.7; }
.ok{ display:grid; gap:10px; place-items:center; text-align:center; padding:26px 0; }
.ok .glyph{ font-size:44px; background:linear-gradient(96deg,var(--amber),var(--azure)); -webkit-background-clip:text; background-clip:text; color:transparent; }
/* honeypot — off-screen, never focusable, invisible to humans */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.err{ font-family:var(--mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ember); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ position:relative; z-index:2; border-top:1px solid var(--line); padding-block:56px 34px; }
.foot-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; }
.foot h5{ font-family:var(--mono); font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--slate); margin:0 0 16px; font-weight:500; }
.foot ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.foot li a{ font-size:14px; color:var(--ice-dim); transition:color .25s; }
.foot li a:hover{ color:var(--ice); }
.foot-brand p{ color:var(--slate); font-size:14px; max-width:38ch; margin:14px 0 0; }
.foot-btm{ margin-top:44px; padding-top:22px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-family:var(--mono); font-size:10px; letter-spacing:.16em; color:var(--slate-dk); text-transform:uppercase; }

/* ============================================================
   INTERIOR PAGES  (/courses, /courses/[slug])
   Reuses the drawer vocabulary on a full-width canvas.
   ============================================================ */
.page{ position:relative; z-index:2; padding-block:clamp(120px,16vh,190px) clamp(70px,10vh,110px); }
.crumb{ display:flex; align-items:center; gap:10px; margin-bottom:26px;
  font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--slate); }
.crumb a{ transition:color .25s; }
.crumb a:hover{ color:var(--ice); }
.course-head{ display:grid; gap:20px; max-width:74ch; margin-bottom:44px; }
.course-body{ display:grid; grid-template-columns:1.35fr .65fr; gap:clamp(34px,5vw,72px); align-items:start; }
.course-main{ display:grid; gap:clamp(34px,4vw,52px); }
.course-side{ display:grid; gap:22px; position:sticky; top:96px;
  border:1px solid var(--line-2); padding:clamp(22px,2.4vw,30px); background:rgba(8,12,22,.6); backdrop-filter:blur(9px); }
.course-side .pill{ justify-content:center; padding:14px 18px; }
/* interior surfaces sit on --void, not the drawer's #070A12 */
.page .dmeta div, .page .mod{ background:var(--void); }
.next-up{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:clamp(56px,8vh,96px); }

/* ============================================================
   FAQ  (native <details> — answers stay in the DOM for crawlers)
   ============================================================ */
.faq-wrap{ margin-top:clamp(64px,9vh,110px); }
.faq{ display:grid; gap:1px; background:var(--line); border-block:1px solid var(--line); }
.faq-item{ background:var(--void); transition:background .4s; }
.faq-item[open]{ background:var(--void-2); }
.faq-item summary{
  list-style:none; cursor:pointer; padding:22px 0;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary h3{ font-size:clamp(16px,1.4vw,20px); font-weight:600; letter-spacing:-.01em; margin:0; }
.faq-item summary i{
  flex:none; width:13px; height:13px; position:relative; transition:transform .35s var(--ease);
}
.faq-item summary i::before, .faq-item summary i::after{
  content:''; position:absolute; inset:50% 0 auto 0; height:1px; background:var(--slate);
}
.faq-item summary i::after{ transform:rotate(90deg); transition:opacity .35s var(--ease); }
.faq-item[open] summary i{ transform:rotate(180deg); }
.faq-item[open] summary i::after{ opacity:0; }
.faq-item summary:hover h3{ color:var(--ice); }
.faq-item p{ margin:0; padding:0 40px 26px 0; color:var(--ice-dim); font-size:15px; max-width:78ch; }

/* ============================================================
   LONG-FORM SEO LANDING SECTIONS
   ============================================================ */
.prose{ display:grid; gap:20px; max-width:72ch; }
.prose p{ margin:0; color:var(--ice-dim); font-size:clamp(15px,1.15vw,17px); }
.prose strong{ color:var(--ice); font-weight:600; }
.sec{ margin-top:clamp(56px,8vh,96px); display:grid; gap:22px; }
.sec > h2{ font-size:clamp(26px,3.4vw,48px); }
.platforms{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.platform{ background:var(--void); padding:24px clamp(18px,2vw,26px) 26px; display:grid; gap:9px; align-content:start; }
.platform b{ font-size:16px; font-weight:600; }
.platform span{ font-family:var(--mono); font-size:9.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--slate); }
.platform p{ margin:0; font-size:13.5px; color:var(--ice-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1000px){
  .session{ grid-template-columns:1fr; }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .course-body{ grid-template-columns:1fr; }
  .course-side{ position:static; }
}
/* Short windows: the scroll hint is pinned to the bottom of .ch__pin and lands on
   top of the stats row. It's decorative; the stats are content. */
@media (max-height:760px){
  .scroll-hint{ display:none; }
  .hero-in{ gap:12px; }
  .stats{ margin-top:10px; padding-top:10px; }
}

@media (max-width:760px){
  .nav-links{ display:none; }
  .nav .pill{ opacity:1; transform:none; pointer-events:auto; }
  .ch--pin{ height:160vh; }
  .split{ grid-template-columns:1fr; gap:26px; justify-items:start; }
  .limb--r{ justify-items:start; text-align:left; }
  .limb--r p{ margin-left:0; }
  .knot{ justify-items:start; }
  .hero h1 .l2{ padding-left:0; }
  .orbit{ bottom:84px; right:14px; }
  .foot-grid{ grid-template-columns:1fr; gap:28px; }
  .cross-strip div{ flex:1 1 45%; min-width:0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .rv{ opacity:1; transform:none; }
  [data-scrub]{ opacity:1; transform:none; }
  .ch--pin{ height:auto; }
  .ch__pin{ position:static; height:auto; padding-block:110px; }
}

/* ============================================================
   TEAM PAGE  (/team)
   ============================================================ */
.team{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.team-card{ background:var(--void); padding:30px clamp(20px,2vw,28px) 28px; display:grid; gap:14px; align-content:start; }
.team-card .avatar{
  width:60px; height:60px; border-radius:50%; display:grid; place-items:center;
  font-family:var(--mono); font-weight:700; font-size:17px; color:var(--void);
  background:linear-gradient(96deg,var(--amber),var(--magenta) 55%,var(--azure));
}
.team-card h3{ font-size:19px; font-weight:600; }
.team-card .role{ font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--slate); }
.team-card p{ margin:0; color:var(--ice-dim); font-size:14px; line-height:1.55; }
