/* =====================================================================
   Got Stripes: homepage (Peryton-style scroll page), Command Deck 2 pass
   Loads after deck.css (font, tokens, buttons, badge). Static, no build.
   Sections, order, content and the GSAP scroll choreography are the
   3.1.0 page; this file restyles type, surfaces and controls only.
   GSAP owns transforms on .phone, .beat, .story-word, .hero h1,
   .hero-object, .st-object, .st .word, .state-row and the revealed
   blocks, so none of those get a CSS transform here.
   ===================================================================== */

:root {
  --step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.04rem + 0.42vw, 1.375rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(2.25rem, 1.55rem + 3vw, 4.25rem);

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--floor); }
body {
  margin: 0;
  background: var(--floor);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--gold); color: var(--gold-on); border-radius: var(--r-btn);
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.accent, h1 em.accent, h2 em.accent { color: var(--gold); font-style: normal; }

/* Eyebrow (DESIGN.md: small uppercase label, one per section header).
   The section number, where there is one, is set in gold tabular figures. */
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .eb-n { color: var(--gold); font-variant-numeric: tabular-nums; }

.display {
  font-family: var(--display); font-weight: 900; font-stretch: var(--cond-x);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.86;
  overflow-wrap: normal;
}
h2 {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800;
  font-size: var(--step-3); line-height: 0.95; letter-spacing: -0.005em;
  text-wrap: balance;
}
h3 {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800;
  font-size: var(--step-2); line-height: 1.02; letter-spacing: 0;
}
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; max-width: 44ch; }

/* ---------- ambient stars (time-driven, off under reduced motion) ----------
   Matte: neutral points only. The page's one light lives in the hero. */
.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 0% 0%, rgba(7, 17, 30, 0.95), transparent 62%),
    radial-gradient(900px 600px at 100% 100%, rgba(12, 26, 44, 0.85), transparent 60%);
}
.stars::before, .stars::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(244, 246, 250, 0.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 62%, rgba(244, 246, 250, 0.6), transparent 60%),
    radial-gradient(1px 1px at 41% 34%, rgba(244, 246, 250, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 57% 80%, rgba(244, 246, 250, 0.55), transparent 60%),
    radial-gradient(1px 1px at 66% 14%, rgba(244, 246, 250, 0.55), transparent 60%),
    radial-gradient(1.3px 1.3px at 78% 48%, rgba(244, 246, 250, 0.7), transparent 60%),
    radial-gradient(1px 1px at 88% 72%, rgba(244, 246, 250, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 86%, rgba(244, 246, 250, 0.5), transparent 60%),
    radial-gradient(1px 1px at 93% 22%, rgba(244, 246, 250, 0.55), transparent 60%),
    radial-gradient(1.1px 1.1px at 49% 52%, rgba(244, 246, 250, 0.4), transparent 60%);
  background-size: 900px 900px;
  opacity: 0.45;
  animation: drift 140s linear infinite;
}
.stars::after { background-size: 1300px 1300px; opacity: 0.28; animation-duration: 220s; animation-direction: reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-120px, -80px, 0); } }

/* ---------- curtain ---------- */
#curtain {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  will-change: transform;
}
.js #curtain { display: block; }
.curtain-mark, .menu-mark {
  position: absolute; right: -6vw; bottom: -8vw; width: min(52vw, 560px); height: auto;
  color: rgba(11, 20, 34, 0.24);
}

/* ---------- header: one line, 64px ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  /* Frosted bar: the old fade let scrolled text run under the wordmark on phones. */
  background: rgba(4, 9, 15, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: rgba(4, 9, 15, 0.92); }
}
/* Menu open: the gold overlay owns the screen, so the bar goes clear. */
body.menu-open .top {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.top > * { pointer-events: auto; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none;
  font-family: var(--display); font-stretch: var(--cond); font-weight: 900;
  font-size: 1.125rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.wordmark em { font-style: normal; color: var(--gold); }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  border-radius: var(--r-tile); border: 1px solid var(--hair-strong);
  background: rgba(12, 26, 44, 0.72); box-shadow: var(--bevel);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer; transition: background-color 0.3s, border-color 0.3s;
}
.menu-btn:hover { border-color: var(--hair-hover); }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-1); transition: transform 0.3s var(--ease), opacity 0.3s, background-color 0.3s; }
.menu-btn[aria-expanded="true"] { background: transparent; border-color: rgba(11, 20, 34, 0.35); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-btn[aria-expanded="true"] span { background: var(--gold-on); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { position: relative; z-index: 1; }
section { position: relative; }

/* =====================================================================
   1 · HERO
   ===================================================================== */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 96px 0 56px; overflow: clip; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 18px; position: relative; }


.hero .eyebrow { color: var(--ink-2); }
.hero .eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 2px; margin-right: 12px;
  vertical-align: middle; background: var(--gold); border-radius: 2px;
}
/* Sized from measured glyph widths (Archivo 900, wdth 75, -0.01em):
   "EARN YOUR" = 4.84em, "STRIPES." = 3.91em. At 18vw the long line is
   87vw, inside the 90vw content box even at 320px. */
.hero h1 { position: relative; z-index: 2; font-size: 18vw; }
.hero h1 .line { display: block; }
.hero-object {
  position: relative; z-index: 3; width: min(62vw, 360px); margin: -22% -4vw -6% auto;
}
.hero-object img { filter: drop-shadow(0 36px 60px rgba(1, 4, 9, 0.6)); }
/* The page's single light (glow budget = 1): a warm halo that lives on the
   chevrons, so it arrives and fades with them. */
.hero-object::before {
  content: ""; position: absolute; inset: -38%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 197, 24, 0.2), rgba(245, 197, 24, 0.07) 55%, rgba(245, 197, 24, 0) 100%);
}
.hero-side { position: relative; z-index: 2; }
.states-line {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  color: var(--ink-2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.states-line i { width: 1px; height: 12px; background: var(--hair-strong); display: inline-block; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-cta .btn-outline { --btn-h: 50px; }

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto auto;
    column-gap: 40px; row-gap: 28px;
  }
  .hero .eyebrow { grid-column: 1 / -1; }
  /* Desktop keeps the approved three-line stack (EARN / YOUR / STRIPES.):
     max-width 4.4em breaks "EARN YOUR" (4.84em) while "STRIPES." (3.91em)
     stays whole. The height cap keeps the CTA row above the fold. */
  .hero h1 { grid-column: 1 / -1; font-size: min(14vw, 12.5rem, 22svh); max-width: 4.4em; }
  .hero-object { position: absolute; right: -1vw; top: -2%; width: min(36vw, 560px); margin: 0; }
  .hero-side { grid-column: 2; grid-row: 3; align-self: end; padding-left: 8%; }
  .hero-cta { grid-column: 1; grid-row: 3; align-self: end; }
}
@media (min-width: 1400px) { .hero-object { right: 0; } }

/* =====================================================================
   2 · PHONE STORY (pinned)
   ===================================================================== */
.story { position: relative; }
.story-stage { position: relative; height: 100svh; min-height: 560px; overflow: clip; }
/* GOT over STRIPES. "STRIPES" measures 3.62em at wdth 75 / 900 / -0.01em,
   so 24vw sets it at 87vw; the svh cap keeps both lines inside short screens. */
.story-word {
  position: absolute; left: 0; right: 0; top: 11%; display: grid; justify-items: center;
  font-family: var(--display); font-weight: 900; font-stretch: var(--cond-x);
  font-size: min(24vw, 20rem, 38svh); line-height: 0.84; letter-spacing: -0.01em;
  color: var(--gold); white-space: nowrap; pointer-events: none; user-select: none;
}
.phone {
  position: absolute; left: 50%; top: 50%;
  width: clamp(200px, 25vw, 290px); aspect-ratio: 290 / 592;
  /* no CSS transform here: GSAP owns xPercent/yPercent/scale */
  will-change: transform;
}
.phone::before { /* machined frame: metal gradient + hairline, no gold ring */
  content: ""; position: absolute; inset: 0; border-radius: 46px;
  background: linear-gradient(155deg, #3A4252 0%, #161C26 22%, #0A0F16 52%, #1A202B 80%, #394150 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(1, 4, 9, 0.9),
    0 50px 90px -30px rgba(1, 4, 9, 0.9);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; left: 50%; top: 3.2%; width: 32%; height: 3.6%;
  transform: translateX(-50%); background: #020408; border-radius: var(--r-pill); z-index: 3;
}
.phone-screen { position: absolute; inset: 2.2%; border-radius: 38px; overflow: hidden; background: var(--floor); }
.phone-screen .screen { position: absolute; inset: 0; opacity: 0; }
.phone-screen .screen[data-screen="1"] { opacity: 1; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.beats { position: absolute; inset: 0; pointer-events: none; }
.beat { position: absolute; top: 50%; width: min(30vw, 420px); opacity: 0; }
.beat-r { left: calc(50% + clamp(110px, 14vw, 190px)); }
.beat-l { right: calc(50% + clamp(110px, 14vw, 190px)); text-align: right; }
.beat h3 {
  font-family: var(--display); font-stretch: var(--cond-x); font-weight: 900;
  font-size: var(--step-3); line-height: 0.9; text-transform: uppercase; margin-bottom: 14px;
}
.beat h3::before { /* the 2px accent line (DESIGN.md) */
  content: ""; display: block; width: 32px; height: 2px; margin-bottom: 16px;
  background: var(--gold); border-radius: 2px;
}
.beat-l h3::before { margin-left: auto; }
.beat h3 em { font-style: normal; color: var(--ink-1); }
.beat p { color: var(--ink-2); font-size: var(--step-0); }
.beat .beat-cap {
  margin-top: 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}

.story-static { display: none; }

@media (max-width: 767px) {
  .phone { top: 44%; width: clamp(180px, 46vw, 220px); }
  .beat { width: min(86vw, 420px); left: 50% !important; right: auto !important; top: auto; bottom: 6%; text-align: center; } /* centred via GSAP xPercent:-50 */
  .beat h3 { font-size: var(--step-2); margin-bottom: 8px; }
  .beat h3::before { margin-inline: auto; margin-bottom: 12px; }
  .story-word { top: 8%; }
}

/* =====================================================================
   3 · TOOLKIT GALLERY (native scroller, mouse drag)
   ===================================================================== */
.toolkit { padding: 120px 0 40px; }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.s-head h2 { margin-top: 14px; }
/* Meta line sits under the headline, never floating in the right corner. */
.s-meta {
  order: 3; flex-basis: 100%;
  color: var(--ink-3); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.gal-controls { display: flex; gap: 10px; }
.gal-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-btn); border: 1px solid var(--hair-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)), var(--raised);
  box-shadow: var(--bevel); color: var(--ink-1);
  cursor: pointer; font-size: 20px; line-height: 1;
  transition: transform 0.16s var(--ease), border-color 0.2s, background-color 0.2s;
}
.gal-btn:hover { border-color: var(--hair-hover); background-color: var(--chip); }
.gal-btn:active { transform: translateY(1px) scale(0.96); }

.gal { position: relative; margin-top: 8px; }
/* "TOOLKIT" = 3.74em at wdth 75 / 900 / -0.01em, so 23vw sets it at 86vw. */
.gal-word {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  font-family: var(--display); font-weight: 900; font-stretch: var(--cond-x);
  font-size: min(23vw, 20rem); letter-spacing: -0.01em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 246, 250, 0.22); pointer-events: none; white-space: nowrap;
}
.gal-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--hair-gold-strong); background: rgba(12, 26, 44, 0.82); color: var(--gold-bright);
  font-family: var(--display); font-stretch: var(--cond); font-size: 13px; font-weight: 800; letter-spacing: 0.2em;
  transform: translate(-50%, -50%); box-shadow: var(--bevel);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gal-cursor span { font-size: 16px; }
.gal-scroller {
  position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 28px var(--gutter) 36px; cursor: grab;
}
.gal-scroller::-webkit-scrollbar { display: none; }
.gal-scroller:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -2px; }
.js .gal.fine .gal-scroller { cursor: none; }
.gal-scroller.dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.gal-track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; padding-right: var(--gutter); }
.tile { flex: 0 0 auto; margin: 0; width: clamp(200px, 22vw, 280px); scroll-snap-align: center; }
@media (max-width: 767px) { .tile { width: 62vw; scroll-snap-align: center; } }

/* Screen captures: device corner, hairline + top highlight drawn OVER the image */
.tile-img, .frame picture {
  position: relative; display: block; aspect-ratio: 1206 / 2622; border-radius: var(--r-screen); overflow: hidden;
  background: var(--card); box-shadow: 0 30px 60px -26px rgba(1, 4, 9, 0.85);
}
.tile-img::after, .frame picture::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--hair-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; display: block; }
.tile figcaption { padding: 14px 4px 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); text-align: center; }

/* =====================================================================
   3b · DUTY HUB
   ===================================================================== */
.duty { padding: 120px 0 80px; position: relative; }
.duty-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .duty-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } }
.duty h2 { margin: 14px 0 20px; }
.duty-lede { color: var(--ink-2); font-size: var(--step-0); max-width: 58ch; }
/* Grouped list: one card, rows split by hairlines (inset-grouped, like the app) */
.duty-list {
  list-style: none; margin: 32px 0 0; padding: 0;
  background: var(--card-light), var(--card);
  border: 1px solid var(--hair-soft); border-radius: var(--r-card);
  box-shadow: var(--bevel), var(--drop); overflow: hidden;
}
.duty-list li { padding: 20px 22px; }
.duty-list li + li { border-top: 1px solid var(--hair-soft); }
.duty-list p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; max-width: 58ch; margin-top: 8px; }
.duty-k {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 1.3rem; line-height: 1.1;
}
.duty-k b {
  font-family: var(--sans); font-stretch: 100%; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--chip); border: 1px solid var(--hair-strong); color: var(--ink-1);
}
.duty-k b.pro { background: rgba(245, 197, 24, 0.08); border-color: var(--hair-gold-strong); color: var(--gold); }
.duty-fine { margin-top: 24px; color: var(--ink-3); font-size: var(--step--1); max-width: 58ch; }
.duty-phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 28px); align-items: start; }
.frame { margin: 0; }
.frame picture { box-shadow: 0 40px 80px -30px rgba(1, 4, 9, 0.9); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.frame figcaption { margin-top: 12px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); text-align: center; }
.frame-b { margin-top: clamp(24px, 6vw, 72px); }

/* =====================================================================
   4 · STATEMENT (pinned)
   ===================================================================== */
.statement { position: relative; }
.statement-stage { position: relative; height: 100svh; min-height: 560px; overflow: clip; display: grid; place-items: center; }
.st { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(90vw, 980px); text-align: center; opacity: 0; }
.st-1 {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.005em;
}
.st-2 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 2.1rem); line-height: 1.35; color: var(--ink-2);
  width: min(90vw, 860px);
}
.st-3 { font-size: clamp(2.75rem, 8.6vw, 8.5rem); top: 27%; width: min(94vw, 1200px); text-shadow: 0 10px 40px rgba(4, 9, 15, 0.9); }
.st .word { display: inline-block; }
.st-object {
  position: absolute; left: 50%; bottom: -14%; width: min(56vw, 640px); margin-left: calc(-1 * min(28vw, 320px));
  filter: drop-shadow(0 40px 70px rgba(1, 4, 9, 0.65)); will-change: transform;
}
@media (max-width: 767px) { .st-object { bottom: 10%; width: min(72vw, 340px); margin-left: calc(-1 * min(36vw, 170px)); } }
.no-js .st, .reduced .st { position: static; transform: none; opacity: 1; margin: 18px auto; }
.no-js .statement-stage, .reduced .statement-stage { height: auto; min-height: 0; padding: 120px 0 60px; display: block; }
.no-js .st-object, .reduced .st-object { position: static; transform: none; width: min(60vw, 420px); margin: 24px auto 0; }
.no-js .beat, .reduced .beat { position: static; transform: none; opacity: 1; }

/* =====================================================================
   5 · STATES
   ===================================================================== */
.states { padding: 120px 0 60px; }
/* Narrow .wrap paragraphs: keep the wrap's left edge, cap the measure. */
.wrap.states-sub, .wrap.plan-fine { margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); margin-right: auto; }
.states-sub { color: var(--ink-2); width: min(62ch, 100% - 2 * var(--gutter)); margin-bottom: 36px; }
.state-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 14px; padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.state-row::-webkit-scrollbar { display: none; }
.state {
  scroll-snap-align: start; min-height: 220px; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 24px; border-radius: var(--r-card);
  border: 1px solid var(--hair-soft); background: var(--card-light), var(--card);
  box-shadow: var(--bevel), var(--drop);
}
/* State code as an icon tile (40+ px, chip surface, glyph in the accent) */
.state .tag {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-tile); background: var(--chip); border: 1px solid var(--hair-soft); box-shadow: var(--bevel);
  color: var(--gold); font-family: var(--display); font-stretch: var(--cond); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.04em;
}
.state h3 { font-size: min(var(--step-2), 15cqw); }
.state p:last-child { color: var(--ink-2); font-size: var(--step--1); margin-top: auto; }
@media (min-width: 1080px) { .state-row { grid-auto-columns: 1fr; overflow: visible; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); } .state { container-type: inline-size; } }

/* =====================================================================
   6 · SAMPLE QUESTIONS
   ===================================================================== */
.try { padding: 100px 0; }
.quiz {
  border: 1px solid var(--hair-soft); border-radius: var(--r-card); padding: clamp(18px, 3vw, 36px);
  background: var(--card-light), var(--card); box-shadow: var(--bevel), var(--drop);
}
.quiz-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.quiz-modes { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--floor); border: 1px solid var(--hair-soft); }
.quiz-modes button {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  background: transparent; color: var(--ink-3); cursor: pointer;
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.quiz-modes button:hover { color: var(--ink-1); }
.quiz-modes button[aria-pressed="true"] { background: var(--chip); border-color: var(--hair-gold-strong); color: var(--gold-bright); box-shadow: var(--bevel); }
.quiz-stats {
  display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: baseline;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
}
.quiz-stats b {
  margin-left: 4px; color: var(--ink-1);
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.quiz-track { height: 4px; background: var(--hair-soft); margin: 20px 0 24px; border-radius: var(--r-pill); overflow: hidden; }
.quiz-track i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width 0.3s var(--ease); }
.exam-note { color: var(--gold-bright); font-size: var(--step--1); margin-bottom: 14px; }
.q-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.q-cite {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-variant-numeric: tabular-nums;
}
.q-diff { font-size: 0.72rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.q-diff i { width: 14px; height: 4px; background: var(--hair-strong); border-radius: 2px; display: inline-block; }
.q-diff i:first-of-type { margin-left: 4px; }
.q-diff i.on { background: var(--gold); }
.q-text { font-size: var(--step-1); font-weight: 500; line-height: 1.45; margin-bottom: 22px; max-width: 68ch; color: var(--ink-1); }
.q-choices { display: grid; gap: 10px; }
.choice {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; text-align: left;
  min-height: 58px; padding: 10px 14px; border-radius: var(--r-panel);
  border: 1px solid var(--hair-soft); background: var(--raised); box-shadow: var(--bevel);
  color: var(--ink-1); font-size: var(--step-0); line-height: 1.4; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.16s var(--ease);
}
.choice:hover:not(:disabled) { border-color: var(--hair-hover); background-color: var(--chip); }
.choice:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.choice:disabled { cursor: default; }
.choice .letter {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  background: var(--chip); border: 1px solid var(--hair-soft); color: var(--gold);
  font-family: var(--display); font-stretch: var(--cond); font-weight: 900; font-size: 1.05rem;
}
.choice .verdict { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.choice.correct { border-color: var(--ok-line); background: linear-gradient(var(--ok-soft), var(--ok-soft)), var(--raised); }
.choice.correct .letter { color: var(--ok); border-color: var(--ok-line); }
.choice.correct .verdict { color: var(--ok); }
.choice.wrong { border-color: var(--bad-line); background: linear-gradient(var(--bad-soft), var(--bad-soft)), var(--raised); }
.choice.wrong .letter { color: var(--bad-text); border-color: var(--bad-line); }
.choice.wrong .verdict { color: var(--bad-text); }
.q-static summary { cursor: pointer; padding: 12px 0; min-height: 44px; color: var(--ink-2); }
.q-static p { padding: 10px 0 14px; color: var(--ink-2); }
.js .q-static { display: none; }
.q-result {
  margin-top: 18px; padding: 16px 18px 16px 20px; border-radius: var(--r-panel);
  background: var(--raised); border: 1px solid var(--hair-soft);
  box-shadow: inset 2px 0 0 var(--gold), var(--bevel);
}
.q-explain { color: var(--ink-1); line-height: 1.6; }
/* Citations keep their own casing: (a)(3) must not become (A)(3). */
.q-src { margin-top: 10px; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair-soft); }
.quiz-foot .btn-gold { --btn-h: 50px; }
.keys { color: var(--ink-3); font-size: var(--step--1); }
kbd {
  display: inline-block; min-width: 1.9em; padding: 2px 6px; text-align: center;
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 0.8rem; font-variant-numeric: tabular-nums;
  color: var(--ink-1); background: var(--chip); border: 1px solid var(--hair-strong); border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(1, 4, 9, 0.5);
}

/* =====================================================================
   7 · PLANS
   ===================================================================== */
.plans { padding: 100px 0; }
.plan-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 22px 22px; border-radius: var(--r-card);
  border: 1px solid var(--hair-soft); background: var(--card-light), var(--card);
  box-shadow: var(--bevel), var(--drop);
}
.plan.featured {
  border-color: var(--hair-gold-strong);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.07), rgba(245, 197, 24, 0) 42%), var(--raised);
}
.plan-flag {
  position: absolute; top: -13px; left: 22px; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--chip); border: 1px solid var(--hair-gold-strong); color: var(--gold-bright);
  font-size: 0.7rem; font-weight: 800; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
}
.plan-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 900;
  font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem); line-height: 0.95; letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink-1);
}
.price span { color: var(--ink-3); font-size: 0.95rem; font-weight: 600; }
.plan-lede { color: var(--ink-2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--ink-2); font-size: var(--step--1); }
.plan li { padding-left: 26px; position: relative; line-height: 1.45; }
.plan li::before { /* check in a tinted tile */
  content: ""; position: absolute; left: 0; top: 0.12em; width: 16px; height: 16px; border-radius: var(--r-pill);
  background: rgba(245, 197, 24, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23F5C518' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan li.no { color: var(--ink-3); }
.plan li.no::before { top: 0.66em; left: 3px; width: 10px; height: 2px; border-radius: 2px; background: var(--ink-4); }
.plan a { margin-top: auto; }
.plan-fine { margin-top: 24px; color: var(--ink-3); font-size: var(--step--1); width: min(90ch, 100% - 2 * var(--gutter)); }

/* =====================================================================
   8 · FAQ
   ===================================================================== */
.faq { padding: 100px 0; }
.faq-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } .faq-side { position: sticky; top: 104px; align-self: start; } }
.faq-side h2 { margin-top: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--hair-soft); border-radius: var(--r-card);
  background: var(--card); box-shadow: var(--bevel);
  transition: border-color 0.25s, background-color 0.25s;
}
.faq-list details:hover { border-color: var(--hair-strong); }
.faq-list details[open] { border-color: var(--hair-gold); background-color: var(--raised); }
.faq-list summary {
  list-style: none; display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 12px;
  min-height: 60px; padding: 14px 18px; border-radius: var(--r-card); cursor: pointer;
  font-weight: 600; font-size: var(--step-0); line-height: 1.35; color: var(--ink-1);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .n {
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 1rem;
  letter-spacing: 0.04em; color: var(--ink-4); font-variant-numeric: tabular-nums;
}
.faq-list details[open] summary .n { color: var(--gold); }
/* Plus/minus drawn level: the vertical bar collapses, nothing rotates. */
.faq-list summary i { width: 32px; height: 32px; border-radius: 10px; position: relative; background: var(--chip); border: 1px solid var(--hair-soft); }
.faq-list summary i::before, .faq-list summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform 0.25s var(--ease);
}
.faq-list summary i::before { width: 12px; height: 2px; }
.faq-list summary i::after { width: 2px; height: 12px; }
.faq-list details[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body { padding: 0 18px 20px 70px; color: var(--ink-2); line-height: 1.6; }
.faq-body a { color: var(--gold-bright); text-underline-offset: 3px; }
@media (max-width: 600px) { .faq-list summary { grid-template-columns: 34px 1fr 32px; gap: 10px; } .faq-body { padding-left: 18px; } }

/* =====================================================================
   9 · FINAL CTA
   ===================================================================== */
.final { min-height: 80svh; display: grid; align-items: center; padding: 120px 0; overflow: clip; }
.final-bg { position: absolute; inset: 0; z-index: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.26; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--floor), rgba(4, 9, 15, 0.25) 42%, var(--floor)); z-index: 0; }
.final-inner { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; }
.final h2 { font-size: clamp(3rem, 9vw, 9rem); }
.final .lede { max-width: 50ch; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { position: relative; z-index: 1; padding: 72px 0 28px; border-top: 1px solid var(--hair-soft); background: var(--floor); }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.foot-grid > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-content: start; }
.foot-grid > div:first-child .foot-k { grid-column: 1 / -1; }
.foot-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.foot-grid a {
  display: flex; align-items: center; min-height: 44px; text-decoration: none;
  font-family: var(--display); font-stretch: var(--cond); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em;
  color: var(--ink-1); transition: color 0.2s;
}
.foot-grid a:hover { color: var(--gold-bright); }
.foot-note { margin-top: 12px; color: var(--ink-3); font-size: var(--step--1); line-height: 1.6; max-width: 46ch; }
/* "GOT STRIPES" = 5.53em at wdth 75 / 900 / -0.01em, so 15.5vw sets it at 86vw. */
.foot-word {
  margin: 56px auto 24px; text-align: center;
  font-family: var(--display); font-weight: 900; font-stretch: var(--cond-x);
  font-size: min(15.5vw, 15rem); line-height: 0.9; letter-spacing: -0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 197, 24, 0.4);
}
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--step--1); border-top: 1px solid var(--hair-soft); padding-top: 20px; }

/* =====================================================================
   MENU OVERLAY
   ===================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 110; display: grid; grid-template-rows: 1fr auto; place-items: center;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep)); color: var(--gold-on);
  padding: 88px var(--gutter) 32px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 32px);
  transition: clip-path 0.55s var(--ease);
}
.menu[hidden] { display: none; }
.menu.open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) 32px); }
/* The overlay is un-hidden and opened in the same frame; start the reveal from the button. */
@starting-style { .menu.open { clip-path: circle(0% at calc(100% - var(--gutter) - 22px) 32px); } }
.menu-nav { display: grid; gap: 2px; text-align: center; }
.menu-nav a {
  display: block; text-decoration: none; padding: 4px 16px;
  font-family: var(--display); font-stretch: var(--cond-x); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, min(7vw, 7svh), 5rem); line-height: 1.1; letter-spacing: 0; /* 8 links + sub row fit a 640px-tall screen */
  transition: opacity 0.25s;
}
.menu-nav:hover a:not(:hover) { opacity: 0.35; }
.menu-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.menu-sub a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; font-size: var(--step-0); opacity: 0.8; }
.menu-mark { color: rgba(11, 20, 34, 0.2); }
.menu .menu-nav a:focus-visible, .menu .menu-sub a:focus-visible { outline-color: var(--gold-on); }
body.menu-open { overflow: hidden; }
body.menu-open .top { background: none; }
body.menu-open .wordmark, body.menu-open .wordmark em { color: var(--gold-on); }

/* =====================================================================
   Motion states
   ===================================================================== */
/* JS sets these initial states only once GSAP is confirmed; without JS everything stays visible. */
.js.gs [data-hero], .js.gs [data-hero-h] .line, .js.gs [data-hero-obj] { opacity: 0; }

/* No JS: pinned stages become plain content. */
.no-js .story-stage { display: none; }
.no-js .story-static, .reduced .story-static { display: block; padding: 100px 0 40px; }
.reduced .story-stage { display: none; }
.static-row { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 28px 0; border-top: 1px solid var(--hair-soft); }
.static-row img { width: min(60vw, 240px); border-radius: 22px; box-shadow: 0 0 0 1px var(--hair-soft), 0 24px 48px -24px rgba(1, 4, 9, 0.85); }
.static-row h3 { font-stretch: var(--cond-x); font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.static-row p { color: var(--ink-2); }
@media (min-width: 700px) { .static-row { grid-template-columns: 240px 1fr; gap: 40px; } }
.no-js .gal-cursor, .reduced .gal-cursor { display: none; }
.no-js .gal-word { display: none; }
.no-js .menu { position: static; clip-path: none; display: grid; padding: 40px var(--gutter); }
.no-js .menu[hidden] { display: grid; }
.no-js .menu-btn { display: none; }
.no-js .menu-mark { display: none; }
.no-js #curtain { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars::before, .stars::after { animation: none; }
  #curtain { display: none !important; }
  .js.gs [data-hero], .js.gs [data-hero-h] .line, .js.gs [data-hero-obj] { opacity: 1; }
  .menu { transition: none; }
  .choice:active:not(:disabled), .gal-btn:active { transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
