:root {
  --burgundy-950: #26040d;
  --burgundy-900: #3a0714;
  --burgundy-800: #5d1024;
  --burgundy-650: #8f1835;
  --gold-500: #f4c542;
  --gold-300: #ffe38a;
  --gold-100: #fff4c9;
  --ink: #211014;
  --paper: #fffaf0;
  --paper-strong: #fffdf8;
  --cool: #e6f2f0;
  --muted: #74565f;
  --line: rgba(93, 16, 36, 0.18);
  --shadow: 0 26px 80px rgba(38, 4, 13, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(93, 16, 36, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(93, 16, 36, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 12% 7%, rgba(244, 197, 66, 0.32), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(93, 16, 36, 0.14), transparent 28rem),
    var(--paper);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, a { font: inherit; }
button { cursor: pointer; }
@keyframes particleDrift {
  from { background-position: 0 0, 0 0, 0 0, 28px 36px, 16px 22px; }
  to { background-position: 0 0, 0 0, 74px 74px, 146px 154px, 62px 68px; }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  color: white;
  background: rgba(38, 4, 13, 0.9);
  border-bottom: 1px solid rgba(244, 197, 66, 0.32);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: white;
  text-decoration: none;
}
.brand-symbol {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(244, 197, 66, 0.45);
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at 30% 32%, var(--gold-500) 0 0.46rem, transparent 0.48rem),
    radial-gradient(circle at 70% 30%, var(--gold-300) 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 72% 72%, var(--gold-500) 0 0.33rem, transparent 0.35rem),
    linear-gradient(135deg, var(--burgundy-650), var(--burgundy-950));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}
.brand-symbol span {
  position: absolute;
  height: 1px;
  background: rgba(255, 227, 138, 0.75);
  transform-origin: left center;
}
.brand-symbol span:nth-child(1) { width: 1.2rem; left: 0.95rem; top: 1rem; rotate: 16deg; }
.brand-symbol span:nth-child(2) { width: 1rem; left: 1.8rem; top: 1.05rem; rotate: 92deg; }
.brand-symbol span:nth-child(3) { width: 1.05rem; left: 1.8rem; top: 2.1rem; rotate: -148deg; }
.brand-symbol span:nth-child(4) { width: 1.25rem; left: 0.92rem; top: 1rem; rotate: 75deg; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; letter-spacing: 0.02em; }
.brand small { color: rgba(255, 244, 201, 0.74); font-size: 0.76rem; }
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: rgba(255, 250, 240, 0.86);
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav a:hover { color: var(--burgundy-950); background: var(--gold-500); }
main { overflow: hidden; }
.hero {
  position: relative;
  min-height: calc(100svh - 4.75rem);
  isolation: isolate;
  color: white;
  background:
    linear-gradient(125deg, rgba(38, 4, 13, 0.98), rgba(93, 16, 36, 0.9) 48%, rgba(244, 197, 66, 0.18)),
    var(--burgundy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 197, 66, 0.15), transparent 22rem),
    radial-gradient(circle at 82% 34%, rgba(244, 197, 66, 0.12), transparent 20rem),
    radial-gradient(circle, rgba(255, 244, 201, 0.42) 0 1px, transparent 1.7px) 0 0 / 74px 74px,
    radial-gradient(circle, rgba(244, 197, 66, 0.32) 0 1.25px, transparent 1.9px) 28px 36px / 118px 118px,
    radial-gradient(circle, rgba(255, 250, 240, 0.26) 0 0.8px, transparent 1.5px) 16px 22px / 46px 46px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  animation: particleDrift 18s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(35rem, 1fr);
  gap: clamp(1.5rem, 2.5vw, 3rem);
  align-items: center;
  width: min(1720px, calc(100% - 3rem));
  min-height: calc(100svh - 4.75rem);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem);
}
.journal-tag, .micro-label {
  margin: 0 0 0.65rem;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  max-width: none;
  margin: 0;
  color: white;
  font-size: clamp(2.65rem, 3.45vw, 4.65rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}
.hero-copy p:not(.journal-tag) { max-width: 45rem; color: rgba(255, 250, 240, 0.82); font-size: 1.08rem; }
.hero-copy .article-authors {
  max-width: 48rem;
  color: #ffd95a;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 10px 32px rgba(38, 4, 13, 0.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button, .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.55rem;
  font-weight: 850;
  text-decoration: none;
}
.button.primary, .primary-action {
  color: var(--burgundy-950);
  border: 0;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  box-shadow: 0 18px 44px rgba(244, 197, 66, 0.18);
}
.hero-side { display: grid; gap: 1rem; align-self: center; padding-top: 0; }
.band-visual {
  position: relative;
  overflow: hidden;
  min-height: 43rem;
  border: 1px solid rgba(255, 227, 138, 0.28);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 25% 18%, rgba(244, 197, 66, 0.2), transparent 14rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.03));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}
.band-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 227, 138, 0.08) 1px, transparent 1px), linear-gradient(rgba(255, 227, 138, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.band-visual-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0;
}
.band-visual-top strong { color: rgba(255, 250, 240, 0.9); }
#band-animation { position: relative; z-index: 1; display: block; width: 100%; min-height: 35rem; }
.band-grid line { stroke: rgba(255, 227, 138, 0.16); stroke-width: 1; }
.layer-card { fill: rgba(255, 250, 240, 0.14); stroke: rgba(255, 227, 138, 0.42); stroke-width: 1.4; }
.layer-card.active { fill: rgba(244, 197, 66, 0.28); stroke: var(--gold-500); }
.module-pill { fill: rgba(255, 250, 240, 0.92); stroke: rgba(244, 197, 66, 0.7); }
.module-pill.active { fill: var(--gold-500); }
.module-text { fill: var(--burgundy-950); font-size: 13px; font-weight: 900; }
.trace-arrow { stroke: rgba(255, 244, 201, 0.76); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace-dot { fill: var(--gold-500); filter: drop-shadow(0 0 8px rgba(244, 197, 66, 0.72)); }
.band-label, .band-value { fill: rgba(255, 250, 240, 0.94); font-size: 14px; font-weight: 850; }
.band-pvalue { fill: rgba(255, 244, 201, 0.82); font-size: 13px; font-weight: 700; }
.band-readout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  margin: 0 1rem 1rem;
  padding: 0.9rem 1rem;
  color: var(--burgundy-950);
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-100));
}
.band-readout span, .band-readout strong { display: block; }
.band-readout span { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
#band-summary { min-height: 3em; }
.paper-station, .pathway-section, .atlas-section, .figure-section, .quiz-section {
  width: min(1280px, calc(100% - 6rem));
  margin: 0 auto;
  padding: clamp(2rem, 4vh, 2.4rem) 0;
}
.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.55fr);
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1rem;
}
.section-title.compact { display: block; max-width: 58rem; }
.section-title h2 { margin: 0; color: var(--burgundy-950); font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 0.98; }
.section-title p:last-child { margin: 0; color: var(--muted); }
.section-title > .journal-tag { grid-column: 1 / -1; color: var(--burgundy-650); }
.paper-grid, .diagnostic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.paper-panel, .mechanism-stage, .pathway-track, .atlas-card, .atlas-toolbar, .case-list, .case-workbench, .figure-tabs, .figure-viewer {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 56px rgba(38, 4, 13, 0.1);
  backdrop-filter: blur(16px);
}
.paper-panel { min-height: 13.5rem; padding: 1rem; }
.paper-panel.accent {
  color: white;
  background: radial-gradient(circle at top right, rgba(244, 197, 66, 0.34), transparent 13rem), linear-gradient(135deg, var(--burgundy-800), var(--burgundy-950));
}
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: var(--burgundy-650); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.paper-panel.accent .panel-topline { color: var(--gold-300); }
.panel-topline span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--gold-500); color: var(--burgundy-950); }
.paper-panel h3 { margin: 1.5rem 0 0.65rem; color: var(--burgundy-950); font-size: 1.65rem; line-height: 1.05; }
.paper-panel.accent h3 { color: white; }
.paper-panel p { color: var(--muted); }
.paper-panel.accent p { color: rgba(255, 250, 240, 0.82); }
.comparison-table {
  display: grid;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 56px rgba(38, 4, 13, 0.1);
  backdrop-filter: blur(16px);
}
.comparison-table > div { display: grid; grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.comparison-table > div:first-child { border-top: 0; }
.comparison-table span { padding: 0.65rem 0.75rem; border-left: 1px solid var(--line); }
.comparison-table span:first-child { border-left: 0; color: var(--burgundy-950); font-weight: 900; }
.comparison-head { color: var(--burgundy-950); background: linear-gradient(135deg, var(--gold-500), var(--gold-100)); font-weight: 950; }
.pathway-layout, .simulator-grid { display: grid; grid-template-columns: minmax(22rem, 0.46fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.pathway-track, .case-list, .figure-tabs { display: grid; gap: 0.55rem; align-content: start; padding: 0.75rem; }
.path-step, .figure-tab, .case-card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.5rem 0.65rem;
  color: var(--burgundy-800);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
}
.path-step span, .figure-tab span { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--burgundy-950); border-radius: 50%; background: var(--gold-500); font-size: 0.72rem; font-weight: 950; }
.path-step:hover, .path-step.active, .figure-tab:hover, .figure-tab.active, .case-card:hover, .case-card.active { background: var(--paper-strong); border-color: rgba(93, 16, 36, 0.2); transform: translateX(0.2rem); }
.mechanism-stage {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  color: white;
  background: radial-gradient(circle at 82% 78%, rgba(244, 197, 66, 0.24), transparent 17rem), linear-gradient(135deg, var(--burgundy-800), var(--burgundy-950));
}
.mechanism-stage h3, .case-workbench h3, .figure-viewer h3 { margin: 0 0 0.65rem; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.02; }
.atlas-card h3 { max-width: 100%; margin: 0 0 0.8rem; font-size: clamp(1.65rem, 2.6vw, 2.45rem); line-height: 1.05; overflow-wrap: anywhere; }
.mechanism-stage p:not(.micro-label) { max-width: 44rem; color: rgba(255, 250, 240, 0.82); }
#pathway-points { display: grid; gap: 0.55rem; max-width: 45rem; padding: 0; margin: 1rem 0 0; list-style: none; }
#pathway-points li { padding: 0.65rem 0.8rem; border: 1px solid rgba(255, 227, 138, 0.26); border-radius: 0.55rem; background: rgba(255, 255, 255, 0.08); }
.stage-orbit { position: absolute; right: -5rem; bottom: -5rem; width: 25rem; height: 25rem; opacity: 0.65; pointer-events: none; }
.stage-orbit span { position: absolute; inset: 12%; border: 1px solid rgba(255, 227, 138, 0.35); border-radius: 50%; }
.stage-orbit span:nth-child(2) { inset: 28%; }
.stage-orbit span:nth-child(3) { inset: 44%; background: var(--gold-500); }
.mechanism-stage > :not(.stage-orbit) { position: relative; z-index: 1; }
.atlas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.42fr); gap: 1rem; }
.atlas-toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.55rem; box-shadow: none; }
.filter-chip, .segmented button, .tool-option {
  color: var(--burgundy-800);
  border: 1px solid rgba(93, 16, 36, 0.22);
  border-radius: 999px;
  background: var(--paper-strong);
  padding: 0.58rem 0.88rem;
}
.filter-chip.active, .segmented button.active, .tool-option.active { color: var(--burgundy-950); border-color: transparent; background: var(--gold-500); font-weight: 900; }
.knowledge-map {
  width: 100%;
  min-height: 30rem;
  border: 1px solid rgba(244, 197, 66, 0.22);
  border-radius: 0.75rem;
  background: radial-gradient(circle at center, rgba(244, 197, 66, 0.2), transparent 18rem), linear-gradient(135deg, rgba(38, 4, 13, 0.96), rgba(93, 16, 36, 0.9));
  box-shadow: var(--shadow);
}
.graph-line { stroke: rgba(255, 227, 138, 0.28); stroke-width: 2.2; }
.graph-node { cursor: pointer; }
.graph-node circle { fill: rgba(255, 250, 240, 0.94); stroke: var(--gold-500); stroke-width: 3; filter: url("#nodeGlow"); }
.graph-node text { fill: var(--burgundy-950); font-size: 18.2px; font-weight: 900; pointer-events: none; }
.graph-node.active circle, .graph-node:hover circle { fill: var(--gold-500); stroke: white; stroke-width: 4; }
.graph-node.dimmed, .graph-line.dimmed { opacity: 0.18; }
.atlas-card, .case-workbench { align-self: stretch; padding: 1.2rem; }
.atlas-card { min-width: 0; overflow: hidden; }
.atlas-card p:not(.micro-label), .case-workbench p, .feedback, .figure-viewer p { color: var(--muted); }
.atlas-card .micro-label, .case-workbench .micro-label, .figure-viewer .micro-label { color: var(--burgundy-650); }
.map-links, .segmented, .tool-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.map-links span { padding: 0.45rem 0.6rem; color: var(--burgundy-950); border-radius: 999px; background: var(--gold-100); font-size: 0.84rem; font-weight: 850; }
.figure-layout { display: grid; grid-template-columns: minmax(22rem, 0.44fr) minmax(0, 1fr); gap: 1rem; }
.figure-viewer { overflow: hidden; }
.figure-viewer > div:not(.module-visual) { padding: 1.2rem; }
.module-visual {
  display: grid;
  align-items: center;
  min-height: 18rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--burgundy-950), var(--burgundy-800));
}
.metric-bars { display: grid; gap: 0.75rem; width: 100%; }
.metric-row { display: grid; grid-template-columns: 9rem 1fr 4.5rem; gap: 0.7rem; align-items: center; color: white; }
.metric-track { height: 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.metric-fill { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-500), var(--gold-100)); }
.metric-scale-note { margin: 0.15rem 0 0; padding-top: 0.65rem; border-top: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.78); font-size: 0.78rem; line-height: 1.45; }
.metric-scale-note strong { color: var(--gold-100); }
.flow-stack { display: grid; gap: 0.7rem; color: white; }
.evaluation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; width: 100%; color: white; }
.flow-item { padding: 0.85rem; border: 1px solid rgba(255, 227, 138, 0.28); border-radius: 0.55rem; background: rgba(255, 255, 255, 0.08); }
#figure-signals { display: grid; gap: 0.5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
#figure-signals li { padding: 0.7rem 0.8rem; border-radius: 0.55rem; background: var(--gold-100); color: var(--burgundy-950); }
.case-card { display: block; background: var(--paper-strong); }
.case-card strong, .case-card span { display: block; }
.case-card span { color: var(--muted); font-size: 0.88rem; }
.choice-block { margin-top: 0.85rem; }
.choice-block h4 { margin: 0 0 0.45rem; color: var(--burgundy-950); }
.choice-block .segmented, .choice-block .tool-grid { margin-top: 0.5rem; }
.tool-option { border-radius: 0.55rem; }
.primary-action { margin-top: 0.85rem; }
.feedback { min-height: 4rem; margin-top: 0.7rem; padding: 0.75rem; border: 1px solid rgba(93, 16, 36, 0.18); border-radius: 0.55rem; background: var(--gold-100); }
.quiz-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 56px rgba(38, 4, 13, 0.1);
  backdrop-filter: blur(16px);
}
.quiz-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.1rem; color: var(--burgundy-950); }
.quiz-header span { color: var(--muted); font-weight: 800; }
.quiz-progress-track { height: 0.5rem; background: rgba(93, 16, 36, 0.1); }
#quiz-progress-fill { display: block; width: 0; height: 100%; background: var(--gold-500); transition: width 0.3s ease; }
.quiz-stage { min-height: 25rem; padding: 1.2rem; }
.quiz-stage h3 { max-width: 60rem; margin: 0 0 1rem; color: var(--burgundy-950); font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.05; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.quiz-option {
  min-height: 3.2rem;
  padding: 0.7rem 0.85rem;
  color: var(--burgundy-800);
  text-align: left;
  border: 1px solid rgba(93, 16, 36, 0.22);
  border-radius: 0.55rem;
  background: var(--paper-strong);
}
.quiz-option:hover:not(:disabled) { border-color: var(--burgundy-650); background: var(--gold-100); }
.quiz-option:disabled { cursor: default; opacity: 1; }
.quiz-option.correct { color: #124d30; border-color: #248455; background: #dff4e7; font-weight: 850; }
.quiz-option.incorrect { color: #751f2b; border-color: #b83b4b; background: #f8dfe3; font-weight: 850; }
.quiz-feedback { min-height: 3.5rem; margin-top: 0.75rem; padding: 0.75rem 0.85rem; color: var(--muted); border: 1px solid transparent; border-radius: 0.55rem; }
.quiz-feedback:empty { padding: 0; }
.quiz-feedback.correct { color: #124d30; border-color: rgba(36, 132, 85, 0.35); background: #edf8f1; }
.quiz-feedback.incorrect { color: #751f2b; border-color: rgba(184, 59, 75, 0.35); background: #fff0f2; }
.quiz-next { margin-top: 0.75rem; }
.quiz-result { display: grid; gap: 0.65rem; max-width: 52rem; padding: 1.2rem; color: var(--burgundy-950); border-left: 0.35rem solid var(--gold-500); background: var(--gold-100); }
.quiz-result strong { font-size: 1.2rem; }
.footer { display: flex; justify-content: center; align-items: center; padding: 2.25rem 1.5rem; background: var(--burgundy-950); }
.footer strong { color: var(--gold-500); }
section[id] { scroll-margin-top: 4.75rem; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, .graph-node:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 4px; }
.nav a[aria-current="location"] { background: var(--gold-500); color: var(--burgundy-950); }
#animation-toggle { position: relative; z-index: 2; border: 1px solid rgba(255,227,138,.4); border-radius: .4rem; padding: .4rem .6rem; color: var(--gold-100); background: rgba(38,4,13,.4); font-size: .75rem; }
html.animation-paused .hero::before { animation-play-state: paused; }
@media (min-width: 1281px) and (max-height: 850px) {
  .paper-station, .pathway-section, .atlas-section, .figure-section, .quiz-section {
    padding: 1rem 0;
    font-size: 0.88rem;
  }
  .section-title {
    gap: 0.8rem;
    margin-bottom: 0.65rem;
  }
  .section-title h2 { font-size: clamp(2rem, 2.4vw, 2.6rem); }
  .journal-tag, .micro-label { margin-bottom: 0.35rem; }
  .paper-grid, .diagnostic-grid, .pathway-layout, .simulator-grid, .atlas-grid, .figure-layout { gap: 0.65rem; }
  .paper-panel { min-height: 9.5rem; padding: 0.7rem; }
  .paper-panel h3 { margin: 0.65rem 0 0.4rem; font-size: 1.3rem; }
  .paper-panel p { margin-bottom: 0; line-height: 1.35; }
  .panel-topline span { width: 1.8rem; height: 1.8rem; }
  .comparison-table { margin-top: 0.65rem; }
  .comparison-table span { padding: 0.38rem 0.5rem; line-height: 1.25; }
  .pathway-layout, .simulator-grid { margin-top: 0.65rem; }
  .pathway-track, .case-list, .figure-tabs { gap: 0.32rem; padding: 0.5rem; }
  .path-step, .figure-tab, .case-card { min-height: 2.75rem; padding: 0.35rem 0.5rem; }
  .path-step span, .figure-tab span { width: 1.7rem; height: 1.7rem; }
  .mechanism-stage { min-height: 23rem; padding: 1.15rem; }
  .mechanism-stage h3, .case-workbench h3, .figure-viewer h3 { font-size: 2.1rem; }
  #pathway-points { gap: 0.35rem; margin-top: 0.65rem; }
  #pathway-points li { padding: 0.45rem 0.6rem; }
  .atlas-toolbar { gap: 0.35rem; padding: 0.4rem; }
  .filter-chip, .segmented button, .tool-option { padding: 0.42rem 0.65rem; }
  .knowledge-map { height: 25rem; min-height: 25rem; }
  .atlas-card, .case-workbench { padding: 0.8rem; }
  .map-links, .segmented, .tool-grid { gap: 0.35rem; margin-top: 0.55rem; }
  .map-links span { padding: 0.32rem 0.5rem; }
  .module-visual { min-height: 13.5rem; padding: 0.85rem; }
  .figure-viewer > div:not(.module-visual) { padding: 0.75rem; }
  .metric-bars { gap: 0.45rem; }
  .flow-stack { gap: 0.4rem; }
  .evaluation-grid { gap: 0.4rem; }
  .flow-item, #figure-signals li { padding: 0.5rem 0.65rem; }
  #figure-signals { gap: 0.35rem; margin-top: 0.55rem; }
  .case-workbench > p { margin: 0.4rem 0; }
  .choice-block { margin-top: 0.55rem; }
  .choice-block h4 { margin-bottom: 0.3rem; }
  .choice-block .segmented, .choice-block .tool-grid { margin-top: 0.3rem; }
  .primary-action { min-height: 2.5rem; margin-top: 0.55rem; padding: 0.55rem 0.85rem; }
  .feedback { min-height: 3rem; margin-top: 0.45rem; padding: 0.55rem; }
  .quiz-header { padding: 0.45rem 0.75rem; }
  .quiz-stage { min-height: 20rem; padding: 0.75rem; }
  .quiz-stage h3 { margin-bottom: 0.65rem; font-size: 1.8rem; }
  .quiz-options { gap: 0.4rem; }
  .quiz-option { min-height: 2.65rem; padding: 0.45rem 0.6rem; }
  .quiz-feedback { min-height: 2.75rem; margin-top: 0.45rem; padding: 0.5rem 0.65rem; }
  .quiz-next { margin-top: 0.45rem; }
}
@media (max-width: 1280px) {
  .paper-station, .pathway-section, .atlas-section, .figure-section, .quiz-section { width: calc(100% - 3rem); }
  .hero-grid, .section-title, .pathway-layout, .atlas-grid, .figure-layout, .simulator-grid { grid-template-columns: 1fr; }
  .paper-grid { grid-template-columns: 1fr; }
  .comparison-table > div { grid-template-columns: 1fr; }
  .comparison-table span { border-left: 0; border-top: 1px solid var(--line); }
  .comparison-table span:first-child { border-top: 0; background: var(--gold-100); }
  .hero-grid { align-items: center; min-height: auto; padding-top: 4rem; }
  .band-visual { min-height: 40rem; }
  #band-animation { min-height: 32rem; }
}
@media (max-width: 680px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; gap: .1rem; }
  .nav a { white-space: nowrap; font-size: .82rem; padding: .55rem .5rem; }
  .brand small { max-width: 16rem; }
  .paper-station, .pathway-section, .atlas-section, .figure-section, .quiz-section { width: calc(100% - 2rem); }
  .hero-grid { width: calc(100% - 2rem); }
  .hero-copy h1 { max-width: none; font-size: clamp(2rem, 8.2vw, 2.6rem); line-height: 1; }
  .band-visual { min-height: 0; }
  #band-animation { min-height: 0; aspect-ratio: 760/520; }
  #band-summary { min-height: 4.5em; }
  .metric-row { grid-template-columns: minmax(5.5rem, 0.8fr) minmax(6rem, 1fr) 3.8rem; gap: 0.5rem; }
  .evaluation-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-stage { min-height: 0; }
  .knowledge-map { min-height: 0; aspect-ratio: 960/560; }
  .mechanism-stage { min-height: 30rem; }
  section[id] { scroll-margin-top: 9rem; }
  .footer { padding: 2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
