:root {
  --ink: #17201c;
  --ink-soft: #4f5d56;
  --paper: #f7f6f1;
  --paper-deep: #efeee7;
  --white: #fffefa;
  --line: #d7d9d3;
  --green: #17695a;
  --green-dark: #0c4a3f;
  --green-pale: #dcece7;
  --blue: #2f5f82;
  --blue-pale: #e3edf3;
  --amber: #9b5f12;
  --amber-pale: #f5ead4;
  --rose: #9c463d;
  --rose-pale: #f3e3df;
  --slate: #5e6b70;
  --slate-pale: #e8ecec;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20, 32, 26, 0.08);
  --serif: Iowan Old Style, Baskerville, Georgia, Cambria, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(23, 32, 28, 0.12);
  background: rgba(247, 246, 241, 0.94);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark-mark {
  width: 22px;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 47%, var(--paper) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, var(--paper) 47% 53%, transparent 53%),
    var(--green);
  border: 1px solid var(--green-dark);
  border-radius: 5px;
}
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.home-nav { gap:16px; }
.hero-copy .hero-actions { margin:20px 0; }
@media(max-width:780px) { .site-nav.home-nav { display:flex; flex-wrap:wrap; gap:6px; } .site-nav.home-nav a { padding:6px 9px; } }
.anonymous-badge {
  justify-self: end;
  padding: 5px 10px;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  min-height: min(900px, calc(100svh - 68px));
  max-width: 1420px;
  margin: auto;
  padding: clamp(54px, 5vw, 68px) 5vw clamp(54px, 5vw, 68px);
}
.hero-copy { max-width: 830px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 5.4vw, 6rem);
  line-height: 0.97;
}
h2 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 3.8vw, 3.85rem);
  line-height: 1.05;
}
h3 { line-height: 1.3; letter-spacing: -0.025em; }
.hero-lede {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}
.hero-actions, .release-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { color: var(--white); background: var(--green-dark); }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover { color: var(--ink); background: var(--white); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.priority-note {
  max-width: 760px;
  margin-top: 30px;
  padding-left: 18px;
  color: var(--ink-soft);
  border-left: 3px solid var(--green);
  font-size: 0.92rem;
}
.hero-echo {
  position: relative;
  align-self: start;
  scroll-margin-top: 80px;
  overflow: hidden;
  margin: 0;
  padding: clamp(22px, 2.2vw, 24px);
  color: var(--white);
  background: var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-echo::after {
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(75, 173, 146, 0.34), transparent 68%);
  content: "";
}
.hero-echo > * { position: relative; z-index: 1; }
.hero-echo__heading > span {
  color: #80cfb9;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-echo__heading h2 {
  max-width: none;
  margin: 7px 0 14px;
  color: var(--white);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-echo__stage { display: grid; gap: 6px; }
.hero-echo__label {
  margin: 0;
  color: #dce5e1;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-echo__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero-echo__thumbs svg {
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  background: #f7f5f0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
}
.hero-echo__guide {
  fill: none;
  stroke: rgba(255,255,255,0.24);
  stroke-width: 0.6;
}
.hero-echo__pixels rect {
  width: 5px;
  height: 5px;
  rx: 1px;
  stroke: #f7f5f0;
  stroke-width: 1.2px;
}
.hero-echo__pixels rect:nth-child(1),
.hero-echo__pixels rect:nth-child(3) { fill: #315c78; }
.hero-echo__pixels rect:nth-child(2),
.hero-echo__pixels rect:nth-child(4) { fill: #96473f; }
.hero-echo__arrow {
  display: block;
  margin: 2px 0;
  color: #80cfb9;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.hero-echo__stage--aligned { justify-items: center; }
.hero-echo__stage--aligned .hero-echo__label { justify-self: start; }
.hero-echo__aligned {
  display: block;
  width: min(100%, 270px);
  height: auto;
}
.hero-echo__average {
  display: grid;
  justify-items: center;
  margin: 2px 0 4px;
}
.hero-echo__average svg {
  display: block;
  width: min(100%, 270px);
  height: 24px;
}
.hero-echo__average path {
  fill: none;
  stroke: #80cfb9;
  stroke-linecap: round;
  stroke-width: 2;
}
.hero-echo__average span {
  margin-top: -1px;
  color: #dce5e1;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-echo__result {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.hero-echo__result .hero-echo__label { color: var(--white); }
.hero-echo__heatmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  width: min(96px, 34%);
  aspect-ratio: 1;
  background: #f7f5f0;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
}
.hero-echo__heatmap i { display: block; }
.hero-echo__heatmap .b2 { background: #315c78; }
.hero-echo__heatmap .b1 { background: #b9d0d9; }
.hero-echo__heatmap .n { background: #f7f5f0; }
.hero-echo__heatmap .r1 { background: #ddb3a6; }
.hero-echo__heatmap .r2 { background: #96473f; }
.hero-echo__scale {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 5px;
  width: min(154px, 54%);
  color: #aebbb5;
  font-size: 0.62rem;
}
.hero-echo__scale i { height: 3px; border-radius: 999px; }
.hero-echo__scale i:first-of-type { background: linear-gradient(90deg, #315c78, #f7f5f0); }
.hero-echo__scale i:last-of-type { background: linear-gradient(90deg, #f7f5f0, #96473f); }
.hero-echo figcaption {
  margin: 10px 0 0;
  color: #c7cfcb;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}
.panel-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section { padding: clamp(76px, 7vw, 108px) max(5vw, calc((100vw - 1320px) / 2)); }
.section-tinted { background: var(--paper-deep); }
.section-dark { color: var(--white); background: var(--ink); }
.section-heading { max-width: 980px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 36px; }
.section-heading > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-heading > p:not(.eyebrow) { color: #bbc6c0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card, .boundary-grid article, .atlas-card, .release-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-card > strong {
  display: block;
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-card h3 { margin-bottom: 9px; font-size: 1rem; }
.metric-card p, .boundary-grid p, .atlas-card p, .release-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.88rem; }
.claim-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-observed { color: var(--blue); background: var(--blue-pale); }
.status-inference { color: var(--amber); background: var(--amber-pale); }
.status-proposal { color: var(--rose); background: var(--rose-pale); }
.status-missing { color: var(--slate); background: var(--slate-pale); }
.status-paper-ready { color: var(--green-dark); background: var(--green-pale); }
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}
.boundary-grid article { border-top: 3px solid var(--green); }
.boundary-grid h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }

.method-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
}
.formula-stack { display: grid; gap: 10px; }
.formula-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.formula-card span { color: var(--ink-soft); font-size: 0.78rem; font-weight: 800; }
code { font-family: var(--mono); font-size: 0.86em; }
.formula-card code { overflow-x: auto; padding: 8px 0; color: var(--green-dark); white-space: nowrap; }
.method-notes {
  padding: 30px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: var(--radius);
}
.method-notes h3 { margin-bottom: 8px; }
.method-notes p { color: #d3e6e1; font-size: 0.9rem; }
.method-notes p:last-child { margin-bottom: 0; }

.detail-panel {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-panel summary {
  padding: 18px 22px;
  font-weight: 800;
  cursor: pointer;
}
.detail-panel__body { padding: 0 22px 20px; color: var(--ink-soft); }
.detail-panel__body p:last-child { margin-bottom: 0; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.result-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
}
.result-card > strong {
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.result-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.result-card p { color: var(--ink-soft); font-size: 0.9rem; }
.result-card small { margin-top: auto; padding-top: 16px; color: var(--slate); border-top: 1px solid var(--line); line-height: 1.5; }
.registered-figures { display: grid; gap: 24px; padding: 0 22px 22px; }

.boundary-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
}
.boundary-list article {
  padding: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}
.boundary-list h3 { margin: 22px 0 8px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.boundary-list p { margin-bottom: 0; color: #c7d0cb; font-size: 0.9rem; }
.detail-panel--dark { max-width: 900px; color: var(--white); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.16); }
.deferred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.14); border-top: 1px solid rgba(255,255,255,0.14); }
.deferred-grid article { padding: 22px; background: var(--ink); }
.deferred-grid h3 { margin: 18px 0 8px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.deferred-grid p { margin: 0; color: #c7d0cb; font-size: 0.88rem; }

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.artifact-grid a {
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.artifact-grid a:hover { border-color: var(--green); }
.artifact-grid span { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }

.figure-card {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20,32,26,0.04);
}
.interactive-figure-card {
  overflow: hidden;
  margin: 0 0 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20,32,26,0.04);
}
.interactive-figure-card .fingerprint-p16 { margin: 0; }
.paper-visual {margin:32px 0 48px;min-width:0}
.paper-visual h3 {font-size:22px}
.paper-pan {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
.paper-pan img {display:block;width:100%;min-width:760px;height:auto}
.paper-visual figcaption {font-size:14px;line-height:1.6;margin-top:16px}
.restored-p16 {display:block;width:100%;min-width:760px;height:500px}
.paper-visual button {padding:10px 16px;min-height:44px;cursor:pointer}
.paper-visual .source-controls {align-items:center}
.interactive-figure-card figcaption {
  padding: 20px 24px 24px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.interactive-figure-card figcaption strong { color: var(--ink); }
.artifact-links { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 0.82rem; }
.figure-card.wide + .figure-card.wide { margin-top: 36px; }
.result-callout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding: 28px;
  background: var(--green-pale);
  border: 1px solid #b9d8ce;
  border-radius: var(--radius);
}
.result-callout h3 { margin-bottom: 6px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.result-callout p { margin: 0; color: var(--ink-soft); }
.figure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.figure-card img { width: 100%; height: auto; max-height: 920px; object-fit: contain; background: white; }
.figure-card img.figure-atlas { max-height: none; }
.figure-card img.figure-narrow { width: auto; max-height: 900px; margin: 28px auto; }
.figure-card figcaption { padding: 20px 24px 24px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 0.9rem; }
.figure-card figcaption strong { color: var(--ink); }
.spectrum-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 36px;
  padding: 32px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: var(--radius);
}
.spectrum-intro h3 { margin: 22px 0 10px; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.spectrum-intro p { margin-bottom: 0; color: #d0e1dc; }
.alignment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alignment-grid div { display: flex; flex-direction: column; justify-content: center; min-height: 110px; padding: 18px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; }
.alignment-grid span { color: #b8d7ce; font-size: 0.74rem; font-weight: 800; }
.alignment-grid strong { font-family: var(--serif); font-size: 2.35rem; font-weight: 600; line-height: 1; }
.spectrum-summary { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.spectrum-summary article { display: grid; gap: 5px; padding: 16px; color: var(--ink); background: var(--white); border-radius: 10px; }
.spectrum-summary span { color: var(--green); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.spectrum-summary strong { font-size: 0.92rem; }
.spectrum-summary small { color: var(--ink-soft); font-size: 0.72rem; line-height: 1.45; }
.spectrum-boundary { grid-column: 1 / -1; margin: 0; color: #c9dbd5; font-size: 0.78rem; }

.section-dark .eyebrow { color: #80cfb9; }
.mechanism-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mechanism-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 330px;
  padding: 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.mechanism-index {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  margin-bottom: 34px;
  color: var(--ink);
  background: #80cfb9;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}
.mechanism-grid h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.mechanism-grid p { flex: 1; color: #bcc7c1; font-size: 0.92rem; }
.primitive-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 52px 0;
  padding: 36px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.primitive-panel h3 { font-family: var(--serif); font-size: 1.65rem; }
.primitive-panel p { color: var(--ink-soft); }
.primitive-equations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primitive-equations code { padding: 16px; color: var(--green-dark); background: var(--paper-deep); border-radius: 10px; }
.design-strategies { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 52px; }
.strategy-card { padding: 30px; color: var(--ink); background: var(--white); border-radius: var(--radius); }
.strategy-card h3 { margin: 22px 0 10px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.strategy-card p { color: var(--ink-soft); font-size: 0.9rem; }
.strategy-card .strategy-boundary { margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; }
.evidence-chain { margin: 0; padding: 0; list-style: none; }
.evidence-chain li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.evidence-chain li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.chain-marker { display: grid; place-items: center; width: 34px; aspect-ratio: 1; color: white; border-radius: 50%; font-size: 0.78rem; font-weight: 850; }
.evidence-chain h3 { margin: 0 0 4px; }
.evidence-chain p { margin: 0; color: #bac5bf; font-size: 0.88rem; }

.two-column-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-column-figures .figure-card img { min-height: 260px; object-fit: contain; }
.single-evidence-figure { max-width: 1180px; }
.caveat-callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 24px;
  background: var(--green-pale);
  border: 1px solid #b9d8ce;
  border-radius: var(--radius);
}
.caveat-callout p { margin: 0; }
.caveat-secondary { margin-top: 12px; background: var(--amber-pale); border-color: #e3cd9f; }

.analyzer-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}
.upload-panel, .phase-output {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.drop-zone {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
  border: 1.5px dashed #9da9a3;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.drop-zone:hover, .drop-zone.is-dragging { background: var(--green-pale); border-color: var(--green); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 42px; aspect-ratio: 1; margin-bottom: 10px; color: var(--white); background: var(--green); border-radius: 50%; font-size: 1.5rem; }
.drop-zone strong { font-size: 1rem; }
.drop-zone small { color: var(--ink-soft); font-size: 0.76rem; }
.analyzer-meta { display: grid; gap: 8px; margin: 18px 0; }
.analyzer-meta div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.77rem; }
.analyzer-meta span { color: var(--ink-soft); }
.analyzer-meta strong { text-align: right; }
.preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: 12px;
}
.preview-frame canvas { display: block; width: 100%; height: auto; }
.preview-frame p { position: absolute; margin: 0; font-size: 0.8rem; }
.phase-output { display: flex; flex-direction: column; }
.analyzer-disclaimer { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.analyzer-disclaimer p { margin: 0; color: var(--ink-soft); font-size: 0.84rem; }
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.phase-grid figure { margin: 0; padding: 10px; background: var(--paper-deep); border-radius: 10px; }
.phase-grid canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; background: #ecece8; }
.phase-grid figcaption { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; font-weight: 800; }
.phase-grid figcaption span { color: var(--ink-soft); font-weight: 650; }
.phase-output > .button { align-self: flex-start; margin-top: auto; }
.noscript-note { padding: 16px; color: var(--rose); background: var(--rose-pale); border-radius: 10px; }

.atlas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.atlas-card h3 { margin: 22px 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.atlas-card dl { margin: 24px 0 0; }
.atlas-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.8rem; }
.atlas-card dt { color: var(--ink-soft); }
.atlas-card dd { margin: 0; font-weight: 750; text-align: right; }
.schema-link { padding-top: 12px; }
.pilot-figure { margin-top: 30px; }

.counterfactual-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.counterfactual-grid > div:first-child p:last-child { color: #bbc6c0; font-size: 1.05rem; }
.counterfactual-card { padding: 30px; color: var(--ink); background: var(--white); border-radius: var(--radius); }
.counterfactual-card p { color: var(--ink-soft); font-size: 0.9rem; }
.counterfactual-card p:last-child { margin-bottom: 0; }

.ledger-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); }
th, td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--ink-soft); background: var(--paper-deep); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; }
td { font-size: 0.85rem; }
td:nth-child(2) { width: 180px; }

.release-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.release-grid span { color: var(--green); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.release-grid h3 { margin: 20px 0 8px; }
.release-actions { margin-top: 28px; }
.references ol { max-width: 1000px; padding-left: 24px; }
.references li { margin-bottom: 10px; color: var(--ink-soft); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #c4cec9;
  background: #0c1310;
  font-size: 0.76rem;
}
footer p { margin: 0; }
footer a { color: #d9e7e1; }

:focus-visible { outline: 3px solid #e9a74f; outline-offset: 3px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .anonymous-badge { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-echo { width: min(100%, 760px); }
  .metric-grid, .release-grid, .artifact-grid { grid-template-columns: 1fr 1fr; }
  .analyzer-shell { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 116px; }
  .site-header { grid-template-columns: 1fr; gap: 8px; padding: 10px 18px 9px; }
  .site-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; gap: 4px; overflow: visible; }
  .site-nav a { min-width: 0; padding: 5px 2px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 0.68rem; text-align: center; }
  .hero { gap: 30px; padding: 40px 20px 58px; }
  h1 { max-width: none; font-size: clamp(3.1rem, 15vw, 4.3rem); line-height: 0.98; }
  h2 { font-size: clamp(2.05rem, 10.2vw, 2.75rem); line-height: 1.06; }
  .hero-echo { padding: 22px; border-radius: 20px; }
  .hero-echo__heading h2 { font-size: 1.5rem; }
  .hero-echo__thumbs { gap: 6px; }
  .hero-echo__heatmap { width: 108px; }
  .section { padding: 64px 20px; }
  .section-heading, .section-heading.compact { margin-bottom: 32px; }
  .metric-card, .boundary-grid article, .atlas-card, .release-grid article { padding: 22px; }
  .metric-grid, .boundary-grid, .method-grid, .mechanism-grid, .primitive-panel, .design-strategies,
  .two-column-figures, .atlas-grid, .counterfactual-grid, .release-grid, .spectrum-panel,
  .result-grid, .boundary-list, .artifact-grid, .deferred-grid {
    grid-template-columns: 1fr;
  }
  .spectrum-summary { grid-template-columns: 1fr 1fr; }
  .result-callout { flex-direction: column; padding: 22px; }
  .formula-card { grid-template-columns: 1fr; gap: 2px; }
  .mechanism-grid article { min-height: 0; padding: 24px; }
  .mechanism-index { margin-bottom: 18px; }
  .primitive-panel { gap: 24px; margin: 32px 0; padding: 24px; }
  .design-strategies { margin-bottom: 32px; }
  .strategy-card { padding: 24px; }
  .primitive-equations { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr 1fr; }
  .evidence-chain li { grid-template-columns: auto 1fr; }
  .evidence-chain li > .claim-status { grid-column: 2; }
  .caveat-callout { flex-direction: column; }
  .figure-header { flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; }
  .figure-card figcaption, .interactive-figure-card figcaption, .estimator-demo-card figcaption { padding: 18px; font-size: 0.84rem; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .spectrum-summary, .alignment-grid { grid-template-columns: 1fr; }
  .formula-card code { overflow-x: visible; white-space: normal; overflow-wrap: anywhere; }
  .claim-status { max-width: 100%; white-space: normal; }
}

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

@media print {
  .site-header, .hero-actions, #analyzer, footer { display: none; }
  body { background: white; }
  .section, .hero { padding: 32px 0; }
  .section-dark { color: var(--ink); background: white; }
  .section-dark p { color: var(--ink-soft) !important; }
  .figure-card, .interactive-figure-card { break-inside: avoid; }
}
