/* Doublespeak v4 — Poster theatre.
   Aesthetic target: cinematic title cards, brutal display sans, evidence-as-poster.
   Each cluster is a moment, not a row. */

:root {
  --paper:        #0a0807;       /* warm-black background */
  --sheet:        #141110;       /* card / banner surface */
  --ink:          #f4ede0;       /* warm off-white text */
  --muted:        #8a8275;       /* secondary text */
  --faint:        #5a554d;       /* tertiary / captions */
  --line:         #2a2723;       /* hairlines */
  --line-strong:  #4a443d;       /* stronger dividers */
  --red:          #ff3b30;       /* electric red accent */
  --red-soft:     #2a0e0c;       /* dark red wash */
  --amber:        #f5a623;       /* warm secondary accent */
  --highlight:    #1f1a14;       /* hover wash */

  --max:          1440px;
  --pad-x:        clamp(24px, 4vw, 80px);

  /* v4 swaps to a heavy display sans (the v2 variant owns the serif lane) */
  --font-display: "Helvetica Neue", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text:    "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
}

/* ===== v4 OVERRIDES: full-screen poster book IA ===== */

/* Bars */
.bar-top { background: rgba(10, 8, 7, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 200; }
.bar-bottom { background: rgba(10, 8, 7, 0.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 200; }
.brand-mark { background: var(--ink); color: var(--paper); }
.brand-name { color: var(--ink); font-family: var(--font-display); font-weight: 800; letter-spacing: 0; }
.bar-nav { display: none; }   /* v4: side rail replaces top nav */
.bar-status { color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }

/* Scroll snap container — gentle proximity so user can free-scroll within a long section */
html { scroll-snap-type: y proximity; scroll-padding-top: 56px; scroll-padding-bottom: 80px; scroll-behavior: smooth; }
body { padding-top: 56px; padding-bottom: 64px; overflow-x: hidden; }

/* Page wrapper — each one fills the viewport */
.page {
  min-height: calc(100vh - 56px - 64px);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(40px, 6vh, 80px) clamp(24px, 7vw, 120px);
  border-bottom: 1px solid var(--line);
}
.page:last-of-type { border-bottom: 0; }
.page > .hero,
.page > .section,
.page > .ops-intro-page,
.page > div { max-width: var(--max); margin: 0 auto; width: 100%; padding: 0; border: 0; }

/* ===== Hero page (00 · Thesis) ===== */
.hero { padding-bottom: 0; border-bottom: 0; max-width: 1280px; }
.hero-eyebrow {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}
.hero-eyebrow::before { background: var(--red); width: 36px; height: 2px; }

.hero-thesis {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.038em;
  margin: 0;
  text-wrap: balance;
}
.hero-thesis em {
  color: var(--red);
  font-style: normal;
  display: inline-block;
  transform: translateY(-0.04em);
  margin-left: 0.04em;
}

.hero-conclusion {
  margin-top: clamp(32px, 4vh, 56px);
  border-left: 3px solid var(--red);
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 60ch;
  padding-left: 20px;
}
.hero-conclusion strong { color: var(--ink); font-weight: 600; }

.hero-stats {
  margin-top: clamp(36px, 5vh, 60px);
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 28px;
}
.hero-stat { border-right: 1px solid var(--line); padding: 0 24px 0 0; }
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat .v {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  display: block;
}
.hero-stat .l { display: block; margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--ink); max-width: 28ch; }
.hero-stat .n { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }

.scroll-cue {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}
.scroll-arrow { font-size: 14px; animation: cue-bounce 2.4s infinite ease-in-out; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== Methodology / Diff / Why-now / Buyers / Archive / Contact pages ===== */
.section-eyebrow { color: var(--amber); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; }
.section-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 16px 0 36px;
}
.how-grid, .diff-grid, .why-grid { color: var(--muted); }
.how-step, .why-item { color: var(--muted); }
.how-step .title, .why-item .head { color: var(--ink); }
.diff-col { color: var(--muted); border-color: var(--line); }
.diff-col.highlight { background: var(--highlight); border-color: var(--red); }
.diff-col .label { color: var(--ink); }
.diff-col.highlight .label { color: var(--red); }
.diff-footnote { color: var(--faint); }

/* ===== Operations intro page (transition card before the 14 posters) ===== */
.ops-intro-page { max-width: 960px; }
.ops-intro-headline { font-size: clamp(48px, 7vw, 112px); }
.ops-intro-body { color: var(--muted); font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; max-width: 60ch; margin-bottom: clamp(32px, 4vh, 56px); }
.ops-role-legend { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 560px; }
.legend-row { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; background: var(--ink); }

/* ===== Cluster poster page ===== */
.page-cluster { padding: clamp(40px, 6vh, 80px) clamp(24px, 6vw, 100px); }
.cluster-poster {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(24px, 4vh, 48px);
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  height: 100%;
}
.cluster-poster:hover { transform: translateY(-2px); }

/* role color accents — left bar lights up by chapter_role */
.cluster-poster {
  border-left: 3px solid var(--line-strong);
  padding-left: clamp(20px, 2.5vw, 40px);
}
.cluster-poster.role-military-bloggers-seed-state-media-amplifies   { border-left-color: var(--red); }
.cluster-poster.role-where-the-state-leads-from-the-front           { border-left-color: var(--amber); }
.cluster-poster.role-where-the-attack-is-given-the-appearance-of-gr { border-left-color: #5e9eff; }
.cluster-poster.role-where-the-state-s-silence-is-the-strategy      { border-left-color: var(--muted); }

.legend-dot.role-military-bloggers-seed-state-media-amplifies   { background: var(--red); }
.legend-dot.role-where-the-state-leads-from-the-front           { background: var(--amber); }
.legend-dot.role-where-the-attack-is-given-the-appearance-of-gr { background: #5e9eff; }
.legend-dot.role-where-the-state-s-silence-is-the-strategy      { background: var(--muted); }

/* Top meta bar of poster: chapter index + role tag */
.poster-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.role-tag { color: var(--amber); }

/* Body: huge chapter number + name + punch */
.poster-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.poster-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.82;
  color: var(--red);
  letter-spacing: -0.06em;
  align-self: start;
  font-feature-settings: "tnum" on, "lnum" on;
}
.poster-headline { display: flex; flex-direction: column; gap: 12px; padding-top: clamp(8px, 1.5vh, 20px); }
.poster-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
}
.poster-subtitle { color: var(--muted); font-size: clamp(15px, 1.2vw, 19px); max-width: 56ch; line-height: 1.4; }
.poster-punch {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.85vw, 30px);
  line-height: 1.34;
  color: var(--ink);
  margin: clamp(8px, 2vh, 24px) 0 0;
  letter-spacing: -0.008em;
  max-width: 80ch;
  text-wrap: pretty;
}

/* Fingerprint footer — 5 cells of stats */
.poster-fp {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(20px, 2.5vh, 32px);
}
.fp-cell { padding: 0 clamp(12px, 1.5vw, 24px); border-right: 1px solid var(--line); }
.fp-cell:first-child { padding-left: 0; }
.fp-cell:last-child { border-right: 0; padding-right: 0; }
.fp-v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "tnum" on, "lnum" on;
}
.fp-v-small {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.18;
  color: var(--ink);
  margin-top: 6px;
}
.fp-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.3;
}
.fp-cell-source .fp-l { margin-top: 0; }

/* CTA strip */
.poster-cta {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.cluster-poster:hover .poster-cta { color: var(--red); }
.cta-arrow { transition: transform 0.2s; }
.cluster-poster:hover .cta-arrow { transform: translateX(4px); }

/* ===== Side rail navigation — collapsed by default, expand on hover ===== */
.vx-rail {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 150;
  background: rgba(10, 8, 7, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 6px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  transition: background 0.2s, border-color 0.2s, padding 0.2s;
}
.vx-rail:hover { background: rgba(10, 8, 7, 0.92); border-color: var(--line-strong); padding: 8px 10px; }

.rail-item {
  display: grid;
  grid-template-columns: 30px auto;
  gap: 10px;
  align-items: center;
  padding: 6px 6px;
  text-decoration: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.rail-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.rail-item.is-current {
  color: var(--ink);
  background: rgba(255, 59, 48, 0.1);
}
.rail-item.is-current .rail-num { color: var(--red); }

.rail-num {
  font-feature-settings: "tnum" on;
  text-align: right;
  color: var(--muted);
  font-weight: 600;
}

/* Labels collapse by default — only the chapter number is shown.
   On rail hover OR when the item is current, the label slides into view. */
.rail-label {
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.22s ease, opacity 0.18s ease;
}
.vx-rail:hover .rail-label,
.rail-item.is-current .rail-label {
  max-width: 200px;
  opacity: 1;
}

@media (max-width: 980px) {
  .vx-rail { display: none; }
}

/* ===== Lead form: dark surface ===== */
.lead-submit { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.lead-submit:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
#leadEmail { background: var(--sheet); color: var(--ink); border-color: var(--line-strong); }
#leadEmail::placeholder { color: var(--faint); }
.bar-bottom-skus { color: var(--muted); }

/* ===== Story drawer ===== */
.drawer-panel { background: var(--sheet); color: var(--ink); border-left: 1px solid var(--line-strong); }
.drawer-backdrop { background: rgba(0, 0, 0, 0.7); }

/* ===== QR popover ===== */
.qr-popover-card { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong); }

/* ===== Cluster detail (L2) — inverted palette ("report pops out" of the dark stage) ===== */
.cluster-detail {
  /* Override palette inside the detail — light surface, dark ink */
  --paper:        #f4ede0;
  --sheet:        #fbf7ec;
  --ink:          #1a1410;
  --muted:        #756b5c;
  --faint:        #a8a092;
  --line:         #d4c9b0;
  --line-strong:  #2a2218;
  --red:          #6e1a12;
  --red-soft:     #f0e0dc;
  --amber:        #b0851f;
  --highlight:    #efe5cb;

  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line-strong);
  scroll-snap-align: none;       /* L2 isn't a snap target — scroll naturally through evidence */
  padding: clamp(40px, 6vh, 80px) clamp(24px, 6vw, 100px);
}
.cluster-detail .cluster-banner { background: transparent; color: var(--ink); }
.cluster-detail .back-link {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--red);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cluster-detail .back-link:hover { color: var(--paper); background: var(--red); }
.cluster-detail .cluster-back-wrap { padding-bottom: clamp(20px, 3vh, 36px); }

/* L2 Chapter cover — make the banner cinematic instead of just a header */
.cluster-detail .cluster-banner {
  display: flex; flex-direction: column;
  gap: clamp(20px, 3vh, 36px);
  padding: 0 0 clamp(36px, 5vh, 56px);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}
.cluster-detail .cluster-banner-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cluster-detail .cluster-banner-top .vol { color: var(--red); font-weight: 700; }
.cluster-detail .cluster-banner-top .role-tag { color: var(--amber); font-weight: 700; }

.cluster-detail .cluster-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 144px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.cluster-detail .cluster-punch {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 60ch;
  border-left: 4px solid var(--red);
  padding-left: 22px;
  margin: 0;
  font-style: normal;
}

.cluster-detail .cluster-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(20px, 3vh, 32px);
  margin-top: 8px;
  gap: 0;
}
.cluster-detail .cstat { padding: 0 clamp(12px, 1.5vw, 24px); border-right: 1px solid var(--line); }
.cluster-detail .cstat:first-child { padding-left: 0; }
.cluster-detail .cstat:last-child { border-right: 0; padding-right: 0; }
.cluster-detail .cstat .v {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "tnum" on, "lnum" on;
}
.cluster-detail .cstat .l {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* Triad + stories grid below the banner — keep working but tighten the rhythm */
.cluster-detail .cluster-triad {
  padding: clamp(28px, 4vh, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.cluster-detail .triad-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.cluster-detail .stories-section {
  padding-top: clamp(28px, 4vh, 48px);
}

/* When a cluster is expanded, fade siblings — the active one stays sharp */
.cluster-poster.is-faded { opacity: 0.18; pointer-events: none; transition: opacity 0.3s; }
.cluster-poster.is-active { transform: translateY(-2px); }
.cluster-poster.is-active .poster-cta { color: var(--red); }

/* While any cluster is expanded, relax scroll-snap so user can read naturally */
html:has(.cluster-detail) { scroll-snap-type: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .page { padding: clamp(32px, 5vh, 56px) clamp(16px, 5vw, 40px); }
  .poster-body { grid-template-columns: 1fr; gap: 12px; }
  .poster-num { font-size: clamp(80px, 24vw, 160px); }
  .poster-name { font-size: clamp(32px, 8vw, 56px); }
  .poster-fp { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .poster-fp .fp-cell { border-right: 0; padding-left: 0; padding-right: 0; }
  .poster-fp .fp-cell:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
  .poster-fp .fp-cell:nth-child(even) { padding-left: 12px; }
  .poster-fp .fp-cell-source { grid-column: 1 / -1; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .hero-stat:last-child { border-bottom: 0; }
}

/* end v4 overrides */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 56px;     /* room for fixed top bar */
  padding-bottom: 72px;  /* covers default bottom bar (56) + clearance */
}
a { color: inherit; }
button { font: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Bars ===== */

.bar {
  position: fixed; left: 0; right: 0;
  background: var(--sheet);
  z-index: 50;
  display: flex; align-items: center;
}
.bar-top {
  top: 0; height: 56px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 var(--pad-x);
  gap: 24px;
}
.bar-top .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.005em;
}

.bar-nav {
  display: flex; gap: 6px; margin-left: auto;
}
.bar-nav a {
  padding: 8px 12px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.bar-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 720px) {
  .bar-nav { display: none; }
}

.bar-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  padding-left: 18px; border-left: 1px solid var(--line);
  height: 28px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2f8c4a;
}
.status-dot.is-offline { background: var(--faint); }

.bar-bottom {
  bottom: 0;
  flex-direction: column; align-items: stretch;
  border-top: 1px solid var(--line-strong);
  padding: 8px var(--pad-x);
  gap: 0;
  transition: padding 0.2s ease;
}
.bar-bottom.is-engaged { padding: 12px var(--pad-x) 14px; gap: 8px; }

.bar-bottom-skus {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.bar-bottom.is-engaged .bar-bottom-skus {
  max-height: 32px; opacity: 1;
}
.bar-bottom-skus span { display: inline-flex; align-items: center; gap: 6px; }
.bar-bottom-skus span::before {
  content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

.bar-bottom-form {
  display: flex; gap: 8px; align-items: stretch;
}
.bar-bottom-form input[type="email"] {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0 14px;
  font: inherit; font-size: 14px;
  color: var(--ink);
  outline: none;
}
.bar-bottom-form input[type="email"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-soft);
}
.lead-submit {
  height: 40px;
  padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.lead-submit:hover { background: var(--red); border-color: var(--red); }
.lead-qr {
  height: 40px; width: 40px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  cursor: pointer;
}
.lead-qr svg { width: 20px; height: 20px; fill: currentColor; }
.lead-qr:hover { background: var(--ink); color: var(--paper); }

.bar-bottom-msg {
  font-size: 12px; color: var(--muted);
  min-height: 0;
  margin: 0;
  transition: margin-top 0.15s, min-height 0.15s;
}
.bar-bottom-msg:not(:empty) {
  min-height: 16px;
  margin-top: 6px;
}
.bar-bottom-msg.is-error  { color: var(--red); }
.bar-bottom-msg.is-thanks { color: #1f6b35; }

/* ===== Loading state ===== */
.app-loading {
  padding: 200px var(--pad-x);
  text-align: center;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}

/* ===== Section frame ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 120px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
  margin-bottom: 18px;
}
.section-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15; letter-spacing: -0.005em;
  margin: 0 0 24px; max-width: 28ch;
}

/* ===== HERO ===== */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--pad-x) clamp(40px, 5vh, 64px);
  border-bottom: 2px solid var(--ink);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--red);
}
.hero-thesis {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.hero-thesis span {
  display: block;
  text-wrap: balance;
}
.hero-thesis span + span { margin-top: 4px; }
.hero-thesis em {
  color: var(--red);
  font-style: italic;
}
.hero-conclusion {
  margin-top: 36px;
  font-size: clamp(17px, 1.4vw, 22px); line-height: 1.5;
  color: var(--ink);
  max-width: 64ch;
  border-left: 3px solid var(--ink);
  padding-left: 18px;
}
.hero-conclusion strong { font-weight: 600; }

.hero-stats {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.hero-stat {
  border-right: 1px solid var(--line);
  padding: 28px 24px 0 0;
}
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em;
  display: block;
  font-feature-settings: "tnum" on, "lnum" on;
}
.hero-stat .l {
  display: block; margin-top: 12px;
  font-size: 14px; line-height: 1.4; color: var(--ink);
  max-width: 28ch;
}
.hero-stat .n {
  display: block; margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .hero-stat:last-child { border-bottom: 0; }
}

/* ===== HOW BUILT ===== */

.how-headline { max-width: 36ch; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.how-step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 22px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.how-step .tag {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; color: var(--red); font-weight: 700;
}
.how-step .title {
  font-family: var(--font-display);
  font-size: 20px; line-height: 1.2;
}
.how-step .body {
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
@media (max-width: 980px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }

/* ===== DIFFERENTIATOR ===== */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
}
.diff-col {
  border-right: 1px solid var(--line);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.diff-col:last-child { border-right: 0; }
.diff-col.highlight {
  background: var(--ink);
  color: var(--paper);
}
.diff-col .label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.diff-col.highlight .label { color: #d6cfbf; }
.diff-col .row {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.25;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.diff-col.highlight .row { border-top-color: #3a3833; }
.diff-col .row:nth-child(2) { border-top: 0; }
.diff-footnote {
  margin-top: 18px;
  font-size: 13px; color: var(--muted);
  font-style: italic;
}
@media (max-width: 880px) { .diff-grid { grid-template-columns: 1fr; }
  .diff-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .diff-col:last-child { border-bottom: 0; }
}

/* ===== CLUSTER STACK (the case) ===== */

.ops {
  background: var(--sheet);
}
.ops-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  align-items: end;
}
.ops-intro p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 880px) { .ops-intro { grid-template-columns: 1fr; gap: 16px; } }

.cluster-stack {
  border-top: 2px solid var(--ink);
}
.cluster-row {
  display: grid;
  grid-template-columns: 88px 1fr 320px 56px;
  gap: 32px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line-strong);
  align-items: start;
  cursor: pointer;
  transition: background 0.18s, padding 0.18s;
  position: relative;
}
.cluster-row:hover {
  background: var(--highlight);
  padding-left: 12px;
  padding-right: 12px;
}
.cluster-row:hover .cluster-arrow { color: var(--red); }
.cluster-row .num {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--red);
  font-weight: 600;
  padding-top: 4px;
}
.cluster-row .body {
  display: flex; flex-direction: column; gap: 8px;
}
.cluster-row .name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  margin: 0;
}
.cluster-row .role {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.cluster-row .punch {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.45;
  margin-top: 4px;
  color: var(--ink);
  max-width: 64ch;
}
.cluster-row .fp {
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.cluster-row .fp .fp-row {
  display: flex; justify-content: space-between; gap: 12px;
  letter-spacing: 0.04em;
}
.cluster-row .fp .fp-row b {
  color: var(--ink);
  font-weight: 600;
  font-feature-settings: "tnum" on, "lnum" on;
}
.cluster-row .fp .fp-bar {
  display: flex; gap: 2px; align-items: center;
  height: 10px;
}
.cluster-row .fp .fp-bar i {
  display: block; height: 100%;
  background: var(--ink);
}
.cluster-row .fp .fp-bar i.alt    { background: var(--red); }
.cluster-row .fp .fp-bar i.muted  { background: var(--line-strong); }
.cluster-row .fp .fp-cap {
  font-size: 12px; color: var(--faint);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cluster-row .cluster-arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--muted);
  text-align: right;
  transition: color 0.18s, transform 0.18s;
}
.cluster-row:hover .cluster-arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .cluster-row {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
  .cluster-row .fp { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px dashed var(--line); padding-top: 14px; }
  .cluster-row .cluster-arrow { display: none; }
}

/* ===== WHY NOW ===== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.why-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.why-item .label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red); font-weight: 700;
  letter-spacing: 0.1em;
}
.why-item .head {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2;
}
.why-item .body {
  font-size: 14px; line-height: 1.55; color: var(--muted);
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== BUYERS ===== */

.buyers {
  background: var(--ink); color: var(--paper);
  border-bottom: 0;
}
.buyers .section-eyebrow { color: #f0d4d0; }
.buyers ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid #3a3833;
}
.buyers li {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  padding: 24px 28px 28px 0;
  border-right: 1px solid #3a3833;
}
.buyers li:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 880px) {
  .buyers ul { grid-template-columns: 1fr; }
  .buyers li { padding: 18px 0; border-right: 0; border-bottom: 1px solid #3a3833; }
  .buyers li:last-child { border-bottom: 0; }
}

/* ===== ARCHIVE PROOF ===== */

.archive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.archive .archive-numbers {
  display: flex; flex-direction: column; gap: 14px;
  border-left: 4px solid var(--red);
  padding-left: 24px;
}
.archive .big {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.02em;
}
.archive .big-sub {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.archive p {
  font-size: 16px; line-height: 1.6; color: var(--ink);
  max-width: 56ch;
}
.archive .archive-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.archive .archive-cta:hover { background: var(--red); border-color: var(--red); }
.archive .archive-cta::after { content: "→"; font-family: var(--font-display); font-size: 20px; line-height: 1; }
@media (max-width: 880px) { .archive { grid-template-columns: 1fr; gap: 32px; } }

/* ===== CONTACT ===== */

.contact-skus {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.contact-sku {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 28px;
}
.contact-sku h3 {
  font-family: var(--font-display);
  font-size: 22px; margin: 0 0 10px;
  line-height: 1.2;
}
.contact-sku p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 880px) { .contact-skus { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad-x) 56px;
  font-size: 12px; line-height: 1.55; color: var(--muted);
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.foot .credit { color: var(--ink); font-weight: 600; }

/* ===== QR popover ===== */
.qr-popover {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(13, 13, 13, 0.6);
  z-index: 100;
}
.qr-popover[hidden] { display: none; }
.qr-popover-card {
  background: var(--sheet);
  padding: 32px 32px 24px;
  border: 1px solid var(--line-strong);
  max-width: 360px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.qr-popover-card strong {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.qr-canvas {
  width: 220px; height: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 12px; color: var(--faint);
}
.qr-canvas svg { display: block; }
.qr-popover-card p {
  font-size: 13px; color: var(--muted); margin: 0;
}
.qr-close {
  background: var(--ink); color: var(--paper);
  border: 0; padding: 10px 22px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.qr-url-text {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px dashed var(--line);
  max-width: 100%;
}

/* ===== L1 cluster row faded state (during L2 expansion) ===== */
.cluster-row.is-faded {
  opacity: 0.32;
  transition: opacity 0.18s, background 0.15s, padding 0.18s;
}
.cluster-row.is-faded:hover {
  opacity: 1;
  background: var(--highlight);
}
.cluster-row.is-active {
  background: var(--ink);
  color: var(--paper);
  padding-left: 12px; padding-right: 12px;
}
.cluster-row.is-active .role,
.cluster-row.is-active .fp,
.cluster-row.is-active .fp-cap { color: #d6cfbf; }
.cluster-row.is-active .num         { color: #f0a8a4; }
.cluster-row.is-active .punch       { color: var(--paper); }
.cluster-row.is-active .fp .fp-row b { color: var(--paper); }
.cluster-row.is-active .cluster-arrow { color: var(--paper); transform: rotate(90deg); }

/* ===== L2: cluster detail (in-place expansion) ===== */

.cluster-detail {
  background: var(--paper);
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  padding: clamp(48px, 7vh, 96px) var(--pad-x) clamp(48px, 6vh, 80px);
  margin: 0;
  max-width: 100%;
}
.cluster-detail-loading {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint);
  padding: 80px 0;
}

.cluster-banner {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0;
}
.back-link {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  margin-bottom: 28px;
  transition: color 0.15s, border-color 0.15s;
}
.back-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Inside cluster-detail, keep the back link reachable when the visitor
   has scrolled deep into the stories grid. The link is a direct child of
   .cluster-detail (not nested inside .cluster-banner) so its sticky
   containing block spans the whole section. */
.cluster-back-wrap {
  position: sticky;
  top: 64px;
  z-index: 4;
  max-width: var(--max);
  margin: 0 auto 24px;
  pointer-events: none;
}
.cluster-back-wrap .back-link {
  pointer-events: auto;
  background: var(--paper);
  padding: 6px 12px 6px 0;
  margin: 0;
}
.cluster-banner-top {
  display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.cluster-banner .vol { color: var(--red); font-weight: 700; }
.cluster-banner .role-tag { color: var(--ink); }
.cluster-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.cluster-punch {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  margin: 0 0 32px;
  max-width: 60ch;
  border-left: 3px solid var(--red);
  padding-left: 18px;
  color: var(--ink);
}
.cluster-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.cstat {
  border-right: 1px solid var(--line);
  padding: 18px 18px 18px 0;
}
.cstat:last-child { border-right: 0; padding-right: 0; }
.cstat .v {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px); line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.01em;
}
.cstat .l {
  display: block; margin-top: 8px;
  font-size: 13px; color: var(--muted);
}
@media (max-width: 880px) {
  .cluster-stats { grid-template-columns: repeat(2, 1fr); }
}

/* L2 triad: sub-narratives | volume map | source signature */
.cluster-triad {
  max-width: var(--max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.triad-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 28px;
  display: flex; flex-direction: column;
  background: var(--sheet);
}
.triad-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .cluster-triad { grid-template-columns: 1fr; }
}

/* sub-narratives list */
.subnarr-list {
  list-style: none; padding: 0; margin: 0;
}
.subnarr-item {
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.subnarr-item:first-child { border-top: 0; }
.subnarr-label {
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.3;
  flex: 1;
}
.subnarr-count {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.subnarr-count b {
  color: var(--ink); font-weight: 700;
  font-feature-settings: "tnum" on, "lnum" on;
}
.subnarr-more {
  padding: 12px 0 4px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--faint); text-transform: uppercase;
}

/* volume map */
.vmap-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 160px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0;
  margin-bottom: 6px;
}
.vmap-bar {
  flex: 1; background: var(--ink); min-height: 1px;
}
.vmap-bar.spike { background: var(--red); }
.vmap-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.vmap-cap {
  font-size: 12px; color: var(--muted); line-height: 1.45;
  margin-top: auto;
}

/* source signature */
.sig-list { list-style: none; padding: 0; margin: 0 0 16px; }
.sig-row {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.sig-row:first-child { border-top: 0; }
.sig-row-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; color: var(--ink);
  margin-bottom: 6px;
}
.sig-row-top b {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" on, "lnum" on;
  color: var(--ink); font-weight: 700;
}
.sig-row.alt .sig-row-top b { color: var(--red); }
.sig-row.muted .sig-row-top { color: var(--muted); }
.sig-bar { height: 4px; background: var(--line); }
.sig-bar i { display: block; height: 100%; background: var(--ink); }
.sig-row.alt .sig-bar i { background: var(--red); }
.sig-row.muted .sig-bar i { background: var(--line-strong); }

/* stories grid */
.stories-section {
  max-width: var(--max);
  margin: 0 auto;
}
.stories-head {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  margin-bottom: 24px;
}
.stories-head .section-eyebrow { margin-bottom: 8px; }
.stories-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.2;
  margin: 0;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.story-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 22px;
  background: var(--sheet);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.15s;
}
.story-card:hover { background: var(--highlight); }
.story-card.is-open {
  background: var(--ink); color: var(--paper);
}
.story-card.is-open .story-vol { color: #f0a8a4; }
.story-card.is-open .story-sub,
.story-card.is-open .story-frame,
.story-card.is-open .story-date { color: #d6cfbf; }

.story-vol {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.story-title {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.25;
  margin: 4px 0 6px;
}
.story-sub {
  font-size: 13px; color: var(--muted); margin: 0;
  line-height: 1.5;
}
.story-foot {
  margin-top: auto; padding-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
}
.story-foot .story-frame {
  text-transform: uppercase;
  color: var(--red); font-weight: 700;
  text-align: right;
}

/* ===== L3: story drawer ===== */

.drawer {
  position: fixed; inset: 56px 0 88px 0;
  background: rgba(13, 13, 13, 0.45);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}
.drawer-backdrop {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(880px, 65vw);
  background: var(--paper);
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  border-left: 1px solid var(--ink);
  box-shadow: -8px 0 32px rgba(13, 13, 13, 0.18);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  position: sticky; top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  z-index: 5;
}
.drawer-crumbs {
  display: flex; gap: 8px; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.drawer-crumbs .sep { color: var(--faint); }
.drawer-close {
  width: 36px; height: 36px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.drawer-close:hover { background: var(--ink); color: var(--paper); }

.drawer-sibs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.drawer-sibs .sib {
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer-sibs .sib:last-child { border-right: 0; }
.drawer-sibs .sib:hover { background: var(--highlight); }
.drawer-sibs .sib.next { text-align: right; }
.drawer-sibs .sib span {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drawer-sibs .sib strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 15px; line-height: 1.3; color: var(--ink);
}

/* ===== Block renderers ===== */

#drawerContent {
  padding: 0 28px 32px;
}
#drawerContent .block { margin: 36px 0; }
#drawerContent .block .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 12px;
}
#drawerContent .block h1,
#drawerContent .block h2,
#drawerContent .block h3,
#drawerContent .block h4 {
  font-family: var(--font-display); font-weight: 400;
  margin: 0 0 12px;
}
#drawerContent .block .body p { margin: 0 0 10px; line-height: 1.6; }
#drawerContent .block .body strong { font-weight: 600; }
#drawerContent .ref {
  background: var(--highlight);
  padding: 1px 4px;
  border-radius: 1px;
  font-style: normal;
}

.block-masthead {
  border-bottom: 1px solid var(--ink); padding-bottom: 24px; margin-top: 24px !important;
}
.block-masthead .vol {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.block-masthead h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 12px 0 16px;
}
.block-masthead h1 em { color: var(--red); font-style: italic; }
.block-masthead .lede {
  font-size: 16px; line-height: 1.55; color: var(--ink);
}
.block-masthead .meta-lines {
  margin-top: 16px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.block-tldr {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 22px 24px;
}
.block-tldr h2 { font-size: 22px; line-height: 1.25; }
.block-tldr .body { font-size: 15px; }

.block-findings { display: grid; gap: 18px; }
.block-findings .item {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.block-findings .item .label {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.block-findings .item h3 { font-size: 18px; margin: 6px 0 10px; }
.block-findings .item .body { font-size: 14px; color: var(--muted); }

.block-callout {
  padding: 18px 22px;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}
.block-callout.tone-info     { border-left-color: #275f9b; background: #e8eff6; }
.block-callout.tone-warning  { border-left-color: var(--amber); background: #fff0df; }
.block-callout.tone-dark     { border-left-color: var(--ink); background: rgba(13, 13, 13, 0.05); }
.block-callout h3 { font-size: 18px; margin: 4px 0 8px; }
.block-callout .body { font-size: 14px; }

.block-compare-quote .compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.block-compare-quote .col {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 18px;
}
.block-compare-quote .lab {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--red);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.block-compare-quote .attrib {
  font-size: 12px; color: var(--muted);
  margin: 4px 0 10px;
}
.block-compare-quote .text { font-size: 14px; line-height: 1.55; }
.block-compare-quote .obs {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
@media (max-width: 600px) {
  .block-compare-quote .compare-grid { grid-template-columns: 1fr; }
}

.block-comparison-table { font-size: 13px; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.ctable thead th { background: var(--sheet); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.ctable thead th.hi { color: var(--red); }
.ctable thead th small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ctable tbody th { font-family: var(--font-mono); font-weight: 600; background: var(--sheet); }
.ctable td.e-bold      { font-weight: 700; }
.ctable td.e-muted     { color: var(--muted); }
.ctable td.e-highlight { background: var(--highlight); }
.ctable td.e-absent    { color: var(--faint); font-style: italic; }

.block-stat-grid .sg-grid {
  display: grid; gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.block-stat-grid .sg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.block-stat-grid .sg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.block-stat-grid .sg-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block-stat-grid .sg-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.block-stat-grid .sg-v {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1;
  font-feature-settings: "tnum" on, "lnum" on;
}
.block-stat-grid .sg-l { font-size: 12px; color: var(--ink); margin-top: 6px; }
.block-stat-grid .sg-n { font-size: 12px; color: var(--muted); margin-top: 4px; }

.block-spotlight .cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.block-spotlight .card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 14px;
}
.block-spotlight .card h4 { font-size: 16px; margin: 4px 0 6px; }
.block-spotlight .card .sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.block-spotlight .card .body { font-size: 13px; line-height: 1.5; }
.block-spotlight .card .meta { font-size: 12px; color: var(--faint); margin-top: 6px; font-family: var(--font-mono); }

.block-prose .body { font-size: 15px; line-height: 1.6; }
.block-break {
  border: 0; height: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.block-break.style-thin   { border-top: 1px solid var(--line); }
.block-break.style-dashed { border-top: 1px dashed var(--line-strong); }

.block-viz { background: var(--sheet); border: 1px solid var(--line); padding: 16px; }
.block-viz .viz-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.block-viz .viz-sub   { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.block-viz .viz-cap   { font-size: 12px; color: var(--faint); margin-top: 8px; font-family: var(--font-mono); }
.block-viz .viz-placeholder {
  border: 1px dashed var(--line-strong);
  padding: 32px; text-align: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.vbars {
  display: flex; align-items: end; gap: 2px;
  height: 140px;
  border-bottom: 1px solid var(--ink);
}
.vbars .vbar { flex: 1; background: var(--ink); min-height: 1px; }
.vbars .vbar.spike { background: var(--red); }
.vbars-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); margin-top: 6px;
}
.vbars-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  margin-top: 8px;
}
.vbars-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.vbars-swatch { display: inline-block; width: 10px; height: 10px; background: var(--ink); }
.vbars-swatch.spike { background: var(--red); }
.swimlane-svg { width: 100%; height: auto; display: block; }
.post-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.post-table th, .post-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.post-table thead th {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.post-table .pt-time { font-family: var(--font-mono); white-space: nowrap; color: var(--muted); }
.post-table .pt-acc strong { display: block; font-weight: 600; }
.post-table .pt-acc span { font-size: 12px; color: var(--muted); }
.post-table .pt-text { line-height: 1.45; }
.post-table .pt-eng { font-family: var(--font-mono); white-space: nowrap; color: var(--muted); }
.post-table-more {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ===== Archive viewer ===== */

.archive-frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vh, 64px) var(--pad-x);
}
.archive-frame .back-link { margin-bottom: 32px; }

.archive-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  height: calc(100vh - 56px - 88px - 200px);
  min-height: 520px;
}
.archive-list {
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.archive-list-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}
.archive-list-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  margin: 8px 0 6px;
}
.archive-list-blurb {
  font-size: 13px; color: var(--muted);
  margin: 0; line-height: 1.5;
}
.archive-weeks {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto;
  flex: 1;
}
.archive-week {
  padding: 14px 20px;
  border-bottom: 1px dashed var(--line);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-left-color 0.12s;
}
.archive-week:hover { background: var(--highlight); }
.archive-week.is-active {
  background: var(--highlight);
  border-left-color: var(--red);
  padding-left: 16px;  /* compensates for 4px border so text stays aligned */
}
.archive-week.is-active .aw-week { color: var(--red); }
.aw-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
}
.aw-week  { color: var(--red); font-weight: 700; }
.aw-date  { color: var(--muted); }
.aw-headline {
  font-family: var(--font-display);
  font-size: 14px; line-height: 1.35;
  margin: 6px 0 4px;
}
.aw-pages {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase;
}
.archive-empty {
  padding: 24px 20px; font-size: 13px; color: var(--muted); line-height: 1.5;
}

.archive-viewer {
  border: 1px solid var(--line-strong);
  background: var(--sheet);
  position: relative;
  overflow: hidden;
}
.archive-pdf {
  width: 100%; height: 100%; border: 0; display: block;
}
.archive-empty-pane {
  padding: 48px 32px;
  font-size: 14px; line-height: 1.6;
  color: var(--muted);
}
.archive-empty-pane h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; margin: 8px 0 16px; color: var(--ink);
}

@media (max-width: 980px) {
  .archive-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .archive-viewer { min-height: 480px; }
}
