:root {
  --paper: #f7f0e3;
  --paper-2: #eee2cf;
  --ink: #211d19;
  --muted: #6d6257;
  --line: #b9aa97;
  --red: #b53b2d;
  --red-dark: #7e251d;
  --green: #2f684f;
  --green-2: #d6e2d4;
  --amber: #a96f1f;
  --amber-2: #ead7af;
  --shadow: 0 22px 70px rgba(59, 42, 23, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: .18em; }
button, input, select { font: inherit; }
button { color: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 110px 0; }
.chapter, .eyebrow {
  margin: 0 0 20px;
  color: var(--red-dark);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3, h4, p { margin-top: 0; }
h2 {
  margin-bottom: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.section-deck {
  max-width: 780px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.4;
}

.progress-track {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(33, 29, 25, .08);
}
.progress-track div { width: 0; height: 100%; background: var(--red); }

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(181, 59, 45, .17), transparent 32%),
    linear-gradient(120deg, var(--paper) 0 60%, var(--paper-2) 60% 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -18vw;
  width: 52vw;
  aspect-ratio: 1;
  border: 1px solid rgba(181, 59, 45, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(181, 59, 45, .035), 0 0 0 14vw rgba(181, 59, 45, .025);
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(33, 29, 25, .18);
}
.wordmark { font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: .82rem; font-weight: 650; text-decoration: none; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 155px);
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 130px;
}
.hero h1 {
  max-width: 1000px;
  margin: 0 0 42px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9.4rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .82;
}
.hero h1 span { font-style: normal; }
.hero h1 em { color: var(--red); font-weight: 400; }
.hero-deck { max-width: 720px; margin-bottom: 46px; font-size: clamp(1.2rem, 2.3vw, 1.65rem); }
.scroll-cue { width: fit-content; font-size: .82rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { display: inline-block; margin-left: 10px; color: var(--red); }
.hero-strip {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(33, 29, 25, .16);
  background: rgba(247, 240, 227, .78);
  backdrop-filter: blur(10px);
}
.hero-strip div { display: flex; gap: 16px; padding: 20px 32px; border-right: 1px solid rgba(33, 29, 25, .16); }
.hero-strip div:last-child { border-right: 0; }
.hero-strip span { color: var(--red); font-size: .72rem; font-weight: 800; }
.hero-strip strong { font-size: .9rem; }

.thesis { background: #fffbf4; }
.thesis h2 { max-width: 780px; }
.ink-red { color: var(--red); font-style: italic; }
.lead-copy { max-width: 730px; font-family: Georgia, serif; font-size: 1.28rem; }
.lead-copy p { margin-bottom: 20px; }
.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 70px 0;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  text-align: center;
}
.equation b { color: var(--red); font-size: 1.5em; font-weight: 400; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.definition-grid article { padding: 26px 0; border-top: 3px solid var(--ink); }
.definition-grid h3 { margin: 18px 0 8px; font-family: Georgia, serif; font-size: 1.45rem; }
.definition-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.glyph { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: Georgia, serif; }
.origin-note { margin-top: 80px; padding: 34px; border-left: 4px solid var(--red); background: var(--paper); }
.origin-note blockquote { margin: 0 0 16px; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.25rem); font-style: italic; line-height: 1.2; }
.origin-note p:last-child { margin: 0; color: var(--muted); font-size: .91rem; }

.scrolly { background: var(--ink); color: var(--paper); }
.scrolly-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 70px; }
.diagram-sticky { position: sticky; top: 42px; align-self: start; }
.diagram-head { display: flex; min-height: 76px; align-items: end; justify-content: space-between; gap: 20px; }
.diagram-head .chapter { margin-bottom: 12px; color: #e78a76; }
.diagram-caption { max-width: 310px; margin: 0 0 12px; color: #c9baaa; font-size: .85rem; text-align: right; }
.matrix { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 1fr 45px; min-height: 590px; }
.axis { color: #c6b8aa; font-size: .69rem; letter-spacing: .04em; }
.axis b { color: var(--paper); font-weight: 650; }
.axis-y { display: flex; grid-row: 1; align-items: center; justify-content: space-between; padding: 4px 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.axis-x { display: grid; grid-column: 2; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 10px; }
.axis-x span:last-child { text-align: right; }
.axis-x b { text-align: center; }
.plot { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border: 1px solid #6f655d; overflow: hidden; }
.quad { position: relative; padding: 25px; opacity: .15; transition: opacity .45s ease, background .45s ease; }
.quad:nth-child(odd) { border-right: 1px solid #6f655d; }
.quad:nth-child(-n+2) { border-bottom: 1px solid #6f655d; }
.quad h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.6vw, 2.15rem); font-weight: 400; line-height: 1.03; }
.quad p { margin: 0; color: #c9baaa; font-size: .76rem; }
.quad-no { position: absolute; right: 18px; top: 14px; color: #8a7e73; font-family: Georgia, serif; font-size: 2rem; font-style: italic; }
.q-independent, .q-sovereign { background: rgba(96, 151, 119, .16); }
.q-erosion { background: rgba(181, 59, 45, .22); }
.q-conditional { background: rgba(202, 150, 65, .18); }
.zero-line { position: absolute; z-index: 3; top: 50%; right: 0; left: 0; border-top: 2px solid #f0dfc8; opacity: 0; transition: opacity .4s ease; }
.zero-line span { position: absolute; right: 8px; top: -25px; padding: 2px 7px; background: var(--ink); color: #d7cabc; font-size: .65rem; }
.frontier { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; transition: opacity .45s ease; }
.frontier line { stroke: #f0dfc8; stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; transform-box: view-box; transform-origin: center; transition: transform .65s ease; }
.frontier-label { position: absolute; z-index: 4; right: 1%; bottom: 10%; color: #ded0c0; font-size: .65rem; opacity: 0; transform: rotate(35deg); transition: opacity .45s ease; }
.company-dot { position: absolute; z-index: 8; left: 70%; top: 69%; width: 18px; height: 18px; border: 3px solid var(--paper); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(181, 59, 45, .25); opacity: 0; transform: translate(-50%, -50%); transition: left .65s ease, top .65s ease, opacity .35s ease; }
.matrix[data-stage="1"] .q-independent, .matrix[data-stage="1"] .q-sovereign,
.matrix[data-stage="2"] .quad, .matrix[data-stage="3"] .quad, .matrix[data-stage="4"] .quad { opacity: 1; }
.matrix[data-stage="1"] .zero-line, .matrix[data-stage="2"] .zero-line, .matrix[data-stage="3"] .zero-line, .matrix[data-stage="4"] .zero-line { opacity: 1; }
.matrix[data-stage="2"] .company-dot, .matrix[data-stage="3"] .company-dot, .matrix[data-stage="4"] .company-dot { opacity: 1; }
.matrix[data-stage="3"] .frontier, .matrix[data-stage="3"] .frontier-label, .matrix[data-stage="4"] .frontier, .matrix[data-stage="4"] .frontier-label { opacity: 1; }
.matrix[data-stage="4"] .frontier line { transform: translate(9%, -9%); }
.steps { padding-top: 180px; }
.step { min-height: 66vh; padding: 34px 0; opacity: .28; transition: opacity .35s ease; }
.step.is-active { opacity: 1; }
.step-no { display: inline-block; margin-bottom: 30px; color: #e78a76; font-family: Georgia, serif; font-size: 2.4rem; font-style: italic; }
.step h3 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1; }
.step p { color: #c9baaa; }

.states { background: var(--paper-2); }
.states h2 { max-width: 960px; }
.state-list { border-top: 1px solid var(--line); }
.state-card { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(280px, .75fr); gap: 34px; align-items: start; padding: 42px 0; border-bottom: 1px solid var(--line); }
.state-index { font-family: Georgia, serif; font-size: 4rem; font-style: italic; line-height: 1; }
.state-card h3 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.state-card p { color: var(--muted); }
.state-card blockquote { margin: 0; padding-left: 25px; border-left: 2px solid currentColor; font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }
.state-a { color: #3e5e4c; }.state-a p { color: #5f6e63; }
.state-b { color: var(--green); }.state-b p { color: #556c5d; }
.state-c { color: var(--red-dark); }.state-c p { color: #765d57; }
.state-d { color: #7a541a; }.state-d p { color: #74634b; }

.market-shift { background: #fffaf2; }
.market-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.market-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 22px; }
.market-toggle button, .history-tabs button {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.market-toggle button.active, .history-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.market-statement { min-height: 3em; color: var(--red-dark); font-weight: 700; }
.mini-map { position: relative; min-height: 500px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(47, 104, 79, .12) 0 50%, rgba(181, 59, 45, .08) 50%); }
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map line { vector-effect: non-scaling-stroke; }
.cross-v, .cross-h { stroke: var(--line); stroke-width: 1; }
.market-frontier { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; transform-box: view-box; transform-origin: center; transition: transform .55s ease; }
.mini-map[data-market="hot"] .market-frontier { transform: translate(-8%, 9%); }
.mini-map[data-market="cold"] .market-frontier { transform: translate(10%, -10%); }
.fixed-company { position: absolute; z-index: 3; left: 69%; top: 70%; width: 20px; height: 20px; border: 4px solid #fffaf2; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 10px rgba(181, 59, 45, .15); transform: translate(-50%, -50%); }
.fixed-company span { position: absolute; left: 25px; top: -4px; width: 100px; color: var(--ink); font-size: .75rem; font-weight: 750; }
.mini-label, .lab-axis, .t-label { position: absolute; z-index: 2; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.mini-label.top, .lab-axis.top { top: 8px; left: 10px; }.mini-label.bottom, .lab-axis.bottom { bottom: 8px; left: 10px; }.mini-label.left, .lab-axis.left { left: 10px; bottom: 52%; }.mini-label.right, .lab-axis.right { right: 10px; bottom: 52%; }

.histories { background: var(--ink); color: var(--paper); }
.histories .chapter { color: #e78a76; }
.histories .section-deck { color: #c9baaa; }
.history-interface { margin-top: 70px; }
.history-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.history-tabs button { border-color: #655d55; color: #d8cbbc; }
.history-tabs button[aria-selected="true"] { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.history-stage { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); border: 1px solid #655d55; }
.trajectory-map { position: relative; min-height: 500px; border-right: 1px solid #655d55; background: linear-gradient(135deg, rgba(47, 104, 79, .18), rgba(181, 59, 45, .12)); }
.t-grid { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.8%, #655d55 50%, transparent 50.2%), linear-gradient(180deg, transparent 49.8%, #655d55 50%, transparent 50.2%); }
.trajectory-map svg { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; }
#trajectoryPath { fill: none; stroke: #f2dfc4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; marker-end: url(#arrow); }
#trajectoryStart { fill: var(--red); } #trajectoryEnd { fill: #f2dfc4; }
#arrow path { fill: #f2dfc4; }
.t-profit { top: 10px; left: 12px; }.t-loss { bottom: 10px; left: 12px; }.t-slow { bottom: 51%; left: 12px; }.t-fast { right: 12px; bottom: 51%; }
.history-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 70px); }
.history-copy .eyebrow { color: #e78a76; }
.history-copy h3 { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.5rem); font-weight: 400; line-height: .95; }
.history-copy > p { color: #c9baaa; }
.case-turn { margin: 20px 0; padding: 20px 0; border-top: 1px solid #655d55; border-bottom: 1px solid #655d55; }
.case-turn span { display: block; margin-bottom: 5px; color: #e78a76; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.case-turn p { margin: 0; }
.case-lesson strong { color: var(--paper); }
.history-copy a { width: fit-content; color: #e9b4a7; font-size: .85rem; font-weight: 700; }
.biography-shelf { margin-top: 90px; padding-top: 30px; border-top: 1px solid #655d55; }
.biography-shelf .eyebrow { color: #e78a76; }
.biography-shelf > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.biography-shelf article { padding-top: 18px; border-top: 3px solid #9c8c7d; }
.biography-shelf h3 { font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; font-weight: 400; }
.biography-shelf p { color: #bdae9e; font-size: .83rem; }

.memory { background: var(--paper-2); }
.memory-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.memory-stack { padding-top: 12px; }
.memory-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; margin-bottom: 10px; padding: 20px; border: 1px solid var(--line); background: rgba(255, 251, 244, .45); }
.memory-row span { color: var(--red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.memory-row b { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; }
.memory-result { margin-top: 25px; padding: 28px; background: var(--ink); color: var(--paper); }
.memory-result span { display: block; margin-bottom: 8px; color: #e78a76; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.memory-result strong { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; line-height: 1.2; }
.exceptions { margin-top: 100px; padding-top: 45px; border-top: 1px solid var(--line); }
.exceptions > h3 { max-width: 700px; font-family: Georgia, serif; font-size: 2.4rem; font-weight: 400; }
.exceptions > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.exceptions article { padding-top: 20px; border-top: 3px solid var(--ink); }
.exceptions article > span { color: var(--red); font-family: Georgia, serif; font-size: 2rem; font-style: italic; }
.exceptions h4 { margin: 8px 0; font-family: Georgia, serif; font-size: 1.4rem; }
.exceptions p { color: var(--muted); font-size: .9rem; }

.lab { background: #fffaf2; }
.lab-grid { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 54px; }
.controls { align-self: start; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.controls label { display: block; margin-bottom: 20px; }
.controls label:last-child { margin-bottom: 0; }
.controls label > span { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: .8rem; font-weight: 700; }
.controls output { color: var(--red-dark); }
.controls input[type="range"] { width: 100%; accent-color: var(--red); }
.controls select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 0; background: #fffaf2; color: var(--ink); }
.lab-result { display: grid; grid-template-columns: minmax(300px, 1.08fr) minmax(340px, .92fr); min-height: 520px; border: 1px solid var(--line); }
.lab-map { position: relative; min-height: 520px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(47, 104, 79, .12) 0 50%, rgba(181, 59, 45, .1) 50%); }
.lab-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-map svg line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lab-map svg .lab-frontier { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; transform-box: view-box; transform-origin: center; transition: transform .4s ease; }
.lab-dot { position: absolute; z-index: 5; width: 22px; height: 22px; border: 4px solid #fffaf2; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 10px rgba(181, 59, 45, .16); transform: translate(-50%, -50%); transition: left .35s ease, top .35s ease; }
.result-copy { display: grid; grid-template-rows: auto minmax(2em, auto) minmax(4.8em, auto) auto minmax(3em, auto); align-content: center; padding: 30px; }
.result-copy .eyebrow { margin-bottom: 14px; }
.result-copy h3 { min-height: 2em; margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(2.1rem, 3.5vw, 3.35rem); font-weight: 400; line-height: 1; }
.result-copy > p { color: var(--muted); }
.result-copy > p:not(.eyebrow):not(.result-warning) { min-height: 4.8em; margin-bottom: 0; }
.result-copy dl { margin: 16px 0; border-top: 1px solid var(--line); }
.result-copy dl div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; min-height: 50px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.result-copy dt { color: var(--muted); font-size: .75rem; font-weight: 750; }
.result-copy dd { margin: 0; font-size: .85rem; font-weight: 700; }
.result-warning { display: flex; min-height: 3em; align-items: center; margin: 0; padding-left: 14px; border-left: 3px solid var(--red); color: var(--red-dark) !important; font-weight: 700; }

.moves { background: var(--paper); }
.move-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.move-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.move-grid span { color: var(--red); font-family: Georgia, serif; font-size: 2.4rem; }
.move-grid h3 { margin: 30px 0 10px; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 400; }
.move-grid p { color: var(--muted); font-size: .9rem; }

.lineage { background: #fffaf2; }
.lineage-list { margin-top: 70px; border-top: 1px solid var(--line); }
.lineage-list a { display: grid; grid-template-columns: 150px 220px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.lineage-list a:hover { color: var(--red-dark); padding-left: 8px; }
.lineage-list span { color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lineage-list strong { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.lineage-list p { margin: 0; color: var(--muted); font-size: .86rem; }
.contribution { margin-top: 80px; padding: 38px; background: var(--ink); color: var(--paper); }
.contribution p { color: #c9baaa; }
.contribution blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; }

.closing { min-height: 90svh; display: grid; place-items: center; background: var(--red); color: #fffaf2; }
.closing-inner p { margin: 0 0 8px; font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
.closing h2 { margin: 50px 0 0; font-size: clamp(4.5rem, 11vw, 10rem); color: #fffaf2; }
.closing h2 em { color: var(--ink); font-weight: 400; }

.sources { background: var(--ink); color: var(--paper); }
.sources .chapter { color: #e78a76; }
.sources h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.sources ol { margin: 50px 0; padding-left: 20px; columns: 2; column-gap: 55px; }
.sources li { margin: 0 0 16px; break-inside: avoid; color: #c9baaa; font-size: .83rem; }
.sources a { color: var(--paper); }
.method-note { padding-top: 30px; border-top: 1px solid #655d55; color: #a99c90; font-size: .78rem; }

footer { padding: 24px 0; background: #171411; color: #cbbdad; }
footer div { display: flex; justify-content: space-between; font-size: .76rem; }

@media (max-width: 920px) {
  .section-pad { padding: 82px 0; }
  .hero-strip { position: relative; }
  .hero-inner { min-height: calc(100svh - 86px); }
  .scrolly-grid { grid-template-columns: 1fr; }
  .diagram-sticky { position: sticky; top: 4px; z-index: 10; padding-top: 8px; background: var(--ink); }
  .matrix { min-height: 500px; }
  .steps { padding-top: 20px; }
  .step { min-height: 52vh; padding: 90px 0; }
  .state-card { grid-template-columns: 70px 1fr; }
  .state-card blockquote { grid-column: 2; }
  .market-grid, .memory-grid { grid-template-columns: 1fr; }
  .history-stage { grid-template-columns: 1fr; }
  .trajectory-map { min-height: 390px; border-right: 0; border-bottom: 1px solid #655d55; }
  .biography-shelf > div { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-result { grid-template-columns: 1fr; }
  .lab-map { min-height: 450px; border-right: 0; border-bottom: 1px solid var(--line); }
  .move-grid { grid-template-columns: repeat(2, 1fr); }
  .lineage-list a { grid-template-columns: 130px 1fr; }
  .lineage-list p { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell, .narrow { width: min(100% - 28px, 1180px); }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-inner { min-height: 85svh; padding: 70px 0 110px; }
  .hero h1 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip div { border-right: 0; border-bottom: 1px solid rgba(33, 29, 25, .16); }
  .equation { grid-template-columns: 1fr; gap: 8px; }
  .equation b { transform: rotate(90deg); }
  .definition-grid { grid-template-columns: 1fr; }
  .origin-note { padding: 24px; }
  .diagram-head { display: block; }
  .diagram-caption { max-width: none; text-align: left; }
  .matrix { grid-template-columns: 26px 1fr; min-height: 430px; }
  .quad { padding: 14px; }
  .quad h3 { font-size: 1.08rem; }
  .quad p { font-size: .64rem; }
  .quad-no { display: none; }
  .frontier-label { display: none; }
  .axis-x b { font-size: .6rem; }
  .state-card { grid-template-columns: 50px 1fr; gap: 16px; }
  .state-index { font-size: 2.8rem; }
  .mini-map { min-height: 390px; }
  .history-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .history-tabs button { flex: 0 0 auto; }
  .history-copy { padding: 25px; }
  .biography-shelf > div, .exceptions > div, .move-grid { grid-template-columns: 1fr; }
  .memory-row { grid-template-columns: 90px 1fr; padding: 16px; }
  .lab-map { min-height: 380px; }
  .result-copy { padding: 26px; }
  .result-copy h3, .result-copy > p:not(.eyebrow):not(.result-warning) { min-height: 0; }
  .result-copy dl div { grid-template-columns: 110px 1fr; }
  .lineage-list a { grid-template-columns: 1fr; gap: 5px; }
  .lineage-list p { grid-column: 1; }
  .sources ol { columns: 1; }
  footer div { gap: 20px; }
}

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