/* ─────────────────────────────────────────────────────────── */
/* /verse — 3D flipbook (Three.js)                             */
/* ─────────────────────────────────────────────────────────── */

:root {
  --vb-night: #0a0d18;
  --vb-night-deep: #050710;
  --vb-paper: #f5e9ce;
  --vb-paper-soft: #efe0be;
  --vb-paper-edge: #e4d2a6;
  --vb-ink: #1a1208;
  --vb-ink-soft: rgba(26, 18, 8, 0.78);
  --vb-ink-mute: rgba(26, 18, 8, 0.48);
  --vb-ink-pale: rgba(26, 18, 8, 0.22);
  --vb-amber: #d89a3e;
  --vb-amber-warm: #f0b866;
  --vb-ember: #a06820;
  --vb-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --vb-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

.verse-body {
  background: #0a0510;
  color: var(--vb-paper);
  font-family: var(--vb-serif);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  position: relative;
}
.verse-body--3d {
  background: #090512;
}

/* ─── Canvas stage ────────────────────────────────────────── */

.verse-stage-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.verse-stage-3d canvas,
.verse-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* ─── Top chrome (wordmark + switcher) ────────────────────── */

.verse-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 300;
  pointer-events: none;
}
.verse-chrome > * { pointer-events: auto; }

.verse-wordmark {
  font-family: var(--vb-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--vb-paper);
  text-decoration: none;
  font-feature-settings: 'ss01', 'kern', 'liga';
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
/* The Ml^p brandmark inside the wordmark — same pattern as the advanced
   site's `.site-header__logo .mlp-logo`. White M·l with a blue super-
   script p, so the brand on /verse matches the brand on /index. */
.verse-wordmark .mlp-logo {
  font-family: var(--vb-mono, ui-monospace, 'SF Mono', Menlo, monospace);
  font-size: 13px;
  font-weight: 600;
  color: rgba(245, 233, 206, 0.92);
  letter-spacing: 0.01em;
}
.verse-wordmark .mlp-logo sup {
  font-size: 9px;
  vertical-align: super;
  line-height: 0;
  color: #0066cc;     /* same blue as SplashIntro's `p` */
  margin-left: 1px;
  font-weight: 700;
}

.verse-body .verse-switch {
  background: rgba(10, 13, 24, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(245, 233, 206, 0.3);
  color: rgba(245, 233, 206, 0.85);
}
.verse-body .verse-switch:hover {
  border-color: rgba(245, 233, 206, 0.6);
  background: rgba(10, 13, 24, 0.78);
}
/* Flip active-pill colours for the dark /verse chrome — cream pill,
   ink text — so the toggle reads correctly against the night sky. */
.verse-body .verse-switch__side--active {
  color: rgba(10, 10, 11, 0.95);
  background: rgba(245, 233, 206, 0.96);
}

/* ═══════════════════════════════════════════════════════════ */
/* FLOATING CARDS — rendered inside drei <Html> CardPortals    */
/* ═══════════════════════════════════════════════════════════ */

.float-card {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 14px 20px;
  min-width: 160px;
  max-width: 230px;
  background:
    linear-gradient(180deg, rgba(250, 240, 214, 0.98) 0%, rgba(240, 226, 196, 0.98) 100%);
  border: 1px solid rgba(26, 18, 8, 0.32);
  border-radius: 3px;
  color: var(--vb-ink);
  cursor: default;
  position: relative;
  font-family: var(--vb-serif);
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 212, 0.45),
    0 4px 10px rgba(5, 7, 16, 0.3),
    0 18px 40px rgba(5, 7, 16, 0.45);
  transition:
    transform 240ms cubic-bezier(0.22, 0.68, 0.18, 1.02),
    box-shadow 240ms ease,
    border-color 200ms ease;
}
/* Wax-seal accent stripe down the left edge */
.float-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--vb-ember);
  border-radius: 2px;
  opacity: 0.85;
}
.float-card--clickable {
  cursor: pointer;
}
.float-card--clickable:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--vb-ink-soft);
  box-shadow:
    0 6px 14px rgba(5, 7, 16, 0.45),
    0 22px 50px rgba(216, 154, 62, 0.32),
    0 0 0 3px rgba(216, 154, 62, 0.18);
}
.float-card--clickable:focus-visible {
  outline: 2px solid var(--vb-amber);
  outline-offset: 4px;
}

.float-card--sm { padding: 10px 12px; max-width: 190px; }
.float-card--md { padding: 14px 16px; max-width: 260px; }
.float-card--lg { padding: 18px 20px; max-width: 320px; }
.float-card--hero { padding: 22px 26px; max-width: 440px; }

.float-card--amber { background: rgba(240, 184, 102, 0.95); }
.float-card--ink { background: rgba(26, 18, 8, 0.9); color: var(--vb-paper); }
.float-card--selected {
  border-color: var(--vb-amber);
  box-shadow:
    0 4px 10px rgba(5, 7, 16, 0.4),
    0 14px 36px rgba(216, 154, 62, 0.42),
    0 0 0 2px rgba(216, 154, 62, 0.4);
}
.float-card--selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--vb-amber);
}

.float-card__figure-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.float-card__figure {
  font-family: var(--vb-serif);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  font-variation-settings: 'opsz' 88;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--vb-ink);
  font-feature-settings: 'ss01', 'kern', 'liga', 'onum';
}
.float-card--lg .float-card__figure { font-size: clamp(26px, 2.2vw, 34px); }
.float-card--hero .float-card__figure { font-size: clamp(32px, 2.8vw, 44px); }
.float-card__figure-caption {
  font-family: var(--vb-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vb-ink-mute);
}

.float-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.float-card__label {
  font-family: var(--vb-serif);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 14;
  color: var(--vb-ink);
  max-width: 30ch;
}
.float-card--lg .float-card__label {
  font-size: 13.5px;
  line-height: 1.38;
}
.float-card__sublabel {
  font-family: var(--vb-serif);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--vb-ink-mute);
  font-style: normal;
  margin-top: 2px;
}
.float-card__meta {
  font-family: var(--vb-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vb-ink-mute);
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--vb-ink-pale);
}

/* ═══════════════════════════════════════════════════════════ */
/* VILLAGE NAME PLATE — Civ-style nameplate that appears at L2  */
/* ═══════════════════════════════════════════════════════════ */

.village-name-plate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px 6px;
  background: rgba(10, 13, 24, 0.82);
  border: 1px solid rgba(216, 154, 62, 0.5);
  border-radius: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.village-name-plate__arch {
  font-family: var(--vb-mono);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vb-amber-warm);
  margin-bottom: 2px;
}
.village-name-plate__name {
  font-family: var(--vb-serif);
  font-size: 18px;
  font-style: italic;
  font-variation-settings: 'opsz' 36;
  color: var(--vb-paper);
  letter-spacing: -0.005em;
}

/* ═══════════════════════════════════════════════════════════ */
/* VILLAGE HERO — L2 card that hovers over the selected village */
/* ═══════════════════════════════════════════════════════════ */

.village-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px;
  background: rgba(10, 13, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 233, 206, 0.3);
  border-radius: 4px;
  max-width: 460px;
  color: var(--vb-paper);
  box-shadow:
    0 12px 30px rgba(5, 7, 16, 0.6),
    0 0 0 1px rgba(216, 154, 62, 0.18);
}
.village-hero__kicker {
  font-family: var(--vb-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--vb-amber-warm);
}
.village-hero__title {
  font-family: var(--vb-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  color: var(--vb-paper);
  margin: 0;
  letter-spacing: -0.01em;
}
.village-hero__meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--vb-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.62);
}
.village-hero__sep { color: rgba(245, 233, 206, 0.3); }
.village-hero__figure em {
  color: var(--vb-amber-warm);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--vb-serif);
  margin-left: 4px;
}
.village-hero__reco {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 233, 206, 0.16);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.village-hero__reco-kicker {
  font-family: var(--vb-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 184, 102, 0.86);
}
.village-hero__reco-body {
  font-family: var(--vb-serif);
  font-size: 12.5px;
  line-height: 1.45;
  font-style: italic;
  color: rgba(245, 233, 206, 0.92);
  font-variation-settings: 'opsz' 18;
}

/* ═══════════════════════════════════════════════════════════ */
/* SCENE QUESTION HERO — legacy skyscraper hero (unused now)    */
/* ═══════════════════════════════════════════════════════════ */

.scene-question-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 233, 206, 0.28);
  border-radius: 4px;
  max-width: 560px;
  color: var(--vb-paper);
  box-shadow:
    0 12px 30px rgba(5, 7, 16, 0.6),
    0 0 0 1px rgba(216, 154, 62, 0.14);
}
.scene-question-hero__kicker {
  font-family: var(--vb-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--vb-amber-warm);
}
.scene-question-hero__title {
  font-family: var(--vb-serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.15;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 72;
  color: var(--vb-paper);
  margin: 0;
  letter-spacing: -0.01em;
}
.scene-question-hero__meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.62);
}
.scene-question-hero__meta-sep { color: rgba(245, 233, 206, 0.3); }
.scene-question-hero__meta-figure em {
  color: var(--vb-amber-warm);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--vb-serif);
  margin-left: 4px;
}
.scene-question-hero__reco {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 233, 206, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scene-question-hero__reco-kicker {
  font-family: var(--vb-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 184, 102, 0.86);
}
.scene-question-hero__reco-body {
  font-family: var(--vb-serif);
  font-size: 14px;
  line-height: 1.45;
  font-style: italic;
  color: rgba(245, 233, 206, 0.92);
  font-variation-settings: 'opsz' 18;
}

/* ═══════════════════════════════════════════════════════════ */
/* ATOM OVERLAY — card inside the 3D CardPortal                */
/* ═══════════════════════════════════════════════════════════ */

.atom-overlay__card {
  width: min(560px, 82vw);
  padding: 24px 28px 20px;
  background: rgba(245, 233, 206, 0.96);
  border: 1px solid rgba(26, 18, 8, 0.4);
  border-radius: 3px;
  color: var(--vb-ink);
  box-shadow:
    0 10px 20px rgba(5, 7, 16, 0.5),
    0 30px 80px rgba(5, 7, 16, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
  position: relative;
}
.atom-overlay__card--3d {
  width: min(480px, 80vw);
  padding: 20px 24px 18px;
}
.atom-overlay__card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(26, 18, 8, 0.18);
  pointer-events: none;
}
.atom-overlay__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--vb-ink-pale);
  align-items: baseline;
}
.atom-overlay__row:last-child { border-bottom: none; padding-bottom: 0; }
.atom-overlay__key {
  font-family: var(--vb-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vb-ink-mute);
}
.atom-overlay__val {
  font-family: var(--vb-serif);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  font-variation-settings: 'opsz' 24;
  color: var(--vb-ink);
}
.atom-overlay__row--query .atom-overlay__val {
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
}
.atom-overlay__row--emph .atom-overlay__val {
  color: var(--vb-ember);
  font-style: italic;
  font-weight: 500;
}
.atom-overlay__footer {
  font-family: var(--vb-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vb-ink-mute);
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.atom-overlay__footer em {
  font-family: var(--vb-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--vb-ink);
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════════ */
/* FRAME CHROME — top bar + bottom caption                     */
/* ═══════════════════════════════════════════════════════════ */

.frame-top {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.frame-top > * { pointer-events: auto; }

.frame-top__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(10, 13, 24, 0.72);
  border: 1px solid rgba(245, 233, 206, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.88);
  max-width: min(92vw, 780px);
  overflow: hidden;
}

.frame-top__close {
  all: unset;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 233, 206, 0.3);
  background: rgba(245, 233, 206, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--vb-serif);
  font-size: 12px;
  color: rgba(245, 233, 206, 0.9);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.frame-top__close:hover:not(:disabled) {
  background: rgba(245, 233, 206, 0.14);
  border-color: rgba(245, 233, 206, 0.6);
}
.frame-top__close:disabled {
  opacity: 0.45;
  cursor: default;
}

.frame-top__image-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: rgba(245, 233, 206, 0.92);
  color: var(--vb-ink);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
}
.frame-top__image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vb-ember);
}
.frame-top__image-close {
  all: unset;
  margin-left: 4px;
  cursor: pointer;
  color: var(--vb-ink-soft);
  font-size: 12px;
  line-height: 1;
}

.frame-top__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.frame-top__crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(245, 233, 206, 0.55);
}
.frame-top__crumb button {
  all: unset;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 180ms ease;
}
.frame-top__crumb button:hover { color: var(--vb-paper); }
.frame-top__crumb--active { color: var(--vb-paper); font-weight: 500; }
.frame-top__crumb-sep { color: rgba(245, 233, 206, 0.3); padding: 0 2px; }
.frame-top__continue {
  color: rgba(245, 233, 206, 0.4);
  padding-left: 8px;
  font-style: italic;
  font-family: var(--vb-serif);
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.frame-top__action {
  all: unset;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 13, 24, 0.72);
  border: 1px solid rgba(245, 233, 206, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 233, 206, 0.88);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.frame-top__action:hover:not(:disabled) {
  background: rgba(245, 233, 206, 0.12);
}
.frame-top__action:disabled {
  opacity: 0.4;
  cursor: default;
}

.frame-bottom {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
  max-width: 92vw;
}
.frame-bottom__caption {
  font-family: var(--vb-serif);
  font-size: 13.5px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 18;
  color: rgba(245, 233, 206, 0.82);
  background: rgba(10, 13, 24, 0.78);
  border: 1px solid rgba(245, 233, 206, 0.22);
  border-radius: 999px;
  padding: 8px 18px;
  max-width: 780px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}
.frame-bottom__hint {
  font-family: var(--vb-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.42);
}

/* ─── Mobile back cue (supplements breadcrumb) ────────────── */

.verse-back-3d {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 250;
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(10, 13, 24, 0.78);
  border: 1px solid rgba(245, 233, 206, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.82);
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.verse-back-3d:hover {
  border-color: rgba(245, 233, 206, 0.6);
  color: var(--vb-paper);
}

/* ═══════════════════════════════════════════════════════════ */
/* Compass rose — fixed orientation indicator                  */
/* ═══════════════════════════════════════════════════════════ */

.verse-compass {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 240;
  width: 64px;
  height: 64px;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(10, 13, 24, 0.35));
  opacity: 0.88;
  animation: compass-breathe 9s ease-in-out infinite;
}
@keyframes compass-breathe {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}
@media (max-width: 640px) {
  .verse-compass {
    top: 70px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* Loading overlay                                              */
/* ═══════════════════════════════════════════════════════════ */

.verse-loading {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #9bbde0 0%, #c4d5e8 60%, #e0d0b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 1;
  transition: opacity 700ms ease-out;
  pointer-events: auto;
}
.verse-loading--fade {
  opacity: 0;
  pointer-events: none;
}
.verse-loading__card {
  width: min(440px, 86vw);
  padding: 32px 40px 28px;
  background:
    linear-gradient(180deg, rgba(250, 240, 214, 0.99) 0%, rgba(236, 220, 188, 0.99) 100%);
  border: 1px solid rgba(26, 18, 8, 0.35);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 212, 0.45),
    0 10px 22px rgba(5, 7, 16, 0.35),
    0 30px 70px rgba(5, 7, 16, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--vb-ink);
  font-family: var(--vb-serif);
}
.verse-loading__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--vb-ember);
  border-radius: 2px;
}
.verse-loading__kicker {
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--vb-amber);
}
.verse-loading__title {
  font-family: var(--vb-serif);
  font-size: 22px;
  line-height: 1.3;
  font-variation-settings: 'opsz' 48;
  color: var(--vb-ink);
}
.verse-loading__title em {
  font-style: italic;
  color: var(--vb-ember);
}
.verse-loading__bar {
  width: 100%;
  height: 6px;
  background: rgba(26, 18, 8, 0.14);
  border-radius: 3px;
  overflow: hidden;
}
.verse-loading__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vb-amber), var(--vb-ember));
  border-radius: 3px;
  transition: width 240ms ease-out;
}
.verse-loading__stats {
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--vb-ink-mute);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════ */
/* Sound toggle                                                 */
/* ═══════════════════════════════════════════════════════════ */

.verse-body .verse-sound {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(10, 13, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 233, 206, 0.26);
  border-radius: 999px;
  font-family: var(--vb-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.75);
  cursor: pointer;
  transition: border-color 260ms ease, color 260ms ease, background 260ms ease;
}
.verse-body .verse-sound:hover {
  border-color: rgba(245, 233, 206, 0.55);
  color: var(--vb-paper);
}
.verse-body .verse-sound--on {
  color: var(--vb-amber-warm);
  border-color: rgba(216, 154, 62, 0.55);
}
.verse-body .verse-sound__wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.verse-body .verse-sound__wave span {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  height: 4px;
  opacity: 0.45;
}
.verse-body .verse-sound--on .verse-sound__wave span:nth-child(1) { animation: vb-wave1 1.4s ease-in-out infinite; }
.verse-body .verse-sound--on .verse-sound__wave span:nth-child(2) { animation: vb-wave2 1.4s ease-in-out infinite 0.15s; }
.verse-body .verse-sound--on .verse-sound__wave span:nth-child(3) { animation: vb-wave3 1.4s ease-in-out infinite 0.3s; }
@keyframes vb-wave1 { 0%,100% { height: 4px; opacity: 0.55; } 50% { height: 10px; opacity: 1; } }
@keyframes vb-wave2 { 0%,100% { height: 6px; opacity: 0.55; } 50% { height: 12px; opacity: 1; } }
@keyframes vb-wave3 { 0%,100% { height: 4px; opacity: 0.55; } 50% { height: 8px; opacity: 1; } }

/* ═══════════════════════════════════════════════════════════ */
/* Responsive — Tablet (641–1024px)                             */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .float-card { min-width: 140px; max-width: 210px; padding: 10px 12px; }
  .float-card--md { max-width: 260px; }
  .float-card--lg { max-width: 300px; }
  .village-hero { max-width: 380px; padding: 14px 16px; }
  .village-hero__title { font-size: clamp(18px, 2.2vw, 24px); }
  .atom-overlay__card { padding: 18px 20px; }
  .atom-overlay__card--3d { padding: 16px 18px; width: min(400px, 84vw); }
  .frame-top__continue { display: none; }
}

/* ═══════════════════════════════════════════════════════════ */
/* Responsive — Phone portrait (≤640px). Bigger tap targets,   */
/* chunkier cards, hide desktop breadcrumb text.               */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  /* Cards — readable at arm's length on a 375px screen */
  .float-card {
    min-width: 180px;
    max-width: 260px;
    padding: 14px 16px;
    font-size: 14px;
  }
  .float-card--sm {
    max-width: 240px;
    padding: 12px 14px;
  }
  .float-card__figure { font-size: clamp(22px, 5vw, 28px); }
  .float-card__label { font-size: 13px; line-height: 1.4; }
  .float-card__sublabel { font-size: 11.5px; }
  .float-card__meta { font-size: 8.5px; }
  .float-card--clickable:active {
    transform: translateY(-1px) scale(0.99);
  }

  /* Village hero — compact for mobile */
  .village-hero {
    max-width: 300px;
    padding: 12px 14px;
    gap: 6px;
  }
  .village-hero__kicker { font-size: 8.5px; letter-spacing: 0.22em; }
  .village-hero__title { font-size: clamp(17px, 5vw, 22px); line-height: 1.2; }
  .village-hero__meta { font-size: 8.5px; gap: 5px; }
  .village-hero__reco-body { font-size: 11.5px; }

  .village-name-plate {
    padding: 5px 12px 6px;
  }
  .village-name-plate__arch { font-size: 7.5px; }
  .village-name-plate__name { font-size: 15px; }

  /* Atom evidence card — full-width on phone */
  .atom-overlay__card--3d {
    width: min(320px, 90vw);
    padding: 14px 16px;
    gap: 6px;
  }
  .atom-overlay__row { grid-template-columns: 64px 1fr; gap: 8px; padding-bottom: 6px; }
  .atom-overlay__key { font-size: 8px; letter-spacing: 0.16em; }
  .atom-overlay__val { font-size: 11.5px; line-height: 1.35; }

  /* Chrome — hide desktop breadcrumb image pill + continue */
  .frame-top {
    top: 8px;
    max-width: 96vw;
  }
  .frame-top__pill {
    font-size: 9px;
    padding: 4px 10px 4px 4px;
    max-width: 78vw;
  }
  .frame-top__image-pill { display: none; }
  .frame-top__continue { display: none; }
  .frame-top__close {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .frame-top__action {
    width: 36px;
    height: 36px;
  }

  .frame-bottom {
    bottom: 10px;
    max-width: 94vw;
  }
  .frame-bottom__caption {
    font-size: 12px;
    padding: 6px 14px;
    line-height: 1.45;
  }
  .frame-bottom__hint {
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  /* Back button — thumb-sized */
  .verse-back-3d {
    left: 10px;
    bottom: 10px;
    padding: 10px 14px 10px 12px;
    font-size: 11px;
  }

  /* Sound toggle — thumb-sized */
  .verse-body .verse-sound {
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    font-size: 10px;
  }

  /* Wordmark + switcher — stack if tight */
  .verse-chrome {
    padding: 10px 12px;
  }
  .verse-wordmark { font-size: 13px; }

  /* 44px minimum tap target everywhere */
  .float-card--clickable,
  .frame-top__crumb button,
  .frame-top__close,
  .frame-top__action,
  .verse-back-3d,
  .verse-body .verse-sound {
    min-height: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* MobileSheet (bottom sheet wrapper; currently CSS-only shell, */
/* activated only when VerseBook mounts it on mobile)           */
/* ═══════════════════════════════════════════════════════════ */

.ml-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 16, 0.45);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.ml-sheet-backdrop--open {
  opacity: 1;
  pointer-events: auto;
}
.ml-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(10, 13, 24, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 233, 206, 0.18);
  border-radius: 14px 14px 0 0;
  padding: 10px 16px 24px;
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.3, 0.72, 0.18, 1);
  max-height: 72vh;
  overflow: hidden;
  color: var(--vb-paper);
  font-family: var(--vb-serif);
}
.ml-sheet--open {
  transform: translateY(0%);
}
.ml-sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(245, 233, 206, 0.35);
  border-radius: 2px;
  margin: 0 auto 10px;
}
.ml-sheet__body {
  overflow-y: auto;
  max-height: calc(72vh - 40px);
}

/* ═══════════════════════════════════════════════════════════ */
/* Reduced motion                                              */
/* ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .float-card { transition: none; }
  .float-card--clickable:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════ */
/* VerseInfoPanel — readable HTML side panel for L2–L5           */
/* ═══════════════════════════════════════════════════════════ */

.verse-info {
  position: fixed;
  right: 24px;
  top: 90px;
  width: 400px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: rgba(10, 13, 24, 0.93);
  border: 1px solid rgba(216, 154, 62, 0.4);
  border-radius: 14px;
  color: var(--vb-paper, #f5e9ce);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px rgba(5, 7, 16, 0.6),
    0 0 0 1px rgba(216, 154, 62, 0.18);
  z-index: 380;
  animation: verse-info-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes verse-info-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.verse-info__head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 233, 206, 0.14);
  margin-bottom: 16px;
}
.verse-info__industry {
  font-family: var(--vb-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vb-amber-warm, #f0b866);
}
.verse-info__place {
  font-family: var(--vb-serif, 'Fraunces', Georgia, serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.1;
  margin-top: 6px;
  color: var(--vb-paper, #f5e9ce);
}
.verse-info__meta {
  font-family: var(--vb-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(245, 233, 206, 0.5);
  margin-top: 6px;
}
.verse-info__question {
  font-family: var(--vb-serif, Georgia, serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--vb-paper, #f5e9ce);
  margin: 0 0 14px;
}
.verse-info__figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 1px dashed rgba(245, 233, 206, 0.12);
  margin-bottom: 14px;
}
.verse-info__figure-big {
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 28px;
  color: var(--vb-amber-warm, #f0b866);
  font-style: italic;
}
.verse-info__figure-caption {
  font-family: var(--vb-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 233, 206, 0.62);
  text-transform: uppercase;
}
.verse-info__reco {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(216, 154, 62, 0.1);
  border: 1px solid rgba(216, 154, 62, 0.3);
  border-radius: 8px;
}
.verse-info__reco-label {
  font-family: var(--vb-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 184, 102, 0.9);
  margin-bottom: 4px;
}
.verse-info__reco-body {
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(245, 233, 206, 0.92);
  margin: 0;
}
.verse-info__branches-label {
  font-family: var(--vb-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.55);
  margin: 8px 0 10px;
}
.verse-info__branches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verse-info__branch {
  all: unset;
  display: block;
  padding: 12px 14px;
  background: rgba(245, 233, 206, 0.04);
  border: 1px solid rgba(245, 233, 206, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.verse-info__branch:hover {
  background: rgba(245, 233, 206, 0.08);
  border-color: rgba(216, 154, 62, 0.55);
  transform: translateX(-2px);
}
.verse-info__branch.is-selected {
  border-color: rgba(216, 154, 62, 0.8);
  background: rgba(216, 154, 62, 0.1);
}
.verse-info__branch-label {
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 14px;
  color: var(--vb-paper, #f5e9ce);
  margin-bottom: 4px;
}
.verse-info__branch-forecast {
  font-family: var(--vb-mono, monospace);
  font-size: 11px;
  color: var(--vb-amber-warm, #f0b866);
  letter-spacing: 0.08em;
}
.verse-info__branch-conf {
  color: rgba(245, 233, 206, 0.55);
}
.verse-info__branch-note {
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 12px;
  color: rgba(245, 233, 206, 0.7);
  margin-top: 4px;
  line-height: 1.4;
}
.verse-info__breadcrumb {
  margin-bottom: 10px;
}
.verse-info__crumb-up {
  all: unset;
  font-family: var(--vb-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.65);
  cursor: pointer;
  padding: 4px 0;
}
.verse-info__crumb-up:hover {
  color: var(--vb-amber-warm, #f0b866);
}
.verse-info__hint {
  font-family: var(--vb-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(245, 233, 206, 0.45);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 233, 206, 0.12);
  text-transform: uppercase;
}
.verse-info__atom {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px 14px;
  margin: 0;
}
.verse-info__atom dt {
  font-family: var(--vb-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 233, 206, 0.55);
}
.verse-info__atom dd {
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 14px;
  color: var(--vb-paper, #f5e9ce);
  margin: 0;
  line-height: 1.4;
}
.verse-info__atom-conf {
  color: var(--vb-amber-warm, #f0b866);
  font-style: italic;
}
@media (max-width: 640px) {
  .verse-info {
    right: 10px;
    left: 10px;
    top: 66px;
    width: auto;
    max-height: 58vh;
    padding: 18px 18px 16px;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* Branch pins — compact A/B/C/D markers in 3D for L2           */
/* ═══════════════════════════════════════════════════════════ */

.verse-branch-pin {
  all: unset;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 13, 24, 0.92);
  border: 2px solid rgba(245, 233, 206, 0.55);
  color: var(--vb-paper, #f5e9ce);
  font-family: var(--vb-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 7, 16, 0.55);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.verse-branch-pin:hover {
  transform: scale(1.1);
  border-color: var(--vb-amber-warm, #f0b866);
  background: rgba(216, 154, 62, 0.18);
}
.verse-branch-pin.is-selected {
  border-color: var(--vb-amber-warm, #f0b866);
  background: rgba(216, 154, 62, 0.25);
}

/* ═══════════════════════════════════════════════════════════ */
/* Zoom controls — floating +/- buttons on the right edge        */
/* ═══════════════════════════════════════════════════════════ */

.verse-zoom {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 240;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verse-zoom__btn {
  all: unset;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(10, 13, 24, 0.72);
  border: 1px solid rgba(245, 233, 206, 0.28);
  border-radius: 10px;
  color: rgba(245, 233, 206, 0.9);
  font-family: var(--vb-mono);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.verse-zoom__btn:hover {
  border-color: rgba(245, 233, 206, 0.6);
  color: var(--vb-paper);
  background: rgba(10, 13, 24, 0.88);
}
.verse-zoom__btn:active {
  transform: scale(0.96);
}
@media (max-width: 640px) {
  .verse-zoom { right: 10px; }
  .verse-zoom__btn { width: 40px; height: 40px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* Scroll hint — bottom chevron pointing into the reader panel  */
/* ═══════════════════════════════════════════════════════════ */

.verse-scroll-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 230;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  text-decoration: none;
  color: rgba(245, 233, 206, 0.82);
  font-family: var(--vb-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10, 13, 24, 0.55);
  border: 1px solid rgba(245, 233, 206, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: verse-scroll-bounce 2.4s ease-in-out infinite;
  transition: opacity 320ms ease;
}
.verse-scroll-hint__arrow {
  font-size: 16px;
  color: rgba(245, 233, 206, 0.95);
  line-height: 1;
}
.verse-body--scrolled .verse-scroll-hint {
  opacity: 0;
  pointer-events: none;
}
/* When the reader has scrolled past the 3D scene, hide the chrome that
   only makes sense above the kingdom (caption ribbon, zoom controls,
   compass, sound toggle). The top wordmark + verse-switch stay so the
   user still has navigation. Smooth fade so the transition doesn't
   surprise. */
.verse-body--scrolled .frame-bottom,
.verse-body--scrolled .frame-top,
.verse-body--scrolled .verse-zoom,
.verse-body--scrolled .verse-compass,
.verse-body--scrolled .verse-sound {
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

/* Top chrome (mindloop wordmark + verse switch): keep visible on
   desktop because it provides navigation back to /index. On mobile
   (< 640px) it overlaps the editorial copy, so hide it once the user
   has scrolled past the 3D scene. The browser back button + the
   editorial reader's own CTAs at the bottom cover navigation. */
@media (max-width: 640px) {
  .verse-body--scrolled .verse-chrome {
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
  }
  /* The frame-top scene breadcrumb (KINGDOM/SCENE pill) is too wide
     for a 375px viewport and clips. Hide it on mobile entirely; users
     get the same affordance from the verse-switch on the right. */
  .frame-top { display: none !important; }
}
@keyframes verse-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════ */
/* VERSE READER — editorial field guide below the 3D map            */
/*                                                                  */
/* Design discipline: one accent color (oxblood), one display face, */
/* two-column editorial grid (narrow folio | wide content), no card */
/* chrome, hairline rules only. Type does the work.                 */
/* ═══════════════════════════════════════════════════════════════ */

.vr {
  --page:        #f6f1e3;   /* cool linen, not yellowed parchment */
  --page-cream:  #efe8d4;
  --page-edge:   #e5dcc3;
  --ink:         #151310;
  --ink-soft:    #44382c;
  --ink-mute:    #7a6a56;
  --ink-faint:   #b9ad93;
  --rule:        #d9d0b6;
  --rule-strong: #8a7a5e;
  --accent:      #b1382a;   /* single structural accent — oxblood */
  --accent-deep: #7e2419;

  --serif: 'Fraunces', 'EB Garamond', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  position: relative;
  margin-top: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-feature-settings: 'kern', 'liga', 'onum';   /* old-style figures in copy */
  z-index: 10;
}

/* Transition strip from meadow → linen so it looks intentional */
.vr::before {
  content: '';
  display: block;
  height: 32px;
  background: linear-gradient(
    180deg,
    #8ea85a 0%,
    #bcc98e 55%,
    var(--page) 100%
  );
}

/* ─── Block: editorial two-column grid ───────────────────────── */
.vr-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  column-gap: 88px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 180px 48px 180px;
  position: relative;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vr-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.vr-block + .vr-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 48px;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.vr-block--open { padding-top: 200px; }
.vr-block--close { padding-bottom: 220px; }

/* ─── Folio column (sticky, left) ────────────────────────────── */
.vr-folio {
  position: sticky;
  top: 120px;
  align-self: start;
  user-select: none;
}
.vr-folio__n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variation-settings: 'opsz' 144;
  margin-bottom: 18px;
}
.vr-folio__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 10px;
}
.vr-folio__of {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

/* ─── Depth indicator (5-dot progress inside folio) ──────────── */
.vr-depth {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  /* Auto-fit so 5-dot or 7-dot indicators both lay out cleanly on a row. */
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  align-items: stretch;
}
.vr-depth li {
  position: relative;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-align: center;
  padding: 6px 0 4px;
  border-top: 2px solid var(--rule);
  transition: color 300ms ease, border-color 300ms ease;
}
.vr-depth li.is-done {
  color: var(--ink-soft);
  border-top-color: var(--ink-soft);
}
.vr-depth li.is-current {
  color: var(--accent);
  border-top-color: var(--accent);
  font-weight: 600;
}
.vr-depth li.is-current::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--page);
}

/* ─── Diagrams (editorial SVG figures) ───────────────────────── */
.vr-diagram {
  margin: 28px 0 44px;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.vr-diagram > svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 28px 0 20px;
}
.vr-diagram .vr-figure-inline__cap {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
  padding: 0 0 18px;
  letter-spacing: -0.003em;
  max-width: 62ch;
}

/* Reveal stagger on diagram elements — opacity-only so we don't fight the
   SVG transform attribute, which CSS `transform` would replace on <g>. */
.dia-stage,
.dia-packet-row,
.dia-branch,
.dia-microcol,
.dia-quad,
.dia-compare-row,
.dia-call-row,
.dia-arrow {
  opacity: 0;
  transition: opacity 520ms ease;
}
.is-visible .dia-stage,
.is-visible .dia-packet-row,
.is-visible .dia-branch,
.is-visible .dia-microcol,
.is-visible .dia-quad,
.is-visible .dia-compare-row,
.is-visible .dia-call-row,
.is-visible .dia-arrow {
  opacity: 1;
}
/* Stagger delay — pulled from --i set via nth-of-type below */
.dia-stage--1 { transition-delay: 40ms; }
.dia-stage--2 { transition-delay: 260ms; }
.dia-stage--3 { transition-delay: 520ms; }
.dia-packet-row  { transition-delay: calc(80ms * var(--i, 0) + 120ms); }
.dia-branch      { transition-delay: calc(110ms * var(--i, 0) + 140ms); }
.dia-microcol    { transition-delay: calc(100ms * var(--i, 0) + 120ms); }
.dia-quad        { transition-delay: calc(140ms * var(--i, 0) + 120ms); }
.dia-compare-row { transition-delay: calc(90ms * var(--i, 0) + 120ms); }
.dia-call-row    { transition-delay: calc(120ms * var(--i, 0) + 100ms); }
/* Arrow: dash-draw, which doesn't touch transform */
.dia-arrow {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 600ms ease 400ms, opacity 300ms ease 400ms;
}
.is-visible .dia-arrow { stroke-dashoffset: 0; }
/* Index stagger: nth-of-type inside each diagram */
.dia-packet-row:nth-of-type(1) { --i: 0; }
.dia-packet-row:nth-of-type(2) { --i: 1; }
.dia-packet-row:nth-of-type(3) { --i: 2; }
.dia-packet-row:nth-of-type(4) { --i: 3; }
.dia-packet-row:nth-of-type(5) { --i: 4; }
.dia-packet-row:nth-of-type(6) { --i: 5; }
.dia-branch:nth-of-type(1) { --i: 0; }
.dia-branch:nth-of-type(2) { --i: 1; }
.dia-branch:nth-of-type(3) { --i: 2; }
.dia-branch:nth-of-type(4) { --i: 3; }
.dia-microcol:nth-of-type(1) { --i: 0; }
.dia-microcol:nth-of-type(2) { --i: 1; }
.dia-microcol:nth-of-type(3) { --i: 2; }
.dia-microcol:nth-of-type(4) { --i: 3; }
.dia-microcol:nth-of-type(5) { --i: 4; }
.dia-quad:nth-of-type(1) { --i: 0; }
.dia-quad:nth-of-type(2) { --i: 1; }
.dia-quad:nth-of-type(3) { --i: 2; }
.dia-quad:nth-of-type(4) { --i: 3; }
.dia-compare-row:nth-of-type(1) { --i: 0; }
.dia-compare-row:nth-of-type(2) { --i: 1; }
.dia-compare-row:nth-of-type(3) { --i: 2; }
.dia-compare-row:nth-of-type(4) { --i: 3; }
.dia-compare-row:nth-of-type(5) { --i: 4; }
.dia-call-row:nth-of-type(1) { --i: 0; }
.dia-call-row:nth-of-type(2) { --i: 1; }
.dia-call-row:nth-of-type(3) { --i: 2; }
.dia-call-row:nth-of-type(4) { --i: 3; }

/* ─── Afterbody (transition paragraph at end of each zoom section) */
.vr-afterbody {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 62ch;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  letter-spacing: -0.002em;
  position: relative;
}
.vr-afterbody::before {
  content: '↓';
  position: absolute;
  top: -10px;
  left: 0;
  background: var(--page);
  padding: 0 10px 0 0;
  color: var(--accent);
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* Reduced motion — collapse all diagram animations to final state */
@media (prefers-reduced-motion: reduce) {
  .dia-stage,
  .dia-packet-row,
  .dia-branch,
  .dia-microcol,
  .dia-quad,
  .dia-compare-row,
  .dia-call-row,
  .dia-arrow {
    opacity: 1;
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ─── Display headings ───────────────────────────────────────── */
.vr-h-display,
.vr-h {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 36px;
  font-weight: 400;
  letter-spacing: -0.022em;
  font-variation-settings: 'opsz' 144;
  text-wrap: balance;
}
.vr-h-display {
  font-size: clamp(44px, 5.6vw, 82px);
  line-height: 0.98;
}
.vr-h {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
}
.vr-h-display em,
.vr-h em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.vr-h-display--close em { color: var(--ink); }
.vr-h-display--close {
  font-size: clamp(40px, 5vw, 68px);
}

/* ─── Lede ───────────────────────────────────────────────────── */
.vr-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 56px;
  font-weight: 400;
  letter-spacing: -0.003em;
}

/* Hairline rule that runs the width of the content column */
.vr-hr {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* ─── I · Glossary (orient → reality mapping) ────────────────── */
.vr-gloss {
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.vr-gloss__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.vr-gloss dt {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  font-feature-settings: 'kern', 'liga';
}
.vr-gloss dd {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* ─── II/IV · Editorial numbered list ────────────────────────── */
.vr-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--rule-strong);
}
.vr-list__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.vr-list__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 4px;
  font-weight: 500;
}
.vr-list__body {
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-feature-settings: 'kern', 'liga';
}
.vr-list__h {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.vr-list__p {
  color: var(--ink-soft);
}
.vr-list--wide .vr-list__body { font-size: 20px; }

/* ─── III · Stages — day-labeled flow ────────────────────────── */
.vr-stages {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--rule-strong);
}
.vr-stages__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--rule);
}
.vr-stages__day {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.vr-stages__body { max-width: 58ch; }
.vr-stages__h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.15;
}
.vr-stages__p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── V · Rules — editorial pullquote blocks ─────────────────── */
.vr-rules {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule-strong);
}
.vr-rule {
  padding: 42px 0 42px;
  border-bottom: 1px solid var(--rule);
}
.vr-rule__meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.vr-rule__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--accent);
  font-weight: 600;
}
.vr-rule__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.vr-rule__quote {
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  font-variation-settings: 'opsz' 60;
}
.vr-rule__expand {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 58ch;
}

/* ─── VI · Figures — numbers at display scale, no boxes ──────── */
.vr-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 40px;
  row-gap: 24px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 44px;
}
.vr-figure { }
.vr-figure__v {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(96px, 11vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
  margin-bottom: 28px;
  font-variant-numeric: lining-nums;
}
.vr-figure__l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.vr-figure__p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 28ch;
}

/* ─── VII · Nav — three unadorned editorial links ────────────── */
.vr-nav {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.vr-nav__link {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 220ms ease, padding 220ms ease;
}
.vr-nav__link:hover {
  color: var(--accent);
  padding-left: 10px;
}
.vr-nav__link--primary {
  color: var(--ink);
  font-weight: 500;
}
.vr-nav__arrow {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  transition: transform 220ms ease;
}
.vr-nav__link:hover .vr-nav__arrow {
  transform: translateX(4px);
}

/* ─── Kbd inline ─────────────────────────────────────────────── */
.vr-kbd {
  display: inline-block;
  padding: 1px 7px 2px;
  margin: 0 3px;
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--page-cream);
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: normal;
  color: var(--ink);
}

/* ─── Colophon ───────────────────────────────────────────────── */
.vr-colophon {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 48px 64px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.vr-colophon__sep { color: var(--ink-faint); }
.vr-colophon sup { font-size: 0.65em; vertical-align: super; margin-left: -1px; }

/* ─── Frontispiece ───────────────────────────────────────────── */
.vr-frontispiece {
  max-width: 1120px;
  margin: 0 auto;
  padding: 180px 48px 160px;
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  column-gap: 88px;
  row-gap: 36px;
  align-items: start;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vr-frontispiece.is-visible { opacity: 1; transform: translateY(0); }
.vr-frontispiece__kicker {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.vr-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  position: relative;
}
.vr-dot--live::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: vr-pulse 1.8s ease-out infinite;
}
@keyframes vr-pulse {
  0%   { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2);   opacity: 0; }
}
.vr-frontispiece__question {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 20px;
  font-variation-settings: 'opsz' 144;
  font-style: italic;
  max-width: 18ch;
}
.vr-frontispiece__question span {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.vr-frontispiece__meta {
  grid-column: 2 / 3;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.vr-frontispiece__meta div {}
.vr-frontispiece__meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.vr-frontispiece__meta dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  font-feature-settings: 'onum';
}
.vr-frontispiece__note {
  grid-column: 2 / 3;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 60ch;
  margin: 0;
}

/* ─── Marginalia in the folio column ─────────────────────────── */
.vr-margin {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  max-width: 200px;
  letter-spacing: -0.005em;
  font-style: italic;
}
.vr-margin em {
  color: var(--accent);
  font-style: italic;
}

/* ─── Inline figure (zoom diagram) ────────────────────────────── */
.vr-figure-inline {
  margin: 48px 0 56px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.vr-figure-inline__cap {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  font-style: italic;
  max-width: 50ch;
}

/* ─── Packet TOC (document-style table of contents) ──────────── */
.vr-packet-toc {
  border-top: 1px solid var(--rule-strong);
  margin-top: 20px;
  font-family: var(--serif);
}
.vr-packet-toc__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
}
.vr-packet-toc__row {
  display: grid;
  grid-template-columns: 40px 1fr 56px;
  column-gap: 22px;
  align-items: baseline;
  padding: 20px 0 22px;
  border-bottom: 1px dotted var(--rule);
}
.vr-packet-toc__s {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 500;
  padding-top: 4px;
}
.vr-packet-toc__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vr-packet-toc__h {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.vr-packet-toc__sub {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}
.vr-packet-toc__p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-align: right;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.vr-packet-toc__foot {
  margin-top: 12px;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule-strong);
}

/* ─── 10-day progress bar ─────────────────────────────────────── */
.vr-progress {
  margin: 32px 0 44px;
  padding: 28px 0 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.vr-progress__track {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.vr-progress__tick {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums;
}
.vr-progress__tick.is-done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--page);
}
.vr-progress__tick.is-now {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  box-shadow: 0 0 0 2px rgba(177, 56, 42, 0.15);
}
.vr-progress__legend {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.vr-progress__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vr-progress__dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  display: inline-block;
}
.vr-progress__dot.is-done { background: var(--accent); border-color: var(--accent); }
.vr-progress__dot.is-now { background: transparent; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(177, 56, 42, 0.2); }

/* ─── Stage state tints (done / now / next) ──────────────────── */
.vr-stages__row--done .vr-stages__h { color: var(--ink); }
.vr-stages__row--done .vr-stages__day::after {
  content: ' · done';
  color: var(--ink-mute);
  letter-spacing: 0.14em;
}
.vr-stages__row--now {
  background: linear-gradient(90deg, rgba(177, 56, 42, 0.04), transparent 60%);
}
.vr-stages__row--now .vr-stages__day {
  color: var(--accent);
}
.vr-stages__row--now .vr-stages__day::after {
  content: ' ← now';
  color: var(--accent);
  letter-spacing: 0.14em;
}
.vr-stages__row--next .vr-stages__h { color: var(--ink-soft); }
.vr-stages__row--next .vr-stages__p { color: var(--ink-mute); }
.vr-stages__row--next .vr-stages__day { color: var(--ink-mute); }

/* ─── Buyers grid (section IV) ───────────────────────────────── */
.vr-buyers {
  margin-top: 8px;
  border-top: 1px solid var(--rule-strong);
}
.vr-buyer {
  padding: 36px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.vr-buyer__meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.vr-buyer__n { color: var(--accent); font-weight: 600; }
.vr-buyer__label { color: var(--ink); font-weight: 500; }
.vr-buyer__ref {
  margin-left: auto;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0.18em;
}
.vr-buyer__q {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 34ch;
}
.vr-buyer__b {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ─── Full-bleed pullquote (between IV and V) ────────────────── */
.vr-pullquote {
  max-width: 1120px;
  margin: 80px auto;
  padding: 100px 48px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, transparent, rgba(177, 56, 42, 0.03));
  text-align: left;
}
.vr-pullquote blockquote {
  margin: 0;
  padding: 0;
  max-width: 1024px;
}
.vr-pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
}
.vr-pullquote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ─── Rule example line (section V) ──────────────────────────── */
.vr-rule__eg {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dotted var(--rule);
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.vr-rule__eg-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}

/* ─── Metric section: comparison bars ────────────────────────── */
.vr-figure__bars {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.vr-figure__bar {
  display: grid;
  grid-template-columns: 84px 1fr 52px;
  gap: 12px;
  align-items: center;
}
.vr-figure__bar-name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.vr-figure__bar.is-live .vr-figure__bar-name { color: var(--accent); }
.vr-figure__bar-track {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
  display: block;
}
.vr-figure__bar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
}
.vr-figure__bar.is-live .vr-figure__bar-fill { background: var(--accent); }
.vr-figure__bar-value {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ─── CTA nav: add a sub-line under each link ────────────────── */
.vr-nav__link {
  grid-template-columns: 36px 1fr;
  align-items: baseline;
  padding: 28px 0 28px;
}
.vr-nav__label {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.vr-nav__sub {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-mute);
  letter-spacing: 0;
  max-width: 52ch;
  /* Without this, the sub-line auto-flows into the 36px arrow column
     and each word wraps. Pin it to column 2 (the same column as the
     label) so it reads as a continuous editorial sub-line. */
  grid-column: 2;
}
.vr-nav__link:hover .vr-nav__sub { color: var(--ink-soft); }
.vr-nav__link--primary .vr-nav__label { font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════ */
/* TRANSITIONS — staggered reveals triggered by .is-visible class   */
/* The IntersectionObserver adds .is-visible to each .vr-block;     */
/* children animate in one after another using per-item --i index. */
/* ═══════════════════════════════════════════════════════════════ */

/* Base: elements start hidden, animate up when parent becomes visible */
@keyframes vr-rise {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes vr-tick-fill {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes vr-bar-fill {
  0%   { width: 0; }
  100% { width: var(--w, 80%); }
}
@keyframes vr-number-slide {
  0%   { opacity: 0; transform: translateY(30px); letter-spacing: 0.02em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: -0.04em; }
}
@keyframes vr-dollar-print {
  0%   { opacity: 0; transform: translateY(10px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Progress bar — fire-once staggered reveal when the block intersects. */
.vr-block.is-visible .vr-progress__tick {
  animation: vr-tick-fill 480ms cubic-bezier(0.25, 0.9, 0.3, 1.3) both;
  animation-delay: calc(250ms + var(--i, 0) * 80ms);
}
.vr-block.is-visible .vr-progress__fill-bar {
  animation: vr-bar-fill 1400ms cubic-bezier(0.25, 0.7, 0.2, 1) both;
  animation-delay: calc(250ms + 8 * 80ms);
  width: 80%;
}

/* Day-by-day stage rows — gentle rise, staggered */
.vr-block.is-visible .vr-stages__row {
  animation: vr-rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(200ms + var(--i, 0) * 100ms);
}

/* Packet TOC rows — staggered reveal */
.vr-block.is-visible .vr-packet-toc__row {
  animation: vr-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-packet-toc__row:nth-child(2) { animation-delay: 200ms; }
.vr-block.is-visible .vr-packet-toc__row:nth-child(3) { animation-delay: 280ms; }
.vr-block.is-visible .vr-packet-toc__row:nth-child(4) { animation-delay: 360ms; }
.vr-block.is-visible .vr-packet-toc__row:nth-child(5) { animation-delay: 440ms; }
.vr-block.is-visible .vr-packet-toc__row:nth-child(6) { animation-delay: 520ms; }
.vr-block.is-visible .vr-packet-toc__row:nth-child(7) { animation-delay: 600ms; }

/* Buyer cards — staggered reveal */
.vr-block.is-visible .vr-buyer {
  animation: vr-rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-buyer:nth-child(1) { animation-delay: 200ms; }
.vr-block.is-visible .vr-buyer:nth-child(2) { animation-delay: 320ms; }
.vr-block.is-visible .vr-buyer:nth-child(3) { animation-delay: 440ms; }
.vr-block.is-visible .vr-buyer:nth-child(4) { animation-delay: 560ms; }

/* Glossary rows — staggered reveal */
.vr-block.is-visible .vr-gloss__row {
  animation: vr-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-gloss__row:nth-child(1) { animation-delay: 200ms; }
.vr-block.is-visible .vr-gloss__row:nth-child(2) { animation-delay: 300ms; }
.vr-block.is-visible .vr-gloss__row:nth-child(3) { animation-delay: 400ms; }
.vr-block.is-visible .vr-gloss__row:nth-child(4) { animation-delay: 500ms; }

/* Rule blocks (non-negotiables) — staggered reveal */
.vr-block.is-visible .vr-rule {
  animation: vr-rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-rule:nth-child(1) { animation-delay: 200ms; }
.vr-block.is-visible .vr-rule:nth-child(2) { animation-delay: 340ms; }
.vr-block.is-visible .vr-rule:nth-child(3) { animation-delay: 480ms; }
.vr-block.is-visible .vr-rule:nth-child(4) { animation-delay: 620ms; }

/* Metric numbers — slide-up with letter-spacing tighten for a "settle" feel */
.vr-block.is-visible .vr-figure__v {
  animation: vr-number-slide 900ms cubic-bezier(0.25, 0.8, 0.3, 1) both;
}
.vr-block.is-visible .vr-figure:nth-child(1) .vr-figure__v { animation-delay: 300ms; }
.vr-block.is-visible .vr-figure:nth-child(2) .vr-figure__v { animation-delay: 460ms; }
.vr-block.is-visible .vr-figure:nth-child(3) .vr-figure__v { animation-delay: 620ms; }
.vr-block.is-visible .vr-figure:nth-child(4) .vr-figure__v { animation-delay: 780ms; }

/* Comparison bars fill left-to-right */
.vr-block.is-visible .vr-figure__bar-fill {
  animation: vr-bar-fill 1100ms cubic-bezier(0.25, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-figure__bar:nth-child(1) .vr-figure__bar-fill { animation-delay: 800ms; --w: 16.7%; }
.vr-block.is-visible .vr-figure__bar:nth-child(2) .vr-figure__bar-fill { animation-delay: 900ms; --w: 20%; }
.vr-block.is-visible .vr-figure__bar:nth-child(3) .vr-figure__bar-fill { animation-delay: 1000ms; --w: 91.7%; }

/* Frontispiece — $49 and $69 "stamp in" */
.vr-frontispiece.is-visible .vr-frontispiece__question span {
  animation: vr-dollar-print 700ms cubic-bezier(0.25, 0.9, 0.3, 1.2) both;
  display: inline-block;
}
.vr-frontispiece.is-visible .vr-frontispiece__question span:nth-of-type(1) { animation-delay: 420ms; }
.vr-frontispiece.is-visible .vr-frontispiece__question span:nth-of-type(2) { animation-delay: 640ms; }

/* Frontispiece meta row — fade in after the question */
.vr-frontispiece.is-visible .vr-frontispiece__meta div {
  animation: vr-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-frontispiece.is-visible .vr-frontispiece__meta div:nth-child(1) { animation-delay: 720ms; }
.vr-frontispiece.is-visible .vr-frontispiece__meta div:nth-child(2) { animation-delay: 800ms; }
.vr-frontispiece.is-visible .vr-frontispiece__meta div:nth-child(3) { animation-delay: 880ms; }
.vr-frontispiece.is-visible .vr-frontispiece__meta div:nth-child(4) { animation-delay: 960ms; }

.vr-frontispiece.is-visible .vr-frontispiece__note {
  animation: vr-rise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 1080ms;
}

/* CTA links — staggered reveal */
.vr-block.is-visible .vr-nav__link {
  animation: vr-rise 500ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.vr-block.is-visible .vr-nav__link:nth-child(1) { animation-delay: 220ms; }
.vr-block.is-visible .vr-nav__link:nth-child(2) { animation-delay: 340ms; }
.vr-block.is-visible .vr-nav__link:nth-child(3) { animation-delay: 460ms; }

/* Pullquote text — slide-up on reveal */
.vr-pullquote {
  opacity: 0;
  transition: opacity 800ms ease;
}
.vr-pullquote.is-visible { opacity: 1; }
.vr-pullquote.is-visible blockquote p {
  animation: vr-rise 900ms cubic-bezier(0.25, 0.7, 0.2, 1) both;
  animation-delay: 200ms;
}

/* Reduced motion — honor user preference */
@media (prefers-reduced-motion: reduce) {
  .vr-block.is-visible .vr-progress__tick,
  .vr-block.is-visible .vr-progress__fill-bar,
  .vr-block.is-visible .vr-stages__row,
  .vr-block.is-visible .vr-packet-toc__row,
  .vr-block.is-visible .vr-buyer,
  .vr-block.is-visible .vr-gloss__row,
  .vr-block.is-visible .vr-rule,
  .vr-block.is-visible .vr-figure__v,
  .vr-block.is-visible .vr-figure__bar-fill,
  .vr-block.is-visible .vr-nav__link,
  .vr-frontispiece.is-visible .vr-frontispiece__question span,
  .vr-frontispiece.is-visible .vr-frontispiece__meta div,
  .vr-frontispiece.is-visible .vr-frontispiece__note,
  .vr-pullquote.is-visible blockquote p {
    animation: none !important;
    opacity: 1;
    transform: none;
    width: var(--w, auto);
  }
}

/* ─── Live status pill (above progress bar) ─────────────────── */
.vr-status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.vr-status__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(177, 56, 42, 0.1);
  border: 1px solid rgba(177, 56, 42, 0.3);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.24em;
}
.vr-status__meta {
  font-variant-numeric: tabular-nums;
}

/* Progress fill-bar (thin line under the 10 squares showing % complete) */
.vr-progress__fill {
  margin: 14px 0 18px;
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.vr-progress__fill-bar {
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 1px;
}

/* Fix: ticks must start invisible so the reveal animation is visible */
.vr-progress__tick {
  opacity: 0;
}
.vr-stages__row,
.vr-packet-toc__row,
.vr-buyer,
.vr-gloss__row,
.vr-rule,
.vr-nav__link,
.vr-frontispiece__meta div,
.vr-frontispiece__note {
  opacity: 0;
}
.vr-figure__v { opacity: 0; }
.vr-figure__bar-fill { width: 0; }
.vr-frontispiece__question span { opacity: 0; }

/* ─── Responsive adjustments for new elements ────────────────── */
@media (max-width: 960px) {
  .vr-frontispiece {
    grid-template-columns: 1fr;
    padding: 140px 32px 120px;
  }
  .vr-frontispiece__meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }
  .vr-frontispiece__note { grid-column: 1 / -1; }
  .vr-margin { display: none; }
  .vr-progress__track { gap: 6px; }
  .vr-packet-toc__row { grid-template-columns: 34px 1fr; }
  .vr-packet-toc__p { grid-column: 2; text-align: left; padding-top: 4px; }
  .vr-pullquote { padding: 60px 32px; }
  .vr-figure__bar { grid-template-columns: 70px 1fr 44px; }
}
@media (max-width: 560px) {
  .vr-frontispiece__meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .vr-frontispiece__question { font-size: 44px; }
  .vr-packet-toc__h { font-size: 17px; }
  .vr-progress__track { grid-template-columns: repeat(5, 1fr); row-gap: 6px; }
  .vr-progress__tick { aspect-ratio: auto; padding: 8px 0; }
}


/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .vr-block {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 36px;
    padding: 120px 32px 120px;
  }
  .vr-folio {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
  }
  .vr-folio__n { font-size: 48px; margin-bottom: 0; }
  .vr-folio__label { margin-bottom: 0; }
  .vr-figures { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .vr-figure__v { font-size: clamp(72px, 18vw, 120px); }
  .vr-stages__row { grid-template-columns: 1fr; gap: 10px; }
  .vr-stages__day { padding-top: 0; }
  .vr-gloss__row { grid-template-columns: 1fr; gap: 6px; }
  .vr-rule__quote { font-size: 24px; }
}
@media (max-width: 560px) {
  .vr-block { padding: 100px 22px; }
  .vr-h-display { font-size: 36px; }
  .vr-h { font-size: 30px; }
  .vr-lede { font-size: 17px; }
  .vr-figures { grid-template-columns: 1fr; row-gap: 32px; }
  .vr-figure__v { font-size: 96px; }
  .vr-nav__link { font-size: 20px; }
  .vr-list__body { font-size: 17px; }
  .vr-stages__h { font-size: 22px; }
}


/* ──────────────────────────────────────────────────────────────── */
/* New diagram animation classes (Phase A)                          */
/* ──────────────────────────────────────────────────────────────── */
.dia-pipeline-step,
.dia-loop-arc,
.dia-output-leaf,
.dia-grid-card,
.dia-inside-row {
  opacity: 0;
  transition: opacity 520ms ease;
}
.is-visible .dia-pipeline-step,
.is-visible .dia-loop-arc,
.is-visible .dia-output-leaf,
.is-visible .dia-grid-card,
.is-visible .dia-inside-row {
  opacity: 1;
}
.dia-pipeline-step { transition-delay: calc(110ms * var(--i, 0) + 90ms); }
.dia-loop-arc      { transition-delay: calc(150ms * var(--i, 0) + 120ms); }
.dia-output-leaf   { transition-delay: calc(130ms * var(--i, 0) + 100ms); }
.dia-grid-card     { transition-delay: calc(110ms * var(--i, 0) + 80ms); }
.dia-inside-row    { transition-delay: calc(60ms * var(--i, 0) + 100ms); }
.dia-pipeline-step:nth-of-type(1) { --i: 0; } .dia-pipeline-step:nth-of-type(2) { --i: 1; }
.dia-pipeline-step:nth-of-type(3) { --i: 2; } .dia-pipeline-step:nth-of-type(4) { --i: 3; }
.dia-pipeline-step:nth-of-type(5) { --i: 4; } .dia-pipeline-step:nth-of-type(6) { --i: 5; }
.dia-pipeline-step:nth-of-type(7) { --i: 6; }
.dia-loop-arc:nth-of-type(1) { --i: 0; } .dia-loop-arc:nth-of-type(2) { --i: 1; }
.dia-loop-arc:nth-of-type(3) { --i: 2; } .dia-loop-arc:nth-of-type(4) { --i: 3; }
.dia-loop-arc:nth-of-type(5) { --i: 4; } .dia-loop-arc:nth-of-type(6) { --i: 5; }
.dia-loop-arc:nth-of-type(7) { --i: 6; } .dia-loop-arc:nth-of-type(8) { --i: 7; }
.dia-loop-arc:nth-of-type(9) { --i: 8; } .dia-loop-arc:nth-of-type(10) { --i: 9; }
.dia-output-leaf:nth-of-type(1) { --i: 0; } .dia-output-leaf:nth-of-type(2) { --i: 1; }
.dia-output-leaf:nth-of-type(3) { --i: 2; } .dia-output-leaf:nth-of-type(4) { --i: 3; }
.dia-output-leaf:nth-of-type(5) { --i: 4; }
.dia-grid-card:nth-of-type(1) { --i: 0; } .dia-grid-card:nth-of-type(2) { --i: 1; }
.dia-grid-card:nth-of-type(3) { --i: 2; } .dia-grid-card:nth-of-type(4) { --i: 3; }
.dia-grid-card:nth-of-type(5) { --i: 4; } .dia-grid-card:nth-of-type(6) { --i: 5; }

@media (prefers-reduced-motion: reduce) {
  .dia-pipeline-step, .dia-loop-arc, .dia-output-leaf, .dia-grid-card, .dia-inside-row {
    opacity: 1; transition: none;
  }
}

/* ──────────────────────────────────────────────────────────────── */
/* Mobile cascades — phone (480px) and small phone (380px)          */
/* ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Hide the sticky folio column on phones — section number can render
     inline at top of each H2. The folio takes too much vertical space. */
  .vr-folio { display: none; }
  .vr-block {
    padding: 64px 18px;
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .vr-block--open { padding-top: 100px; }
  .vr-block--close { padding-bottom: 120px; }
  .vr-frontispiece { padding: 80px 18px 56px; }
  .vr-frontispiece__question { font-size: 32px; line-height: 1.06; }
  .vr-frontispiece__meta { grid-template-columns: 1fr; gap: 14px; }
  .vr-h-display { font-size: 32px; line-height: 1.06; }
  .vr-h { font-size: 24px; line-height: 1.1; }
  .vr-lede { font-size: 16px; line-height: 1.55; max-width: none; }
  .vr-afterbody { font-size: 15px; padding-top: 16px; }
  .vr-pullquote p { font-size: 26px !important; line-height: 1.18; }
  .vr-buyers, .vr-rules, .vr-figures { grid-template-columns: 1fr !important; gap: 28px; }
  .vr-buyer { padding: 22px 16px; }
  .vr-rule__quote { font-size: 20px; line-height: 1.18; }
  .vr-figure__v { font-size: 76px !important; }
  .vr-nav__link { font-size: 19px; padding: 18px 14px; }
  .vr-packet-toc__row { grid-template-columns: 1fr; gap: 4px; padding: 14px 12px; }
  .vr-packet-toc__head { padding: 14px 12px; flex-direction: column; gap: 4px; align-items: flex-start; }
  .vr-stages__row { grid-template-columns: 1fr; gap: 6px; }
  .vr-progress__track { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .vr-progress__tick { aspect-ratio: auto; padding: 6px 0; font-size: 10px; }
  /* Chrome touch targets — min 44x44 for accessibility */
  .verse-zoom__btn { width: 44px; height: 44px; }
  .verse-sound { min-height: 44px; min-width: 44px; padding: 12px 14px; }
  .verse-chrome { padding: 12px 14px; }
  /* No SVG text override here — each diagram component now has its own
     mobile-mode layout with appropriate font sizes baked into the SVG.
     A blanket CSS override would clash with the SVG attribute font-size
     and cause overlap. */
}

@media (max-width: 380px) {
  .vr-block { padding: 48px 14px; }
  .vr-frontispiece { padding: 64px 14px 40px; }
  .vr-frontispiece__question { font-size: 26px; line-height: 1.08; }
  .vr-h-display { font-size: 28px; }
  .vr-h { font-size: 20px; }
  .vr-lede { font-size: 15px; }
  .vr-pullquote p { font-size: 22px !important; }
  .vr-figure__v { font-size: 64px !important; }
  .vr-rule__quote { font-size: 18px; }
}

