/* ═══════════════════════════════════════════════════════════════════════════
   IPAI — Sitting With the Second Existential Risk
   Cinematic dark-mode guided tour
   Theme: default dark (ink/ivory/ember), + light + sepia via [data-theme]
   ═════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Default: dark */
  --bg:            #0a0a0b;
  --bg-2:          #111113;
  --ink:           #f4efe6;       /* ivory */
  --ink-2:         rgba(244,239,230,0.62);
  --ink-3:         rgba(244,239,230,0.36);
  --rule:          rgba(244,239,230,0.10);
  --rule-2:        rgba(244,239,230,0.18);
  --ember:         oklch(0.74 0.14 52);    /* amber / warning */
  --ember-2:       oklch(0.74 0.14 52 / 0.18);
  --steel:         oklch(0.72 0.08 235);   /* cool accent */
  --steel-2:       oklch(0.72 0.08 235 / 0.18);
  --shadow:        0 30px 80px rgba(0,0,0,0.45);
  --serif:         'Instrument Serif', Georgia, serif;
  --sans:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg:            #f6f2ea;
  --bg-2:          #ebe4d6;
  --ink:           #141312;
  --ink-2:         rgba(20,19,18,0.65);
  --ink-3:         rgba(20,19,18,0.38);
  --rule:          rgba(20,19,18,0.10);
  --rule-2:        rgba(20,19,18,0.20);
  --ember:         oklch(0.55 0.15 45);
  --ember-2:       oklch(0.55 0.15 45 / 0.15);
  --steel:         oklch(0.48 0.08 235);
  --steel-2:       oklch(0.48 0.08 235 / 0.15);
  --shadow:        0 20px 60px rgba(35,25,10,0.15);
}

[data-theme="sepia"] {
  --bg:            #1a1410;
  --bg-2:          #221a14;
  --ink:           #f2e3c7;
  --ink-2:         rgba(242,227,199,0.62);
  --ink-3:         rgba(242,227,199,0.36);
  --rule:          rgba(242,227,199,0.10);
  --rule-2:        rgba(242,227,199,0.22);
  --ember:         oklch(0.78 0.13 68);
  --ember-2:       oklch(0.78 0.13 68 / 0.18);
  --steel:         oklch(0.70 0.06 55);
  --steel-2:       oklch(0.70 0.06 55 / 0.18);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100vh;
}
body { transition: background 400ms ease, color 400ms ease; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ═══ App shell ═══════════════════════════════════════════════════════════ */

#root { height: 100vh; width: 100vw; overflow: hidden; }

.app {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.brand-title-block { display: flex; flex-direction: column; gap: 3px; max-width: 720px; }
.brand-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brand-eyebrow span {
  color: var(--ember);
  font-weight: 500;
}
.brand-title-main {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand-title-main em {
  font-style: italic;
  color: var(--ink-2);
}
.brand-colon { color: var(--ember); margin-right: 4px; }
.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  font-style: italic;
}
.brand-mark b { font-style: normal; font-weight: 400; }
.brand-sep {
  width: 1px; height: 20px; background: var(--rule-2);
}
.brand-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  font-weight: 500;
}
.brand-byline {
  color: var(--ember);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }

.ambient-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 180ms;
}
.ambient-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.ambient-btn.on { color: var(--ember); border-color: var(--ember); }
.ambient-btn .ambient-label { opacity: 0.8; }

.theme-switch {
  display: flex; gap: 0;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-2);
}
.theme-btn {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all 180ms;
}
.theme-btn.active {
  background: var(--ink);
  color: var(--bg);
}
.theme-btn:hover:not(.active) { color: var(--ink); }

.ask-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--ember);
  border-radius: 999px;
  color: var(--ember);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  transition: all 200ms;
}
.ask-btn:hover { background: var(--ember-2); }
.ask-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 2.2s ease-in-out infinite; }

.read-essay-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
  margin-right: 4px;
}
.read-essay-link:hover { color: var(--ember); border-bottom-color: var(--ember); }
.read-essay-link svg { color: var(--ember); }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Main stage ──────────────────────────────────────────────────────── */
.stage {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.stage::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, var(--steel-2), transparent 60%),
              radial-gradient(ellipse at 90% 100%, var(--ember-2), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 600ms;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1.05fr;
  gap: 0;
  padding: 40px 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms cubic-bezier(.2,.7,.2,1), transform 520ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
}
@media (min-width: 1200px) {
  .scene { padding: 56px 72px; }
}
.scene.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.scene.exit {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

/* ── Left column: the question + answer ─────────────────────────────── */
.q-col {
  padding: 8px 36px 8px 0;
  display: flex; flex-direction: column;
  max-width: 640px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
@media (min-width: 1200px) {
  .q-col { padding: 8px 48px 8px 0; }
}

.chapter-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.chapter-tag .seq { color: var(--ember); font-weight: 500; }

.provocation {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 22px;
  text-wrap: balance;
}
.provocation em { font-style: normal; }

.pull {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ember);
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--ember);
  margin-bottom: 26px;
}

.answer {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 58ch;
}
.answer strong { color: var(--ink); font-weight: 600; }
.answer em { color: var(--ink); font-style: italic; }

/* Inline markdown-ish */
.answer code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Inline reference link — discreet hint, full reveal on hover */
.ref-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--ember), var(--ember));
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  /* discreet baseline: faint dotted underline so the reader knows it's hoverable */
  border-bottom: 1px dotted var(--ink-3);
  margin-bottom: -1px;
  transition: color 200ms ease, background-size 240ms ease, border-color 200ms ease;
  cursor: help;
  display: inline;
  pointer-events: auto;
  /* hide the solid ember underline at rest */
  background-size: 0% 1px;
}
.ref-link:hover {
  color: var(--ember);
  background-size: 100% 1px;
  border-bottom-color: transparent;
}
.ref-icon {
  display: inline-block;
  margin-left: 3px;
  vertical-align: 1px;
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.ref-link:hover .ref-icon {
  opacity: 0.85;
  transform: translateX(0);
}
.answer em .ref-link { font-style: italic; }

/* ── Right column: visual ─────────────────────────────────────────────── */
.v-col {
  padding: 8px 0 8px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
}
@media (min-width: 1200px) {
  .v-col { padding: 8px 0 8px 64px; }
}

/* ── Bottom nav ──────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center;
  padding: 18px 32px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  gap: 24px;
  z-index: 20;
}
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  transition: all 180ms;
}
.nav-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.nav-btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.nav-btn.primary:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }

.progress {
  flex: 1;
  height: 30px;
  display: flex; align-items: center;
  position: relative;
}
.progress-track {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--rule);
}
.progress-fill {
  position: absolute;
  left: 0; height: 2px;
  background: var(--ember);
  transition: width 500ms cubic-bezier(.4,0,.2,1);
}
.progress-dots {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  transition: all 220ms;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.progress-dot:hover {
  border-color: var(--ink);
  transform: scale(1.3);
}
.progress-dot.seen { border-color: var(--ember); background: var(--ember); }
.progress-dot.current {
  border-color: var(--ember);
  background: var(--ember);
  transform: scale(1.6);
  box-shadow: 0 0 0 4px var(--ember-2);
}

.nav-count {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  min-width: 56px;
  text-align: center;
}
.nav-count b { color: var(--ink); font-weight: 500; }

/* ═══ VISUAL COMPONENTS ═══════════════════════════════════════════════════ */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* Fallback: if animations don't run (static capture), make sure content is visible */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; animation-delay: 0s !important; }
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* 1. Timeline */
.v-timeline { position: relative; padding: 20px 0 20px 40px; }
.v-timeline-rail {
  position: absolute; left: 8px; top: 30px; bottom: 30px;
  width: 1px; background: var(--rule-2);
}
.v-timeline-row {
  position: relative;
  padding: 16px 0;
  opacity: 0;
  animation: rise 600ms cubic-bezier(.2,.7,.2,1) forwards;
}
.v-timeline-dot {
  position: absolute; left: -38px; top: 22px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink-3);
}
.v-timeline-row.hot .v-timeline-dot {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 0 6px var(--ember-2);
}
.v-timeline-year {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.v-timeline-text {
  font-family: var(--serif); font-size: 26px; margin-top: 4px; line-height: 1.15;
}
.v-timeline-row.hot .v-timeline-text { color: var(--ember); font-style: italic; }

/* 2. Turing stat */
.v-stat-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.v-stat-col { display: flex; flex-direction: column; gap: 12px; animation: rise 700ms both; }
.v-stat-col.primary { animation-delay: 100ms; }
.v-stat-col:not(.primary) { animation-delay: 350ms; }
.v-stat-caption {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.v-stat-num {
  font-family: var(--serif);
  font-size: 140px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.v-stat-num.muted { color: var(--ink-2); }
.v-stat-num span { font-size: 64px; margin-left: 6px; opacity: 0.5; }
.v-stat-sub { font-size: 14px; color: var(--ink-2); max-width: 24ch; }
.v-stat-divider { width: 1px; height: 70%; background: var(--rule-2); }

/* 3. Inversion */
.v-inversion { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: center; height: 100%; animation: fadein 600ms both; }
.v-inv-line {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-style: italic;
  opacity: 0;
  animation: rise 600ms cubic-bezier(.2,.7,.2,1) forwards;
}
.v-inv-line.strike { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; animation-delay: 150ms; }
.v-inv-line.hot { color: var(--ember); animation-delay: 650ms; }
.v-inv-arrow { font-size: 24px; color: var(--ink-3); animation-delay: 400ms; animation: rise 500ms both; }
.v-inv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 24px;
  animation: rise 600ms 1000ms both;
}
.v-inv-grid span {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 10px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
}

/* 4. Recursion */
.v-recursion {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  height: 100%;
}
.v-rec-svg { width: 100%; max-width: 320px; color: var(--ember); animation: fadein 800ms both; }
.v-rec-loop { animation: rec-spin 12s linear infinite; transform-origin: 150px 150px; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
.v-rec-label { font-family: var(--serif); font-style: italic; font-size: 28px; fill: var(--ink); }
.v-rec-sub { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); letter-spacing: 0.15em; text-transform: uppercase; }
.v-rec-caption { display: flex; flex-direction: column; gap: 14px; }
.v-rec-step {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  padding: 12px 16px; border: 1px solid var(--rule-2); border-radius: 4px;
  opacity: 0; animation: rise 600ms forwards;
}
.v-rec-step:nth-child(1) { animation-delay: 300ms; }
.v-rec-step:nth-child(2) { animation-delay: 500ms; }
.v-rec-step:nth-child(3) { animation-delay: 700ms; }

/* 5. Witnesses */
.v-witnesses { display: flex; flex-direction: column; gap: 10px; justify-content: center; height: 100%; }
.v-witness {
  padding: 20px 24px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  opacity: 0; animation: rise 600ms forwards;
  background: var(--bg-2);
}
.v-witness-name { font-family: var(--serif); font-size: 24px; font-style: italic; }
.v-witness-role { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

/* 6. Hinton */
.v-hinton { display: flex; flex-direction: column; gap: 22px; justify-content: center; height: 100%; padding: 20px 0; }
.v-hinton-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.v-hinton-bar { position: relative; padding-bottom: 28px; }
.v-hinton-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-bottom: 10px; }
.v-hinton-track { height: 12px; background: var(--rule); border-radius: 2px; position: relative; overflow: hidden; }
.v-hinton-range { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--ember), var(--ember) 70%, oklch(0.55 0.22 28)); border-radius: 2px; transition: all 400ms; }
.v-hinton-nums { position: relative; height: 20px; }
.v-hinton-nums span {
  position: absolute; transform: translateX(-50%);
  font-family: var(--serif); font-size: 22px; color: var(--ember);
  font-variant-numeric: tabular-nums;
  top: 4px;
}
.v-hinton-quote { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.35; color: var(--ink); padding-top: 20px; border-top: 1px solid var(--rule); animation: rise 700ms 1200ms both; }

/* 7. Quotes */
.v-quotes { display: flex; flex-direction: column; gap: 28px; justify-content: center; height: 100%; }
.v-quotes figure { animation: rise 700ms both; }
.v-quotes figure:nth-child(2) { animation-delay: 300ms; }
.v-quotes blockquote {
  font-family: var(--serif); font-size: 28px; line-height: 1.25; font-style: italic;
  padding-left: 20px; border-left: 2px solid var(--ember);
  margin-bottom: 10px;
}
.v-quotes figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; padding-left: 22px; }

/* 8. Convergence */
.v-converge {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; height: 100%; padding: 20px 0;
  position: relative;
}
.v-converge-side { animation: rise 700ms both; }
.v-converge-side.left { text-align: right; animation-delay: 100ms; }
.v-converge-side.right { animation-delay: 400ms; }
.v-converge-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ember); margin-bottom: 12px; }
.v-converge-desc { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.3; }
.v-converge-plus {
  font-family: var(--serif);
  font-size: 72px; color: var(--ember); font-style: italic;
  animation: rise 700ms 250ms both;
}
.v-converge-sum {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif); font-size: 32px; font-style: italic;
  color: var(--ember);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule-2);
  animation: rise 700ms 800ms both;
}

/* 9. Indifference */
.v-indiff { display: flex; flex-direction: column; gap: 32px; justify-content: center; height: 100%; }
.v-indiff-eq {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: 72px; font-style: italic;
  animation: rise 700ms both;
}
.v-indiff-eq .op { color: var(--ember); font-size: 56px; }
.v-indiff-body {
  font-family: var(--serif); font-size: 22px; line-height: 1.45;
  color: var(--ink-2);
  animation: rise 700ms 400ms both;
}
.v-indiff-body strong { color: var(--ember); font-weight: 400; font-style: italic; }
.v-indiff-body em { color: var(--ink); font-style: italic; }

/* 10. Blackmail */
.v-blackmail { display: flex; flex-direction: column; gap: 18px; justify-content: center; height: 100%; }
.v-blackmail-head { font-family: var(--serif); font-size: 24px; font-style: italic; }
.v-blackmail-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.v-blackmail-rows { display: flex; flex-direction: column; gap: 12px; }
.v-blackmail-row {
  display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 14px;
  opacity: 0; animation: rise 500ms forwards;
}
.v-blackmail-model { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.v-blackmail-bar { height: 18px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.v-blackmail-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ember), oklch(0.55 0.22 25));
  width: 0;
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 800ms cubic-bezier(.2,.7,.2,1) forwards;
}
.v-blackmail-val { font-family: var(--mono); font-size: 13px; color: var(--ember); text-align: right; font-variant-numeric: tabular-nums; }

/* 11. Duality */
.v-duality { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: 100%; align-items: stretch; }
.v-duality-col {
  padding: 22px;
  border-radius: 6px;
  border: 1px solid var(--rule-2);
  animation: rise 700ms both;
  display: flex; flex-direction: column; gap: 16px;
}
.v-duality-col.up { border-color: var(--steel); animation-delay: 100ms; }
.v-duality-col.down { border-color: var(--ember); animation-delay: 300ms; }
.v-duality-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
}
.v-duality-col.up .v-duality-tag { color: var(--steel); }
.v-duality-col.down .v-duality-tag { color: var(--ember); }
.v-duality-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.v-duality-col li { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.2; color: var(--ink-2); }

/* 12. Scales */
.v-scales { display: flex; flex-direction: column; gap: 8px; justify-content: center; height: 100%; }
.v-scales-row {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 28px;
  animation: rise 700ms both;
}
.v-scales-row:nth-child(2) { animation-delay: 250ms; border-bottom: 1px solid var(--rule); }
.v-scales-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); width: 160px; text-transform: uppercase; line-height: 1.4; }
.v-scales-winner { font-family: var(--serif); font-size: 40px; letter-spacing: -0.01em; }
.v-scales-row:nth-child(2) .v-scales-winner { color: var(--ember); font-style: italic; }
.v-scales-arrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-2); text-transform: uppercase; text-align: right; }

/* 13. Ceiling */
.v-ceiling { display: flex; flex-direction: column; gap: 18px; justify-content: center; height: 100%; }
.v-ceiling-row {
  display: grid; grid-template-columns: 140px 1fr 60px; gap: 14px; align-items: center;
  opacity: 0; animation: rise 600ms forwards;
}
.v-ceiling-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.v-ceiling-bar { height: 22px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.v-ceiling-fill {
  height: 100%;
  background: var(--ember);
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 800ms cubic-bezier(.2,.7,.2,1) forwards;
}
.v-ceiling-flag { font-family: var(--mono); font-size: 12px; color: var(--ember); letter-spacing: 0.08em; }

/* 14. Instruments */
.v-instruments { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; height: 100%; align-items: center; }
.v-instruments-col { animation: rise 700ms both; display: flex; flex-direction: column; gap: 10px; }
.v-instruments-col.lack { animation-delay: 250ms; }
.v-instruments-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-3); margin-bottom: 8px;
}
.v-instruments-col.have .v-instruments-head { color: var(--steel); }
.v-instruments-col.lack .v-instruments-head { color: var(--ember); }
.v-instruments-item {
  font-family: var(--serif); font-size: 24px; font-style: italic;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.v-instruments-item.dim { color: var(--ink-3); font-style: normal; font-family: var(--mono); font-size: 14px; }

/* 15. Asymmetry */
.v-asym { display: flex; flex-direction: column; gap: 22px; justify-content: center; height: 100%; }
.v-asym-row { display: flex; flex-direction: column; gap: 8px; animation: rise 700ms both; }
.v-asym-row:nth-child(2) { animation-delay: 300ms; }
.v-asym-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); text-transform: uppercase; }
.v-asym-bar { height: 28px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.v-asym-fill { height: 100%; transform-origin: left; transform: scaleX(0); animation: grow 900ms cubic-bezier(.2,.7,.2,1) 200ms forwards; }
.v-asym-fill.full { background: var(--steel); }
.v-asym-fill.sliver { background: var(--ember); animation-delay: 700ms; }
.v-asym-val { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.v-asym-val.dim { color: var(--ember); }
.v-asym-note { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.35; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 18px; animation: rise 700ms 1000ms both; }

/* 16. Proposal */
.v-proposal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; text-align: center;
}
.v-proposal-pretext { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; animation: rise 600ms 100ms both; }
.v-proposal-mark { display: flex; gap: 4px; }
.v-proposal-mark span {
  font-family: var(--serif); font-size: 180px; line-height: 0.9; font-style: italic;
  color: var(--ember);
  opacity: 0; animation: rise 700ms forwards;
}
.v-proposal-mark span:nth-child(1) { animation-delay: 200ms; }
.v-proposal-mark span:nth-child(2) { animation-delay: 320ms; }
.v-proposal-mark span:nth-child(3) { animation-delay: 440ms; }
.v-proposal-mark span:nth-child(4) { animation-delay: 560ms; }
.v-proposal-sub { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); animation: rise 700ms 800ms both; }
.v-proposal-origin { font-size: 13px; color: var(--ink-2); margin-top: 16px; animation: rise 700ms 1000ms both; }
.v-proposal-origin em { color: var(--ember); font-style: italic; }

/* 17. Structure */
.v-structure { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; height: 100%; align-content: center; }
.v-structure-col {
  padding: 18px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; animation: rise 600ms forwards;
  min-height: 220px;
}
.v-structure-num { font-family: var(--mono); font-size: 11px; color: var(--ember); letter-spacing: 0.15em; }
.v-structure-h { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.1; }
.v-structure-b { font-size: 12px; color: var(--ink-2); line-height: 1.45; }

/* 18. Hard */
.v-hard { display: flex; flex-direction: column; gap: 20px; justify-content: center; height: 100%; }
.v-hard-top { font-family: var(--serif); font-size: 40px; font-style: italic; animation: rise 700ms both; }
.v-hard-list { display: flex; flex-direction: column; gap: 6px; animation: rise 700ms 300ms both; }
.v-hard-list > div { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--rule); letter-spacing: 0.03em; }
.v-hard-refrain { font-family: var(--serif); font-size: 36px; font-style: italic; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; animation: rise 700ms 700ms both; }
.v-hard-refrain .hot { color: var(--ember); }

/* 19. Burden */
.v-burden { display: flex; flex-direction: column; gap: 20px; justify-content: center; height: 100%; }
.v-burden-scale, .v-burden-after {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  padding: 16px 0;
  animation: rise 700ms both;
}
.v-burden-after { animation-delay: 500ms; }
.v-burden-pan { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.v-burden-pan-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-2); text-align: center; text-transform: uppercase; }
.v-burden-pan-weight { font-family: var(--serif); font-size: 28px; font-style: italic; padding: 10px 22px; border-radius: 4px; }
.v-burden-pan-weight.heavy { background: var(--rule-2); color: var(--ink); }
.v-burden-pan-weight.heavy.hot { background: var(--ember); color: var(--bg); }
.v-burden-pan-weight.light { color: var(--ink-3); border: 1px dashed var(--rule-2); }
.v-burden-fulcrum { width: 1px; height: 50px; background: var(--rule-2); }
.v-burden-flip { font-family: var(--mono); font-size: 11px; color: var(--ember); letter-spacing: 0.2em; text-align: center; animation: rise 700ms 300ms both; }

/* 20. End */
.v-end { position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; gap: 14px; padding: 16px; }
.v-end-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 12% 20%, var(--ink), transparent),
    radial-gradient(1px 1px at 34% 60%, var(--ink), transparent),
    radial-gradient(1px 1px at 55% 25%, var(--ember), transparent),
    radial-gradient(1px 1px at 78% 70%, var(--ink), transparent),
    radial-gradient(1px 1px at 88% 14%, var(--ink), transparent),
    radial-gradient(1px 1px at 22% 78%, var(--ink), transparent),
    radial-gradient(1px 1px at 65% 85%, var(--ember), transparent),
    radial-gradient(1px 1px at 44% 40%, var(--ink), transparent);
}
.v-end-q { font-family: var(--serif); font-size: 42px; font-style: italic; color: var(--ink-2); animation: rise 700ms both; position: relative; }
.v-end-ac { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); animation: rise 700ms 300ms both; position: relative; }
.v-end-now { font-family: var(--serif); font-size: 32px; font-style: italic; color: var(--ember); display: flex; flex-direction: column; gap: 4px; animation: rise 700ms 600ms both; position: relative; line-height: 1.15; }
.v-end-cta { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); animation: rise 700ms 1100ms both; position: relative; }
.v-end-bio {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 16px;
  max-width: 460px;
  position: relative;
  z-index: 5;
  animation: rise 700ms 1500ms both;
  text-wrap: pretty;
}
.v-end-bio a { position: relative; z-index: 6; }
.v-end-bio .ref-link { color: var(--ink-2); }
.v-end-bio .ref-link:hover { color: var(--ember); }

/* ═══ Ask-Claude drawer ═════════════════════════════════════════════════ */
.ask-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms;
}
.ask-overlay.open { opacity: 1; pointer-events: auto; }

.ask-panel {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 520px; max-width: 92vw;
  background: var(--bg);
  border-left: 1px solid var(--rule-2);
  box-shadow: -30px 0 80px rgba(0,0,0,0.4);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
.ask-panel.open { transform: translateX(0); }

.ask-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.ask-title {
  font-family: var(--serif); font-size: 22px; font-style: italic;
}
.ask-title small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ember); margin-left: 10px; text-transform: uppercase; font-style: normal; }
.ask-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
  transition: all 180ms;
}
.ask-close:hover { color: var(--ink); border-color: var(--ink); }

.ask-body {
  flex: 1; overflow-y: auto;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.ask-intro {
  font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.45;
  color: var(--ink-2);
  padding: 14px 0 6px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.ask-suggestions {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 8px;
}
.ask-suggestion {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
  transition: all 160ms;
}
.ask-suggestion:hover { border-color: var(--ember); color: var(--ember); }

.ask-thread { display: flex; flex-direction: column; gap: 18px; }
.ask-msg { display: flex; flex-direction: column; gap: 6px; animation: rise 400ms both; }
.ask-msg-from { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.16em; text-transform: uppercase; }
.ask-msg.user .ask-msg-from { color: var(--steel); }
.ask-msg.claude .ask-msg-from { color: var(--ember); }
.ask-msg-body { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ask-msg.user .ask-msg-body { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink); }
.ask-msg.claude .ask-msg-body { color: var(--ink-2); }
.ask-loading { display: flex; gap: 6px; align-items: center; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.ask-loading .blip { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); animation: blip 1.2s ease-in-out infinite; }
.ask-loading .blip:nth-child(2) { animation-delay: 0.15s; }
.ask-loading .blip:nth-child(3) { animation-delay: 0.3s; }
@keyframes blip { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.ask-foot {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--rule);
}
.ask-inputwrap {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: var(--bg-2);
  transition: border-color 160ms;
}
.ask-inputwrap:focus-within { border-color: var(--ember); }
.ask-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  resize: none;
  min-height: 20px;
  max-height: 120px;
  line-height: 1.4;
}
.ask-input::placeholder { color: var(--ink-3); }
.ask-send {
  padding: 6px 14px;
  background: var(--ember);
  color: var(--bg);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 160ms;
}
.ask-send:disabled { opacity: 0.35; cursor: not-allowed; }
.ask-foot-note { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; margin-top: 8px; text-align: center; text-transform: uppercase; }

/* ═══ Responsive ══════════════════════════════════════════════════════════ */
/* Only collapse to single column on truly narrow viewports (phones / sub-tablet) */
@media (max-width: 720px) {
  .scene { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .q-col { padding: 0; border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .v-col { padding: 0; min-height: 320px; }
  .provocation { font-size: 36px; }
  .v-stat-num { font-size: 72px; }
  .v-proposal-mark span { font-size: 88px; }
  .topbar { padding: 14px 18px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .brand-sep { display: none; }
}

/* Between narrow and wide — tighten visuals so they fit */
@media (max-width: 1100px) {
  .v-stat-num { font-size: 96px; }
  .v-stat-num span { font-size: 44px; }
  .v-proposal-mark span { font-size: 120px; }
  .v-indiff-eq { font-size: 52px; }
  .v-inv-line { font-size: 42px; }
  .v-structure { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .v-structure-col { padding: 14px 10px; min-height: 180px; }
  .v-structure-h { font-size: 17px; }
  .v-structure-b { font-size: 11px; }
}

/* ═══ Hint ════════════════════════════════════════════════════════════════ */
.kbd-hint {
  position: absolute;
  right: 20px; bottom: 14px;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.kbd-hint kbd { border: 1px solid var(--rule-2); padding: 1px 5px; border-radius: 3px; margin: 0 2px; font-size: 9px; }
.kbd-hint kbd { border: 1px solid var(--rule-2); padding: 2px 6px; border-radius: 3px; margin: 0 2px; font-size: 10px; }
.kbd-hint kbd + kbd { margin-left: 0; }
