/* Romans 3 · Tracing a Catena — continuous scroll narrative */

:root {
  --bg: oklch(0.985 0.003 85);
  --bg-2: oklch(0.975 0.004 85);
  --bg-dark: oklch(0.18 0.01 85);
  --surface: oklch(1 0 0);
  --ink: oklch(0.18 0.01 85);
  --ink-2: oklch(0.32 0.01 85);
  --ink-3: oklch(0.52 0.01 85);
  --ink-4: oklch(0.72 0.008 85);
  --line: oklch(0.90 0.005 85);
  --line-2: oklch(0.94 0.004 85);

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --greek: "Gentium Plus", "GFS Neohellenic", "Times New Roman", serif;
  --hebrew: "Frank Ruhl Libre", "SBL Hebrew", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.04), 0 1px 3px oklch(0 0 0 / 0.04);
  --shadow-2: 0 4px 20px oklch(0 0 0 / 0.05), 0 1px 3px oklch(0 0 0 / 0.04);
  --shadow-3: 0 24px 60px oklch(0 0 0 / 0.08), 0 2px 8px oklch(0 0 0 / 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.greek { font-family: var(--greek); }
.hebrew { font-family: var(--hebrew); direction: rtl; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Top nav */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: oklch(0.985 0.003 85 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.topnav.scrolled { border-bottom-color: var(--line); }
.topnav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand em { font-style: italic; color: var(--ink-3); font-weight: 400; }

.nav-dots {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.nav-dot {
  width: 26px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; background: transparent;
  position: relative;
}
.nav-dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4); transition: all 0.2s ease;
}
.nav-dot:hover::before { background: var(--ink-2); transform: scale(1.3); }
.nav-dot.active::before { background: var(--ink); width: 5px; height: 16px; border-radius: 3px; }
.nav-dot .lbl {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-2); white-space: nowrap;
  opacity: 0; pointer-events: none;
  background: var(--surface); padding: 4px 8px; border-radius: 6px;
  box-shadow: var(--shadow-1); border: 1px solid var(--line-2);
  transition: opacity 0.15s ease;
}
.nav-dot:hover .lbl { opacity: 1; }

/* Left-rail nav */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 52px; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.rail-inner {
  pointer-events: auto;
  padding: 10px 6px;
  background: oklch(1 0 0 / 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  margin-left: 16px;
}
@media (max-width: 900px) {
  .rail { display: none; }
}

.mode-switch {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  margin-left: auto;
}
.switch {
  position: relative; width: 38px; height: 22px;
  background: oklch(0.88 0.005 85); border-radius: 999px;
  cursor: pointer; border: none; padding: 0;
  transition: background 0.25s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.15);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.switch.on { background: oklch(0.45 0.02 85); }
.switch.on::after { transform: translateX(16px); }

.scroll-progress {
  position: absolute; bottom: -1px; left: 0;
  height: 2px; width: 0%;
  background: var(--ink);
  transition: width 0.1s linear;
}

/* Chapters — shared */
.chapter {
  min-height: 100vh;
  padding: 120px 28px 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.chapter.depth-only { display: flex; }

/* Reserve left space for the rail so content doesn't clip behind it */
@media (min-width: 900px) {
  .chapter { padding-left: 88px; padding-right: 48px; }
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ═══ CH1 · HERO ═══ */
.chapter-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-inner {
  max-width: 920px; width: 100%;
}
.hero-inner .eyebrow { margin-bottom: 28px; }
.chapter-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7.5vw, 92px);
  line-height: 1.02; letter-spacing: -0.028em;
  margin: 0 0 36px; text-wrap: balance;
}
.chapter-hero h1 .line { display: block; }
.chapter-hero h1 .line.em em { font-style: italic; color: var(--ink-3); }
.chapter-hero h1 .line:nth-child(1).reveal { transition-delay: 0ms; }
.chapter-hero h1 .line:nth-child(2).reveal { transition-delay: 120ms; }
.chapter-hero h1 .line:nth-child(3).reveal { transition-delay: 260ms; }
.dek {
  font-family: var(--serif); font-size: 22px; line-height: 1.5;
  color: var(--ink-2); max-width: 680px; margin: 0 0 56px;
  letter-spacing: -0.005em; text-wrap: pretty;
}
.scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ink-3), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ═══ CH2 · CLAIM / Psalm 14 equivalence ═══ */
.claim-stage { max-width: 1040px; width: 100%; text-align: center; }
.claim-kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.claim-lede {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 64px; text-wrap: balance;
}
.claim-pair {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 32px; align-items: center; margin-bottom: 56px;
}
@media (max-width: 760px) {
  .claim-pair { grid-template-columns: 1fr; }
  .claim-equals { transform: rotate(90deg); }
}
.claim-col {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 36px 32px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); text-align: left;
}
.claim-col .col-head {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 18px;
}
.claim-col .col-text {
  font-family: var(--greek); font-size: 26px; line-height: 1.5;
  color: var(--ink); margin-bottom: 18px;
}
.claim-col .col-en {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--ink-3); line-height: 1.5;
}
.claim-equals {
  font-family: var(--serif); font-size: 48px;
  color: var(--ink-4); font-weight: 300;
}
.claim-tail {
  max-width: 640px; margin: 0 auto;
  font-family: var(--serif); font-size: 18px;
  line-height: 1.6; color: var(--ink-2); text-wrap: pretty;
}

/* ═══ CH3 · HINGE ═══ */
.chapter-hinge {
  background: var(--bg-2);
}
.hinge-stage { max-width: 1100px; width: 100%; text-align: center; }
.hinge-kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.hinge-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.022em;
  margin: 0 0 24px; text-wrap: balance;
}
.hinge-h em { font-style: italic; color: var(--ink-3); }
.hinge-dek {
  font-family: var(--serif); font-size: 20px; line-height: 1.55;
  color: var(--ink-2); max-width: 640px; margin: 0 auto 72px;
  text-wrap: pretty;
}
.hinge-dek em { font-style: italic; color: var(--ink); }

/* Horizontal flow: Romans left, six sources right, curved SVG paths between. */
.hinge-thread {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 24px 0;
}
.hinge-thread .ht-track {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(140px, 0.7fr) minmax(280px, 0.9fr);
  grid-template-areas: "anchor gap sources";
  align-items: start;
  gap: 0;
}
.hinge-thread .ht-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 1;
}
.hinge-thread .ht-svg path {
  fill: none; stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  opacity: 0.85;
  transition:
    stroke-dashoffset 0.95s cubic-bezier(0.3, 0.7, 0.2, 1),
    stroke-width 0.2s ease,
    opacity 0.2s ease;
}
.hinge-thread.in .ht-svg path { stroke-dashoffset: 0; }
.hinge-thread .ht-svg path:nth-child(1) { transition-delay: 0.15s; }
.hinge-thread .ht-svg path:nth-child(2) { transition-delay: 0.22s; }
.hinge-thread .ht-svg path:nth-child(3) { transition-delay: 0.29s; }
.hinge-thread .ht-svg path:nth-child(4) { transition-delay: 0.36s; }
.hinge-thread .ht-svg path:nth-child(5) { transition-delay: 0.45s; }
.hinge-thread .ht-svg path:nth-child(6) { transition-delay: 0.52s; }
.hinge-thread .ht-svg path:nth-child(7) { transition-delay: 0.60s; }
.hinge-thread .ht-svg path:nth-child(8) { transition-delay: 0.68s; }
.hinge-thread .ht-svg path:nth-child(9) { transition-delay: 0.75s; }
.hinge-thread .ht-svg path:nth-child(10) { transition-delay: 0.82s; }
.hinge-thread .ht-svg path:nth-child(11) { transition-delay: 0.90s; }
.hinge-thread .ht-svg path.dim { opacity: 0.12; }
.hinge-thread .ht-svg path.hl { stroke-width: 2.4; opacity: 1; }

/* Shared column header */
.hinge-thread .ht-col-head { margin-bottom: 18px; padding-left: 4px; }
.hinge-thread .ht-col-eyebrow {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.hinge-thread .ht-col-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}
.hinge-thread .ht-col-sub {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--ink-3); margin-top: 2px;
}

/* Left: Romans anchor column */
.hinge-thread .ht-anchor-col {
  grid-area: anchor; position: relative; z-index: 2;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  padding: 22px 24px 20px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hinge-thread.in .ht-anchor-col { opacity: 1; transform: none; }
.hinge-thread .ht-rom-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.hinge-thread .ht-rom {
  display: grid;
  grid-template-columns: 48px 12px 1fr;
  align-items: center;
  gap: 0 10px;
  padding: 9px 8px 9px 4px;
  border-radius: 6px;
  cursor: default;
  transition: background 0.2s ease, opacity 0.25s ease;
}
.hinge-thread .ht-rom + .ht-rom { border-top: 1px dashed var(--line-2); }
.hinge-thread .ht-rom-v {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.02em;
  text-align: right;
}
.hinge-thread .ht-rom-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--_color);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--_color) 18%, transparent);
  justify-self: center;
}
.hinge-thread .ht-rom-txt {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.35;
  color: var(--ink); text-wrap: pretty;
}
.hinge-thread .ht-rom:hover { background: color-mix(in oklch, var(--_color) 8%, transparent); }
.hinge-thread .ht-rom.dim { opacity: 0.28; }

/* Right: six source cards */
.hinge-thread .ht-src-col {
  grid-area: sources; position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 4px;
}
.hinge-thread .ht-src {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  cursor: default;
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.2s ease, border-color 0.2s ease;
}
.hinge-thread.in .ht-src { opacity: 1; transform: none; }
.hinge-thread .ht-src:nth-of-type(1) { transition-delay: 0.20s; }
.hinge-thread .ht-src:nth-of-type(2) { transition-delay: 0.32s; }
.hinge-thread .ht-src:nth-of-type(3) { transition-delay: 0.44s; }
.hinge-thread .ht-src:nth-of-type(4) { transition-delay: 0.56s; }
.hinge-thread .ht-src:nth-of-type(5) { transition-delay: 0.68s; }
.hinge-thread .ht-src:nth-of-type(6) { transition-delay: 0.80s; }
.hinge-thread .ht-src-swatch {
  width: 6px; height: 34px; border-radius: 4px;
  background: var(--_color);
}
.hinge-thread .ht-src-name {
  font-family: var(--serif); font-size: 15.5px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.2;
}
.hinge-thread .ht-src-ref {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  color: var(--ink-3); margin-top: 3px; letter-spacing: 0.01em;
}
.hinge-thread .ht-src-count {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--_color); letter-spacing: 0.02em;
  padding: 3px 7px; border-radius: 999px;
  background: color-mix(in oklch, var(--_color) 10%, transparent);
}
.hinge-thread .ht-src:hover {
  border-color: color-mix(in oklch, var(--_color) 50%, var(--line-2));
  background: color-mix(in oklch, var(--_color) 4%, var(--surface));
}
.hinge-thread .ht-src.dim { opacity: 0.35; }

@media (max-width: 820px) {
  .hinge-thread .ht-track { grid-template-columns: 1fr; grid-template-areas: "anchor" "sources"; gap: 28px; }
  .hinge-thread .ht-svg { display: none; }
  .hinge-thread .ht-anchor-col,
  .hinge-thread .ht-src { opacity: 1; transform: none; }
}

/* Hinge — charaz preamble */
.hinge-foot {
  max-width: 620px; margin: 18px auto 36px;
  font-family: var(--serif); font-size: 15px; line-height: 1.55;
  color: var(--ink-3); font-style: italic;
  text-align: center; text-wrap: pretty;
}
.hinge-foot em { font-style: normal; color: var(--ink-2); font-weight: 500; }

/* Hinge — collapsible Psalm 53 comparison */
.hinge-aside {
  max-width: 900px; margin: 56px auto 0;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  text-align: left;
  overflow: hidden;
}
.hinge-aside > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: center;
  padding: 18px 22px;
  transition: background 0.2s ease;
}
.hinge-aside > summary::-webkit-details-marker { display: none; }
.hinge-aside > summary::marker { content: ""; }
.hinge-aside > summary:hover { background: var(--bg-2); }
.hinge-aside .ha-icon {
  font-family: var(--serif); font-size: 24px;
  color: var(--ink-3); line-height: 1;
  width: 28px; text-align: center;
}
.hinge-aside .ha-body { display: block; }
.hinge-aside .ha-head {
  display: block;
  font-family: var(--sans); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.hinge-aside .ha-teaser {
  display: block;
  font-family: var(--serif); font-size: 16px; line-height: 1.4;
  color: var(--ink); text-wrap: pretty;
}
.hinge-aside .ha-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  transition: color 0.2s, border-color 0.2s;
}
.hinge-aside > summary:hover .ha-toggle {
  color: var(--ink); border-color: var(--line);
}
.hinge-aside .ha-toggle-lbl-open { display: none; }
.hinge-aside[open] .ha-toggle-lbl-closed { display: none; }
.hinge-aside[open] .ha-toggle-lbl-open { display: inline; }
.hinge-aside .ha-chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.25s ease;
}
.hinge-aside[open] .ha-chev { transform: translateY(1px) rotate(-135deg); }

/* Content body */
.hinge-aside .ha-content {
  padding: 8px 28px 28px;
  border-top: 1px solid var(--line-2);
}
.hinge-aside .ha-lede {
  font-family: var(--serif); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); margin: 22px 0 28px; text-wrap: pretty;
  max-width: 760px;
}
.hinge-aside .ha-lede em { font-style: italic; color: var(--ink); }
.hinge-aside .ha-link {
  color: var(--ink); border-bottom: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.2s;
}
.hinge-aside .ha-link:hover { border-bottom-color: var(--ink); }

/* Compare grid: [label] [Ps 14] [Ps 53] */
.hinge-aside .ha-compare {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.hinge-aside .ha-col {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.hinge-aside .ha-col + .ha-col { border-left: 1px solid var(--line-2); }
.hinge-aside .ha-col-head {
  background: var(--bg-2);
  padding: 14px 18px;
}
.hinge-aside .ha-ps-title {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.005em;
}
.hinge-aside .ha-ps-sub {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink-3); margin-top: 3px;
}
.hinge-aside .ha-rowlabel {
  background: var(--bg-2);
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  display: flex; flex-direction: column; justify-content: center;
}
.hinge-aside .ha-rowlabel + .ha-rowlabel { border-top: 1px solid var(--line-2); }
.hinge-aside .ha-lang {
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.hinge-aside .ha-lang-note {
  font-family: var(--serif); font-size: 12px; font-style: italic;
  color: var(--ink-3); margin-top: 3px;
}
.hinge-aside .ha-textcol .ha-src-ref {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hinge-aside .ha-text {
  font-size: 19px; line-height: 1.55;
  color: var(--ink); margin-bottom: 6px;
}
.hinge-aside .ha-text.hebrew { font-family: var(--hebrew); direction: rtl; font-size: 22px; line-height: 1.7; }
.hinge-aside .ha-text.greek { font-family: var(--greek); }
.hinge-aside .ha-text + .ha-en { margin-bottom: 14px; }
.hinge-aside .ha-text:last-of-type + .ha-en { margin-bottom: 0; }
.hinge-aside .ha-en {
  font-family: var(--serif); font-size: 14px; font-style: italic;
  color: var(--ink-3); line-height: 1.5;
}
.hinge-aside .ha-en em { font-style: italic; color: var(--ink-2); font-weight: 500; }
.hinge-aside .ha-hl {
  background: transparent;
  padding: 1px 4px; border-radius: 3px;
  font-weight: 500;
}
.hinge-aside .ha-hl-name {
  background: oklch(0.94 0.03 250);
  color: oklch(0.35 0.12 250);
}
.hinge-aside .ha-hl-key {
  background: oklch(0.93 0.04 25);
  color: oklch(0.38 0.14 25);
}
.hinge-aside .ha-hl-swap {
  background: oklch(0.94 0.035 300);
  color: oklch(0.38 0.12 300);
}
.hinge-aside .ha-diff,
.hinge-aside .ha-arrow {
  display: inline-block; margin-top: 4px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: oklch(0.42 0.14 25); padding: 2px 8px;
  background: oklch(0.96 0.03 25); border-radius: 999px;
}
.hinge-aside .ha-arrow-neg {
  color: oklch(0.42 0.12 300); background: oklch(0.96 0.03 300);
}
.hinge-aside .ha-diffcell ul {
  margin: 0; padding: 0 0 0 18px;
  font-family: var(--serif); font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.hinge-aside .ha-diffcell li { margin-bottom: 8px; }
.hinge-aside .ha-diffcell li:last-child { margin-bottom: 0; }
.hinge-aside .ha-diffcell strong {
  font-family: var(--sans); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--ink);
}
.hinge-aside .ha-diffcell em { font-style: italic; color: var(--ink); }

/* Last row has no bottom border */
.hinge-aside .ha-compare > :nth-last-child(-n+3) { border-bottom: none; }

.hinge-aside .ha-verdict {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: oklch(0.97 0.01 85);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--serif); font-size: 15px; line-height: 1.6;
  color: var(--ink-2); text-wrap: pretty;
}
.hinge-aside .ha-verdict strong {
  font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-right: 6px;
}
.hinge-aside .ha-verdict em { font-style: italic; color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .hinge-aside > summary { grid-template-columns: auto 1fr; gap: 14px; }
  .hinge-aside .ha-toggle { grid-column: 1 / -1; justify-self: start; }
  .hinge-aside .ha-compare { grid-template-columns: 1fr; }
  .hinge-aside .ha-col + .ha-col { border-left: none; border-top: 1px solid var(--line-2); }
  .hinge-aside .ha-rowlabel { padding: 10px 18px; }
}

/* ═══ CH4 · MOSAIC ═══ */
.mosaic-stage { max-width: 1200px; width: 100%; }
.mosaic-head { text-align: center; margin-bottom: 56px; }
.mosaic-head .eyebrow { margin-bottom: 18px; }
.mosaic-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.06; letter-spacing: -0.022em;
  margin: 0 0 16px; text-wrap: balance;
}
.mosaic-head p {
  font-family: var(--serif); font-size: 18px;
  color: var(--ink-2); line-height: 1.5; max-width: 600px;
  margin: 0 auto; text-wrap: pretty;
}

.mosaic-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px; align-items: flex-start;
}
@media (max-width: 960px) { .mosaic-wrap { grid-template-columns: 1fr; } }

.mosaic {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 48px 52px; box-shadow: var(--shadow-2);
  border: 1px solid var(--line-2);
}
.mosaic-ref {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.mosaic-body {
  font-family: var(--greek); font-size: 24px;
  line-height: 1.75; color: var(--ink);
}
.mosaic-hover-en {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--line-2);
  min-height: 56px;
  font-family: var(--serif); font-size: 17px; font-style: italic;
  line-height: 1.55; color: var(--ink-3);
  text-wrap: pretty;
  transition: color 0.2s ease;
}
.mosaic-hover-en.placeholder { color: var(--ink-4); font-size: 14px; letter-spacing: 0.01em; }
.mosaic-hover-en strong {
  display: block;
  font-family: var(--sans); font-weight: 600; font-style: normal;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--_ink, var(--ink-3)); margin-bottom: 6px;
}

.phrase {
  cursor: pointer; padding: 2px 6px; margin: 0 -1px;
  border-radius: 5px; transition: all 0.2s ease;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 0 var(--_color, transparent);
}
.phrase:hover { background: var(--_tint); }
.phrase.active { background: var(--_tint); box-shadow: inset 0 -2px 0 0 var(--_color), 0 0 0 1px var(--_color); }
/* Depth-mode contextual prompt */
.depth-prompt {
  margin: 56px auto 0; max-width: 820px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 24px;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
}
.depth-prompt.active { border-color: var(--ink); box-shadow: 0 0 0 2px oklch(0.18 0.01 85 / 0.06), var(--shadow-2); }
.dp-icon { display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-2); flex-shrink: 0;
}
.dp-body { display: flex; flex-direction: column; gap: 3px; }
.dp-body strong {
  font-family: var(--serif); font-weight: 500; font-size: 16px;
  color: var(--ink); letter-spacing: -0.005em;
}
.dp-body span {
  font-family: var(--serif); font-size: 14.5px;
  color: var(--ink-2); line-height: 1.45; text-wrap: pretty;
}
.dp-btn {
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.dp-btn:hover { background: var(--ink-2); }
.dp-btn.on { background: var(--bg); color: var(--ink); }
@media (max-width: 640px) {
  .depth-prompt { grid-template-columns: 1fr; text-align: left; }
  .dp-btn { justify-self: flex-start; }
}

.legend {
  position: sticky; top: 92px;
  background: var(--surface); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-1);
  border: 1px solid var(--line-2);
}
.legend h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  letter-spacing: -0.01em; margin: 0 0 6px;
}
.legend p {
  font-size: 13px; color: var(--ink-3);
  line-height: 1.5; margin: 0 0 20px;
}
.legend-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-2);
  cursor: pointer; transition: color 0.15s ease;
}
.legend-item:first-child { border-top: none; }
.legend-item:hover { color: var(--ink); }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-item .count {
  margin-left: auto; font-family: var(--mono);
  font-size: 11px; color: var(--ink-4);
}

/* ═══ CH5 · THE TELL (πικρίας) ═══ */
.chapter-tell {
  background: var(--bg-dark); color: oklch(0.95 0.005 85);
}
.tell-stage { max-width: 1060px; width: 100%; text-align: center; }
.tell-kicker {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.65 0.01 85); margin-bottom: 20px;
}
.tell-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05; letter-spacing: -0.022em;
  margin: 0 0 48px; color: oklch(0.98 0.005 85);
  text-wrap: balance;
}
.tell-h em { font-style: italic; color: oklch(0.78 0.05 75); }
.tell-word {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 64px;
}
.tell-word .greek {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 400; letter-spacing: -0.02em;
  color: oklch(0.78 0.12 75); line-height: 1;
}
.tell-gloss {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: oklch(0.65 0.01 85);
  letter-spacing: 0.03em;
}
.tell-compare {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 1000px; margin: 0 auto;
}
.tell-parallel {
  display: flex; flex-direction: column; gap: 14px;
}
.tell-prow {
  background: oklch(0.22 0.01 85); border-radius: var(--r-lg);
  padding: 26px 28px; text-align: left;
  border: 1px solid oklch(0.28 0.01 85);
  display: grid; grid-template-columns: 240px 1fr;
  gap: 24px; align-items: center;
}
.tell-prow.rom {
  background: oklch(0.28 0.03 75);
  border-color: oklch(0.45 0.07 75);
}
.tell-prow.mt {
  border-style: dashed;
  border-color: oklch(0.40 0.02 85);
}
@media (max-width: 800px) {
  .tell-prow { grid-template-columns: 1fr; gap: 10px; }
}
.tell-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.tell-label.lxx { color: oklch(0.78 0.10 200); }
.tell-label.mt { color: oklch(0.78 0.10 165); }
.tell-label.rom { color: oklch(0.88 0.12 75); }
.tell-text {
  font-size: 20px; line-height: 1.5;
  color: oklch(0.96 0.005 85);
}
.tell-text.hebrew { font-size: 24px; text-align: right; line-height: 1.7; direction: rtl; }
.tell-text mark.hl {
  background: oklch(0.58 0.15 75); color: oklch(0.12 0.01 85);
  padding: 1px 6px; border-radius: 4px; font-weight: 500;
}
.tell-en {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; color: oklch(0.72 0.005 85); line-height: 1.55;
  padding-top: 8px; border-top: 1px solid oklch(0.30 0.01 85);
  margin-top: 4px;
}
.tell-prow .tell-label { grid-column: 1; grid-row: 1; align-self: start; margin-bottom: 0; }
.tell-prow .tell-text { grid-column: 2; grid-row: 1; margin: 0; }
.tell-prow .tell-en { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid oklch(0.30 0.01 85); padding-top: 10px; }
.tell-prow.rom .tell-en { border-top-color: oklch(0.42 0.05 75); }
.tell-en em { color: oklch(0.88 0.08 75); font-style: normal; font-weight: 500; }
.tell-arrow {
  display: inline-block; margin-left: 10px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: oklch(0.78 0.10 200);
}
.tell-absence {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 14px;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: oklch(0.30 0.02 40);
  border: 1px dashed oklch(0.50 0.04 40);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  font-style: normal; letter-spacing: 0.04em;
  color: oklch(0.78 0.04 40);
}
.tell-absence em { color: oklch(0.90 0.10 75); font-style: italic; font-weight: 500; }
.tell-absence-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: oklch(0.42 0.05 40); color: oklch(0.90 0.04 40);
  font-size: 12px; font-weight: 600;
}
.tell-tail {
  margin-top: 56px; font-family: var(--serif);
  font-size: 20px; color: oklch(0.80 0.005 85);
  line-height: 1.55; text-wrap: pretty;
  max-width: 640px; margin-left: auto; margin-right: auto;
}

/* Second tell — χρηστότητα, which psalm? */
.tell-divider {
  margin: 64px auto 0; text-align: center; max-width: 640px;
  position: relative;
}
.tell-divider::before, .tell-divider::after {
  content: ""; position: absolute; top: 50%;
  width: calc(50% - 180px); height: 1px;
  background: oklch(0.38 0.01 85);
}
.tell-divider::before { left: 0; }
.tell-divider::after { right: 0; }
.tell-divider-lbl {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: oklch(0.70 0.005 85);
  letter-spacing: 0.01em;
}
.tell-divider-lbl em { color: oklch(0.88 0.08 75); font-weight: 500; }

.tell-sub {
  margin-top: 40px; max-width: 1000px; margin-left: auto; margin-right: auto;
  text-align: left;
}
.tell-sub-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0 22px; margin-bottom: 16px;
  justify-content: center; text-align: center;
}
.tell-sub-head .greek {
  font-size: clamp(42px, 6.5vw, 72px); font-weight: 400;
  letter-spacing: -0.02em; color: oklch(0.78 0.12 75); line-height: 1.1;
}
.tell-sub-head .tell-gloss { font-size: 16px; }
.tell-sub-q {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: oklch(0.70 0.005 85);
  flex-basis: 100%; margin-top: 4px;
}
.tell-sub-copy {
  font-family: var(--serif); font-size: 17px;
  color: oklch(0.80 0.005 85); line-height: 1.55;
  max-width: 680px; margin: 0 auto 28px; text-align: center;
  text-wrap: pretty;
}
.tell-parallel.tight .tell-prow {
  padding: 18px 22px;
}
.tell-parallel.tight .tell-text { font-size: 18px; }
.tell-parallel.tight .tell-en { font-size: 13.5px; }

/* ═══ CH6 · ALIGNMENT (DEPTH) ═══ */
.align-stage { max-width: 1280px; width: 100%; }
.align-head { text-align: center; margin-bottom: 40px; }
.align-head .eyebrow { margin-bottom: 16px; }
.align-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.align-head p {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink-2); line-height: 1.5;
  max-width: 640px; margin: 0 auto;
}
.align-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 28px;
  justify-content: flex-start;
  scrollbar-width: thin;
}
.align-tab {
  flex-shrink: 0; border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 16px; border-radius: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: all 0.2s ease;
}
.align-tab:hover { border-color: var(--ink-4); }
.align-tab.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.align-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .align-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .align-grid { grid-template-columns: 1fr; } }
.align-col {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 22px 20px; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
}
.align-col.anchor { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.align-col.anchor .col-label { color: oklch(0.75 0.005 85); }
.align-col.anchor .col-ref { color: oklch(0.65 0.005 85); }
.align-col.anchor .col-en { color: oklch(0.75 0.005 85); }
.col-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.col-ref { font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.col-greek { font-family: var(--greek); font-size: 17px; line-height: 1.55; }
.col-hebrew { font-family: var(--hebrew); font-size: 20px; line-height: 1.7; direction: rtl; text-align: right; }
.col-en {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-3); line-height: 1.5;
  margin-top: auto;
}
.align-diag {
  margin-top: 22px; padding: 20px 26px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: start;
}
.diag-chip {
  padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--bg-2); color: var(--ink-2); white-space: nowrap;
}
.diag-chip.lxx-only { background: oklch(0.92 0.04 75); color: oklch(0.32 0.09 75); }
.diag-chip.verbatim-lxx { background: oklch(0.93 0.03 200); color: oklch(0.32 0.09 200); }
.diag-chip.lxx-close { background: oklch(0.94 0.025 165); color: oklch(0.32 0.08 165); }
.diag-chip.compressed { background: oklch(0.93 0.03 340); color: oklch(0.32 0.09 340); }
.diag-chip.stable { background: oklch(0.93 0.02 165); color: oklch(0.32 0.07 165); }
.diag-chip.paul-frames { background: var(--bg-2); color: var(--ink-2); }
.diag-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ═══ CH7 · BACK-ABSORPTION ═══ */
.chapter-ba {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.ba-stage { max-width: 1240px; width: 100%; }
.ba-head { text-align: center; margin-bottom: 56px; }
.ba-head .eyebrow { margin-bottom: 18px; }
.ba-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -0.022em;
  margin: 0 0 18px; text-wrap: balance;
}
.ba-head h2 em { font-style: italic; color: var(--ink-3); }
.ba-head p {
  font-family: var(--serif); font-size: 18px;
  color: var(--ink-2); line-height: 1.55;
  max-width: 640px; margin: 0 auto; text-wrap: pretty;
}
.ba-controls {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-bottom: 36px;
}
/* Legacy Play button styles — hidden; autoplay now triggers on view */
.ba-controls { display: none !important; }
.ba-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 20px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-2);
}
.ba-play:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.ba-play.playing { background: var(--ink-2); }
.ba-play.done { background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ba-play-icon {
  width: 10px; height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.ba-play.playing .ba-play-icon { clip-path: none; width: 10px; height: 12px; background: transparent; box-shadow: inset 3px 0 0 currentColor, inset -3px 0 0 currentColor; }
.ba-reset {
  border: none; background: transparent;
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.ba-reset:hover { color: var(--ink); background: var(--bg-2); }

.ba-flow {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 180px;
}
@media (max-width: 900px) { .ba-flow { grid-template-columns: 1fr; gap: 40px; } }
.ba-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 1;
}
.ba-svg path {
  fill: none; stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  opacity: 0;
}
.ba-svg path.flowing {
  opacity: 0.9;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  stroke-dashoffset: 0;
}
@media (max-width: 900px) { .ba-svg { display: none; } }

.ba-card {
  position: relative; z-index: 2;
  background: var(--surface); border-radius: var(--r-xl);
  padding: 32px 30px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
}
.ba-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.ba-label em { color: oklch(0.55 0.10 75); font-style: normal; font-weight: 700; }
.ba-title {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em; margin: 6px 0 4px;
}
.ba-ref { font-size: 12px; color: var(--ink-4); margin-bottom: 20px; }
.ba-lines { display: flex; flex-direction: column; gap: 8px; }
.ba-line {
  padding: 10px 12px 11px; border-radius: 6px;
  background: var(--_tint, transparent);
  box-shadow: inset 3px 0 0 0 var(--_color, var(--line));
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}
.ba-line-greek {
  font-family: var(--greek); font-size: 16.5px; line-height: 1.45;
  color: var(--ink);
}
.ba-line-en {
  font-family: var(--serif); font-style: italic;
  font-size: 12.5px; line-height: 1.45;
  color: var(--ink-3);
  margin-top: 3px;
  text-wrap: pretty;
}
/* Paul's lines — dim until we "lift" them, then return */
.ba-paul .ba-line.pulsing { filter: brightness(1.08) saturate(1.2); transform: translateX(-2px); box-shadow: inset 3px 0 0 0 var(--_color), 0 0 0 2px var(--_color, transparent); }
/* Absorbed lines — start invisible, appear when their flow arrives */
.ba-absorbed .ba-line { opacity: 0; transform: translateX(-12px); }
.ba-absorbed .ba-line.ready { opacity: 1; transform: translateX(0); }

/* Expand gate between short form and absorbed form */
.ba-expand-gate {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 14px; opacity: 0;
  transition: opacity 0.4s ease;
}
.ba-expand-gate.ready { opacity: 1; }
.ba-expand-marker {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-4) 0 4px, transparent 4px 8px);
}
.ba-expand-note {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
/* Summary strip — shown at chapter start */
.summary-strip {
  display: inline-flex; align-items: baseline; gap: 14px;
  margin-bottom: 40px;
  padding: 10px 18px 10px 14px;
  background: var(--surface); border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--serif); font-size: 14px;
  color: var(--ink-2); letter-spacing: -0.003em;
  box-shadow: var(--shadow-1);
}
.summary-strip.dark {
  background: oklch(0.22 0.01 85);
  border-color: oklch(0.32 0.01 85);
  color: oklch(0.80 0.005 85);
}
.sum-num {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-2);
}
.summary-strip.dark .sum-num { color: oklch(0.65 0.005 85); background: oklch(0.28 0.01 85); }
.sum-text { text-wrap: pretty; }

/* Center-align summary strips that sit inside centered stages */
.claim-stage, .hinge-stage, .mosaic-stage, .tell-stage,
.align-stage, .ba-stage, .tl-stage, .claims-stage, .src-stage {
  text-align: center;
}
.claim-stage > *, .mosaic-stage > *, .ba-stage > *,
.align-stage > *, .src-stage > * { text-align: initial; }
.claim-stage .summary-strip, .hinge-stage .summary-strip,
.mosaic-stage .summary-strip, .tell-stage .summary-strip,
.align-stage .summary-strip, .ba-stage .summary-strip,
.tl-stage .summary-strip, .claims-stage .summary-strip,
.src-stage .summary-strip { text-align: left; }

.ba-explain {
  max-width: 720px; margin: 56px auto 0;
  text-align: center;
  font-family: var(--serif); font-size: 18px;
  line-height: 1.6; color: var(--ink-2); text-wrap: pretty;
}
.ba-explain em { color: var(--ink); font-style: italic; font-weight: 500; }

/* Codices panel — "What the codices show" */
.codices {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.codices-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.codices-head h3 {
  font-family: var(--font-display, serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 8px 0 12px;
  color: var(--ink);
}
.codices-head p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}
.codices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .codices-grid { grid-template-columns: 1fr; } }

.codex-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg, 14px);
  border: 1px solid var(--rule, oklch(0.88 0.01 80));
  padding: 22px 22px 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.codex-card.codex-has    { border-left: 3px solid oklch(0.55 0.09 25); }
.codex-card.codex-margin { border-left: 3px solid oklch(0.60 0.11 75); }
.codex-card.codex-short  { border-left: 3px solid oklch(0.55 0.05 200); }

.codex-era {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3, var(--ink-2));
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.codex-name {
  font-family: var(--font-display, serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.codex-sigil {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-greek, serif);
  font-weight: 400;
  color: var(--ink-2);
}
.codex-state {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 10px;
}
.codex-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.codex-quote {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: oklch(0.97 0.01 80);
  border-radius: 8px;
  border-left: 2px solid oklch(0.60 0.11 75);
}
.codex-quote blockquote {
  margin: 0 0 6px;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  font-family: var(--font-display, serif);
}
.codex-quote figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.codex-quote-attr {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--ink-3, var(--ink-2));
  font-style: normal;
}

/* ═══ CH8 · TIMELINE ═══ */
.chapter-tl { background: var(--bg-2); }
.tl-stage { max-width: 960px; width: 100%; }
.tl-head { text-align: center; margin-bottom: 48px; }
.tl-head .eyebrow { margin-bottom: 16px; }
.tl-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.tl-head p {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink-2); line-height: 1.5;
  max-width: 600px; margin: 0 auto;
}
.tl-wrap { position: relative; }
.tl-wrap::before {
  content: ""; position: absolute;
  left: 18px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line);
}
.tl-item {
  display: grid; grid-template-columns: 40px 140px 1fr;
  gap: 24px; padding: 18px 0; align-items: start;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.in { opacity: 1; transform: translateY(0); }
.tl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-2); border: 1.5px solid var(--ink-3);
  margin-left: 14px; margin-top: 8px;
  position: relative; z-index: 2;
}
.tl-item.highlight .tl-dot { background: var(--ink); border-color: var(--ink); }
.tl-era {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); padding-top: 5px;
}
.tl-body h4 {
  font-family: var(--serif); font-weight: 500; font-size: 17px;
  margin: 2px 0 4px; letter-spacing: -0.01em;
}
.tl-body p {
  margin: 0; font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2); max-width: 640px; text-wrap: pretty;
}

/* ═══ CH9 · CLAIMS ═══ */
.claims-stage { max-width: 1200px; width: 100%; }
.claims-head { text-align: center; margin-bottom: 48px; }
.claims-head .eyebrow { margin-bottom: 16px; }
.claims-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.claims-head p {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink-2); max-width: 600px; margin: 0 auto;
}
.claims {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .claims { grid-template-columns: 1fr; } }
.claim {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.claim.in { opacity: 1; transform: translateY(0); }
.claim-level {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.claim-level::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
}
.claim-level.documented::before { background: oklch(0.55 0.1 165); }
.claim-level.strong-judgment::before { background: oklch(0.6 0.1 75); }
.claim-level.noted-gap::before { background: oklch(0.6 0.07 40); }
.claim p {
  margin: 0; font-family: var(--serif);
  font-size: 17px; line-height: 1.5; color: var(--ink);
  letter-spacing: -0.005em; text-wrap: pretty;
}

/* ═══ CH10 · SOURCES ═══ */
.src-stage { max-width: 980px; width: 100%; }
.src-head { text-align: center; margin-bottom: 48px; }
.src-head .eyebrow { margin-bottom: 16px; }
.src-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.src-head p {
  font-family: var(--serif); font-size: 17px;
  color: var(--ink-2); max-width: 640px; margin: 0 auto;
  line-height: 1.5; text-wrap: pretty;
}
.attr-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 28px; padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}
.attr-row:last-child { border-bottom: none; }
.attr-row h5 {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  margin: 0; letter-spacing: -0.005em;
}
.attr-row p {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  margin: 0; text-wrap: pretty;
}
.src-note {
  margin: 56px auto 0; padding: 28px;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
}
.src-note .eyebrow { margin-bottom: 12px; }
.src-note p {
  font-family: var(--serif); font-size: 16px;
  line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty;
}
.foot {
  max-width: 1200px; margin: 72px auto 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.6; text-align: center;
}

/* ═══ DRAWER ═══ */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(520px, 100vw); background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0.2, 1);
  z-index: 200; display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px;
}
.drawer-close {
  border: none; background: var(--bg-2);
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; margin-left: auto; font-size: 14px;
  color: var(--ink-2); display: inline-flex;
  align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--line); }
.drawer-body { padding: 28px; overflow-y: auto; flex: 1; }
.drawer-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.drawer h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.15;
  letter-spacing: -0.02em; margin: 16px 0 6px;
}
.drawer .romans-phrase {
  font-family: var(--greek); font-size: 22px;
  line-height: 1.5; color: var(--ink);
  padding: 20px 0 8px;
}
.drawer .romans-en {
  font-family: var(--serif); font-size: 15px;
  font-style: italic; color: var(--ink-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.drawer .block {
  padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.drawer .block:last-child { border-bottom: none; }
.drawer .block-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.drawer .block-text { font-size: 20px; line-height: 1.55; }
.drawer .block-text.greek { font-family: var(--greek); }
.drawer .block-text.hebrew { font-family: var(--hebrew); direction: rtl; font-size: 24px; line-height: 1.7; }
.drawer .block-en {
  margin-top: 10px; font-size: 14px; color: var(--ink-3);
  line-height: 1.55; font-style: italic;
}
.drawer .note {
  background: var(--bg-2); border-radius: var(--r-md);
  padding: 16px 18px; font-size: 14px; line-height: 1.6;
  color: var(--ink-2); margin-top: 20px;
}
.drawer .note-flag {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.85 0.005 85); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: oklch(0.75 0.005 85); }

.hidden { display: none !important; }
