/* ==========================================================================
   Got Stripes — site.css
   Deep tactical navy + sergeant gold. Mobile-first. No framework.
   Fonts are self-hosted (assets/fonts) — the site makes zero third-party
   network requests.
   ========================================================================== */

/* ---------- Fonts ------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2-variations");
  font-weight: 100 900;           /* variable: one file covers every weight */
  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: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;             /* italic only — this face is for accents */
  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;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* Surfaces — layered, never flat */
  --ink:        #04090f;
  --navy-deep:  #07101f;
  --navy:       #0b1728;
  --navy-lift:  #101f34;
  --line:       #1c2c44;
  --line-soft:  #16243a;

  /* Text — all pairings verified ≥ 4.5:1 on --navy-deep */
  --fg:         #f2f5f9;
  --fg-dim:     #b9c4d4;   /* 8.9:1 on --navy-deep */
  --fg-mute:    #8a99ae;   /* 5.2:1 on --navy-deep */

  /* Accent */
  --gold:       #f5c518;
  --gold-soft:  #ffdc63;
  --gold-deep:  #9c7c04;

  /* Signal — never the sole carrier of meaning */
  --green:      #4ade80;
  --red:        #f87171;
  --blue:       #60a5fa;

  /* Type */
  --sans:  "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Fluid scale — floors hold at 320px, ceilings stop growth past 1440px */
  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  --step-1:  clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  --step-3:  clamp(1.75rem, 1.35rem + 2vw, 2.9rem);
  --step-4:  clamp(2.2rem, 1.5rem + 3.5vw, 4.2rem);
  --step-5:  clamp(2.7rem, 1.6rem + 5.5vw, 5.6rem);

  /* Spacing — 0.25rem scale, no invented values */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  --radius:    4px;
  --radius-lg: 8px;
  --wrap:      1240px;
  --nav-h:     64px;
}

/* ---------- Reset ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--s-4));
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--navy-deep);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* belt-and-braces; no element should overflow */
}

img, picture, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Visible focus everywhere. Never removed. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilities --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(var(--s-4), 4vw, var(--s-7));
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: var(--s-2); left: var(--s-2);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--gold); color: var(--ink);
  padding: var(--s-3) var(--s-5);
  font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

/* Eyebrow / section label */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The one italic move — reserved for the emphatic clause */
em.accent, .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* ---------- Section rhythm --------------------------------------------- */

section { position: relative; }

.band { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); }

.s-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(var(--s-6), 5vw, var(--s-8));
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}
.s-head h2 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-top: var(--s-3);
}
.s-meta {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}

/* ---------- Nav --------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) clamp(var(--s-4), 4vw, var(--s-7));
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--ink) 94%, transparent);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--s-3);
  text-decoration: none; flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; border-radius: var(--radius); }
.brand-text {
  font-weight: 800; letter-spacing: 0.14em;
  font-size: var(--step--1); text-transform: uppercase;
}
.brand-text span { color: var(--gold); }

.nav-links {
  display: none;
  align-items: center; gap: var(--s-5);
}
.nav-links a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  padding-block: var(--s-2);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;             /* 44px touch target */
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--fg); position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--fg);
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) clamp(var(--s-4), 4vw, var(--s-7)) var(--s-6);
  display: grid; gap: var(--s-1);
  z-index: 99;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  text-decoration: none;
  padding: var(--s-3) 0;
  min-height: 44px;
  display: flex; align-items: center;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  color: var(--fg-dim);
}
.nav-drawer a:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* ---------- Buttons ----------------------------------------------------- */

.btn-app {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  background: var(--gold); color: var(--ink);
  border: 0; border-radius: var(--radius);
  font-weight: 800; text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn-app:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-app small {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75;
}
.btn-app strong { display: block; font-size: var(--step-0); line-height: 1.1; }
.btn-app.lg { padding: var(--s-4) var(--s-6); min-height: 56px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent; color: var(--fg);
  font-weight: 600; text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(245, 197, 24, 0.06); }

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));   /* dvh: mobile chrome safe */
  display: flex; align-items: center;
  padding-block: var(--s-8);
  overflow: hidden;
}
.hero::before {                              /* hairline grid, decorative */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(var(--s-6), 5vw, var(--s-8));
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

.hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }

.hero-sub {
  margin-top: var(--s-5);
  font-size: var(--step-1);
  color: var(--fg-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-sub b { color: var(--fg); font-weight: 700; }

/* Live citation rotator */
.rotator {
  margin-top: var(--s-5);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.07), transparent 70%);
  font-family: var(--mono); font-size: var(--step--1);
}
.rotator-label {
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
}
.rotator-cite { color: var(--fg); font-weight: 600; }
.rotator-text { color: var(--fg-mute); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-micro {
  margin-top: var(--s-5);
  display: grid; gap: var(--s-2);
  font-size: var(--step--1); color: var(--fg-mute);
}
.hero-micro li { display: flex; align-items: center; gap: var(--s-2); }
.hero-micro svg { flex-shrink: 0; color: var(--gold); }

/* Hero card stack — the four books */
.card-stack { display: grid; gap: var(--s-3); }
@media (min-width: 620px) and (max-width: 999px) {
  .card-stack { grid-template-columns: 1fr 1fr; }
}
.ref-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-deep);
  background: linear-gradient(160deg, var(--navy-lift), var(--navy));
  padding: var(--s-4);
  border-radius: var(--radius);
}
.ref-card:nth-child(2) { border-left-color: var(--blue); }
.ref-card:nth-child(3) { border-left-color: var(--green); }
.ref-card:nth-child(4) { border-left-color: var(--gold); }
.rc-top { display: flex; gap: var(--s-4); align-items: flex-start; }
.rc-cite {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  line-height: 1.2; letter-spacing: 0.06em;
  color: var(--gold); border: 1px solid var(--line);
  padding: var(--s-2); border-radius: var(--radius);
  text-align: center; flex-shrink: 0; min-width: 54px;
}
.rc-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute);
}
.rc-title { font-weight: 700; font-size: var(--step-1); line-height: 1.2; margin-top: 2px; }
.rc-body { margin-top: var(--s-3); font-size: var(--step--1); color: var(--fg-dim); }
.rc-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.rc-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px var(--s-2);
}

/* ---------- Count strip (credibility) ---------------------------------- */

.counts {
  border-block: 1px solid var(--line-soft);
  background: var(--ink);
}
.counts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--s-4);
  padding-block: var(--s-7);
}
@media (min-width: 760px)  { .counts-grid { grid-template-columns: repeat(5, 1fr); } }
.count-item { text-align: center; }
.count-num {
  font-size: var(--step-3); font-weight: 800;
  letter-spacing: -0.03em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.count-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); margin-top: var(--s-1);
}

/* ---------- Quiz demo --------------------------------------------------- */

.quiz-shell { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .quiz-shell { grid-template-columns: 260px 1fr; } }

.quiz-side { display: grid; gap: var(--s-4); align-content: start; }

.quiz-modes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.quiz-modes button {
  min-height: 44px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute);
  border-right: 1px solid var(--line);
  transition: background 0.18s ease, color 0.18s ease;
}
.quiz-modes button:last-child { border-right: 0; }
.quiz-modes button[aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 700; }

.quiz-bar {
  height: 3px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.quiz-bar > i { display: block; height: 100%; width: 0%; background: var(--gold); transition: width 0.3s ease; }

.quiz-stats { display: grid; gap: var(--s-2); }
.quiz-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: var(--step--1);
  padding-bottom: var(--s-2); border-bottom: 1px dashed var(--line-soft);
}
.quiz-stat span { color: var(--fg-mute); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.quiz-stat b { color: var(--fg); }

.quiz-card {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--navy-lift), var(--navy));
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-4), 3vw, var(--s-6));
}
.quiz-cite-row {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-soft);
}
.cite-tag {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--gold); letter-spacing: 0.04em;
}
.diff { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); }
.diff i { width: 12px; height: 3px; border-radius: 999px; background: var(--line); }
.diff i.on { background: var(--gold); }

.quiz-q {
  font-size: var(--step-1);
  line-height: 1.45;
  margin-block: var(--s-5);
  text-wrap: pretty;
}

.choices { display: grid; gap: var(--s-2); }
.choice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-4);
  text-align: left; cursor: pointer;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.choice:hover:not(:disabled) { border-color: var(--gold-deep); }
.choice:disabled { cursor: default; }
.choice .letter {
  font-family: var(--mono); font-size: var(--step--1); font-weight: 700;
  color: var(--gold); flex-shrink: 0; min-width: 1.4em;
}
.choice .verdict {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
/* State is carried by BOTH colour and a text verdict — never colour alone */
.choice.correct { border-color: var(--green); background: rgba(74, 222, 128, 0.08); }
.choice.correct .verdict { color: var(--green); }
.choice.wrong   { border-color: var(--red);   background: rgba(248, 113, 113, 0.08); }
.choice.wrong .verdict { color: var(--red); }

.quiz-result {
  margin-top: var(--s-4); padding: var(--s-4);
  border-left: 2px solid var(--gold);
  background: rgba(245, 197, 24, 0.05);
  font-size: var(--step--1); color: var(--fg-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quiz-result b { color: var(--fg); }
.quiz-result .src {
  display: block; margin-top: var(--s-2);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute);
}

.quiz-foot {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
}
.quiz-keys { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-mute); text-transform: uppercase; }
kbd {
  font-family: var(--mono); font-size: 10px;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 5px; color: var(--fg-dim);
}
.btn-next {
  min-height: 44px; padding: var(--s-2) var(--s-5);
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: var(--radius);
  font-weight: 700; cursor: pointer;
  transition: background 0.18s ease;
}
.btn-next:hover:not(:disabled) { background: rgba(245, 197, 24, 0.1); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Scroll story ------------------------------------------------ */

.story { background: var(--ink); border-block: 1px solid var(--line-soft); }
.story-inner { display: grid; gap: var(--s-6); }

@media (min-width: 900px) {
  /* The SECTION is what gets pinned, so it must be exactly one viewport tall
     with its content centred. Pinning an inner element instead left its
     bottom edge hanging past the fold by the height of the band padding. */
  .story {
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding-block: var(--s-7);
  }
  .story-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

/* Stage — the persistent visual. Children animate; the stage does not. */
.story-stage { position: relative; }
.story-visual {
  position: relative;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(245, 197, 24, 0.09), transparent 60%),
    linear-gradient(165deg, var(--navy-lift), var(--navy));
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  min-height: 400px;
  display: grid; align-content: center; gap: var(--s-3);
  overflow: hidden;
}
@media (min-width: 900px) { .story-visual { min-height: 460px; } }
.story-layer {
  grid-area: 1 / 1;
  display: grid; gap: var(--s-3);
  align-content: center;
}
.sv-kicker {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.sv-title { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.sv-rows { display: grid; gap: var(--s-2); }
.sv-row {
  display: flex; gap: var(--s-3); align-items: baseline;
  font-family: var(--mono); font-size: var(--step--1);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--navy-deep);
}
.sv-row b { color: var(--gold); flex-shrink: 0; }
.sv-row span { color: var(--fg-dim); }

/* Chapters — default (mobile / no-JS / reduced motion): a normal vertical
   list, every chapter visible and readable. */
.story-chapters { display: grid; gap: var(--s-6); }

/* Pinned mode (desktop + motion only). Chapters share one grid cell and
   cross-fade, because six stacked chapters are taller than the viewport —
   stacked + pinned would leave the last two permanently unreachable.
   `visibility` (not just opacity) so assistive tech reads only the active
   chapter, matching what a sighted user sees. */
@media (min-width: 900px) {
  .story-inner.is-pinned .story-chapters { min-height: 320px; align-content: center; }
  .story-inner.is-pinned .chapter {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  }
  .story-inner.is-pinned .chapter[data-active="true"] {
    opacity: 1; visibility: visible; transform: none;
  }
}
/* Active state is marked by border + background tint, never by dimming the
   others — dimming would push inactive copy below the contrast floor. */
.chapter {
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
  border-left: 2px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.chapter[data-active="true"] {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.07), transparent 65%);
}
.chapter h3 {
  font-size: var(--step-2); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: var(--s-2);
}
.chapter p { color: var(--fg-dim); max-width: 52ch; text-wrap: pretty; }
.chapter .eyebrow { display: block; margin-bottom: var(--s-2); }

/* Progress ticks — quiet */
.story-progress {
  display: flex; gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.story-progress i {
  height: 2px; flex: 1;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.3s ease;
}
.story-progress i.on { background: var(--gold); }

/* ---------- Modules ----------------------------------------------------- */

.mods { display: grid; gap: var(--s-4); }
@media (min-width: 640px)  { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .mods { grid-template-columns: repeat(4, 1fr); } }

.mod {
  container-type: inline-size;      /* component reflows on ITS width */
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-deep);
  background: linear-gradient(170deg, var(--navy-lift), var(--navy));
  padding: var(--s-5);
  border-radius: var(--radius);
  display: grid; gap: var(--s-3);
  align-content: start;
}
.mod:nth-child(2) { border-top-color: var(--blue); }
.mod:nth-child(3) { border-top-color: var(--green); }
.mod:nth-child(4) { border-top-color: var(--gold); }
.mod-num {
  font-family: var(--mono); font-size: var(--step-2);
  font-weight: 700; color: var(--line); line-height: 1;
}
.mod-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.mod h3 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.mod-body { font-size: var(--step--1); color: var(--fg-dim); }
.mod-count {
  font-family: var(--mono); font-size: var(--step-1); font-weight: 700;
  color: var(--fg); margin-top: auto; padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.mod-count span {
  font-size: var(--step--1); font-weight: 400; color: var(--fg-mute);
  letter-spacing: 0.06em;
}
@container (min-width: 320px) {
  .mod { gap: var(--s-4); }
}

/* ---------- Tools ------------------------------------------------------- */

.tools { display: grid; gap: var(--s-4); }
@media (min-width: 800px)  { .tools { grid-template-columns: repeat(3, 1fr); } }

.tool {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--navy-lift), var(--navy));
  border-radius: var(--radius);
  padding: var(--s-5);
  display: grid; gap: var(--s-3); align-content: start;
}
.tool h3 { font-size: var(--step-1); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.tool p { font-size: var(--step--1); color: var(--fg-dim); }

/* Streak heatmap */
.heatmap {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px; margin-top: var(--s-2);
}
.heatmap i { aspect-ratio: 1; border-radius: 1px; background: var(--line-soft); }
.heatmap i.l1 { background: rgba(245, 197, 24, 0.25); }
.heatmap i.l2 { background: rgba(245, 197, 24, 0.5); }
.heatmap i.l3 { background: rgba(245, 197, 24, 0.75); }
.heatmap i.l4 { background: var(--gold); }
.heat-legend {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--fg-mute);
}

/* Timer ring */
.timer {
  display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-2);
}
.timer svg { width: 84px; height: 84px; flex-shrink: 0; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.ring-fg {
  fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round;
  transition: stroke-dasharray 0.5s linear;
}
.timer-big {
  font-family: var(--mono); font-size: var(--step-2);
  font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.timer-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--fg-mute); text-transform: uppercase; margin-top: var(--s-1); }

/* Scenario */
.scenario { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.sc-step { display: grid; gap: var(--s-2); }
.sc-text {
  font-family: var(--serif); font-style: italic;
  font-size: var(--step--1); color: var(--fg-dim);
}
.sc-text.bad  { color: var(--red); }
.sc-text.good { color: var(--green); }
.sc-pick {
  display: block; width: 100%; text-align: left;
  min-height: 44px; padding: var(--s-2) var(--s-3);
  font-family: var(--mono); font-size: var(--step--1);
  background: var(--navy-deep); color: var(--gold);
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.sc-pick:hover { border-color: var(--gold-deep); background: rgba(245, 197, 24, 0.06); }
.sc-outcome {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Cinematic bands -------------------------------------------- */

.cine { position: relative; overflow: hidden; isolation: isolate; }
.cine picture, .cine img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: -2;
}
.cine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) 88%, transparent),
    color-mix(in srgb, var(--ink) 72%, transparent) 45%,
    color-mix(in srgb, var(--ink) 94%, transparent));
}
.cine-inner { padding-block: clamp(var(--s-9), 14vw, 12rem); }
.cine-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: var(--step-4); line-height: 1.12;
  letter-spacing: -0.02em; max-width: 20ch;
  margin-top: var(--s-4);
}
.cine-quote em { color: var(--gold); font-style: italic; }

/* ---------- Stripes band (brand payoff) --------------------------------- */

.stripes-band {
  background: var(--ink);
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(var(--s-8), 9vw, var(--s-10));
}
.stripes-inner {
  display: grid;
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  align-items: center;
}
@media (min-width: 900px) {
  .stripes-inner { grid-template-columns: 0.8fr 1.2fr; }
}
.stripes-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stripes-img img { width: 100%; height: auto; }
.stripes-copy h2 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-block: var(--s-3) var(--s-4);
}
.stripes-copy p { color: var(--fg-dim); max-width: 54ch; text-wrap: pretty; }

/* ---------- Pricing ----------------------------------------------------- */

.pricing { display: grid; gap: var(--s-4); }
@media (min-width: 700px)  { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing { grid-template-columns: repeat(4, 1fr); } }

.price {
  container-type: inline-size;
  border: 1px solid var(--line);
  background: linear-gradient(175deg, var(--navy-lift), var(--navy));
  border-radius: var(--radius);
  padding: var(--s-5);
  display: grid; gap: var(--s-3); align-content: start;
  position: relative;
}
.price.featured { border-color: var(--gold-deep); }
.price-flag {
  position: absolute; top: 0; right: var(--s-4);
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  padding: 3px var(--s-3); border-radius: 999px;
}
.price-name {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.price-amt {
  font-size: var(--step-3); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
}
.price-amt .per {
  font-size: var(--step--1); font-weight: 400;
  color: var(--fg-mute); letter-spacing: 0;
}
.price-tag { font-size: var(--step--1); color: var(--fg-dim); }
.price-list { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: var(--step--1); }
.price-list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.price-list svg { flex-shrink: 0; margin-top: 0.35em; }
.price-list .yes svg { color: var(--gold); }
.price-list .no { color: var(--fg-mute); }
.price-cta {
  margin-top: var(--s-3);
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.price-cta:hover { border-color: var(--gold); background: rgba(245, 197, 24, 0.06); }
.price.featured .price-cta { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.price.featured .price-cta:hover { background: var(--gold-soft); }

/* ---------- FAQ + disclaimer ------------------------------------------- */

.faq { display: grid; gap: var(--s-2); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
}
.faq summary {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4);
  cursor: pointer; font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .num {
  font-family: var(--mono); font-size: var(--step--1);
  color: var(--gold); flex-shrink: 0;
}
.faq summary .plus { margin-left: auto; flex-shrink: 0; color: var(--fg-mute); transition: transform 0.2s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq-body {
  padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 2.4em);
  color: var(--fg-dim); font-size: var(--step--1);
}

.disclaim {
  margin-top: var(--s-7);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: rgba(245, 197, 24, 0.04);
  padding: var(--s-5);
  border-radius: var(--radius);
}
.disclaim h3 {
  font-family: var(--mono); font-size: var(--step--1);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s-3);
}
.disclaim p { font-size: var(--step--1); color: var(--fg-dim); }
.disclaim p + p { margin-top: var(--s-3); }
.disclaim b { color: var(--fg); }

/* ---------- Footer ------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line-soft);
  background: var(--ink);
  padding-block: var(--s-7);
}
.foot-row {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  align-items: center; justify-content: space-between;
  font-size: var(--step--1); color: var(--fg-mute);
}
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.foot-links a {
  text-decoration: none; color: var(--fg-dim);
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.18s ease;
}
.foot-links a:hover { color: var(--gold); }

/* ---------- Motion: entrance states ------------------------------------ */
/* Applied only when JS confirms GSAP + motion is allowed. Without the
   .js-motion class every element renders in its final state, so the page is
   fully readable with JS disabled or when reduced motion is requested. */

.js-motion [data-reveal] { opacity: 0; transform: translateY(18px); }
.js-motion .hero h1 .line > span { transform: translateY(105%); }
.js-motion .hero [data-hero-fade] { opacity: 0; transform: translateY(14px); }

[data-reveal], .hero h1 .line > span, .hero [data-hero-fade] { will-change: auto; }
.js-motion [data-reveal],
.js-motion .hero h1 .line > span,
.js-motion .hero [data-hero-fade] { will-change: transform, opacity; }

/* ---------- Reduced motion --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Everything visible, nothing offset. */
  .js-motion [data-reveal],
  .js-motion .hero [data-hero-fade] { opacity: 1 !important; transform: none !important; }
  .js-motion .hero h1 .line > span { transform: none !important; }
  .chapter { border-left-color: var(--gold); }
}
