:root {
  --ink: #18352e;
  --ink-soft: #4e625d;
  --green: #173f35;
  --green-2: #24594b;
  --green-pale: #e4eee9;
  --paper: #f6f2e9;
  --card: #fffdf7;
  --line: #d7ddd6;
  --amber: #c7852d;
  --amber-pale: #f7e5c8;
  --rose-pale: #f3dfd7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 53, 46, 0.08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
ul { margin: 0; padding-left: 1.2rem; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); background: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(215, 221, 214, 0.92); background: rgba(246, 242, 233, 0.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green); color: white; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
nav { display: flex; gap: 22px; }
nav a, .text-link { color: var(--ink-soft); font-size: 13px; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--green-2); }
.text-link { justify-self: end; }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 68px; align-items: end; padding-block: 86px 74px; }
.eyebrow { margin-bottom: 14px; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { max-width: 840px; font-size: clamp(46px, 6vw, 76px); line-height: 1.02; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 45px); line-height: 1.1; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.2; }
.lede { max-width: 780px; margin-top: 28px; color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.builder-byline { display: grid; gap: 1px; width: fit-content; margin-top: 25px; padding-left: 16px; border-left: 3px solid var(--amber); }
.builder-label { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.builder-byline strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.25; font-weight: 600; }
.builder-role { color: var(--green-2); font-size: 12px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-2); }
.button.secondary { border-color: var(--line); background: rgba(255, 253, 247, .75); }
.button.light { background: var(--card); color: var(--green); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--ink-soft); font-size: 11px; background: rgba(255, 253, 247, .52); }
.role-card { padding: 30px; border: 1px solid rgba(23, 63, 53, .13); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card-kicker, .flow-label, .stage-state { color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.role-card h2 { margin-top: 5px; font-size: 32px; }
.role-card > p:not(.card-kicker) { margin-top: 16px; color: var(--ink-soft); font-size: 14px; }
.role-card dl { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.role-card dl div { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.role-card dt { color: var(--ink-soft); }
.role-card dd { font-weight: 720; text-align: right; }

.metric-band { border-block: 1px solid var(--line); background: var(--card); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics article { display: grid; gap: 2px; padding: 29px 28px; border-right: 1px solid var(--line); }
.metrics article:first-child { padding-left: 0; }
.metrics article:last-child { border: 0; }
.metrics strong { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1; }
.metrics span { margin-top: 6px; font-size: 13px; font-weight: 750; }
.metrics small { color: var(--ink-soft); font-size: 11px; }

.section { padding-block: 86px; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; margin-bottom: 34px; }
.section-heading > p, .section-copy { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.section-heading.narrow { align-items: start; }
.evidence-dashboard { padding-bottom: 94px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 34px rgba(24, 53, 46, .055); }
.method-card { grid-column: 1 / -1; }
.chart-card figcaption { display: flex; gap: 12px; align-items: center; }
.chart-number { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--green); color: white; font-size: 11px; font-weight: 800; }
.chart-kicker { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.chart-card h3 { margin-top: 3px; font-size: 19px; }
.chart-intro { min-height: 62px; margin-top: 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.release-chart { display: grid; gap: 13px; margin-top: 19px; }
.release-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.release-row > strong { color: var(--ink-soft); font-size: 11px; }
.release-stack { display: flex; height: 28px; overflow: hidden; border-radius: 7px; background: var(--green-pale); }
.release-stack span { display: grid; place-items: center; min-width: 8px; color: white; font-size: 10px; font-weight: 800; }
.baseline { background: #977142; }
.point { background: #608577; }
.minimum { background: #2f6858; }
.target { background: #173f35; }
.chart-legend { display: grid; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.release-legend { grid-template-columns: repeat(2, 1fr); gap: 7px 12px; margin-top: 18px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; }
.chart-note { margin-top: auto; padding-top: 18px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.chart-note strong { color: var(--ink); }
.chart-note em { color: #8b3e31; font-style: normal; font-weight: 800; }
.stability-chart { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.chart-gridlines line { stroke: var(--line); stroke-width: 1; }
.axis-labels, .budget-label { fill: var(--ink-soft); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 9px; }
.fpr-budget { stroke: #b77b6d; stroke-width: 1; stroke-dasharray: 4 4; }
.budget-label { fill: #8b5144; }
.metric-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.metric-dot { stroke-width: 3; fill: var(--card); }
.recall-line { stroke: var(--green-2); background: var(--green-2); }
.ap-line { stroke: var(--amber); background: var(--amber); }
.fpr-line { stroke: #a95f50; background: #a95f50; }
.metric-legend { gap: 6px; margin-top: 2px; }
.metric-legend span { justify-content: space-between; }
.metric-legend b { margin-left: auto; color: var(--ink); font-size: 9px; }
.method-card .chart-intro { min-height: 0; max-width: 850px; font-size: 13px; }
.method-evidence-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin-top: 20px; }
.method-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.method-panel-header { display: grid; gap: 3px; }
.method-panel-header span { color: var(--green-2); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.method-panel-header strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.factor-comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; margin-top: 18px; }
.factor-stat { display: grid; min-height: 130px; align-content: center; padding: 15px; border-radius: 11px; background: var(--rose-pale); }
.factor-stat.corrected { background: var(--green-pale); }
.factor-stat span, .factor-stat small { color: var(--ink-soft); font-size: 9px; line-height: 1.35; }
.factor-stat strong { margin-block: 8px 5px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1; }
.factor-reduction { display: grid; gap: 4px; max-width: 92px; color: var(--green-2); text-align: center; }
.factor-reduction strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1; }
.factor-reduction span { font-size: 8px; line-height: 1.35; }
.gate-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.gate-strip li { display: grid; align-content: start; min-height: 92px; padding: 12px 9px; border-top: 3px solid var(--green-2); border-radius: 6px 6px 9px 9px; background: var(--green-pale); }
.gate-strip li:nth-child(3), .gate-strip li:nth-child(4) { border-color: var(--amber); background: var(--amber-pale); }
.gate-strip li:last-child { border-color: #a95f50; background: var(--rose-pale); }
.gate-strip strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1; }
.gate-strip span { margin-top: 7px; color: var(--ink-soft); font-size: 8px; line-height: 1.3; }
.threshold-readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 8px; }
.threshold-readout span { padding: 8px 10px; border: 1px solid rgba(169, 95, 80, .24); border-radius: 8px; color: var(--ink-soft); background: rgba(243, 223, 215, .58); font-size: 9px; }
.threshold-readout strong { color: #7d3f34; }
.method-decision { display: grid; grid-template-columns: minmax(160px, .65fr) auto minmax(260px, 1.35fr); gap: 22px; align-items: center; margin-top: 14px; padding: 18px 20px; border-radius: 13px; background: var(--green); color: white; }
.method-decision > div { display: grid; }
.method-decision > div span { color: rgba(255,255,255,.64); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.method-decision > div strong { margin-top: 3px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.method-decision > p { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; }
.method-decision > p b { font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1; }
.method-decision > p span { color: rgba(255,255,255,.75); font-size: 10px; line-height: 1.25; }
.method-decision em { color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.5; }
.evidence-boundary { width: fit-content; margin: 22px auto 0; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: rgba(255, 253, 247, .58); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stage { display: grid; grid-template-columns: auto 1fr; gap: 14px; min-height: 218px; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.stage.emphasis { border-color: rgba(36, 89, 75, .35); background: var(--green-pale); }
.stage.warning { border-color: rgba(199, 133, 45, .42); background: var(--amber-pale); }
.stage-id { display: grid; place-items: center; align-self: start; width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: white; font-size: 12px; font-weight: 800; }
.stage h3 { margin-top: 10px; }
.stage div > p:last-child { margin-top: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }

.section-tinted { border-block: 1px solid var(--line); background: var(--green-pale); }
.governance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.governance-grid .section-copy { margin-top: 20px; }
.governance-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; padding: 12px; border-radius: 14px; background: var(--green); color: rgba(255,255,255,.78); }
.governance-proof > div { padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; }
.governance-proof > div span { font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.governance-proof > div strong { display: block; margin-top: 5px; color: white; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1; }
.governance-proof > div p { margin-top: 7px; font-size: 9px; }
.proof-state { display: grid; grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 10px; background: rgba(255,255,255,.1); }
.proof-state strong { color: white; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.proof-state span { font-size: 9px; }
.governance-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.governance-list article { padding: 22px; border: 1px solid rgba(23, 63, 53, .12); border-radius: 13px; background: rgba(255, 253, 247, .72); }
.governance-list strong { font-size: 13px; }
.governance-list p { margin-top: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.concept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.concept-grid article { padding: 25px; border-top: 3px solid var(--green-2); background: var(--card); box-shadow: 0 10px 30px rgba(24,53,46,.05); }
.concept-grid span { color: var(--amber); font-size: 11px; font-weight: 800; }
.concept-grid h3 { margin-top: 18px; font-size: 19px; }
.concept-grid p { margin-top: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

.handoff { display: grid; grid-template-columns: .76fr 1.24fr; gap: 70px; align-items: center; border-top: 1px solid var(--line); }
.handoff .section-copy { margin-top: 18px; }
.handoff-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.handoff-flow article { min-height: 286px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.handoff-flow ul { margin-top: 18px; color: var(--ink-soft); font-size: 12px; }
.handoff-flow li + li { margin-top: 8px; }
.flow-arrow { color: var(--amber); font-size: 25px; }
.engine-card { background: var(--green-pale) !important; }
.engine-output { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(23,63,53,.17); font-size: 12px; font-weight: 750; }

.section-dark { background: var(--green); color: white; }
.section-dark .eyebrow { color: #b7d3c8; }
.build-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.build-grid > div:first-child > p:last-child { margin-top: 20px; color: rgba(255,255,255,.72); }
.stack-groups { display: grid; gap: 10px; }
.stack-groups article { padding: 20px 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.055); }
.stack-groups h3 { font-family: inherit; font-size: 13px; letter-spacing: 0; }
.stack-groups p { margin-top: 6px; color: rgba(255,255,255,.7); font-size: 12px; }

.boundary-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.boundary-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.boundary-columns article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.boundary-columns h3 { font-size: 21px; }
.boundary-columns ul { margin-top: 16px; color: var(--ink-soft); font-size: 12px; }
.boundary-columns li + li { margin-top: 8px; }
.supports { border-top: 4px solid var(--green-2) !important; }
.not-supported { border-top: 4px solid var(--amber) !important; }
.production-note { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin-top: 26px; padding: 18px 20px; border-radius: 12px; background: var(--amber-pale); color: #624413; font-size: 12px; }

.evidence-links { border-top: 1px solid var(--line); }
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.link-grid a { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.link-grid a:hover { transform: translateY(-1px); border-color: var(--green-2); }
.link-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
.link-grid span { color: var(--ink-soft); font-size: 12px; }
.link-grid b { color: var(--green-2); }
.chinese-summary { border-top: 1px solid var(--line); }
.chinese-summary h2 { max-width: 900px; }
.chinese-summary > p:last-child { max-width: 900px; margin-top: 20px; color: var(--ink-soft); font-size: 14px; }

.closing { padding-block: 64px; background: var(--amber); color: #2f2616; }
.closing .eyebrow { color: #58431e; }
.closing-inner { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.closing h2 { max-width: 780px; }
.site-footer { padding-block: 24px; background: #102f28; color: rgba(255,255,255,.67); font-size: 11px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero, .governance-grid, .handoff, .build-grid, .boundary-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-block: 62px; }
  .role-card { max-width: 650px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-evidence-grid { grid-template-columns: 1fr; }
  .chart-intro { min-height: 0; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { position: static; }
  .header-inner { min-height: 66px; }
  .brand small, .text-link { display: none; }
  h1 { font-size: 42px; }
  .hero { padding-block: 48px; }
  .hero-actions .button { width: 100%; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article, .metrics article:first-child { padding: 22px 12px; border-bottom: 1px solid var(--line); }
  .metrics article:nth-child(2) { border-right: 0; }
  .section { padding-block: 62px; }
  .stage-grid, .governance-list, .concept-grid, .boundary-columns, .link-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .method-card { grid-column: auto; }
  .chart-card { padding: 20px; }
  .factor-comparison { grid-template-columns: 1fr; }
  .factor-reduction { max-width: none; padding-block: 4px; }
  .factor-stat { min-height: 0; }
  .gate-strip { grid-template-columns: repeat(2, 1fr); }
  .threshold-readout, .method-decision, .governance-proof { grid-template-columns: 1fr; }
  .method-decision { gap: 13px; }
  .proof-state { grid-column: auto; grid-template-columns: 1fr; }
  .evidence-boundary { width: 100%; text-align: center; }
  .stage { min-height: 0; }
  .handoff-flow { grid-template-columns: 1fr; }
  .handoff-flow article { min-height: 0; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .production-note { grid-template-columns: 1fr; }
  .closing-inner, .site-footer .shell { align-items: flex-start; flex-direction: column; }
}

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