/* ==========================================================
   ALPHA SAPIEN — shared site styles
   One file controls the design of every chapter page.
   Change a color or font here and the whole site updates.
   ==========================================================

   Canvas gray  — the Octagon's muted gray canvas
   Cage black   — matte black fence
   Card gray    — Helix clip title cards (white text on gray)
   Wilt gold / Angus blue — the two fighters' broadcast colors
*/

:root {
  --canvas: #E9E8E4;
  --ink: #191918;
  --card: #2B2B29;
  --card-text: #F2F1EE;
  --gold: #A8821F;
  --blue: #46628C;
  --muted: #6F6E68;
  --paper: #F5F4EF;
  --rule: #C9C8C2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.72;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--card-text);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 1.25rem;
  font-family: var(--sans);
}
.topbar .wordmark {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.topbar .helix-x {
  font-size: 1rem; font-weight: 300; letter-spacing: 0;
  border: 1px solid rgba(242,241,238,0.4);
  width: 1.6rem; height: 1.6rem; display: inline-flex;
  align-items: center; justify-content: center;
  margin-right: 0.6rem;
}
.topbar nav { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar nav a { text-decoration: none; opacity: 0.75; margin-left: 1.2rem; }
.topbar nav a:hover { opacity: 1; }

/* ============ CHAPTER TITLE CARD ============
   Mirrors the Helix clip title cards: white text on gray. */
.title-card {
  background: var(--card); color: var(--card-text);
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
  font-family: var(--sans);
}
.title-card .eyebrow {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: 1.4rem;
}
.title-card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  letter-spacing: 0.01em;
  max-width: 26ch; margin: 0 auto;
}
.title-card .date {
  margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.18em; opacity: 0.5;
}

/* ============ READING COLUMN ============ */
.chapter {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
/* Breathing room only at the very top of the page content */
main > :first-child { margin-top: 4rem; }
.chapter p { margin-bottom: 1.35rem; }
.chapter p.aside { color: var(--muted); font-style: italic; }
/* Video footage descriptions — screen content, set apart from narrator serif */
.chapter p.footage {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: #333333;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  margin-bottom: 1.1rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink);
  margin: 3.2rem 0 1.4rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ============ SCREENSHOT ARTIFACT FRAME ============
   The screenshot is the object; the frame stays quiet.
   Click / tap / Enter opens the full-size lightbox. */
.artifact {
  margin: 1.9rem auto;
  max-width: 640px;
  padding: 0 1.25rem;
}
.artifact button.shot {
  display: block; width: 100%;
  border: 1px solid var(--rule);
  background: #FFFFFF;
  padding: 0; cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.08);
}
.artifact button.shot img {
  display: block; width: 100%; height: auto;
}
/* Compact photos: narrower frame for portrait snapshots (statues, anchor). */
.artifact.compact { max-width: 460px; }
/* Tall screenshots: teaser crop + invitation to open the full image. */
.artifact.tall button.shot { position: relative; overflow: hidden; }
.artifact.tall button.shot img { max-height: 560px; object-fit: cover; object-position: top; }
.artifact.tall button.shot::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF 85%);
  pointer-events: none;
}
.artifact.tall button.shot::before {
  content: "VIEW FULL DOCUMENT";
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.92);
}
.artifact-caption {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--muted);
  margin-top: 0.7rem; text-align: center;
}

/* ============ SOCIAL POST EMBEDS (HTML stand-ins) ============
   Used where no screenshot exists yet. Swap freely later. */
.post {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  font-family: var(--sans);
  max-width: 540px; margin: 0 auto;
}
.post + .post { margin-top: 0.9rem; }
.post .handle { font-weight: 700; font-size: 0.95rem; }
.post .handle span { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.post .body { margin-top: 0.45rem; font-size: 1rem; line-height: 1.5; }
.post .tag { color: var(--blue); }
.post .meta {
  margin-top: 0.7rem; font-size: 0.78rem; color: var(--muted);
  display: flex; gap: 1.4rem;
}
/* Forum variant (reddit-style) */
.post.forum { border-radius: 4px; }
.post.forum .handle { font-family: var(--mono); font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.post.forum .body { font-size: 1rem; }
/* Threaded reply */
.post.reply { margin-left: 2.2rem; max-width: calc(540px - 2.2rem); }

/* ============ PHONE NOTIFICATION (in-world) ============ */
.notif {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: var(--sans);
  max-width: 440px; margin: 0 auto;
  padding: 0.9rem 1.1rem;
}
.notif .app {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between;
  margin-bottom: 0.35rem;
}
.notif .headline { font-size: 0.95rem; line-height: 1.45; font-weight: 600; }

/* ============ TRANSCRIPT (recovered address / interview) ============ */
.transcript {
  margin: 1.9rem auto; max-width: 700px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.transcript-head {
  background: var(--ink); color: var(--card-text);
  font-family: var(--sans);
  padding: 1rem 1.4rem;
}
.transcript-head .label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0.85; display: block;
}
.transcript-head .venue {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; opacity: 0.55;
  display: block; margin-top: 0.45rem;
}
.transcript-body { padding: 2.1rem 1.9rem; }
.transcript-body .speaker {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin: 1.4rem 0 0.3rem;
}
.transcript-body .speaker:first-child { margin-top: 0; }
.transcript-body p { margin-bottom: 1.15rem; }
.transcript-body p:last-child { margin-bottom: 0; }
.transcript-body .recited {
  font-style: italic;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
}
.transcript-body .stage {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted);
  margin: 1.5rem 0;
}
@media (max-width: 640px) {
  .transcript-body { padding: 1.6rem 1.2rem; }
}

/* ============ HELIX CLIP TITLE CARD (in-world) ============ */
.clip-card {
  background: var(--card); color: var(--card-text);
  font-family: var(--sans);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 540px; margin: 0 auto;
}
.clip-card .line1 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.clip-card .line2 { font-size: 1.25rem; margin-top: 0.9rem; letter-spacing: 0.02em; }
.clip-card .line3 { font-family: var(--mono); font-size: 0.8rem; margin-top: 0.9rem; opacity: 0.6; }
/* End-of-clip wordmark card */
.clip-card.final { padding: 2rem 1.5rem; }
.clip-card.final .wordmark-x { font-size: 1.15rem; letter-spacing: 0.3em; text-transform: uppercase; }

/* ============ CLIP PLAYER (Helix developmental footage) ============ */
.clip-player {
  background: #7C7C7A; color: #FFFFFF;
  font-family: var(--sans);
  border-radius: 10px;
  padding: 3.4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  max-width: 540px; margin: 0 auto;
}
.clip-player .clip-no {
  position: absolute; top: 12px; left: 14px;
  font-size: 0.68rem; letter-spacing: 0.18em; opacity: 0.65;
}
.clip-player .vid-title { font-weight: 700; font-size: 1.05rem; }
.clip-player .vid-line { margin-top: 0.7rem; font-size: 0.95rem; }
.clip-player .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: #1D9BF0;
  margin: 1.7rem auto 0;
  display: flex; align-items: center; justify-content: center;
}
.clip-player .play::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #FFFFFF;
  margin-left: 5px;
}
.clip-player .duration {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(0,0,0,0.78);
  font-family: var(--mono); font-size: 0.72rem;
  padding: 3px 7px; border-radius: 4px;
}

/* ============ FUTURES BOARD ENTRIES (inside .transcript body) ============ */
.bout { margin-bottom: 1.5rem; }
.bout .matchup { font-family: var(--sans); font-weight: 700; margin-bottom: 0.3rem; }
.bout .detail { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.market-entry { margin-bottom: 1.3rem; }
.market-entry .wager { font-style: italic; margin-bottom: 0.25rem; }
.market-entry .odds { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; }
.market-entry .odds.rejected { color: var(--muted); }

/* ============ QUOTE SET (real, on-the-record quotes) ============
   Distinct from document styling: these are things people
   actually said, cited in the narrator's own column. */
.quote-set { margin: 1.8rem 0 2.2rem; }
.quote-set .attrib {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.quote-set blockquote {
  font-style: italic;
  padding-left: 1.1rem;
  border-left: 2px solid var(--ink);
  margin: 0 0 0.9rem;
}

/* ============ HELIX INTERNAL DOCUMENT ============ */
.helix-doc {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  padding: 2.4rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.92rem; line-height: 1.6;
}
.helix-doc .classification {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); text-align: center;
  margin-bottom: 1.8rem;
}
.helix-doc h3 {
  font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.helix-doc .doc-sub { color: var(--muted); font-size: 0.8rem; margin-bottom: 1.4rem; }
.helix-doc h4 {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 1.6rem 0 0.6rem;
}
.helix-doc p { margin-bottom: 0.8rem; }
.helix-doc ul { margin: 0 0 0.8rem 1.2rem; }
.helix-doc li { margin-bottom: 0.35rem; }
.helix-doc blockquote {
  border-left: 2px solid var(--ink);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 0.9rem 0;
  font-style: italic;
}
.helix-doc table {
  width: 100%; border-collapse: collapse;
  margin-top: 0.6rem; font-size: 0.88rem;
}
.helix-doc th {
  text-align: left; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.4rem 0.6rem 0.4rem 0; border-bottom: 1px solid var(--ink);
}
.helix-doc td {
  padding: 0.45rem 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.helix-doc td.num { font-family: var(--mono); }
@media (max-width: 640px) {
  .helix-doc { padding: 1.6rem 1.2rem; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 20, 19, 0.94);
  display: none;
  overflow-y: auto;
  padding: 0.75rem 1rem 2rem;
  cursor: zoom-out;
  touch-action: pan-y;       /* block browser page-zoom inside the lightbox */
  overscroll-behavior: contain;
}
.lightbox.zooming { overflow: hidden; touch-action: none; }
.lightbox.open { display: block; }
.lightbox img {
  touch-action: pan-y;
  transform-origin: 0 0;
  will-change: transform;
  display: block;
  max-width: min(920px, 100%);
  height: auto;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox .close {
  position: sticky; top: 0.75rem;
  display: block; margin: 0 0 0.9rem auto; z-index: 2;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--card-text);
  background: transparent; border: 1px solid rgba(242,241,238,0.5);
  padding: 0.5rem 0.9rem; cursor: pointer;
}
.lightbox .close:hover { border-color: var(--card-text); }


/* Reading progress: thin gold bar along the topbar's bottom edge (chapters only). */
.read-progress {
  position: absolute; left: 0; bottom: -3px;
  height: 3px; width: 0%;
  background: var(--gold);
  z-index: 51;
  pointer-events: none;
}

/* ============ BROADCAST TOGGLE ============ */
.broadcast {
  margin: 1.9rem auto; max-width: 760px;
  border: 1px solid var(--ink);
  background: #FFFFFF;
}
.broadcast-head {
  background: var(--ink); color: var(--card-text);
  font-family: var(--sans);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 1.2rem; flex-wrap: wrap;
}
.broadcast-head .label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.7;
}
.booth-select { display: flex; gap: 0.5rem; }
.booth-select button {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--card-text);
  border: 1px solid rgba(242,241,238,0.4);
  padding: 0.45rem 0.9rem; cursor: pointer;
}
.booth-select button[aria-pressed="true"] { background: var(--card-text); color: var(--ink); border-color: var(--card-text); }
.booth-select button:hover { border-color: var(--card-text); }
.broadcast-body { padding: 1.8rem 1.6rem; }
.call { display: none; }
.call.active { display: block; }
.call .fight-line { margin-bottom: 1.1rem; }
.call .commentary {
  font-family: var(--sans); font-size: 0.95rem;
  padding-left: 1rem; border-left: 3px solid var(--gold);
  margin: 1.1rem 0; color: #333;
}
.call .commentary .who { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 0.2rem; }
.call[data-booth="ef"] .commentary { border-left-color: var(--blue); }

/* ============ CHAPTER NAV + FOOTER ============ */
.chapter-nav {
  max-width: 760px; margin: 4rem auto 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  padding: 1.6rem 1.25rem 4rem;
  font-family: var(--sans); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.chapter-nav a { text-decoration: none; color: var(--muted); }
.chapter-nav a:hover { color: var(--ink); }

footer {
  background: var(--ink); color: var(--card-text);
  text-align: center; padding: 2.5rem 1.25rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
}
footer .x { font-size: 1.4rem; display: block; margin-bottom: 0.8rem; opacity: 0.5; }


/* ============ INDEX: HERO + CHAPTER LIST ============ */
.hero {
  background: var(--ink); color: var(--card-text);
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  font-family: var(--sans);
}
.hero .mark {
  font-size: 2.6rem; font-weight: 300;
  border: 1px solid rgba(242,241,238,0.35);
  width: 4.4rem; height: 4.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 2.2rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  margin-right: -0.28em; /* optically recenter tracked text */
}
.hero .byline {
  margin-top: 1.6rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55;
}
.hero .tagline {
  font-family: var(--serif);
  font-size: 1.05rem; font-style: italic;
  opacity: 0.75; margin-top: 2.4rem;
  max-width: 46ch; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

.chapter-list {
  max-width: 700px; margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
  list-style: none;
}
.chapter-list li { border-bottom: 1px solid var(--rule); }
.chapter-list li:first-child { border-top: 1px solid var(--rule); }
.chapter-list a, .chapter-list .locked {
  display: flex; align-items: baseline; gap: 1.4rem;
  padding: 1.5rem 0.4rem;
  text-decoration: none;
}
.chapter-list .num {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--muted); min-width: 2.2rem;
}
.chapter-list .ch-title {
  font-family: var(--serif); font-size: 1.25rem;
  flex: 1;
}
.chapter-list a .ch-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.chapter-list .status {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.chapter-list .locked { cursor: default; }
.chapter-list .locked .ch-title { color: var(--muted); }
/* Redacted chapter titles (06, 07): bars keep the reveal for the chapters themselves. */
.redact-bar {
  display: inline-block; height: 0.72em; background: currentColor;
  transform: translateY(0.04em); border-radius: 1px;
}

/* ============ NEUROSIGHT (fight-night dark mode) ============
   When the "you" is inside the headset, the page goes dark:
   black field, luminous text, the Octagon floating in the abyss. */
.neurosight {
  background: var(--ink);
  color: #DEDDD8;
  padding: 3rem 0 2.4rem;
}
.neurosight .ns-inner {
  max-width: 660px; margin: 0 auto;
  padding: 0 1.25rem;
}
.neurosight p { margin-bottom: 1.35rem; }
.neurosight .comm {
  margin: 1.6rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(242,241,238,0.35);
  font-family: var(--sans);
  font-size: 1rem;
}
.neurosight .comm .who {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(242,241,238,0.55);
  margin-bottom: 0.35rem;
}
.neurosight .stage {
  font-family: var(--mono); font-size: 0.78rem;
  color: rgba(242,241,238,0.45);
  margin: 1.4rem 0;
}
.neurosight .round {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  text-align: center;
  color: rgba(242,241,238,0.85);
  margin: 3.2rem 0 2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.neurosight .round::before, .neurosight .round::after {
  content: ""; flex: 1; height: 1px; background: rgba(242,241,238,0.2);
}
/* .round on the light canvas (e.g., ch5 "The Incident"): same treatment, ink colors. */
.chapter .round {
  font-family: var(--sans);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin: 3.2rem 0 2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.chapter .round::before, .chapter .round::after {
  content: ""; flex: 1; height: 1px; background: rgba(26,26,26,0.2);
}
.neurosight .ko {
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem;
  margin: 2.4rem 0;
}

/* Elijah & Fenwe booth: warmer accent to distinguish the crews */
.neurosight .comm.ef { border-left-color: rgba(197, 178, 137, 0.55); }
.neurosight .comm.ef .who { color: rgba(197, 178, 137, 0.75); }

/* Big in-headset text overlay */
.neurosight .overlay {
  text-align: center;
  font-family: var(--sans); font-weight: 700;
  font-size: 1.15rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin: 2.6rem 0;
}

/* NeuroSight select screen */
.select-screen {
  border: 1px solid rgba(242,241,238,0.3);
  padding: 2.4rem 1.5rem;
  text-align: center;
  margin: 2.6rem 0;
  font-family: var(--sans);
}
.select-screen .select-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242,241,238,0.55);
  margin-bottom: 1.4rem;
}
.select-screen button {
  display: block; width: 100%; max-width: 340px;
  margin: 0.7rem auto 0;
  background: transparent; color: #DEDDD8;
  border: 1px solid rgba(242,241,238,0.4);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.9rem 1rem; cursor: pointer;
}
.select-screen button:hover { border-color: #DEDDD8; background: rgba(242,241,238,0.06); }
.select-screen button[disabled] { opacity: 0.45; cursor: default; }


/* Booth variants inside the highlights session */
#post-select .v-ef { display: none; }
#post-select.booth-ef .v-ef { display: block; }
#post-select.booth-ef .v-jk { display: none; }

/* The intrusion voice: centered, serif, unsettling */
.neurosight .voice {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 2.6rem auto;
  max-width: 34ch;
}

/* Leaderboard readout (mono, in-world UI text) */
.readout {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.neurosight .readout { color: rgba(242,241,238,0.6); }


/* Balance the boundary when leaving the dark: split the gap evenly
   between the black and the canvas. */
.neurosight + * { margin-top: 2.4rem; }
.neurosight + .chapter > .section-label:first-child { margin-top: 0; }


/* Glass-door signage: no card, just the words */
.signage {
  text-align: center;
  font-family: var(--sans);
  margin: 2.4rem auto;
  max-width: 480px;
  padding: 0 1.25rem;
}
.signage .s1 {
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.signage p { margin-bottom: 0.45rem; font-size: 0.95rem; color: #333; }

/* Protest signs: handwritten placards rendered as standing lines */
.sign {
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1.6rem auto;
  max-width: 480px;
}
.scripture {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  max-width: 44ch;
  margin: 1.8rem auto;
  line-height: 1.7;
}
.scripture .cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Analyst breakdown variants */
#breakdown .v-leon { display: none; }
#breakdown.leon .v-leon { display: block; }
#breakdown.leon .v-pollone { display: none; }

/* ============ LETTER (the birth letters) ============
   Placeholder styling — to be replaced by photographed
   handwritten letters. */
.letter {
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 24px rgba(0,0,0,0.06);
  padding: 2.6rem 2.4rem;
  font-family: var(--serif);
  line-height: 1.75;
}
.letter .dateline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  line-height: 1.6;
}
.letter p { margin-bottom: 1.1rem; }
.letter .signoff { margin-top: 1.6rem; font-style: italic; }
@media (max-width: 640px) {
  .letter { padding: 1.8rem 1.4rem; }
}

/* Global cutaways during the final fight */
.neurosight .cutaway {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.65;
  border-left: 2px solid rgba(242,241,238,0.35);
  padding-left: 1.1rem;
  color: rgba(242,241,238,0.78);
  margin: 1.7rem 0;
}


/* Transcripts inside the headset: paper cards in the void */
.neurosight .transcript { box-shadow: 0 0 0 1px rgba(242,241,238,0.3); margin: 2.2rem auto; }

/* Transcripts inside the dark: paper keeps its ink */
.neurosight .transcript-body { color: var(--ink); }

/* Transcripts inside the dark keep transcript spacing, not headset spacing */
.neurosight .transcript-body p { margin-bottom: 1.15rem; }
.neurosight .transcript-body p:last-child { margin-bottom: 0; }
.neurosight .transcript-body .stage {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1.5rem 0 1.15rem;
  text-align: left;
}


/* Front-page question block (light canvas, above the chapters) */
.question {
  max-width: 640px;
  margin: 4rem auto 3.4rem;
  padding: 0 1.5rem;
}
.question .q-label {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
}
.question .q-text {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

/* ============ CHAPTER 2: essay furnishings ============ */
.quote {
  border-left: 2px solid var(--rule);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.7rem 0;
  color: #2a2a28;
}
.quote .attr {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.artifact .caption {
  text-align: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.behold {
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  margin: 2.4rem 0;
}
.chapter ul { margin: 0 0 1.35rem 1.4rem; }
.chapter ul li { margin-bottom: 0.55rem; line-height: 1.7; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.92rem;
  margin: 1.8rem 0;
}
.compare th, .compare td {
  border: 1px solid var(--rule);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.compare th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }


/* Text button that opens a document in the lightbox */
.doc-btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  margin: 0.4rem 0 1.6rem;
  transition: background 0.15s, color 0.15s;
}
.doc-btn:hover { background: var(--ink); color: var(--canvas); }
a.doc-btn { text-decoration: none; }
.switch-analyst { display: block; margin: 2.4rem auto 0.6rem; }
#analyst-select { scroll-margin-top: 4.2rem; }
a.doc-btn:target, .doc-btn { scroll-margin-top: 5rem; }
