:root {
  color-scheme: dark;
  --bg: #020806;
  --bg-deep: #010403;
  --ink: #e8f5ec;
  --muted: #91a99a;
  --dim: #50665a;
  --bio: #7dff9f;
  --bio-bright: #b9ff8f;
  --cyan: #5fffe0;
  --gold: #d5f77a;
  --coral: #ff9b79;
  --panel: rgba(4, 16, 10, 0.82);
  --panel-solid: #06140d;
  --line: rgba(133, 255, 170, 0.18);
  --line-strong: rgba(133, 255, 170, 0.42);
  --dna-width: 38vw;
  --topbar-height: 72px;
  --ease-cinematic: cubic-bezier(0.22, 0.78, 0.16, 1);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(19, 67, 38, 0.18), transparent 38%),
    linear-gradient(310deg, rgba(14, 86, 64, 0.12), transparent 42%),
    linear-gradient(180deg, #06110b 0%, #020806 48%, #010403 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--bio-bright);
  outline-offset: 4px;
}

#universe {
  position: fixed;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(113, 255, 151, 0.028) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(113, 255, 151, 0.018) 80px),
    linear-gradient(115deg, rgba(3, 20, 12, 0.8), rgba(1, 7, 4, 0.92));
}

body.webgl-origin #universe {
  z-index: 0;
  background: radial-gradient(circle at 18% 50%, rgba(18, 82, 47, 0.2), transparent 32%), #010704;
}

.origin-cursor {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --cursor-scale: 1;
  --cursor-glow: 55px;
  position: fixed;
  z-index: 6;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(147, 255, 174, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 255, 161, 0.075), rgba(64, 220, 145, 0.025) 35%, transparent 68%);
  box-shadow: 0 0 var(--cursor-glow) rgba(65, 235, 144, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.4s ease, transform 0.65s var(--ease-cinematic);
}

.origin-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--cursor-scale));
}

.film-grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.film-grain {
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain 0.28s steps(2) infinite;
}

.vignette {
  z-index: 70;
  background:
    linear-gradient(90deg, rgba(0, 3, 2, 0.44), transparent 18%, transparent 86%, rgba(0, 3, 2, 0.27)),
    linear-gradient(180deg, rgba(0, 3, 2, 0.48), transparent 20%, transparent 78%, rgba(0, 3, 2, 0.62));
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 0.8%); }
  50% { transform: translate(0.8%, -1%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-0.8%, -0.7%); }
}

.topbar {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid rgba(129, 255, 166, 0.1);
  background: linear-gradient(180deg, rgba(2, 9, 6, 0.96), rgba(2, 9, 6, 0.58) 72%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.play-all-button {
  min-height: 30px;
  margin-left: 7px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(103, 202, 255, 0.24);
  background: rgba(5, 22, 19, 0.72);
  color: #a9dcf5;
  cursor: pointer;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.play-all-button:hover,
.play-all-button.active {
  border-color: rgba(103, 202, 255, 0.58);
  background: rgba(8, 42, 37, 0.86);
  color: #def6ff;
  box-shadow: 0 0 22px rgba(79, 184, 255, 0.09);
}

.play-all-button:focus-visible {
  outline: 2px solid rgba(103, 202, 255, 0.72);
  outline-offset: 3px;
}

.play-all-icon {
  width: 10px;
  color: #66cfff;
  text-align: center;
}

.topbar-line {
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 255, 159, 0.56), transparent);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-button,
.icon-button,
.nav-arrow,
.pause-button,
.mini-button,
.choice-button,
.chapter-link {
  border: 0;
  cursor: pointer;
}

.text-button {
  padding: 6px 2px;
  color: var(--muted);
  background: none;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-button:hover { color: var(--bio-bright); }

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 13, 8, 0.7);
}

.icon-button > span {
  display: block;
  width: 13px;
  height: 1px;
  background: currentColor;
}

.epistemic-legend {
  position: fixed;
  z-index: 95;
  top: 83px;
  right: 34px;
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(3, 14, 8, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.epistemic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.proven { background: var(--cyan); }
.dot.hypothesis { background: var(--gold); }
.dot.open { background: var(--coral); }

#journey {
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  perspective: 1500px;
}

#foreground-particles {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 18%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.62) 18%, #000 38%, #000 100%);
}

.track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding-top: var(--topbar-height);
  pointer-events: none;
}

.scene.active {
  pointer-events: auto;
}

.chapter-orbit-card {
  position: absolute;
  z-index: 8;
  left: calc(var(--dna-width) - 3vw);
  width: min(28vw, 420px);
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  overflow: visible;
  border: 1px solid rgba(157, 255, 186, 0.34);
  background: rgba(8, 27, 18, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 38px rgba(95, 255, 224, 0.12);
  opacity: 0;
  transform-origin: center center;
  pointer-events: none;
  transition:
    opacity 0.62s ease,
    transform 1.05s var(--ease-cinematic),
    filter 0.8s ease;
}

.orbit-image {
  min-height: 104px;
  overflow: hidden;
  border-right: 1px solid rgba(125, 255, 159, 0.14);
  background: #041009;
}

.orbit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.05) hue-rotate(1deg) brightness(1.06) contrast(1.04);
}

.orbit-copy {
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.orbit-copy span {
  color: #a8ffbf;
  font-size: 0.48rem;
  letter-spacing: 0.15em;
}

.orbit-copy strong {
  color: #f1f8f3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.22;
}

.scene.preview-next .chapter-orbit-card {
  top: 88%;
  opacity: 0.9;
  filter: brightness(1.04) saturate(1.02);
  transform: translateY(-50%) perspective(1000px) rotateX(-10deg) scale(0.68);
}

.scene.preview-next-2 .chapter-orbit-card {
  top: 103%;
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
}

.scene.preview-prev .chapter-orbit-card {
  top: 13%;
  opacity: 0.78;
  filter: brightness(0.98) saturate(0.98);
  transform: translateY(-50%) perspective(1000px) rotateX(10deg) scale(0.64);
}

.scene.active .chapter-orbit-card {
  top: 80%;
  opacity: 0;
  transform: translateY(-50%) perspective(1000px) rotateX(0) scale(0.94);
  animation: orbit-dock 1.05s var(--ease-cinematic) both;
}

@keyframes orbit-dock {
  0% {
    top: 88%;
    opacity: 0.9;
    filter: brightness(1.04) saturate(1.02);
    transform: translateY(-50%) perspective(1000px) rotateX(-10deg) scale(0.68);
  }
  48% {
    top: 84%;
    opacity: 0.62;
    filter: brightness(1.03) blur(0);
    transform: translateY(-50%) perspective(1000px) rotateX(-3deg) scale(0.84);
  }
  100% {
    top: 80%;
    opacity: 0;
    filter: brightness(1) blur(0);
    transform: translateY(-50%) perspective(1000px) rotateX(0) scale(0.94);
  }
}

.track[data-direction="up"] .scene.active .chapter-orbit-card {
  top: 20%;
  animation-name: orbit-dock-up;
}

@keyframes orbit-dock-up {
  0% {
    top: 13%;
    opacity: 0.78;
    filter: brightness(0.98) saturate(0.98);
    transform: translateY(-50%) perspective(1000px) rotateX(10deg) scale(0.64);
  }
  48% {
    top: 16%;
    opacity: 0.6;
    filter: brightness(1.01) saturate(1);
    transform: translateY(-50%) perspective(1000px) rotateX(3deg) scale(0.82);
  }
  100% {
    top: 20%;
    opacity: 0;
    filter: brightness(1);
    transform: translateY(-50%) perspective(1000px) rotateX(0) scale(0.92);
  }
}

.scene-grid {
  position: relative;
  z-index: auto;
  width: calc(100vw - var(--dna-width) + 6vw);
  height: calc(100dvh - var(--topbar-height));
  margin-left: calc(var(--dna-width) - 6vw);
  padding: 4.8vh 3.2vw 6.5vh 3.2vw;
  display: flex;
  align-items: center;
}

.scene-copy {
  position: relative;
  z-index: 4;
  width: min(44vw, 660px);
  max-width: 660px;
  margin-left: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translate3d(0, 82px, -80px) rotateX(-5deg);
  filter: blur(7px);
  transition:
    opacity 0.56s ease,
    transform 1s var(--ease-cinematic),
    filter 0.72s ease;
}

.scene.active .scene-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg);
  filter: blur(0);
  transition-delay: 0.28s;
}

.scene.past .scene-copy {
  transform: translate3d(0, -86px, -90px) rotateX(5deg);
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-status {
  margin-left: 6px;
  padding-left: 13px;
  border-left: 1px solid var(--status-color);
  color: var(--status-color);
}

.opening-label,
.overline {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--bio-bright);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scene h1,
.scene h2 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.scene h1 {
  font-size: clamp(4rem, 7.2vw, 9.4rem);
  line-height: 0.83;
}

.scene h2 {
  font-size: clamp(2.25rem, 3.55vw, 4.55rem);
  line-height: 0.94;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d8eadf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  line-height: 1.45;
}

.body-copy {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(0.84rem, 0.9vw, 1rem);
  line-height: 1.72;
}

.narration-module {
  position: relative;
  z-index: 12;
  width: min(500px, 100%);
  margin-top: 15px;
}

.narration-player {
  width: min(430px, 100%);
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr) auto 28px auto;
  align-items: center;
  gap: 10px;
  color: #a9c9d4;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.narration-toggle,
.narration-restart,
.transcript-toggle {
  min-height: 30px;
  border: 1px solid rgba(103, 202, 255, 0.22);
  background: rgba(4, 18, 17, 0.62);
  color: #a9dcf5;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.narration-toggle {
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.narration-restart {
  width: 28px;
  padding: 0;
  font-size: 0.9rem;
}

.transcript-toggle {
  min-width: 58px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transcript-chevron {
  display: inline-block;
  color: #66cfff;
  font-size: 0.86rem;
  line-height: 0.7;
  transform: translateY(-1px);
  transition: transform 0.32s var(--ease-cinematic);
}

.narration-module.transcript-open .transcript-chevron {
  transform: translateY(-1px) rotate(180deg);
}

.narration-toggle:hover,
.narration-restart:hover,
.transcript-toggle:hover,
.narration-module.transcript-open .transcript-toggle,
.narration-player.playing .narration-toggle {
  border-color: rgba(103, 202, 255, 0.56);
  background: rgba(8, 34, 34, 0.76);
  color: #d6f3ff;
}

.narration-toggle:focus-visible,
.narration-restart:focus-visible,
.transcript-toggle:focus-visible {
  outline: 2px solid rgba(103, 202, 255, 0.72);
  outline-offset: 2px;
}

.narration-icon {
  width: 10px;
  color: #66cfff;
  font-size: 0.72rem;
  text-align: center;
}

.narration-track {
  height: 2px;
  overflow: hidden;
  background: rgba(112, 180, 198, 0.18);
}

.narration-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4fb8ff, #72e5dc);
  box-shadow: 0 0 9px rgba(79, 184, 255, 0.48);
}

.narration-time {
  min-width: 66px;
  color: #88aeb8;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.narration-transcript {
  position: absolute;
  top: 50%;
  left: calc(min(430px, 100%) + 16px);
  width: min(32vw, 560px);
  max-height: min(570px, 72vh);
  overflow: hidden;
  border: 1px solid rgba(103, 202, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(11, 35, 31, 0.98), rgba(3, 14, 13, 0.985)),
    var(--panel-solid);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), 0 0 38px rgba(95, 255, 224, 0.06);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-14px, -50%, 0) scale(0.985);
  transform-origin: center left;
  transition: opacity 0.24s ease, transform 0.38s var(--ease-cinematic), visibility 0s linear 0.38s;
}

.narration-module.transcript-open .narration-transcript {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
  transition-delay: 0s;
}

.transcript-heading {
  min-height: 64px;
  padding: 13px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(103, 202, 255, 0.14);
  background: linear-gradient(90deg, rgba(79, 184, 255, 0.08), transparent 72%);
}

.transcript-heading div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.transcript-heading span {
  color: #71c9e9;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.transcript-heading strong {
  overflow: hidden;
  color: #e4f5f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transcript-heading .transcript-duration {
  flex: 0 0 auto;
  color: #7d9ea5;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.transcript-copy {
  max-height: min(500px, calc(72vh - 64px));
  overflow-y: auto;
  padding: 14px 18px 18px;
  scrollbar-color: rgba(103, 202, 255, 0.38) transparent;
  scrollbar-width: thin;
}

.transcript-copy p {
  margin: 0 0 0.78em;
  color: #b7cbc4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 0.83vw, 0.92rem);
  line-height: 1.62;
}

.transcript-copy p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: #72e5dc;
  font-size: 2.5em;
  line-height: 0.78;
}

.transcript-copy p:last-child { margin-bottom: 0; }

.reflection {
  position: relative;
  margin: 19px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--line);
  color: #cce1d2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.5;
}

.reflection::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--bio-bright);
}

.continue-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--bio);
  font-size: 0.61rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.continue-cue::before {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--bio));
  animation: pulse-down 1.8s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { transform: scaleY(0.45) translateY(-4px); opacity: 0.4; }
  50% { transform: scaleY(1) translateY(4px); opacity: 1; }
}

.visual-shell {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  max-width: none;
  opacity: 0;
  transform: translate3d(0, 24vh, -150px) scale(0.92);
  filter: blur(7px);
  pointer-events: none;
  transition:
    opacity 0.58s ease,
    transform 1.15s var(--ease-cinematic),
    filter 0.8s ease;
}

.scene.active .visual-shell {
  opacity: 0.93;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition-delay: 0.18s;
}

.scene.past .visual-shell {
  transform: translate3d(0, -42vh, -190px) scale(0.72);
}

.visual-shell::before {
  display: none;
}

.visual-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--panel-solid);
  box-shadow: none;
}

.visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
  opacity: 0.96;
  transform: scale(1.06) translate3d(var(--image-shift-x, 0), var(--image-shift-y, 0), 0);
  filter: saturate(0.94) contrast(1.04) brightness(0.9) hue-rotate(2deg);
  transition: transform 8s cubic-bezier(0.18, 0.8, 0.16, 1), filter 1.1s ease;
}

.scene.active .visual-frame img {
  transform: scale(1.012) translate3d(var(--image-shift-x, 0), var(--image-shift-y, 0), 0);
  filter: saturate(1.06) contrast(1.035) brightness(1.065) hue-rotate(0deg);
}

.visual-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #010704 0%, rgba(1, 7, 4, 0.99) 8%, rgba(1, 7, 4, 0.93) 20%, rgba(1, 7, 4, 0.62) 38%, rgba(1, 7, 4, 0.08) 68%, transparent 80%),
    linear-gradient(180deg, rgba(1, 6, 3, 0.27), transparent 24%, transparent 78%, rgba(1, 6, 3, 0.38));
}

.visual-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 76% 48%, transparent 0 30%, rgba(1, 6, 3, 0.035) 62%, rgba(1, 6, 3, 0.2) 100%);
}

.interaction,
.decision-block {
  position: relative;
  margin-top: 12px;
  border: 1px solid rgba(125, 255, 159, 0.18);
  background: rgba(3, 14, 8, 0.94);
}

.interaction {
  padding: 13px 14px;
}

.interaction-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interaction-output {
  color: var(--bio-bright);
}

.formula-row,
.mini-controls,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-button,
.choice-button {
  padding: 8px 10px;
  border: 1px solid rgba(125, 255, 159, 0.16);
  border-radius: 2px;
  background: rgba(122, 255, 156, 0.035);
  color: var(--muted);
  font-size: 0.66rem;
  transition: 0.22s ease;
}

.mini-button:hover,
.choice-button:hover,
.mini-button[aria-pressed="true"],
.choice-button.selected {
  border-color: rgba(125, 255, 159, 0.5);
  background: rgba(125, 255, 159, 0.11);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(95, 255, 224, 0.08);
}

.range-control {
  width: 100%;
  accent-color: var(--bio);
}

.sim-canvas {
  display: block;
  width: 100%;
  height: 105px;
  border: 1px solid rgba(125, 255, 159, 0.11);
  background: #031008;
  cursor: crosshair;
}

.decision-block {
  padding: 13px 14px;
}

.decision-prompt {
  margin: 0 0 10px;
  color: #d0e4d7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.definition-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.definition-pill {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 1px solid var(--bio);
  background: rgba(6, 24, 14, 0.78);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.definition-pill strong {
  color: var(--dim);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.definition-pill span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.definition-pill small { display: none; }

.definition-card {
  width: min(600px, 100%);
  margin-top: 18px;
  padding: 17px 18px 16px;
  border: 1px solid rgba(213, 169, 71, 0.25);
  background:
    radial-gradient(circle at 92% 12%, rgba(213, 169, 71, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(5, 23, 14, 0.96), rgba(3, 13, 8, 0.93));
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 223, 148, 0.04);
}

.definition-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.definition-card-head > div { display: grid; gap: 3px; }

.definition-card-head span {
  color: #c69a43;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
}

.definition-card-head strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
}

.definition-code { padding-top: 4px; }

.definition-summary {
  margin: 10px 0 0;
  max-width: 520px;
  color: #a9c2b1;
  font-size: 0.72rem;
  line-height: 1.48;
}

.save-definition {
  margin-top: 13px;
  padding: 9px 13px;
  border: 1px solid rgba(213, 169, 71, 0.36);
  background: rgba(213, 169, 71, 0.075);
  color: #edcf88;
  cursor: pointer;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.22s ease;
}

.save-definition:hover:not(:disabled) {
  border-color: rgba(238, 200, 112, 0.72);
  background: rgba(213, 169, 71, 0.15);
  color: #fff0bd;
  box-shadow: 0 0 24px rgba(213, 169, 71, 0.09);
}

.save-definition:disabled {
  opacity: 0.35;
  cursor: default;
}

.intro-backdrop,
.finale-backdrop {
  position: absolute;
  z-index: 0;
  top: var(--topbar-height);
  right: 0;
  bottom: 0;
  left: calc(var(--dna-width) - 6vw);
  background-size: cover;
  background-position: 58% center;
  opacity: 0;
  filter: saturate(0.91) hue-rotate(6deg) brightness(0.86) contrast(1.06);
  transform: scale(1.07);
  transition: opacity 1.2s ease, transform 7s var(--ease-cinematic);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 18%, black 46%, black 100%);
}

.scene.active .intro-backdrop,
.scene.active .finale-backdrop {
  opacity: 0.67;
  transform: scale(1.01);
}

.intro-scene .scene-grid,
.finale-scene .scene-grid {
  display: flex;
}

.intro-scene .scene-copy,
.finale-scene .scene-copy {
  width: min(46vw, 680px);
  padding: 30px 0;
}

.finale-scene .scene-copy {
  max-height: calc(100dvh - var(--topbar-height) - 28px);
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 255, 159, 0.24) transparent;
}

.intro-scene .body-copy,
.finale-scene .body-copy {
  color: #afc6b6;
}

.dna-console {
  position: fixed;
  z-index: 35;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--dna-width);
  overflow: hidden;
  border: 0;
  background: transparent;
}

body.webgl-origin .dna-console {
  border: 0;
  background: transparent;
  pointer-events: none;
}

body.webgl-origin .dna-console .nav-actions {
  pointer-events: auto;
}

.dna-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
}

body.webgl-origin .dna-stage::before {
  display: none;
}

.dna-stage::before {
  content: "";
  position: absolute;
  inset: 5% 7%;
  background:
    linear-gradient(90deg, transparent, rgba(62, 255, 151, 0.035) 24%, rgba(92, 255, 221, 0.11) 50%, rgba(142, 255, 104, 0.045) 76%, transparent),
    repeating-linear-gradient(180deg, transparent 0 55px, rgba(107, 255, 155, 0.035) 56px, transparent 57px);
  filter: blur(18px);
  pointer-events: none;
}

.dna-reference {
  position: absolute;
  z-index: 1;
  top: -9%;
  left: -2%;
  width: 104%;
  height: 118%;
  overflow: hidden;
  opacity: 0.72;
  filter:
    drop-shadow(0 0 22px rgba(50, 141, 88, 0.2))
    drop-shadow(0 0 58px rgba(38, 105, 64, 0.12));
  transform: perspective(1100px) translateX(var(--dna-shift, 0px)) rotateY(var(--dna-turn, 0deg)) scale(1.035);
  transform-origin: center;
  transition: transform 1.06s var(--ease-cinematic), filter 0.72s ease, opacity 0.72s ease;
  pointer-events: none;
}

.dna-reference::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 7, 4, 0.32), transparent 22%, transparent 72%, rgba(1, 7, 4, 0.52)),
    linear-gradient(180deg, rgba(1, 7, 4, 0.18), transparent 17%, transparent 81%, rgba(1, 7, 4, 0.28));
  pointer-events: none;
}

.dna-reference img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.66) saturate(0.82) contrast(1.15);
  transform: scale(1.015);
  mask-image: linear-gradient(180deg, transparent 0%, black 7%, black 93%, transparent 100%);
}

.dna-reference-shine {
  display: none;
}

.dna-stage.turning-forward .dna-reference {
  animation: helix-turn-forward 1.06s var(--ease-cinematic) both;
}

.dna-stage.turning-back .dna-reference {
  animation: helix-turn-back 1.06s var(--ease-cinematic) both;
}

@keyframes helix-turn-forward {
  0% {
    opacity: 0.72;
    transform: perspective(1100px) translateX(var(--dna-shift-from, 0px)) rotateY(var(--dna-turn-from, 0deg)) scale(1.035);
  }
  46% {
    opacity: 0.32;
    filter: brightness(0.55) blur(1.8px);
    transform: perspective(1100px) translateX(8px) rotateY(calc(var(--dna-turn-from, 0deg) + 72deg)) scaleX(0.58) scaleY(1.02);
  }
  54% {
    opacity: 0.34;
    filter: brightness(0.6) blur(1.5px);
    transform: perspective(1100px) translateX(-8px) rotateY(calc(var(--dna-turn, 0deg) - 72deg)) scaleX(0.58) scaleY(1.02);
  }
  100% {
    opacity: 0.72;
    filter: none;
    transform: perspective(1100px) translateX(var(--dna-shift, 0px)) rotateY(var(--dna-turn, 0deg)) scale(1.035);
  }
}

@keyframes helix-turn-back {
  0% {
    opacity: 0.72;
    transform: perspective(1100px) translateX(var(--dna-shift-from, 0px)) rotateY(var(--dna-turn-from, 0deg)) scale(1.035);
  }
  46% {
    opacity: 0.32;
    filter: brightness(0.55) blur(1.8px);
    transform: perspective(1100px) translateX(-8px) rotateY(calc(var(--dna-turn-from, 0deg) - 72deg)) scaleX(0.58) scaleY(1.02);
  }
  54% {
    opacity: 0.34;
    filter: brightness(0.6) blur(1.5px);
    transform: perspective(1100px) translateX(8px) rotateY(calc(var(--dna-turn, 0deg) + 72deg)) scaleX(0.58) scaleY(1.02);
  }
  100% {
    opacity: 0.72;
    filter: none;
    transform: perspective(1100px) translateX(var(--dna-shift, 0px)) rotateY(var(--dna-turn, 0deg)) scale(1.035);
  }
}

.dna-stage.fallback-only .dna-reference {
  opacity: 0.82;
  filter: drop-shadow(0 0 32px rgba(61, 157, 94, 0.22));
}

#dna-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0.22;
  mix-blend-mode: screen;
  filter: saturate(0.62) brightness(0.72);
}

.dna-tooltip {
  position: absolute;
  z-index: 10;
  top: var(--tooltip-y, 50%);
  left: min(68%, 370px);
  width: min(230px, 50%);
  padding: 9px 11px;
  border-left: 1px solid var(--bio-bright);
  background: rgba(2, 12, 7, 0.94);
  color: #d8eddf;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  font-size: 0.65rem;
  line-height: 1.35;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-actions {
  position: absolute;
  z-index: 9;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 255, 159, 0.2);
  border-radius: 50%;
  background: rgba(3, 15, 8, 0.9);
  color: var(--bio-bright);
}

.nav-arrow:hover:not(:disabled) {
  border-color: rgba(125, 255, 159, 0.65);
  box-shadow: 0 0 24px rgba(95, 255, 224, 0.12);
}

.nav-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.pause-button {
  padding: 9px 12px;
  border: 1px solid rgba(125, 255, 159, 0.14);
  background: rgba(3, 15, 8, 0.82);
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.progress {
  position: fixed;
  z-index: 100;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(125, 255, 159, 0.06);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--bio), var(--cyan));
  box-shadow: 0 0 11px rgba(95, 255, 224, 0.7);
  transition: width 0.9s var(--ease-cinematic);
}

.chapter-dialog {
  width: min(1160px, calc(100vw - 54px));
  max-height: min(820px, calc(100dvh - 54px));
  padding: 0;
  border: 1px solid rgba(125, 255, 159, 0.2);
  border-radius: 4px;
  background: rgba(3, 13, 8, 0.97);
  color: var(--ink);
  box-shadow: 0 45px 140px rgba(0, 0, 0, 0.76);
}

.chapter-dialog::backdrop {
  background: rgba(0, 5, 3, 0.76);
  backdrop-filter: blur(10px);
}

.dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  background: #04130b;
}

.dialog-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.close-button {
  font-size: 1.4rem;
}

.chapter-map {
  max-height: calc(100dvh - 170px);
  overflow: auto;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.act-group h3 {
  margin: 0 0 12px;
  color: var(--bio-bright);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.act-chapters {
  display: grid;
  gap: 2px;
}

.chapter-link {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 8px 6px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.chapter-link span:first-child {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.chapter-link:hover,
.chapter-link.current {
  background: rgba(125, 255, 159, 0.065);
  color: var(--ink);
}

.chapter-link.current span:first-child { color: var(--bio); }

.sources-dialog {
  width: min(1040px, calc(100vw - 54px));
}

.sources-content {
  max-height: calc(100dvh - 170px);
  overflow: auto;
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 255, 159, 0.28) transparent;
}

.methodology-card {
  padding: 24px 26px;
  border: 1px solid rgba(125, 255, 159, 0.2);
  background:
    radial-gradient(circle at 90% 0%, rgba(95, 255, 224, 0.09), transparent 35%),
    rgba(6, 25, 15, 0.74);
}

.source-index {
  color: var(--bio-bright);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.methodology-card h3,
.source-group-intro h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.methodology-card > p,
.source-group-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.methodology-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.methodology-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b8ccbf;
  font-size: 0.67rem;
}

.source-groups {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.source-group {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 0.66fr);
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.source-group:first-child { border-top: 0; }

.source-list { display: grid; gap: 7px; }

.source-entry {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 255, 159, 0.11);
  background: rgba(3, 14, 8, 0.64);
  color: inherit;
  text-decoration: none;
  transition: 0.22s ease;
}

.source-entry:hover {
  border-color: rgba(125, 255, 159, 0.35);
  background: rgba(9, 32, 19, 0.78);
  transform: translateX(3px);
}

.source-arrow {
  padding-top: 2px;
  color: var(--bio);
  font-size: 0.8rem;
}

.source-entry > span:last-child { display: grid; gap: 4px; }

.source-entry strong {
  color: #dcece2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.35;
}

.source-entry small {
  color: #71dba1;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-entry em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.48;
}

.source-disclaimer {
  margin: 26px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.65rem;
  line-height: 1.55;
}

.noscript {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 32px;
  background: var(--bg);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  :root { --dna-width: 35vw; }

  .scene-grid {
    width: calc(100vw - var(--dna-width) + 3vw);
    margin-left: calc(var(--dna-width) - 3vw);
    padding-right: 3vw;
  }

  .narration-transcript {
    top: calc(100% + 10px);
    left: 0;
    width: min(500px, calc(100vw - var(--dna-width) - 5vw));
    max-height: min(360px, 42vh);
    transform: translateY(-8px) scale(0.985);
    transform-origin: top left;
  }

  .narration-module.transcript-open .narration-transcript {
    transform: translateY(0) scale(1);
  }

  .transcript-copy {
    max-height: min(292px, calc(42vh - 64px));
  }

  .scene h2 { font-size: clamp(2.2rem, 4.2vw, 4.4rem); }
  .body-copy { line-height: 1.58; }
  .visual-shell { max-width: none; }
}

@media (max-width: 900px) {
  :root {
    --dna-width: 31vw;
    --topbar-height: 64px;
  }

  .topbar {
    padding: 0 18px;
    grid-template-columns: 1fr auto;
  }

  .topbar-center { display: none; }
  .brand { font-size: 0.63rem; }
  .text-button { display: none; }
  .sources-button { display: inline-block; }

  .scene-grid {
    width: calc(100vw - var(--dna-width) + 4vw);
    height: calc(100dvh - var(--topbar-height));
    margin-left: calc(var(--dna-width) - 4vw);
    padding: 3vh 18px 68px 2vw;
    display: flex;
    align-items: center;
  }

  .chapter-orbit-card {
    left: calc(var(--dna-width) - 2vw);
    right: auto;
    width: min(52vw, 340px);
  }

  .scene.preview-next .chapter-orbit-card {
    top: 90%;
    transform: translateY(-50%) perspective(900px) rotateX(-10deg) scale(0.58);
  }

  .scene.preview-prev .chapter-orbit-card {
    top: 10%;
    transform: translateY(-50%) perspective(900px) rotateX(10deg) scale(0.54);
  }

  .scene.preview-next-2 .chapter-orbit-card { display: none; }

  .scene-copy {
    padding: 14px 14px 0;
    width: min(62vw, 680px);
    max-width: 680px;
  }

  .scene h2 { font-size: clamp(2rem, 6vw, 3.7rem); }
  .lead { margin-top: 12px; font-size: clamp(0.92rem, 2vw, 1.15rem); }
  .body-copy { margin-top: 10px; font-size: 0.78rem; line-height: 1.48; }
  .chapter-meta { margin-bottom: 10px; }
  .continue-cue { display: none; }

  .visual-shell {
    width: 100%;
    max-width: none;
  }

  .visual-frame { max-height: none; }
  .interaction { padding: 9px 10px; }
  .decision-block { margin: 8px 14px 0; }

  .nav-actions { right: 10px; bottom: 14px; }
  .pause-button { display: none; }
  .dna-tooltip { left: 44%; width: 55%; font-size: 0.58rem; }

  .intro-scene .scene-grid,
  .finale-scene .scene-grid {
    display: flex;
  }

  .intro-backdrop,
  .finale-backdrop { left: calc(var(--dna-width) - 4vw); }
  .intro-scene h1 { font-size: clamp(4rem, 12vw, 7rem); }
  .chapter-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-group { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 620px) {
  :root { --dna-width: 25vw; }

  .topbar { padding: 0 12px; }
  .brand span:last-child { display: none; }
  .topbar-actions { gap: 8px; }
  .epistemic-legend { right: 12px; left: 12px; flex-wrap: wrap; }

  .scene-grid {
    width: calc(100vw - var(--dna-width) + 3vw);
    margin-left: calc(var(--dna-width) - 3vw);
    padding: 2vh 10px 58px 2vw;
  }

  .chapter-orbit-card {
    left: calc(var(--dna-width) - 1vw);
    right: auto;
    width: 70vw;
    grid-template-columns: 36% 64%;
  }
  .orbit-image { min-height: 84px; }
  .orbit-copy { padding: 10px 11px; }
  .orbit-copy strong { font-size: 0.78rem; }
  .scene.preview-next .chapter-orbit-card {
    top: 92%;
    transform: translateY(-50%) perspective(800px) rotateX(-10deg) scale(0.48);
  }

  .scene.preview-prev .chapter-orbit-card {
    top: 8%;
    transform: translateY(-50%) perspective(800px) rotateX(10deg) scale(0.46);
  }

  .scene-copy { width: min(72vw, 560px); padding: 8px 8px 0; }
  .chapter-meta { font-size: 0.5rem; gap: 4px; }
  .chapter-status { width: 100%; margin-left: 0; }
  .scene h1 { font-size: clamp(3.2rem, 16vw, 5.5rem); }
  .scene h2 { font-size: clamp(1.72rem, 8vw, 2.9rem); }
  .lead { font-size: 0.88rem; line-height: 1.34; }
  .body-copy { font-size: 0.7rem; line-height: 1.42; }
  .narration-module { margin-top: 9px; }
  .narration-player { grid-template-columns: 32px minmax(34px, 1fr) 62px 28px 32px; gap: 5px; }
  .narration-toggle { width: 32px; padding: 0; }
  .narration-action { display: none; }
  .transcript-toggle { min-width: 32px; width: 32px; padding: 0; }
  .transcript-label { display: none; }
  .narration-transcript { width: min(72vw, 500px); max-height: 48vh; }
  .transcript-heading { min-height: 56px; padding: 10px 12px; }
  .transcript-heading strong { font-size: 0.82rem; }
  .transcript-heading .transcript-duration { display: none; }
  .transcript-copy { max-height: calc(48vh - 56px); padding: 12px 14px 15px; }
  .transcript-copy p { font-size: 0.76rem; line-height: 1.52; }
  .reflection { display: none; }
  .visual-frame { max-height: none; }
  .interaction-title { font-size: 0.55rem; }
  .mini-button, .choice-button { padding: 6px 7px; font-size: 0.58rem; }
  .decision-prompt { font-size: 0.72rem; }

  .nav-actions { right: 7px; gap: 5px; }
  .nav-arrow { width: 30px; height: 30px; }
  .dna-tooltip { display: none; }

  .chapter-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .dialog-head { padding: 18px; }
  .dialog-head h2 { font-size: 1.55rem; }
  .chapter-map { grid-template-columns: 1fr; padding: 18px; }
  .definition-map { grid-template-columns: 1fr; }
  .sources-content { max-height: calc(100dvh - 120px); padding: 14px; }
  .methodology-card { padding: 18px; }
  .source-entry { padding: 11px; }
  .definition-card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
