﻿/* Anna Karenina — Editorial Magazine Theme
   19th-c. Russia · warm gold · burgundy · cream */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/CormorantGaramond-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4efe4;
  --cream-deep: #e8dfd0;
  --burgundy: #7a1f2e;
  --burgundy-deep: #4a0f18;
  --gold: #c4a035;
  --gold-light: #e8d5a3;
  --ink: #1c1512;
  --ink-muted: rgba(28, 21, 18, 0.62);
  --veil: rgba(28, 21, 18, 0.42);
  --glass: rgba(28, 21, 18, 0.72);
  --glass-light: rgba(244, 239, 228, 0.14);
  --glass-border: rgba(196, 160, 53, 0.32);
  --shadow: 0 24px 64px rgba(28, 21, 18, 0.35);
  --radius: 4px;
  --radius-lg: 12px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --slide-duration: 0.72s;
  --deck-chrome-h: 5.25rem;
  --deck-chrome-safe: calc(var(--deck-chrome-h) + env(safe-area-inset-bottom, 0px));
  /* Typography scale — projection-first */
  --font-scale: 1;
  --text-body: clamp(1.25rem, 1.85vw, 1.5rem);
  --text-quote: clamp(1.1rem, 1.55vw, 1.3rem);
  --text-caption: clamp(1rem, 1.3vw, 1.15rem);
  --line-height-body: 1.7;
  --line-height-quote: 1.72;
  /* Unified text column — argument & quote slides share the same width */
  --content-max-width: min(920px, 88vw);
}

/* In-column text stays left-aligned; outer block centering is in presentation.css */
.slide-inner-quote .eyebrow,
.slide-inner-quote .slide-eyebrow,
.slide-inner-quote .part-label,
.slide-inner-quote blockquote.quote-hero {
  width: 100%;
  max-width: min(38em, 78vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(16px * var(--font-scale));
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--burgundy-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

/* Film grain overlay — base layer (details.css adds deck layer) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.052;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.02; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(3rem, 7.5vw, 5.5rem); }
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 0.35em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

p { margin: 0; line-height: var(--line-height-body); font-size: var(--text-body); }

.eyebrow,
.slide-eyebrow,
.part-label {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.75vw, 1.4rem);
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.95;
  margin-bottom: 0.85rem;
  text-align: left;
}

.subtitle {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--cream);
  opacity: 0.92;
  font-style: italic;
  line-height: var(--line-height-body);
}

.meta {
  font-size: var(--text-caption);
  color: var(--gold-light);
  opacity: 0.75;
  letter-spacing: 0.08em;
}

.body-text {
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  opacity: 0.92;
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: pretty;
}

.body-text-muted {
  font-size: var(--text-caption);
  line-height: var(--line-height-body);
  opacity: 0.82;
  text-align: justify;
  text-justify: inter-ideograph;
  text-wrap: pretty;
}

blockquote {
  margin: 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--cream);
}

blockquote p {
  font-size: var(--text-quote);
  line-height: var(--line-height-quote);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
  text-align: justify;
  text-justify: inter-ideograph;
  orphans: 2;
  widows: 2;
}

blockquote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  opacity: 0.8;
  text-align: left;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  /* details.css layers inner shadow + corner marks */
}

.text-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

/* Clickable quotes → focus mode */
.quote-focusable {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  border-radius: var(--radius);
}

.quote-focusable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 21, 18, 0.25);
}

.quote-focusable::after {
  content: "点击放大";
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
  font-style: normal;
  pointer-events: none;
}

.quote-focusable:hover::after { opacity: 0.7; }

.char-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: var(--text-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

/* Placeholder slide */
.slide-placeholder .placeholder-box {
  margin-top: 1.5rem;
  padding: 2rem 2.5rem;
  border: 2px dashed rgba(196, 160, 53, 0.45);
  border-radius: var(--radius-lg);
  background: rgba(244, 239, 228, 0.04);
  text-align: center;
  position: relative;
}

.placeholder-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--burgundy);
  color: var(--gold-light);
  padding: 0.2rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  border-radius: 999px;
  border: 1px solid var(--gold);
}

.placeholder-hint {
  margin-top: 1rem;
  font-size: var(--text-caption);
  color: var(--gold-light);
  opacity: 0.65;
}

/* Label tear interaction */
.label-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: 420px;
}

.label-side-text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.label-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: var(--text-caption);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.25s, border-color 0.25s;
}

.sound-toggle.on { border-color: var(--gold); background: rgba(196, 160, 53, 0.12); }

.truth-reveal-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 15, 24, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.portrait-zone.revealed .truth-reveal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.truth-reveal-inner {
  text-align: center;
  padding: 2rem;
  transform: scale(0.9);
  transition: transform 0.6s var(--ease-spring);
}

.portrait-zone.revealed .truth-reveal-overlay.show .truth-reveal-inner {
  transform: scale(1);
}

.truth-reveal-inner h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.truth-reveal-inner p {
  font-size: var(--text-body);
  opacity: 0.9;
  max-width: 280px;
  margin: 0 auto;
}

.portrait-zone {
  position: relative;
  aspect-ratio: 3/4;
  max-height: 460px;
  margin: 0 auto;
  width: 100%;
  max-width: 340px;
}

.portrait-silhouette {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--cream-deep) 0%, #c9b89a 40%, #8b7355 100%);
  overflow: hidden;
}

.portrait-silhouette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.25), transparent 60%);
}

.portrait-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(74, 15, 24, 0.92) 0%, transparent 55%);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}

.portrait-zone.revealed .portrait-face {
  opacity: 1;
  transform: scale(1);
}

.portrait-face .reveal-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.portrait-face .reveal-text {
  font-size: var(--text-caption);
  line-height: var(--line-height-body);
  opacity: 0.92;
}

.labels-layer {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 3;
}

.label-tag {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  background: var(--cream);
  color: var(--burgundy-deep);
  border: 1px solid rgba(28, 21, 18, 0.15);
  box-shadow: 2px 3px 0 rgba(28, 21, 18, 0.12), 4px 6px 12px rgba(28, 21, 18, 0.18);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--ease-spring), opacity 0.45s ease, filter 0.45s ease;
  user-select: none;
  z-index: 2;
}

.label-tag::before {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 12px;
  width: 18px;
  height: 10px;
  background: linear-gradient(135deg, transparent 50%, rgba(28, 21, 18, 0.08) 50%);
  transform: rotate(8deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.label-tag:hover::before { opacity: 1; }

.label-tag::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 8px;
  width: 14px;
  height: 8px;
  background: rgba(196, 160, 53, 0.35);
  border-radius: 1px;
}

.label-tag:hover {
  transform: rotate(var(--rot, 0deg)) scale(1.05);
  box-shadow: 3px 4px 0 rgba(28, 21, 18, 0.1), 6px 10px 20px rgba(28, 21, 18, 0.22);
}

.label-tag.torn {
  pointer-events: none;
  opacity: 0;
  transform: rotate(calc(var(--rot, 0deg) + 35deg)) translate(var(--tear-x, 90px), var(--tear-y, -70px)) scale(0.5);
  filter: blur(3px) brightness(1.1);
  transition: transform 0.65s var(--ease-out), opacity 0.55s ease, filter 0.55s ease;
}

.label-tag:nth-child(1) { top: 8%;  left: 5%;  --rot: -8deg;  --tear-x: -80px; --tear-y: -90px; }
.label-tag:nth-child(2) { top: 22%; right: 0;  --rot: 6deg;   --tear-x: 100px; --tear-y: -80px; }
.label-tag:nth-child(3) { top: 38%; left: 8%;  --rot: -5deg;  --tear-x: -90px; --tear-y: -40px; }
.label-tag:nth-child(4) { top: 12%; left: 28%; --rot: 4deg;   --tear-x: -60px; --tear-y: -100px; }
.label-tag:nth-child(5) { top: 48%; right: 2%; --rot: 10deg;  --tear-x: 110px; --tear-y: 40px; }
.label-tag:nth-child(6) { top: 62%; left: -2%; --rot: -10deg; --tear-x: -100px; --tear-y: 80px; }
.label-tag:nth-child(7) { top: 28%; right: 8%; --rot: 8deg;   --tear-x: 90px; --tear-y: -60px; }
.label-tag:nth-child(8) { top: 68%; right: 12%; --rot: -6deg; --tear-x: 80px; --tear-y: 90px; }

.label-hint {
  font-size: var(--text-caption);
  color: var(--gold-light);
  opacity: 0.7;
  margin-top: 0.5rem;
}

.label-reset,
.sound-toggle {
  pointer-events: auto;
  cursor: pointer;
}

.label-reset {
  padding: 0.55rem 1.35rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.label-reset:hover {
  background: rgba(196, 160, 53, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Timeline */
.timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-track-wrap {
  position: relative;
  padding: 0 0.5rem;
}

.timeline-line-bg,
.timeline-line-progress {
  position: absolute;
  top: 2.35rem;
  left: 2rem;
  right: 2rem;
  height: 3px;
  border-radius: 2px;
}

.timeline-line-bg {
  background: rgba(196, 160, 53, 0.25);
}

.timeline-line-progress {
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  width: 0%;
  transition: width 0.55s var(--ease-out);
  box-shadow: 0 0 12px rgba(196, 160, 53, 0.45);
}

.timeline-line-progress.glow-active {
  animation: timeline-glow 2.4s ease-in-out infinite;
}

.timeline-line-progress.glow-pulse {
  animation: timeline-glow-pulse 0.6s var(--ease-out);
}

@keyframes timeline-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(196, 160, 53, 0.35); }
  50% { box-shadow: 0 0 18px rgba(196, 160, 53, 0.65), 0 0 32px rgba(122, 31, 46, 0.25); }
}

@keyframes timeline-glow-pulse {
  0% { box-shadow: 0 0 8px rgba(196, 160, 53, 0.35); }
  50% { box-shadow: 0 0 22px rgba(196, 160, 53, 0.75), 0 0 40px rgba(122, 31, 46, 0.3); }
  100% { box-shadow: 0 0 12px rgba(196, 160, 53, 0.45); }
}

.timeline-track {
  display: flex;
  gap: 0;
  position: relative;
  padding: 1.75rem 0 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.timeline-track::before { display: none; }

.timeline-node {
  flex: 1;
  min-width: 120px;
  text-align: center;
  cursor: pointer;
  padding: 0 0.5rem;
  position: relative;
  transition: transform 0.3s var(--ease-out);
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
}

.timeline-node:hover { transform: translateY(-4px); }

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--burgundy-deep);
  border: 3px solid var(--gold);
  margin: 0 auto 0.85rem;
  transition: background 0.35s, transform 0.35s var(--ease-spring), box-shadow 0.35s;
  position: relative;
  z-index: 2;
}

.timeline-node.active .timeline-dot {
  background: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 20px rgba(196, 160, 53, 0.6);
}

.timeline-node:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(196, 160, 53, 0.45);
}

.timeline-node.active:hover .timeline-dot { transform: scale(1.35); }

.timeline-node .node-year {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.12em;
  color: var(--gold-light);
  opacity: 0.75;
}

.timeline-node .node-title {
  font-size: var(--text-caption);
  margin-top: 0.35rem;
  line-height: 1.4;
  color: var(--cream);
  font-weight: 600;
}

.timeline-node.active .node-title { color: var(--gold-light); }

.timeline-preview {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 0.5rem 0.85rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
  z-index: 10;
  color: var(--gold-light);
}

.timeline-node:hover .timeline-preview {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.timeline-panel {
  min-height: 160px;
  padding: 1.5rem 1.75rem;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.timeline-panel.from-left {
  transform: translateX(-32px);
}

.timeline-panel.from-right {
  transform: translateX(32px);
}

.timeline-panel.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-panel .panel-tag {
  font-size: var(--text-caption);
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.timeline-panel .panel-note {
  margin-top: 0.85rem;
  font-size: var(--text-caption);
  opacity: 0.88;
  line-height: var(--line-height-body);
}

/* Character explorer */
.char-explorer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  min-height: 440px;
}

.char-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.char-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-left: 4px solid transparent;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: var(--text-caption);
  text-align: left;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 0.3s, border-color 0.3s, padding-left 0.3s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.char-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--char-accent, var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.char-nav-btn:hover {
  background: rgba(244, 239, 228, 0.06);
  padding-left: 1.15rem;
  transform: translateX(4px);
}

.char-nav-btn.active {
  background: rgba(244, 239, 228, 0.08);
  border-left-color: var(--char-accent, var(--gold));
  border-color: var(--glass-border);
  color: var(--gold-light);
}

.char-nav-btn.active::before { opacity: 0.08; }

.char-nav-btn .nav-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--char-accent, var(--glass-border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption);
  font-family: var(--font-display);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.char-nav-btn span:last-child { position: relative; z-index: 1; }

.char-nav-kbd {
  display: none;
}

.char-panel {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
}

.char-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--char-accent, var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 3;
  transition: background 0.45s var(--ease-out);
}

.char-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
}

.char-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s var(--ease-out);
  transform: scale(1.08);
}

.char-visual img.active {
  opacity: 1;
}

.char-visual img.ken-burns-active {
  animation: ken-burns 18s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  0% { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-3%, -2%); }
}

.char-visual .visual-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 21, 18, 0.35), transparent 55%);
  z-index: 1;
}

.char-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 0.5rem;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.char-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.char-quotes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.char-label-pill {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(196, 160, 53, 0.35);
  border-radius: 999px;
  color: var(--gold-light);
  opacity: 0.9;
}

.char-content .char-headline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.char-content .char-summary {
  font-size: var(--text-body);
  opacity: 0.9;
  line-height: var(--line-height-body);
}

.char-quotes blockquote {
  padding: 0.85rem 0 0.85rem 1.15rem;
}

/* Closing dual paths */
.dual-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.path-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.path-card.anna-path {
  background: linear-gradient(135deg, rgba(122, 31, 46, 0.35), rgba(28, 21, 18, 0.4));
}

.path-card.levin-path {
  background: linear-gradient(135deg, rgba(196, 160, 53, 0.15), rgba(28, 21, 18, 0.4));
}

.path-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}

.path-card p {
  font-size: var(--text-body);
  opacity: 0.9;
  line-height: var(--line-height-body);
}

/* Thanks slide */
.slide-thanks .thanks-message {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Reduced motion — global + component overrides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .label-tag.torn {
    transform: rotate(var(--rot, 0deg)) scale(0.8);
    filter: none;
  }

  .label-tag:hover,
  .quote-focusable:hover {
    transform: none;
  }

  .portrait-zone.revealed .portrait-face {
    transform: none;
  }

  .truth-reveal-overlay.show .truth-reveal-inner {
    transform: none;
  }

  .timeline-panel.visible {
    transform: none;
  }

  .char-visual img.active {
    transform: none;
  }

  .char-visual img.ken-burns-active {
    animation: none;
  }

  .timeline-line-progress.glow-active,
  .timeline-line-progress.glow-pulse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .label-stage,
  .char-explorer,
  .char-panel,
  .dual-paths {
    grid-template-columns: 1fr;
  }
  .timeline-track { gap: 0.5rem; }
  .timeline-node { min-width: 90px; }
}
