:root {
  --ink: #171c18;
  --ink-soft: #4f5b52;
  --paper: #f4efe3;
  --paper-2: #ebe2cf;
  --forest: #173f30;
  --forest-2: #245c43;
  --gold: #d0a84b;
  --rust: #a8422c;
  --blue: #496f7a;
  --line: rgba(23, 28, 24, .16);
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(31, 37, 29, .12);
  --radius: 22px;
  --max: 1180px;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; background: var(--paper); }
.page-top { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(208,168,75,.10), transparent 28rem),
    linear-gradient(180deg, #f7f3e9 0%, var(--paper) 55%, #efe7d6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #efcf79, var(--rust));
}

.site-header {
  position: relative;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(20, 44, 34, .92);
  color: var(--white);
}
.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
}
.brand-mark::before { width: 2px; height: 23px; left: 14px; top: 4px; transform: rotate(9deg); }
.brand-mark::after { width: 18px; height: 9px; border-radius: 100% 0 100% 0; left: 5px; top: 5px; transform: rotate(-17deg); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.header-actions a,
.header-actions button {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  padding: .48rem .78rem;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
}
.header-actions a:hover,
.header-actions button:hover,
.header-actions a:focus-visible,
.header-actions button:focus-visible { background: rgba(255,255,255,.1); outline: none; }

.hero {
  min-height: calc(100svh - 66px);
  color: var(--white);
  background: var(--forest);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: stretch;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,35,26,.98) 0%, rgba(13,35,26,.90) 43%, rgba(13,35,26,.28) 72%, rgba(13,35,26,.58) 100%),
    linear-gradient(0deg, rgba(13,35,26,.72), transparent 40%);
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  filter: saturate(.72) contrast(1.05) brightness(.78);
  opacity: .94;
  transform: scale(1.02);
}
.hero-grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 3rem;
  align-items: center;
  padding: 6rem 0 4rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .76rem;
  color: #f2cf72;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }
h1 {
  margin: .85rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 8.9rem);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 700;
}
.hero-kicker {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.hero-deck {
  max-width: 700px;
  margin: 1.4rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 4px;
  padding: .78rem 1.1rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 800;
}
.btn-primary { background: var(--gold); color: #1c241d; border-color: var(--gold); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); outline: 2px solid rgba(255,255,255,.8); outline-offset: 3px; }
.hero-note {
  align-self: end;
  max-width: 380px;
  margin-left: auto;
  padding: .45rem 0 .45rem 1rem;
  border-left: 2px solid var(--gold);
  font-size: .86rem;
  color: rgba(255,255,255,.76);
}
.hero-note strong { color: var(--white); }

main { overflow: clip; }
section { padding: clamp(4rem, 6.5vw, 6.4rem) 0; }
.container { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), var(--measure)); margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  margin-bottom: 2.5rem;
  max-width: 960px;
}
.section-head > div { max-width: 780px; }
.section-no {
  color: var(--rust);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
}
h2 {
  margin: .35rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.05em;
}
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.section-intro {
  margin: .2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 720px;
}
.lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.orientation-section { background: #eee6d7; }
.orientation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.story-grid { display: grid; grid-template-columns: minmax(150px, .36fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 6rem); max-width: 980px; }
.story-aside { border-top: 2px solid var(--rust); padding-top: .8rem; color: var(--ink-soft); }
.story-label { display: block; color: var(--rust); font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.story-aside p { margin: .8rem 0 1.1rem; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .86; letter-spacing: -.06em; }
.story-copy { max-width: 720px; font-size: 1.12rem; }
.story-copy p { margin: 0 0 1.35rem; }
.story-lede { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -.02em; }
.story-pull { display: flex; align-items: baseline; gap: 1.1rem; margin: 2rem 0; padding: 1rem 0 1.15rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-pull strong { color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .8; letter-spacing: -.07em; }
.story-pull span { max-width: 260px; color: var(--ink-soft); font-size: .92rem; font-weight: 800; line-height: 1.35; }
.orientation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: rgba(255,253,247,.72);
}
.orientation-label,
.reading-map-label {
  display: block;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.orientation-card h3 { margin-top: .55rem; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.orientation-card p { margin-bottom: 0; color: var(--ink-soft); }
.reading-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  max-width: 980px;
  margin-top: 2.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.reading-map a { font-weight: 850; text-underline-offset: 3px; }
.reading-map a:hover,
.reading-map a:focus-visible { color: var(--rust); }

.truth-section { background: var(--white); }
.claim-lead { max-width: 720px; margin: 0 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.35; }
.legend-note { margin: 0 0 .65rem; color: var(--ink-soft); font-size: .9rem; font-weight: 750; }
.legend { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.5rem; }
.legend span, .status {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border-radius: 3px;
  padding: .36rem .65rem;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.status::before, .legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-solid { color: #225f43; background: #e1f0e7; }
.status-qualified { color: #7a5b13; background: #f5ebca; }
.status-contested { color: #87502c; background: #f4e3d5; }
.status-unsupported { color: #8d2f2a; background: #f6dddd; }
.claim-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: .55rem .82rem;
  font-weight: 800;
  font-size: .85rem;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.claim-grid { display: block; max-width: 980px; }
.claim-card {
  display: grid;
  grid-template-columns: minmax(180px, .62fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 5vw, 4rem);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.45rem 0 1.6rem;
  background: transparent;
  box-shadow: none;
  transition: transform .2s ease, opacity .2s ease;
}
.claim-card:hover { transform: translateY(-2px); }
.claim-card[hidden] { display: none; }
.claim-card .status { grid-column: 1; justify-self: start; }
.claim-quote { grid-column: 1; margin: .7rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.2; }
.claim-card p { grid-column: 2; grid-row: 1 / span 3; margin: 0; color: var(--ink-soft); }
.source-link {
  grid-column: 2;
  display: inline-flex;
  align-self: end;
  margin-top: 1rem;
  font-weight: 850;
  font-size: .82rem;
  text-underline-offset: 3px;
}

.system-section { background: var(--forest); color: var(--white); }
.system-section .section-intro { color: rgba(255,255,255,.72); }
.system-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  gap: 1.25rem;
}
.network-panel, .phase-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.network-panel { padding: 1rem; min-height: 560px; display: grid; place-items: center; }
.network-panel svg { width: 100%; height: auto; max-height: 610px; }
.network-edge { stroke: rgba(255,255,255,.24); stroke-width: 2; stroke-dasharray: 5 7; transition: opacity .3s ease, stroke .3s ease; }
.network-node circle { fill: #274f3d; stroke: rgba(255,255,255,.6); stroke-width: 2; transition: all .3s ease; }
.network-node text { fill: rgba(255,255,255,.84); font-size: 15px; font-weight: 750; transition: opacity .3s ease; }
.network-node .sub { fill: rgba(255,255,255,.55); font-size: 11px; font-weight: 600; }
.network-node.is-active circle { fill: var(--gold); stroke: #fff0b8; r: 13; }
.network-node.is-active text { fill: white; }
.network-node.is-muted, .network-edge.is-muted { opacity: .16; }
.phase-panel { padding: 1.35rem; }
.phase-buttons { display: grid; gap: .6rem; margin: 1rem 0 1.3rem; }
.phase-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: rgba(255,255,255,.82);
  border-radius: 4px;
  padding: .8rem .9rem;
  font-weight: 800;
}
.phase-btn span { display: block; font-size: .72rem; color: #e8c768; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .18rem; }
.phase-btn[aria-pressed="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.36); color: white; }
.phase-copy { color: rgba(255,255,255,.72); }
.diagram-note { margin-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.5); }

.numbers-section { position: relative; }
.numbers-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(320px,1.1fr); gap: 1.5rem; align-items: stretch; }
.number-stack { display: grid; gap: 1rem; }
.number-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem 0;
  background: transparent;
}
.big-number { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem,7vw,6.4rem); line-height: .9; letter-spacing: -.06em; color: var(--forest); }
.number-card p { color: var(--ink-soft); margin-bottom: 0; }
.calculator {
  border-radius: 0;
  border-left: 4px solid #f7d27a;
  padding: clamp(1.5rem,4vw,2.5rem);
  color: var(--white);
  background: var(--rust);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calculator label { font-weight: 850; }
.range-wrap { margin: 1.3rem 0; }
input[type="range"] { width: 100%; accent-color: #f7d27a; }
.range-labels { display: flex; justify-content: space-between; font-size: .76rem; color: rgba(255,255,255,.72); }
.calc-result { margin: .5rem 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem,7vw,6.8rem); line-height: .9; }
.calc-caption { color: rgba(255,255,255,.78); }
.calc-warning { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .86rem; }

.source-layers { background: var(--white); }
.layer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.layer {
  position: relative;
  border-radius: 0;
  padding: 1.1rem 0 1.5rem;
  border: 0;
  border-top: 2px solid var(--rust);
  background: transparent;
}
.layer::before { content: attr(data-step); display: block; font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-bottom: .8rem; }
.layer ul { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--ink-soft); }
.layer li + li { margin-top: .5rem; }

.treaty-section { background: #e8ddc8; }
.treaty-board { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-top: 2rem; }
.treaty-term {
  min-height: 210px;
  padding: 1.25rem 1rem 1.25rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(23,28,24,.22);
}
.treaty-term + .treaty-term { padding-left: 1rem; border-left: 1px solid rgba(23,28,24,.16); }
.treaty-term .term-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--rust); font-weight: 900; margin-bottom: 1rem; }
.split-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.split-line::before, .split-line::after { content: ""; height: 1px; background: rgba(23,28,24,.18); }
.split-label { font-size: .75rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.split-card { border-radius: 0; padding: 1.3rem 0; background: transparent; border: 0; border-top: 2px solid var(--rust); }
.split-card p { color: var(--ink-soft); }

.timeline-section { background: var(--ink); color: var(--white); }
.timeline-section .section-intro { color: rgba(255,255,255,.68); }
.timeline {
  position: relative;
  margin-top: 2.5rem;
  display: grid;
  gap: .8rem;
}
.timeline::before { content: ""; position: absolute; left: 89px; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.18); }
.timeline-item { display: grid; grid-template-columns: 74px 30px 1fr; gap: 1rem; align-items: start; }
.timeline-year { text-align: right; font-weight: 900; color: #efcd76; font-variant-numeric: tabular-nums; }
.timeline-dot { width: 13px; height: 13px; margin-top: .35rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(208,168,75,.12); }
.timeline-copy { padding: 0 0 1.25rem; }
.timeline-copy h3 { font-family: inherit; font-size: 1.06rem; letter-spacing: 0; }
.timeline-copy p { margin: .35rem 0 0; color: rgba(255,255,255,.67); max-width: 770px; }

.bridge-section { background: var(--white); }
.evidence-chain { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .65rem; align-items: stretch; margin-top: 2rem; }
.chain-card {
  position: relative;
  padding: 1rem;
  min-height: 190px;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.chain-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -.62rem;
  top: 50%;
  z-index: 2;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--rust);
  font-weight: 900;
}
.chain-card p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.chain-break { border: 2px dashed rgba(168,66,44,.62); background: #fff7f1; }
.congada-figure {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr);
  gap: 1.5rem;
  align-items: center;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
}
.congada-figure .image-wrap { background: #e9dfcb; min-height: 380px; display: grid; place-items: end center; padding: 1.25rem 1.25rem 0; }
.congada-figure img { max-height: 360px; object-fit: contain; }
.congada-copy { padding: 2rem 2rem 2rem .5rem; }
.congada-copy p { color: rgba(255,255,255,.7); }

.silence-section { background: #e9e0d0; }
.silence-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.85fr); gap: 1.2rem; }
.silence-card { border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 1.35rem 0; }
.silence-card p { color: var(--ink-soft); }
.name-list { display: grid; gap: .7rem; margin-top: 1rem; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.name-row span:last-child { text-align: right; font-size: .82rem; font-weight: 850; color: var(--ink-soft); }

.memory-section { position: relative; color: var(--white); min-height: 720px; display: grid; align-items: end; overflow: hidden; }
.memory-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,30,22,.96) 0%, rgba(10,30,22,.67) 46%, rgba(10,30,22,.15) 100%); }
.memory-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.memory-inner { position: relative; z-index: 2; width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7rem 0 4rem; }
.memory-grid { display: grid; grid-template-columns: 1fr minmax(280px,.6fr); gap: 2rem; align-items: end; }
.memory-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.memory-fact { border: 1px solid rgba(255,255,255,.23); border-radius: 18px; padding: 1rem; background: rgba(8,28,20,.45); backdrop-filter: blur(10px); }
.memory-fact strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; line-height: 1; color: #efcd76; }
.memory-fact span { display: block; margin-top: .45rem; color: rgba(255,255,255,.72); font-size: .87rem; }
.photo-credit { margin-top: 1.2rem; font-size: .76rem; color: rgba(255,255,255,.56); }

.sources-section { background: var(--forest); color: var(--white); }
.sources-section .section-intro { color: rgba(255,255,255,.7); }
.sources-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin-top: 2rem; }
.source-card {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  padding: 1.2rem 0 1.4rem;
  background: transparent;
}
.source-card .source-type { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #efcd76; font-weight: 900; }
.source-card h3 { margin-top: .4rem; font-family: inherit; font-size: 1rem; letter-spacing: 0; }
.source-card p { margin: .5rem 0 0; color: rgba(255,255,255,.62); font-size: .86rem; }
.source-card a { display: inline-block; margin-top: .7rem; color: white; font-weight: 850; text-underline-offset: 3px; }
.method-note { margin-top: 1.5rem; border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1rem; max-width: 860px; color: rgba(255,255,255,.7); }

.site-footer { background: #0f251c; color: rgba(255,255,255,.68); padding: 2rem 0; }
.footer-inner { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-inner a { color: white; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-weight: 800;
}
.back-to-top span { font-size: .78rem; }
.back-to-top.is-enhanced {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 130;
  background: var(--forest);
  box-shadow: 0 10px 30px rgba(9, 24, 17, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.back-to-top.is-enhanced.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .section-head, .story-grid, .system-shell, .numbers-grid, .congada-figure, .silence-grid, .memory-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 4rem; align-content: center; }
  .hero-note { margin-left: 0; }
  .orientation-grid, .claim-grid, .layer-grid, .split-grid, .sources-grid { grid-template-columns: 1fr; }
  .story-aside { max-width: 260px; }
  .claim-card { display: block; }
  .claim-card p { margin-top: .8rem; }
  .claim-card .source-link { margin-top: .8rem; }
  .treaty-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .treaty-term + .treaty-term { padding-left: 0; border-left: 0; }
  .evidence-chain { grid-template-columns: 1fr; }
  .chain-card:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -.67rem; }
  .congada-copy { padding: 1.5rem; }
  .memory-facts { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 58px; }
  .brand span:last-child { display: none; }
  .header-actions button { display: none; }
  .hero { min-height: calc(100svh - 58px); }
  .hero::after { background: linear-gradient(0deg, rgba(13,35,26,.98) 0%, rgba(13,35,26,.8) 70%, rgba(13,35,26,.35) 100%); }
  .hero-map { object-position: 61% center; }
  .eyebrow { display: block; max-width: 100%; font-size: .68rem; letter-spacing: .08em; line-height: 1.45; }
  .eyebrow::before { display: inline-block; vertical-align: middle; margin-right: .55rem; }
  h1 { font-size: clamp(3.6rem, 18vw, 5.8rem); }
  .hero-kicker { font-size: 1.3rem; }
  section { padding: 4.5rem 0; }
  .treaty-board { grid-template-columns: 1fr; }
  .timeline::before { left: 69px; }
  .timeline-item { grid-template-columns: 55px 20px 1fr; gap: .65rem; }
  .network-panel { min-height: 420px; padding: .3rem; }
  .network-node text { font-size: 22px; paint-order: stroke; stroke: rgba(18,55,42,.82); stroke-width: 4px; stroke-linejoin: round; }
  .network-node .sub { font-size: 16px; stroke-width: 3px; }
  .network-edge { stroke-width: 3px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .site-header, .reading-progress, .hero-actions, .claim-filters, .phase-buttons, .site-footer, .back-to-top { display: none !important; }
  body { background: white; color: black; }
  .hero { min-height: auto; color: black; background: white; }
  .hero-map, .hero::after { display: none; }
  .hero-grid { display: block; padding: 2rem 0; }
  .hero-deck, .hero-note { color: #333; border-color: #aaa; background: white; }
  .system-section, .timeline-section, .sources-section { color: black; background: white; }
  .system-section .section-intro, .timeline-section .section-intro, .sources-section .section-intro { color: #333; }
  .network-panel, .phase-panel, .source-card { border-color: #aaa; background: white; color: black; }
  .network-node text, .network-node .sub { fill: black; }
  .network-edge { stroke: #888; }
  a { text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .72em; word-break: break-all; }
}
