:root {
  --ink: #0b1115;
  --ink-soft: #131c21;
  --paper: #f4efe4;
  --paper-deep: #e8e0d0;
  --coral: #f06b52;
  --coral-soft: #ff9a77;
  --sky: #7db6ef;
  --gold: #e9b86e;
  --moss: #9ac6aa;
  --muted: #71808a;
  --line: rgba(11, 17, 21, .16);
  --line-dark: rgba(244, 239, 228, .18);
  --shadow: 0 1.5rem 4rem rgba(11, 17, 21, .15);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body, button, a { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .18rem solid var(--coral); outline-offset: .24rem; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -4rem;
  padding: .65rem .9rem;
  background: var(--coral);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.progress {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto 0;
  height: .22rem;
  background: transparent;
  pointer-events: none;
}
.progress span { display: block; height: 100%; width: 0; background: var(--coral); transform-origin: left; }

.js-enabled .back-to-top {
  position: fixed;
  z-index: 75;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(244, 239, 228, .52);
  border-radius: 50%;
  background: rgba(11, 17, 21, .93);
  color: var(--paper);
  font: 1.2rem var(--sans);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(.5rem);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.js-enabled .back-to-top:hover { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.js-enabled .back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.js-enabled .back-to-top.near-footer { bottom: calc(var(--footer-lift, 0px) + max(1.1rem, env(safe-area-inset-bottom))); }

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid rgba(244, 239, 228, .15);
  background: rgba(11, 17, 21, .9);
  color: var(--paper);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wrap { width: min(1200px, calc(100% - 3rem)); margin: 0 auto; }
.brand { display: inline-flex; align-items: baseline; gap: .7rem; text-decoration: none; white-space: nowrap; }
.brand-code, .eyebrow, .kicker, .chapter-index, .mini-label, .stat-label, .source-status, .timeline-year {
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .67rem;
}
.brand-code { color: var(--coral-soft); font-weight: 800; }
.brand-label { color: rgba(244, 239, 228, .72); font-size: .75rem; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav a, .lang-link { color: rgba(244, 239, 228, .78); font-size: .76rem; text-decoration: none; }
.nav a:hover, .lang-link:hover { color: var(--paper); }
.lang-link { padding: .48rem .7rem; border: 1px solid rgba(244, 239, 228, .28); border-radius: 999px; }

main { overflow: clip; }
.hero {
  position: relative;
  min-height: 45rem;
  display: grid;
  align-items: center;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(circle at 75% 24%, rgba(240, 107, 82, .17), transparent 25rem),
    radial-gradient(circle at 12% 90%, rgba(125, 182, 239, .1), transparent 24rem),
    var(--ink);
  color: var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(22rem, .88fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.eyebrow { color: var(--coral-soft); margin: 0 0 1.1rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 8ch; margin-bottom: 1.6rem; font-size: clamp(4rem, 10vw, 8.9rem); line-height: .88; }
h1 em { color: var(--coral-soft); font-style: normal; }
.hero-lede { max-width: 39rem; color: rgba(244, 239, 228, .86); font-size: clamp(1.1rem, 1.5vw, 1.38rem); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.button, .button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.button { background: var(--coral); color: var(--ink); }
.button:hover { background: var(--coral-soft); }
.button-quiet { border: 1px solid rgba(244, 239, 228, .3); color: var(--paper); }
.button-quiet:hover { border-color: var(--paper); }
.sources .button-quiet { border-color: rgba(11, 17, 21, .26); color: var(--ink); }
.sources .button-quiet:hover { border-color: var(--ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 3rem; color: rgba(244, 239, 228, .58); font-family: var(--mono); font-size: .7rem; }
.hero-meta strong { display: block; margin-bottom: .25rem; color: var(--paper); font-family: var(--sans); font-size: .78rem; }

.hero-figure { position: relative; min-height: 32rem; display: grid; place-items: center; }
.figure-frame { position: relative; width: min(100%, 34rem); aspect-ratio: 1 / 1; border: 1px solid rgba(244, 239, 228, .18); border-radius: 50%; background: radial-gradient(circle, rgba(240, 107, 82, .11), transparent 58%); box-shadow: 0 0 0 1rem rgba(240, 107, 82, .03), 0 0 0 2rem rgba(240, 107, 82, .02); }
.figure-frame::before, .figure-frame::after { content: ""; position: absolute; inset: 9%; border: 1px dashed rgba(244, 239, 228, .18); border-radius: 50%; }
.figure-frame::after { inset: 24%; border-style: solid; opacity: .45; }
.orbit { position: absolute; inset: 17%; border: 1px solid rgba(125, 182, 239, .35); border-radius: 50%; transform: rotate(-19deg) skewX(-8deg); }
.repeat-dot { position: absolute; width: clamp(2.1rem, 5vw, 3.2rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-family: var(--mono); font-size: .72rem; font-weight: 800; box-shadow: 0 0 0 .35rem rgba(240, 107, 82, .12); transform: translate(-50%, -50%); }
.repeat-dot:nth-child(1) { left: 50%; top: 7%; }
.repeat-dot:nth-child(2) { left: 78%; top: 20%; }
.repeat-dot:nth-child(3) { left: 94%; top: 49%; }
.repeat-dot:nth-child(4) { left: 78%; top: 79%; }
.repeat-dot:nth-child(5) { left: 48%; top: 93%; }
.repeat-dot:nth-child(6) { left: 20%; top: 78%; }
.repeat-dot:nth-child(7) { left: 7%; top: 48%; }
.orbit-label { position: absolute; left: 50%; top: 50%; width: 11rem; transform: translate(-50%, -50%); text-align: center; }
.orbit-label strong { display: block; color: var(--paper); font-family: var(--serif); font-size: 2.4rem; font-weight: 400; line-height: 1; }
.orbit-label span { display: block; margin-top: .5rem; color: rgba(244, 239, 228, .63); font-family: var(--mono); font-size: .64rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.figure-caption { position: absolute; right: -1rem; bottom: 2rem; max-width: 10rem; padding: .7rem .85rem; border-left: 2px solid var(--gold); background: rgba(11, 17, 21, .88); color: rgba(244, 239, 228, .74); font-family: var(--mono); font-size: .65rem; line-height: 1.5; }

.summary { padding: 5rem 0 5.4rem; background: var(--paper); }
.summary-grid { display: grid; grid-template-columns: .8fr 1.35fr; gap: 4rem; align-items: start; }
.summary h2 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: .96; }
.summary-lede { max-width: 35rem; margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.2; }
.three-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; padding-top: 1rem; }
.note { padding-top: 1rem; border-top: 2px solid var(--ink); }
.note-label { display: block; margin-bottom: .7rem; color: #b63e2c; font-family: var(--mono); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.note p { margin-bottom: 0; font-size: .93rem; }

.section { padding: 7.5rem 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-paper { background: var(--paper); }
.section-cream { background: var(--paper-deep); }
.chapter-head { display: grid; grid-template-columns: .55fr 1fr; gap: 4rem; align-items: start; margin-bottom: 4rem; }
.chapter-index { color: var(--coral); }
.section-dark .chapter-index { color: var(--coral-soft); }
.chapter-head h2 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(3rem, 6vw, 6.7rem); line-height: .92; }
.chapter-head p { max-width: 37rem; margin: .3rem 0 0; font-size: 1.06rem; color: var(--muted); }
.section-dark .chapter-head p { color: rgba(244, 239, 228, .7); }
.small-link { color: var(--coral); font-weight: 800; text-underline-offset: .2em; }
.section-dark .small-link { color: var(--coral-soft); }

.biology-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.biology-copy { max-width: 38rem; }
.biology-copy p { font-size: 1.08rem; color: rgba(244, 239, 228, .78); }
.biology-copy p + p { margin-top: 1.3rem; }
.repeat-demo { padding: 1.5rem; border: 1px solid var(--line-dark); background: rgba(244, 239, 228, .035); }
.repeat-tabs, .evidence-tabs, .context-tabs, .scale-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab {
  appearance: none;
  border: 1px solid rgba(244, 239, 228, .25);
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 239, 228, .72);
  padding: .5rem .75rem;
  font: 700 .74rem var(--mono);
  cursor: pointer;
}
.tab:hover, .tab[aria-selected="true"] { border-color: var(--coral); background: var(--coral); color: var(--ink); }
.repeat-panel { padding-top: 1rem; border-top: 1px solid rgba(244, 239, 228, .18); }
.repeat-panel h3 { margin-bottom: .6rem; font-size: 2.4rem; }
.repeat-panel p { margin-bottom: 0; color: rgba(244, 239, 228, .7); font-size: .92rem; }
.repeat-track { display: flex; flex-wrap: wrap; gap: .25rem; padding: 1.35rem 0 1rem; }
.repeat-block { width: 2.3rem; height: 4.5rem; border: 1px solid rgba(244, 239, 228, .25); background: rgba(244, 239, 228, .09); }
.repeat-block.is-hot { border-color: var(--coral); background: linear-gradient(180deg, var(--coral-soft), var(--coral)); }
.repeat-caption { display: flex; justify-content: space-between; gap: 1rem; color: rgba(244, 239, 228, .72); font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.biology-footnote { margin-top: 2rem; padding-left: 1rem; border-left: 2px solid var(--gold); color: rgba(244, 239, 228, .62); font-size: .88rem; }

.evidence-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.evidence-stage { position: sticky; top: 7.5rem; min-height: 29rem; padding: 1.2rem; border: 1px solid rgba(244, 239, 228, .16); background: linear-gradient(140deg, rgba(125, 182, 239, .08), rgba(240, 107, 82, .08)); }
.stage-label { display: flex; justify-content: space-between; gap: 1rem; color: rgba(244, 239, 228, .52); font: .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.evidence-map { position: relative; min-height: 25rem; margin-top: .7rem; border: 1px dashed rgba(244, 239, 228, .2); overflow: hidden; }
.evidence-map::before, .evidence-map::after { content: ""; position: absolute; background: rgba(244, 239, 228, .12); }
.evidence-map::before { top: 50%; left: 8%; right: 8%; height: 1px; }
.evidence-map::after { left: 50%; top: 8%; bottom: 8%; width: 1px; }
.axis-label { position: absolute; color: rgba(244, 239, 228, .38); font: .6rem var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.axis-label.top { top: .55rem; left: 1rem; }
.axis-label.bottom { bottom: .55rem; right: 1rem; }
.evidence-node { position: absolute; width: 6.8rem; min-height: 6.8rem; display: grid; place-items: center; padding: .7rem; border: 1px solid rgba(244, 239, 228, .38); border-radius: 50%; background: var(--ink-soft); color: var(--paper); text-align: center; transform: translate(-50%, -50%); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.evidence-node span { display: block; font: 700 .62rem var(--mono); letter-spacing: .05em; line-height: 1.35; text-transform: uppercase; }
.evidence-node small { display: block; margin-top: .25rem; color: rgba(244, 239, 228, .58); font: .58rem var(--sans); }
.evidence-node.active, .evidence-node:hover { border-color: var(--coral); background: rgba(240, 107, 82, .2); transform: translate(-50%, -50%) scale(1.06); }
.node-personality { left: 29%; top: 28%; }
.node-adhd { left: 70%; top: 30%; }
.node-context { left: 26%; top: 72%; }
.node-travel { left: 73%; top: 73%; }
.evidence-list { display: grid; gap: 1rem; }
.evidence-item { border-top: 1px solid var(--line-dark); }
.evidence-item:first-child { border-top: 2px solid var(--coral); }
.evidence-button { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 0 .9rem; border: 0; background: none; color: var(--paper); text-align: left; cursor: pointer; }
.evidence-button strong { font: 1.8rem var(--serif); letter-spacing: -.02em; }
.evidence-button span { color: var(--coral-soft); font: .65rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.evidence-panel { padding: 0 0 1.3rem; color: rgba(244, 239, 228, .7); font-size: .94rem; }
.evidence-panel p { margin-bottom: .65rem; }
.evidence-panel p:last-child { margin-bottom: 0; }

.scale-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); align-items: center; }
.scale-copy { max-width: 35rem; }
.scale-copy h2 { max-width: 9ch; font-size: clamp(3.2rem, 6vw, 6.4rem); line-height: .9; }
.scale-copy p { font-size: 1.08rem; }
.scale-tabs .tab { border-color: rgba(11, 17, 21, .23); color: var(--ink); }
.scale-tabs .tab:hover, .scale-tabs .tab[aria-selected="true"] { border-color: var(--coral); background: var(--coral); }
.scale-copy[data-scale="population"] .person-copy, .scale-copy[data-scale="person"] .population-copy { display: none; }
.scale-stage { padding: 1.2rem; border: 1px solid var(--line); background: rgba(255,255,255,.25); }
.scale-stage-head { display: flex; justify-content: space-between; gap: 1rem; color: #4b5a62; font: .64rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.scale-chart { position: relative; margin-top: 1.5rem; padding: 1rem 0 2rem; }
.scale-row { display: grid; grid-template-columns: 8.2rem 1fr 4.2rem; gap: .8rem; align-items: center; min-height: 3.8rem; border-top: 1px solid var(--line); }
.scale-row:last-of-type { border-bottom: 1px solid var(--line); }
.scale-row span { font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.scale-bar { height: .75rem; background: var(--ink); transform-origin: left; }
.scale-bar.coral { background: var(--coral); }
.scale-bar.bar-85 { width: 85%; }
.scale-bar.bar-52 { width: 52%; }
.scale-row strong { font: 700 .72rem var(--mono); text-align: right; }
.scale-divider { display: flex; align-items: center; gap: .7rem; margin: 1.3rem 0; color: #b63e2c; font: .64rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.scale-divider::before, .scale-divider::after { content: ""; height: 1px; flex: 1; background: #b63e2c; }
.person-row { display: grid; grid-template-columns: 8.2rem 1fr; gap: .8rem; align-items: center; min-height: 5.4rem; }
.person-row span { font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.person-field { position: relative; height: 4rem; border: 1px dashed var(--line); background: repeating-linear-gradient(90deg, transparent 0 2.35rem, rgba(11,17,21,.08) 2.35rem 2.4rem); }
.person-field::after { content: "?"; position: absolute; left: 54%; top: 50%; display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font: 700 1rem var(--mono); transform: translate(-50%, -50%); }
.scale-note { margin: 1rem 0 0; color: #4b5a62; font-size: .75rem; }

.context-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.context-intro h2 { max-width: 10ch; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .9; }
.context-intro p { max-width: 27rem; font-size: 1.05rem; }
.context-tabs .tab { border-color: rgba(11,17,21,.25); color: var(--ink); }
.context-tabs .tab:hover, .context-tabs .tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.context-panel { padding: 1.4rem 0 0; border-top: 2px solid var(--ink); }
.context-panel h3 { margin-bottom: .7rem; font-size: 2.6rem; }
.context-panel p { max-width: 40rem; font-size: 1rem; }
.context-panel .status { display: inline-flex; margin-bottom: 1.1rem; padding: .3rem .55rem; border: 1px solid var(--ink); color: var(--ink); font: 700 .63rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.context-panel ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem 2rem; padding: 0; margin: 1.6rem 0 0; list-style: none; }
.context-panel li { padding-top: .55rem; border-top: 1px solid var(--line); font-size: .9rem; }
.context-panel li::before { content: "+"; display: inline-block; margin-right: .5rem; color: var(--coral); font-weight: 800; }

.travel-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.travel-intro h2 { max-width: 9ch; font-size: clamp(3rem, 6vw, 6.4rem); line-height: .9; }
.travel-intro p { max-width: 28rem; color: rgba(244, 239, 228, .72); font-size: 1.06rem; }
.travel-timeline { position: relative; padding: 1.5rem 0; }
.travel-timeline::before { content: ""; position: absolute; left: 1.2rem; top: 2rem; bottom: 2rem; width: 1px; background: rgba(244, 239, 228, .26); }
.timeline-item { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 1.2rem; padding: 1.25rem 0 1.25rem 0; }
.timeline-year { color: var(--coral-soft); }
.timeline-dot { position: absolute; top: 1.55rem; left: .78rem; width: .86rem; height: .86rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 .3rem var(--ink); }
.timeline-item.direct .timeline-dot { background: var(--coral); }
.timeline-item h3 { margin-bottom: .35rem; color: var(--paper); font-size: 1.8rem; }
.timeline-item p { margin-bottom: 0; color: rgba(244, 239, 228, .64); font-size: .9rem; }
.timeline-tag { display: inline-flex; margin-top: .7rem; color: var(--coral-soft); font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.history-head { display: grid; grid-template-columns: .62fr 1.38fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.history-head h2 { max-width: 11ch; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .9; }
.history-head p { max-width: 34rem; font-size: 1.05rem; }
.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.history-item { min-height: 12rem; padding: 1.2rem 1.2rem 1.5rem 0; border-right: 1px solid var(--line); }
.history-item:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.history-item:not(:nth-child(3n+1)) { padding-left: 1.2rem; }
.history-item:nth-child(3n) { border-right: 0; }
.history-item .figure-name { display: block; margin-bottom: .4rem; font: 1.65rem var(--serif); }
.history-item .figure-role { display: block; margin-bottom: .7rem; color: #b63e2c; font: 700 .62rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.history-item p { margin-bottom: 0; font-size: .88rem; }
.history-note { margin-top: 2rem; padding: 1.1rem 1.2rem; border-left: 2px solid var(--coral); background: rgba(240,107,82,.08); font-size: .9rem; }

.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.personal-grid h2 { max-width: 10ch; font-size: clamp(3rem, 6vw, 6rem); line-height: .9; }
.personal-grid h3 { margin-bottom: .7rem; font-size: 2.4rem; }
.personal-grid p { max-width: 34rem; }
.personal-grid ul, .check-list { padding-left: 1.2rem; }
.personal-grid li { margin-bottom: .55rem; }
.questions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.question { display: grid; grid-template-columns: 2.1rem 1fr; gap: .7rem; align-items: start; padding-top: .65rem; border-top: 1px solid var(--line); }
.question b { color: #92291c; font: 700 .72rem var(--mono); }
.question span { font-size: .9rem; }

.research-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 8vw, 8rem); }
.research-grid h2 { max-width: 9ch; font-size: clamp(3rem, 6vw, 6.3rem); line-height: .9; }
.research-grid p { max-width: 31rem; color: rgba(244, 239, 228, .72); font-size: 1.04rem; }
.research-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; }
.research-step { padding-top: .8rem; border-top: 1px solid var(--line-dark); }
.research-step strong { display: block; margin-bottom: .35rem; color: var(--coral-soft); font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.research-step p { margin-bottom: 0; color: rgba(244, 239, 228, .65); font-size: .88rem; }

.sources { background: var(--paper); }
.sources-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.sources-head h2 { max-width: 9ch; margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .9; }
.sources-head p { max-width: 28rem; margin: 0; font-size: .96rem; }
.source-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; }
.source-group { padding-top: 1rem; border-top: 2px solid var(--ink); }
.source-group h3 { margin-bottom: .9rem; font-size: 1.8rem; }
.source-group ul { padding: 0; margin: 0; list-style: none; }
.source-group li { padding: .5rem 0; border-top: 1px solid var(--line); font-size: .83rem; }
.source-group li:first-child { border-top: 0; }
.source-group a { text-underline-offset: .17em; }
.source-group a:hover { color: var(--coral); }
.source-footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 3.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; }

.site-footer { padding: 2rem 0 calc(3rem + env(safe-area-inset-bottom)); background: var(--ink); color: rgba(244, 239, 228, .68); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.footer-inner p { max-width: 30rem; margin: 0; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.footer-links a { color: var(--paper); text-decoration: none; }
.footer-links a:hover { color: var(--coral-soft); }

[data-reveal] { opacity: 1; transform: none; }
.js-enabled [data-reveal] { opacity: 0; transform: translateY(1.2rem); transition: opacity .7s ease, transform .7s ease; }
.js-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.js-enabled [data-repeat-panel][data-active="false"], .js-enabled [data-evidence-panel][data-active="false"], .js-enabled [data-context-panel][data-active="false"] { display: none; }

@media (max-width: 960px) {
  .wrap { width: min(100% - 2.2rem, 720px); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { min-height: auto; padding: 5.5rem 0 5rem; }
  .hero-grid, .biology-grid, .evidence-layout, .scale-layout, .context-layout, .travel-layout, .history-head, .research-grid { grid-template-columns: 1fr; gap: 2.7rem; }
  .hero-copy { order: 1; }
  .hero-figure { order: 0; min-height: 24rem; }
  .figure-frame { width: min(100%, 26rem); }
  .evidence-stage { position: relative; top: auto; min-height: auto; }
  .evidence-map { min-height: 20rem; }
  .chapter-head { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 2.4rem; }
  .chapter-head h2, .scale-copy h2, .context-intro h2, .travel-intro h2, .history-head h2, .research-grid h2, .personal-grid h2, .sources-head h2 { max-width: 14ch; }
  .sources-head { display: block; }
  .sources-head p { margin-top: 1.5rem; }
}

@media (max-width: 620px) {
  html { scroll-behavior: auto; }
  .wrap { width: min(100% - 1.5rem, 520px); }
  .brand-label { display: none; }
  .lang-link { font-size: .68rem; }
  .hero { padding: 4rem 0 4.2rem; }
  h1 { max-width: 7ch; font-size: clamp(3.7rem, 17vw, 6.2rem); }
  .hero-lede { font-size: 1.05rem; }
  .hero-meta { display: grid; gap: 1rem; margin-top: 2.2rem; }
  .hero-figure { min-height: 20rem; }
  .figure-frame { width: min(100%, 20rem); }
  .orbit-label strong { font-size: 1.8rem; }
  .figure-caption { right: -.2rem; bottom: .5rem; max-width: 8.5rem; font-size: .58rem; }
  .summary, .section { padding: 4.5rem 0; }
  .summary-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .summary h2 { max-width: 11ch; font-size: 3.6rem; }
  .three-notes, .history-list, .personal-grid, .source-columns, .research-steps { grid-template-columns: 1fr; }
  .history-item, .history-item:nth-child(n+4), .history-item:not(:nth-child(3n+1)) { min-height: auto; padding: 1rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .history-item:first-child { border-top: 0; }
  .context-panel ul { grid-template-columns: 1fr; }
  .scale-row { grid-template-columns: 6.2rem 1fr 3.5rem; gap: .45rem; }
  .person-row { grid-template-columns: 6.2rem 1fr; gap: .45rem; }
  .scale-row span, .person-row span { font-size: .58rem; }
  .evidence-node { width: 5.6rem; min-height: 5.6rem; }
  .evidence-map { min-height: 18rem; }
  .timeline-item { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 1.5rem; }
  .js-enabled .back-to-top { right: max(.8rem, env(safe-area-inset-right)); bottom: max(.8rem, env(safe-area-inset-bottom)); }
}

@media print {
  .site-header, .progress, .hero-actions, .skip-link, .lang-link, .footer-links { display: none !important; }
  .hero, .section-dark, .site-footer { background: #fff; color: #000; }
  .hero-lede, .section-dark .chapter-head p, .biology-copy p, .evidence-panel, .research-grid p, .research-step p, .travel-intro p, .timeline-item p { color: #222; }
  .section, .summary { padding: 2rem 0; }
  .evidence-stage { position: static; }
  a { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js-enabled [data-reveal] { opacity: 1; transform: none; }
}
