:root {
  --paper: #f7f9f6;
  --paper-deep: #edf1ec;
  --white: #ffffff;
  --ink: #161b1d;
  --ink-soft: #4e595b;
  --line: #cfd7d3;
  --line-dark: #303a3c;
  --blue: #2f6ca8;
  --teal: #17847b;
  --coral: #d74f4f;
  --yellow: #e7b822;
  --navy: #172b3a;
  --max-width: 1180px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Inter, ui-sans-serif, system-ui, sans-serif;
  line-break: strict;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  background: rgba(247, 249, 246, 0.9);
  border-bottom: 1px solid rgba(48, 58, 60, 0.12);
  backdrop-filter: blur(18px) saturate(1.1);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 249, 246, 0.97);
  box-shadow: 0 10px 30px rgba(23, 43, 58, 0.08);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  width: min(var(--max-width), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.wordmark,
.footer-mark {
  width: fit-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.header-paper {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-tools {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.language-switch a {
  padding: 5px 1px;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
  color: var(--teal);
}

html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4,
html[lang="zh-CN"] .paper-title,
html[lang="zh-CN"] .signal-item strong,
html[lang="zh-CN"] .result-stat strong,
html[lang="zh-CN"] .big-number,
html[lang="zh-CN"] .efficiency-number {
  font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}

.header-paper:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.header-paper svg {
  width: 17px;
  height: 17px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.menu-toggle .close-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82svh;
  max-height: 780px;
  padding: calc(var(--header-height) + 62px) 20px 76px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-color: var(--white);
  background-image: url("assets/method-overview.webp");
  background-position: center 54%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.42;
  filter: saturate(0.8) contrast(0.9);
  transform: scale(1.03);
}

.hero-overlay {
  z-index: -1;
  background: rgba(247, 249, 246, 0.84);
}

.hero-inner {
  align-self: center;
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 22px;
}

.hero-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(48, 58, 60, 0.18);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.paper-title {
  max-width: 900px;
  margin: 24px auto 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.author-list a {
  color: var(--blue);
  font-size: 16px;
  font-weight: 750;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.author-list sup {
  top: -0.3em;
  margin-left: 2px;
  font-size: 10px;
}

.author-note,
.affiliation {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.affiliation {
  margin-top: 3px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.action:hover {
  transform: translateY(-2px);
}

.action-primary {
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
}

.action-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.action-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-dark);
}

.action-secondary:hover {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.action svg {
  width: 18px;
  height: 18px;
}

.hero-jump {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 1px solid rgba(48, 58, 60, 0.3);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.hero-jump:hover {
  color: var(--white);
  background: var(--navy);
  transform: translateX(-50%) translateY(2px);
}

.signal-band {
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.signal-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.signal-item {
  min-width: 0;
  padding: 26px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.signal-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.signal-item strong,
.signal-item span {
  display: block;
}

.signal-item strong {
  color: #fff2ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.05;
}

.signal-item span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 112px 20px;
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 52px;
}

.heading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 70px;
  align-items: end;
}

.section-label,
.card-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.tradeoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.tradeoff-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tradeoff-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
}

.eviction-card::before {
  background: var(--coral);
}

.merging-card::before {
  background: var(--teal);
}

.grace-card::before {
  background: var(--yellow);
}

.tradeoff-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.25;
}

.tradeoff-card p:last-child {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.paper-figure,
.efficiency-figure {
  margin: 0;
}

.paper-figure img {
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.abstract-block {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 36px;
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.abstract-block .section-label {
  margin-top: 5px;
}

.abstract-block p:last-child {
  max-width: 890px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.decision-block {
  position: relative;
  min-width: 0;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.decision-block::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
}

.coverage-decision::before {
  background: var(--yellow);
}

.resolution-decision::before {
  background: var(--teal);
}

.decision-kicker,
.chapter-index,
.anatomy-label,
.auction-heading span,
.frontier-tool-header span,
.task-needs span,
.practical-impact span,
.ruler-result small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.decision-block h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.15;
}

.decision-block p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.budget-equation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 30px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  text-align: center;
}

.budget-equation span {
  font-size: 17px;
  font-weight: 750;
}

.budget-equation strong {
  color: #fff2ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.input-budget {
  display: grid;
  grid-template-columns: 0.85fr 3.2fr 0.8fr 1.1fr;
  min-height: 112px;
  margin-top: 58px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
}

.input-segment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(48, 58, 60, 0.28);
}

.input-segment:last-child {
  border-right: 0;
}

.input-segment strong,
.input-segment span {
  display: block;
}

.input-segment strong {
  color: var(--navy);
  font-size: 14px;
}

.input-segment span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.prompt-segment,
.question-segment {
  background: #e8f1f7;
}

.context-segment {
  background: #fff8d9;
}

.recent-segment {
  background: #dcefe6;
}

.input-budget-note {
  max-width: 820px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.method-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-contract > div {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.method-contract > div:first-child {
  padding-left: 0;
}

.method-contract > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.method-contract strong {
  color: var(--navy);
  font-size: 15px;
}

.method-contract p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.walkthrough-section {
  background: var(--white);
}

.evidence-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 54px;
}

.evidence-node {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.evidence-node span,
.evidence-node strong {
  display: block;
}

.evidence-node span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-node strong {
  margin-top: 8px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.35;
}

.question-node {
  background: #f1f4f5;
}

.bridge-node {
  background: #dff3ef;
  border-color: rgba(23, 132, 123, 0.28);
}

.answer-node {
  background: #fde7e2;
  border-color: rgba(215, 79, 79, 0.25);
}

.evidence-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.allocation-figure a,
.method-figure a {
  display: block;
}

.representation-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.representation-legend > div {
  display: grid;
  grid-template-columns: 18px auto;
  gap: 7px 10px;
  min-width: 0;
}

.representation-legend strong {
  color: var(--navy);
  font-size: 14px;
}

.representation-legend p {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1px solid rgba(48, 58, 60, 0.2);
}

.exact-swatch {
  background: #cf2638;
}

.merged-swatch {
  background: #74cec6;
}

.dropped-swatch {
  background: #d8d8d8;
}

.method-section {
  color: var(--ink);
  background: var(--paper-deep);
}

.method-section h2,
.method-section .section-lead {
  color: var(--navy);
}

.method-section .section-label {
  color: var(--teal);
}

.method-figure img {
  border-color: var(--line);
}

.method-figure figcaption {
  color: var(--ink-soft);
}

.method-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 70px;
  padding: 0;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
}

.method-roadmap li {
  min-width: 0;
  min-height: 142px;
  padding: 23px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.method-roadmap li:last-child {
  border-right: 0;
}

.method-roadmap span,
.method-roadmap strong,
.method-roadmap small {
  display: block;
}

.method-roadmap span {
  color: #fff2ad;
  font-size: 12px;
  font-weight: 850;
}

.method-roadmap strong {
  margin-top: 16px;
  font-size: 17px;
}

.method-roadmap small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.method-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: center;
  margin: 0;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.method-chapter.prototype-chapter {
  display: block;
}

.chapter-copy h3,
.ruler-result h3,
.ablation-heading h3 {
  margin: 9px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.12;
  text-wrap: balance;
}

.chapter-copy > p:not(.chapter-index):not(.method-maxim) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.chapter-copy code {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.method-maxim {
  margin: 25px 0 0;
  padding-left: 16px;
  color: var(--navy);
  border-left: 4px solid var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
}

.slot-demo,
.frontier-tool,
.value-flow,
.floor-path,
.auction-board,
.ragged-cache {
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slot-token-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
}

.slot-token-row span {
  min-width: 0;
  padding: 7px 3px;
  color: var(--ink);
  background: #edf2f2;
  border-radius: 3px;
  font-size: 10px;
  text-align: center;
  overflow: hidden;
}

.boundary-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 142px;
  margin-top: 12px;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line-dark);
}

.boundary-bars i {
  display: block;
  height: var(--score);
  min-height: 8px;
  background: #85b6b0;
  border-radius: 3px 3px 0 0;
}

.boundary-bars .boundary-peak {
  background: var(--coral);
}

.slot-partition {
  display: grid;
  grid-template-columns: 6fr 4fr 2fr;
  gap: 3px;
  margin-top: 10px;
}

.slot-partition span {
  padding: 9px 8px;
  color: var(--navy);
  border: 1px solid rgba(23, 43, 58, 0.18);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.slot-a,
.slot-c {
  background: #e7f1f5;
}

.slot-b {
  background: #fff0c7;
}

.slot-demo > p,
.frontier-tool > p,
.value-flow > p,
.floor-path > p,
.auction-board > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.frontier-meaning {
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink-soft);
  list-style: none;
}

.frontier-meaning li {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  font-size: 13px;
}

.frontier-tool-header,
.auction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.frontier-tool-header span,
.frontier-tool-header strong {
  display: block;
}

.frontier-tool-header strong {
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
}

.frontier-tool output {
  min-width: 82px;
  padding: 8px 10px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.frontier-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 22px;
}

.frontier-controls button {
  min-height: 44px;
  padding: 0;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.frontier-controls button:hover,
.frontier-controls button[aria-checked="true"] {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.tree-canvas {
  display: grid;
  gap: 15px;
  min-height: 246px;
  margin-top: 24px;
  padding: 22px 0;
  background: linear-gradient(var(--line), var(--line)) center / 1px calc(100% - 58px) no-repeat;
}

.tree-level {
  display: grid;
  justify-content: center;
  gap: 9px;
}

.tree-root-level {
  grid-template-columns: 112px;
}

.tree-pair-level {
  grid-template-columns: repeat(2, 96px);
}

.tree-quad-level {
  grid-template-columns: repeat(4, 66px);
}

.tree-leaf-level {
  grid-template-columns: repeat(8, 34px);
}

.tree-node {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: var(--ink-soft);
  background: #eef2f1;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.42;
  transition: opacity 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.frontier-tool[data-level="1"] .node-root,
.frontier-tool[data-level="3"] .node-14,
.frontier-tool[data-level="3"] .node-56,
.frontier-tool[data-level="3"] .node-78,
.frontier-tool[data-level="8"] .leaf {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
}

.frontier-tool[data-level="0"] .tree-node {
  opacity: 0.18;
}

.frontier-tool[data-level="8"] .leaf {
  background: var(--coral);
  border-color: var(--coral);
}

.prototype-chapter {
  background: var(--navy);
  margin-right: -32px;
  margin-left: -32px;
  padding-right: 32px;
  padding-left: 32px;
  border: 0;
  border-radius: 8px;
}

.prototype-chapter .chapter-index,
.prototype-chapter .chapter-copy h3 {
  color: #fff2ad;
}

.prototype-chapter .chapter-copy > p:not(.chapter-index) {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.72);
}

.prototype-anatomy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.prototype-anatomy > div {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.prototype-anatomy > div:first-child {
  padding-left: 0;
}

.prototype-anatomy > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.prototype-anatomy .anatomy-label {
  color: #8bd4c6;
}

.prototype-anatomy h4 {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 17px;
}

.prototype-anatomy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.value-flow-chain,
.value-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.value-flow-chain span,
.value-equation span {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.flow-question {
  background: #e7edf0;
}

.flow-direct {
  background: #d9f0e9;
}

.flow-hop {
  background: #fff0c7;
}

.value-equation {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.value-equation span {
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
}

.value-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.value-parent {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(260px, 100%);
  padding: 11px;
  color: var(--white);
  background: var(--teal);
  border-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.value-child {
  padding: 10px 4px;
  color: var(--ink-soft);
  background: #eef2f1;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: center;
  font-size: 11px;
}

.floor-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.floor-path > div {
  min-width: 0;
  padding: 18px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.floor-path span,
.floor-path strong {
  display: block;
}

.floor-path span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.floor-path strong {
  margin-top: 6px;
  color: var(--navy);
  font-size: 13px;
}

.floor-path i {
  height: 2px;
  background: var(--coral);
}

.floor-path .floor-exact {
  color: var(--white);
  background: #fbe5e2;
  border-color: rgba(215, 79, 79, 0.35);
}

.floor-path > p {
  grid-column: 1 / -1;
}

.utility-formula {
  display: grid;
  grid-template-columns: auto 26px minmax(0, 1fr) 26px auto;
  gap: 7px;
  align-items: center;
  margin-top: 26px;
  padding: 16px;
  color: var(--navy);
  background: #fff7d8;
  border: 1px solid rgba(231, 184, 34, 0.38);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.auction-chapter {
  align-items: start;
}

.auction-board {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.auction-heading span {
  color: #fff2ad;
}

.auction-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.budget-meter {
  display: grid;
  grid-template-columns: repeat(6, 13px);
  gap: 4px;
}

.budget-meter i {
  width: 13px;
  height: 26px;
  background: #8bd4c6;
  border-radius: 3px;
}

.auction-queue {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.auction-queue li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.auction-queue li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--navy);
  background: #fff2ad;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 850;
}

.auction-queue strong,
.auction-queue small {
  display: block;
}

.auction-queue strong {
  font-size: 13px;
}

.auction-queue small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.auction-queue li > i {
  height: 8px;
  background: linear-gradient(90deg, #8bd4c6 var(--utility), rgba(255, 255, 255, 0.15) var(--utility));
  border-radius: 4px;
}

.toy-cache {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 24px;
}

.toy-cache span {
  min-width: 0;
  min-height: 48px;
  padding: 9px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.toy-coarse {
  color: var(--navy);
  background: #b7d3e3;
}

.toy-merged {
  color: var(--navy);
  background: #8bd4c6;
}

.toy-exact {
  background: var(--coral);
}

.auction-board > p {
  color: rgba(255, 255, 255, 0.62);
}

.ragged-cache > div {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 10px;
}

.ragged-cache > div:first-child {
  margin-top: 0;
}

.ragged-cache b {
  flex: 0 0 58px;
  color: var(--navy);
  font-size: 11px;
}

.ragged-cache div span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 35px;
  color: var(--navy);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
}

.cache-coarse {
  background: #b7d3e3;
}

.cache-refined {
  background: #8bd4c6;
}

.cache-exact {
  color: var(--white) !important;
  background: var(--coral);
}

.ragged-cache > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 23px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.ragged-cache > p span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.technical-details {
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.technical-details summary {
  min-height: 54px;
  padding: 16px 22px;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.technical-details > div {
  padding: 0 22px 20px;
  border-top: 1px solid var(--line);
}

.technical-details p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.technical-overview-figure {
  margin-top: 72px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 68px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 30px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.method-steps li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.step-index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--navy);
  background: #fff2ad;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.method-steps h3 {
  margin: 0;
  color: var(--white);
  font-size: 19px;
  line-height: 1.3;
}

.method-steps p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.65;
}

.operation-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 48px;
}

.operation-band > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.operation-mark {
  display: grid;
  place-items: center;
  width: 68px;
  min-height: 32px;
  color: var(--navy);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.add-mark {
  background: #ffe37a;
}

.split-mark {
  background: #87d4a5;
}

.floor-mark {
  background: #8ab9e0;
}

.operation-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.results-section {
  background: var(--white);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.result-stat {
  min-width: 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-stat strong,
.result-stat span {
  display: block;
}

.result-stat strong {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.result-stat span {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.task-needs,
.practical-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 58px;
}

.task-needs > div,
.practical-impact > div {
  min-width: 0;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-needs strong,
.task-needs p,
.practical-impact strong,
.practical-impact p {
  display: block;
}

.task-needs strong,
.practical-impact strong {
  margin-top: 7px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.task-needs p,
.practical-impact p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap:focus-visible {
  outline: 3px solid rgba(47, 108, 168, 0.45);
  outline-offset: 3px;
}

.quality-reading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 72px;
  align-items: center;
  margin-top: 72px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quality-copy h3,
.deployment-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.18;
}

.quality-copy > p:last-of-type,
.deployment-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.quality-regimes {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.quality-regimes > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.quality-regimes span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.quality-regimes strong,
.quality-regimes small {
  display: block;
}

.quality-regimes strong {
  color: var(--ink);
  font-size: 14px;
}

.quality-regimes small {
  color: var(--ink-soft);
  font-size: 12px;
}

.retention-figure {
  margin: 0;
  padding: 32px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.retention-figure figcaption {
  margin-bottom: 26px;
  color: #fff2ad;
  font-size: 14px;
  font-weight: 800;
}

.retention-row {
  display: grid;
  grid-template-columns: 104px minmax(80px, 1fr) 52px;
  gap: 14px;
  align-items: center;
  margin-top: 15px;
}

.retention-row span,
.retention-row strong {
  font-size: 12px;
}

.retention-row span {
  color: rgba(255, 255, 255, 0.76);
}

.retention-row strong {
  color: var(--white);
  text-align: right;
}

.retention-row i,
.capacity-translation i {
  display: block;
  overflow: hidden;
  height: 8px;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 2px;
}

.retention-row b,
.capacity-translation b {
  display: block;
  width: var(--retention);
  height: 100%;
  background: #8ab9e0;
}

.retention-figure > p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.55;
}

.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-width: 760px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.table-heading h3,
.table-heading p {
  margin: 0;
}

.table-heading h3 {
  color: var(--ink);
  font-size: 19px;
}

.table-heading p {
  color: var(--ink-soft);
  font-size: 12px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 17px 28px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

tbody th,
tbody td {
  color: var(--ink);
  font-size: 14px;
}

tbody td strong {
  color: var(--blue);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.efficiency-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: center;
  margin-top: 96px;
}

.efficiency-figure {
  justify-self: center;
  max-width: 470px;
}

.efficiency-figure img {
  width: 100%;
  height: auto;
}

.efficiency-copy h3 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.15;
  text-wrap: balance;
}

.efficiency-meaning {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.capacity-translation {
  margin-top: 32px;
  padding: 26px;
  background: var(--navy);
  border-radius: 8px;
}

.capacity-translation > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.capacity-translation > p strong {
  color: var(--white);
}

.capacity-translation > div {
  display: grid;
  grid-template-columns: 102px minmax(80px, 1fr) 88px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.capacity-translation span,
.capacity-translation > div strong {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.capacity-translation > div strong {
  color: var(--white);
  text-align: right;
}

.capacity-translation i {
  background: rgba(255, 255, 255, 0.12);
}

.capacity-translation b {
  width: var(--capacity);
  background: #76d6c7;
}

.capacity-translation small {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.efficiency-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.efficiency-metrics div {
  min-width: 0;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
}

.efficiency-metrics div:first-child {
  padding-left: 0;
}

.efficiency-metrics div:last-child {
  border-right: 0;
}

.efficiency-metrics dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.efficiency-metrics dd {
  margin: 4px 0 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
}

.ruler-result {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 60px;
  align-items: center;
  margin-top: 72px;
  padding: 38px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.ruler-result .section-label,
.ruler-result h3 {
  color: #fff2ad;
}

.ruler-result h3 {
  font-size: 34px;
}

.ruler-result p:last-child {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.ruler-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.ruler-track span,
.ruler-track strong,
.ruler-track small {
  display: block;
}

.ruler-track span {
  text-align: center;
}

.ruler-track strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.ruler-track small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.35;
}

.ruler-track i {
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.practical-impact {
  margin: 72px 0 0;
}

.practical-impact > div:nth-child(2) {
  background: #fff7dc;
  border-color: rgba(231, 184, 34, 0.35);
}

.measured-systems {
  margin-top: 80px;
  padding: 42px;
  background: var(--navy);
  border-radius: 8px;
}

.measured-systems-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: end;
}

.measured-systems .section-label,
.measured-systems h3 {
  color: #fff2ad;
}

.measured-systems h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.18;
}

.measured-systems-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.system-table-wrap {
  overflow-x: auto;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
}

.system-table-wrap:focus-visible {
  outline: 3px solid rgba(255, 242, 173, 0.55);
  outline-offset: 3px;
}

.system-table {
  min-width: 910px;
}

.system-table th,
.system-table td {
  padding: 15px 18px;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  white-space: nowrap;
}

.system-table thead th {
  color: rgba(255, 255, 255, 0.55);
}

.system-table tbody th,
.system-table td strong {
  color: var(--white);
}

.system-table td strong {
  font-size: 13px;
}

.system-table-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.6;
}

.deployment-guide {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
  gap: 70px;
  margin-top: 84px;
  padding: 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deployment-scenarios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deployment-scenarios article {
  min-width: 0;
  padding: 8px 28px 30px;
  border-bottom: 1px solid var(--line);
}

.deployment-scenarios article:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.deployment-scenarios article:nth-child(even) {
  padding-right: 0;
}

.deployment-scenarios article:nth-last-child(-n + 2) {
  padding-top: 30px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.deployment-scenarios span,
.deployment-scenarios strong,
.deployment-scenarios p {
  display: block;
}

.deployment-scenarios span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.deployment-scenarios strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.4;
}

.deployment-scenarios p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.deployment-scenarios .deployment-caution span {
  color: #9b6b00;
}

.ablation-lessons {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 70px;
  align-items: start;
  margin-top: 84px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.ablation-heading h3 {
  font-size: 36px;
}

.ablation-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.ablation-lessons dl {
  margin: 0;
}

.ablation-lessons dl > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.ablation-lessons dl > div:first-child {
  padding-top: 0;
}

.ablation-lessons dl > div:last-child {
  border-bottom: 0;
}

.ablation-lessons dt {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.ablation-lessons dt span {
  display: block;
  margin-top: 5px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ablation-lessons dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.ablation-note {
  grid-column: 2;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.citation-section {
  color: var(--white);
  background: #252326;
}

.citation-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  align-items: start;
}

.citation-section .section-label {
  color: #f0b7a5;
}

.citation-section h2 {
  color: var(--white);
  font-size: 48px;
}

.citation-copy {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.75;
}

.citation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.citation-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f4d06f;
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.citation-links svg {
  width: 15px;
  height: 15px;
}

.bibtex-block {
  min-width: 0;
  background: #161719;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bibtex-header > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bibtex-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  height: 34px;
  padding: 0 10px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.bibtex-header button:hover {
  color: #161719;
  background: #f4d06f;
  border-color: #f4d06f;
}

.bibtex-header svg {
  width: 16px;
  height: 16px;
}

.bibtex-block pre {
  max-width: 100%;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d8eadf;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.site-footer {
  padding: 28px 20px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner nav a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 3px solid rgba(47, 108, 168, 0.5);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .heading-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .section-lead {
    max-width: 760px;
  }

  .signal-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .signal-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .method-contract,
  .prototype-anatomy,
  .task-needs,
  .practical-impact {
    grid-template-columns: 1fr;
  }

  .method-contract > div,
  .method-contract > div:first-child,
  .method-contract > div:last-child,
  .prototype-anatomy > div,
  .prototype-anatomy > div:first-child,
  .prototype-anatomy > div:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-contract > div:last-child,
  .prototype-anatomy > div:last-child {
    border-bottom: 0;
  }

  .prototype-anatomy > div,
  .prototype-anatomy > div:first-child,
  .prototype-anatomy > div:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.18);
  }

  .method-roadmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-roadmap li {
    min-height: 124px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .method-chapter {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .prototype-chapter {
    margin-right: 0;
    margin-left: 0;
  }

  .ruler-result,
  .ablation-lessons,
  .quality-reading,
  .deployment-guide,
  .measured-systems-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ablation-note {
    grid-column: 1;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .method-steps li:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .operation-band {
    grid-template-columns: 1fr;
  }

  .efficiency-grid {
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
    gap: 46px;
  }

  .citation-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    width: min(var(--max-width), calc(100% - 28px));
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .header-paper {
    display: none;
  }

  .header-tools {
    position: absolute;
    right: 58px;
  }

  .language-switch {
    font-size: 12px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(247, 249, 246, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(23, 43, 58, 0.12);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 80svh;
    max-height: none;
    padding-top: calc(var(--header-height) + 54px);
  }

  h1 {
    font-size: 74px;
  }

  .paper-title {
    font-size: 23px;
  }

  .tradeoff-grid,
  .result-stats,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .budget-equation {
    grid-column: auto;
  }

  .input-budget {
    grid-template-columns: 1fr 2fr;
  }

  .input-segment:nth-child(2) {
    border-right: 0;
  }

  .input-segment:nth-child(1),
  .input-segment:nth-child(2) {
    border-bottom: 1px solid rgba(48, 58, 60, 0.28);
  }

  .evidence-chain {
    grid-template-columns: 1fr;
  }

  .evidence-arrow {
    width: 36px;
    height: 36px;
    justify-self: center;
  }

  .representation-legend {
    grid-template-columns: 1fr;
  }

  .method-roadmap {
    grid-template-columns: 1fr 1fr;
  }

  .efficiency-grid {
    grid-template-columns: 1fr;
  }

  .efficiency-figure {
    max-width: 430px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .header-tools {
    right: 52px;
  }

  .language-switch {
    gap: 5px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 82px 18px;
  }

  .hero {
    min-height: 84svh;
    padding-right: 18px;
    padding-bottom: 70px;
    padding-left: 18px;
  }

  .hero-media {
    background-position: 51% center;
  }

  h1 {
    font-size: 58px;
  }

  .paper-title {
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.4;
  }

  .author-list {
    gap: 6px 18px;
    margin-top: 20px;
  }

  .author-list a {
    font-size: 14px;
  }

  .action {
    min-width: 0;
  }

  .signal-inner {
    width: 100%;
  }

  .signal-item {
    padding: 22px 18px;
  }

  .signal-item strong {
    font-size: 24px;
  }

  h2 {
    font-size: 39px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .tradeoff-card {
    padding: 24px;
  }

  .decision-block {
    padding: 24px;
  }

  .budget-equation {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px;
  }

  .budget-equation strong {
    line-height: 1;
  }

  .input-budget {
    grid-template-columns: 1fr;
  }

  .input-segment,
  .input-segment:nth-child(2) {
    min-height: 84px;
    border-right: 0;
    border-bottom: 1px solid rgba(48, 58, 60, 0.28);
  }

  .input-segment:last-child {
    border-bottom: 0;
  }

  .method-roadmap {
    grid-template-columns: 1fr;
  }

  .method-roadmap li {
    min-height: 0;
    border-right: 0;
  }

  .method-chapter {
    padding: 58px 0;
  }

  .chapter-copy h3,
  .ruler-result h3,
  .ablation-heading h3,
  .measured-systems h3 {
    font-size: 31px;
  }

  .measured-systems {
    padding: 28px 22px;
  }

  .slot-demo,
  .frontier-tool,
  .value-flow,
  .floor-path,
  .auction-board,
  .ragged-cache {
    padding: 20px;
  }

  .slot-token-row span:nth-child(odd) {
    font-size: 0;
  }

  .slot-token-row span:nth-child(odd)::after {
    content: "\00b7";
    font-size: 12px;
  }

  .frontier-tool-header,
  .auction-heading {
    align-items: flex-start;
  }

  .tree-pair-level {
    grid-template-columns: repeat(2, minmax(62px, 88px));
  }

  .tree-quad-level {
    grid-template-columns: repeat(4, minmax(38px, 54px));
  }

  .tree-leaf-level {
    grid-template-columns: repeat(8, minmax(20px, 28px));
  }

  .value-flow-chain,
  .value-equation {
    grid-template-columns: 1fr;
  }

  .floor-path {
    grid-template-columns: 1fr;
  }

  .floor-path i {
    width: 2px;
    height: 22px;
    justify-self: center;
  }

  .utility-formula {
    grid-template-columns: 1fr;
  }

  .auction-queue li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .auction-queue li > i {
    grid-column: 2;
  }

  .toy-cache {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ragged-cache {
    overflow: hidden;
  }

  .ragged-cache > div {
    flex-wrap: wrap;
  }

  .ragged-cache b {
    flex-basis: 100%;
  }

  .ruler-result {
    padding: 28px;
  }

  .quality-copy h3,
  .deployment-heading h3 {
    font-size: 31px;
  }

  .retention-figure {
    padding: 26px 20px;
  }

  .retention-row {
    grid-template-columns: 90px minmax(36px, 1fr) 46px;
    gap: 8px;
  }

  .capacity-translation {
    padding: 22px 18px;
  }

  .capacity-translation > div {
    grid-template-columns: 84px minmax(36px, 1fr) 78px;
    gap: 8px;
  }

  .deployment-guide {
    padding: 28px 24px;
  }

  .deployment-scenarios {
    grid-template-columns: 1fr;
  }

  .deployment-scenarios article,
  .deployment-scenarios article:nth-child(odd),
  .deployment-scenarios article:nth-child(even),
  .deployment-scenarios article:nth-last-child(-n + 2) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .deployment-scenarios article:first-child {
    padding-top: 0;
  }

  .deployment-scenarios article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ruler-track {
    grid-template-columns: 1fr;
  }

  .ruler-track i {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .ablation-lessons dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .abstract-block {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 54px;
  }

  .abstract-block p:last-child {
    font-size: 18px;
  }

  .method-steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 18px;
  }

  .step-index {
    width: 42px;
    height: 42px;
  }

  .table-heading {
    display: block;
  }

  .table-heading p {
    margin-top: 6px;
  }

  .efficiency-copy h3 {
    font-size: 34px;
  }

  .efficiency-metrics {
    grid-template-columns: 1fr;
  }

  .efficiency-metrics div,
  .efficiency-metrics div:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .efficiency-metrics div:last-child {
    border-bottom: 0;
  }

  .citation-section h2 {
    font-size: 38px;
  }

  .bibtex-block pre {
    padding: 20px;
    font-size: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-inner nav {
    gap: 18px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 50px;
  }

  .paper-title {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .action:first-child {
    grid-column: 1 / -1;
  }

  .signal-item span {
    font-size: 12px;
  }

  h2 {
    font-size: 35px;
  }

  .operation-band > div {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .operation-mark {
    width: 58px;
  }

  .frontier-controls button {
    min-width: 0;
  }

  .tree-canvas {
    margin-right: -8px;
    margin-left: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-jump,
  .hero-actions,
  .site-footer {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 40px;
  }

  .section {
    padding: 48px 0;
  }

  .method-section,
  .citation-section {
    color: var(--ink);
    background: var(--white);
  }

  .method-section h2,
  .method-section .section-lead,
  .citation-section h2 {
    color: var(--ink);
  }
}
