:root {
  --sand: #f2ead9;
  --paper: #fffaf0;
  --ink: #10130f;
  --green: #153f2e;
  --lime: #c8ff62;
  --rust: #9c4c2e;
  --line: #b8ad98;
  --muted: #5d5b52;
  --rail: 190px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--sand); font-family: var(--sans); line-height: 1.58; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-rail { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--rail); padding: 28px 24px; color: var(--paper); background: var(--ink); display: flex; flex-direction: column; }
.brand-mark { display: flex; gap: 12px; align-items: center; color: var(--paper); font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.brand-mark img { border: 1px solid #4d5c50; }
.rail-nav { display: grid; gap: 5px; margin-top: 72px; }
.rail-nav a { min-height: 42px; padding: 10px 0; border-bottom: 1px solid #32372f; color: #e8e1d4; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.rail-nav a:hover { color: var(--lime); }
.rail-date { margin: auto 0 0; color: #bdb7aa; font-size: .72rem; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }

main, footer { margin-left: var(--rail); }
section { padding: 84px clamp(28px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.hero-yard { min-height: 88vh; padding-top: 76px; background: var(--green); color: var(--paper); display: grid; grid-template-columns: 130px minmax(0, 920px); gap: clamp(36px, 7vw, 110px); align-items: center; }
.issue-stamp { width: 120px; height: 150px; border: 1px solid #75917e; display: grid; place-items: center; padding: 10px; color: #d4dfd5; font-size: .66rem; letter-spacing: .18em; text-align: center; }
.issue-stamp strong { color: var(--lime); font-family: var(--serif); font-size: 4.8rem; font-weight: 400; line-height: .8; }
.eyebrow, .section-kicker { margin: 0 0 14px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: var(--lime); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 980px; margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7.8vw, 7.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .92; }
.deck { max-width: 800px; margin: 30px 0; color: #dfe5dd; font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.3; }
.byline-strip { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; border-top: 1px solid #54715f; color: #cdd8ce; font-size: .77rem; letter-spacing: .04em; }
.byline-strip strong { color: var(--paper); }

h2 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 4.4vw, 4.6rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.section-head { margin-bottom: 40px; }
.section-kicker { color: var(--rust); }
.split-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr); gap: 40px; align-items: end; }
.head-note { max-width: 520px; margin: 0; color: var(--muted); font-size: .91rem; }

.gate-answer { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 130px minmax(0, 900px); gap: clamp(30px, 7vw, 110px); }
.gate-answer .section-kicker { color: var(--lime); }
.gate-answer h2 { margin-bottom: 25px; }
.gate-answer p:not(.section-kicker) { max-width: 900px; color: #d8d3c8; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.42rem); }
.gate-number { align-self: start; padding: 9px 12px; border: 1px solid #768076; color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-align: center; }

.top-three { background: var(--paper); }
.podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.podium-card { min-height: 330px; padding: 28px; background: var(--sand); }
.podium-card.first { background: var(--lime); }
.podium-card h3 { margin: 25px 0 12px; font-size: 2rem; }
.rank-chip { display: inline-grid; width: 44px; height: 44px; place-items: center; background: var(--ink); color: var(--paper); font-weight: 800; }
.fit-label { font-weight: 800; line-height: 1.35; }
.boundary { color: var(--muted); font-size: .88rem; }

.ledger-section { background: var(--sand); }
.table-scroll { overflow-x: auto; border: 1px solid var(--ink); background: var(--paper); }
table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: .88rem; line-height: 1.45; }
caption { padding: 12px 16px; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th, td { padding: 15px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #d9d0bd; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:hover td, tbody tr:hover th { background: #f6f0e4; }
tbody td:first-child { width: 58px; color: var(--green); font-size: 1.2rem; font-weight: 800; }
.data-note { margin: 13px 0 0; color: var(--muted); font-size: .8rem; }

.definition-board { background: var(--green); color: var(--paper); }
.definition-board .section-kicker { color: var(--lime); }
.definition-board .table-scroll { border-color: #76917f; }
.stage-table tbody th { color: var(--green); }
.stage-table thead th { color: var(--ink); }
.stage-table tbody td, .stage-table tbody th { color: var(--ink); }

.method-section { background: var(--paper); }
.weights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.weights-grid article { min-height: 210px; padding: 24px; background: var(--sand); }
.weights-grid article:first-child { background: var(--lime); }
.weights-grid span { font-family: var(--serif); font-size: 2.5rem; }
.weights-grid h3 { margin: 8px 0; }
.weights-grid p { color: var(--muted); font-size: .86rem; }
.method-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 44px; }
.method-notes h3 { margin-bottom: 8px; }
.method-notes p { color: var(--muted); font-size: .9rem; }

.matrix-section { background: var(--sand); }
.artifact-table th:first-child { position: sticky; left: 0; z-index: 2; background: #d9d0bd; }

.gate-flow { background: var(--ink); color: var(--paper); }
.gate-flow .section-kicker { color: var(--lime); }
.gate-flow .head-note { color: #bbb8ae; }
.gate-track { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #667066; }
.gate-track li { position: relative; min-height: 350px; padding: 24px; border-right: 1px solid #667066; }
.gate-track li:last-child { border: 0; }
.gate-track li::after { content: ">"; position: absolute; top: 25px; right: -10px; z-index: 2; width: 20px; height: 20px; color: var(--lime); background: var(--ink); text-align: center; }
.gate-track li:last-child::after { display: none; }
.gate-track span { color: var(--lime); font-family: var(--serif); font-size: 3rem; }
.gate-track h3 { margin: 40px 0 12px; }
.gate-track p { color: #cecabf; font-size: .86rem; }
.gate-track strong { color: var(--lime); font-size: .78rem; }

.profiles-section { background: var(--paper); }
.profile-stack { border-top: 1px solid var(--ink); }
.profile-card { display: grid; grid-template-columns: 150px minmax(0, 820px); gap: clamp(28px, 6vw, 90px); padding: 52px 0; border-bottom: 1px solid var(--line); }
.profile-rank { padding-right: 24px; border-right: 1px solid var(--line); }
.profile-rank > span { color: var(--green); font-family: var(--serif); font-size: 4.3rem; line-height: 1; }
.profile-rank p { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.profile-rank strong { color: var(--ink); font-family: var(--serif); font-size: 2rem; }
.profile-body h3 { margin: 0 0 8px; font-size: 2.4rem; }
.profile-body p { max-width: 820px; }
.profile-body .fit-label { color: var(--green); font-size: 1.05rem; }
.profile-body .limit { margin-top: 22px; padding: 14px 18px; border-left: 5px solid var(--rust); background: var(--sand); font-size: .9rem; }

.cost-section { background: var(--green); color: var(--paper); }
.cost-section .section-kicker { color: var(--lime); }
.cost-section .head-note { color: #ccd3cc; }
.cost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #779080; border: 1px solid #779080; }
.cost-grid article { min-height: 220px; padding: 25px; background: var(--green); }
.cost-grid span { color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .15em; }
.cost-grid p { color: #d2dbd3; font-size: .9rem; }
.estimate-check { padding: 22px; background: var(--lime); color: var(--ink); }

.scenario-section { background: var(--sand); }
.scenario-list { border-top: 1px solid var(--ink); }
.scenario-list article { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.5fr); gap: 50px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.scenario-list h3, .scenario-list p { margin: 0; }

.questions-section { background: var(--paper); }
.question-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.question-grid li { min-height: 150px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.question-grid span { color: var(--rust); font-size: .75rem; font-weight: 800; }
.question-grid p { margin: 0; font-family: var(--serif); font-size: 1.12rem; }

.fanout-section { background: var(--ink); color: var(--paper); }
.fanout-section .section-kicker { color: var(--lime); }
.fanout-section .head-note { color: #c5c2b8; }
.fanout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid #667066; background: #667066; }
.fanout-grid article { min-height: 290px; padding: 28px; background: var(--ink); }
.fanout-grid h3 { margin-top: 0; color: var(--lime); }
.fanout-grid p { color: #d5d1c7; font-size: .91rem; }
.fanout-grid strong { color: var(--paper); }

.sources-section { background: var(--sand); }
.source-ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.source-ledger li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.source-ledger a { color: var(--green); font-weight: 700; }
.review-note { margin: 28px 0 0; padding: 20px; border-left: 5px solid var(--green); background: var(--paper); font-size: .88rem; }
.correction-box { margin-top: 42px; padding: 26px; border: 1px solid var(--ink); background: var(--paper); }
.correction-box h3 { margin-top: 0; }

.faq-section { background: var(--paper); }
.faq-list { max-width: 980px; border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--ink); }
summary { min-height: 58px; padding: 20px 52px 20px 0; cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 14px; color: var(--green); font-family: var(--sans); font-size: 1.8rem; }
details[open] summary::after { content: "x"; }
.faq-answer { padding: 0 60px 20px 0; color: var(--muted); }

footer { padding: 38px clamp(28px, 6vw, 96px); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; font-size: .78rem; }
footer p { margin: 4px 0; color: #bbb8af; }

@media (max-width: 1050px) {
  :root { --rail: 0px; }
  .site-rail { position: static; width: auto; height: auto; padding: 14px 22px; flex-direction: row; align-items: center; }
  .rail-nav { margin: 0 0 0 auto; display: flex; gap: 15px; }
  .rail-nav a { min-height: 44px; border: 0; display: grid; place-items: center; }
  .rail-date { display: none; }
  main, footer { margin-left: 0; }
  .hero-yard { min-height: auto; }
  .weights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate-track { grid-template-columns: 1fr; }
  .gate-track li { min-height: auto; border-right: 0; border-bottom: 1px solid #667066; }
  .gate-track li::after { content: "v"; top: auto; right: 24px; bottom: -11px; }
}

@media (max-width: 720px) {
  section { padding: 58px 20px; }
  .site-rail { padding: 12px 16px; }
  .brand-mark span { display: none; }
  .rail-nav { gap: 2px; overflow-x: visible; flex-wrap: wrap; justify-content: flex-end; }
  .rail-nav a { padding: 8px; font-size: .66rem; }
  .hero-yard { padding-top: 60px; grid-template-columns: 1fr; gap: 36px; }
  .issue-stamp { width: 100px; height: 118px; }
  .issue-stamp strong { font-size: 3.6rem; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
  .gate-answer { grid-template-columns: 1fr; gap: 28px; }
  .gate-number { width: 110px; }
  .podium-grid, .weights-grid, .method-notes, .cost-grid, .question-grid, .fanout-grid { grid-template-columns: 1fr; }
  .split-head { grid-template-columns: 1fr; gap: 22px; }
  .podium-card { min-height: auto; }
  .profile-card { grid-template-columns: 1fr; gap: 20px; }
  .profile-rank { display: flex; align-items: end; gap: 18px; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-rank p { margin: 0; }
  .scenario-list article { grid-template-columns: 1fr; gap: 10px; }
  footer { grid-template-columns: 44px 1fr; }
  footer > p { grid-column: 1 / -1; }
}

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