:root {
  --paper: #f5f1e9;
  --paper-deep: #eae5da;
  --paper-pale: #fbf8f1;
  --ink: #202c2b;
  --muted: #56615e;
  --line: #c9c6ba;
  --teal: #245f5b;
  --teal-light: #dbe8e3;
  --coral: #a14c38;
  --coral-light: #f2e1d8;
  --serif: Iowan Old Style, Baskerville, Georgia, Times New Roman, serif;
  --sans: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Arial, sans-serif;
  --mono: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; border-radius: 2px; }
button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { color: var(--ink); background: #c6dfd6; }
.shell { width: min(100% - 5.6rem, 1376px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 1rem; padding: .7rem 1rem; background: var(--ink); color: white; font-weight: 700; }
.skip-link:focus { top: 1rem; color: white; }

/* Masthead */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: clamp(2rem, 5vw, 5.5rem); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .75rem; color: var(--ink); font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: -.09em; line-height: 1; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-period, .footer-brand span { color: var(--coral); }
.brand-mark { width: 28px; height: 26px; display: inline-flex; align-items: center; gap: 3px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); padding-inline: 3px; }
.brand-mark span { display: block; width: 3px; background: var(--teal); border-radius: 4px; }
.brand-mark span:nth-child(1) { height: 7px; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 12px; }.brand-mark span:nth-child(4) { height: 17px; }
.primary-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(1.2rem, 2.5vw, 2.9rem); }
.primary-nav a, .header-repo { font-size: .79rem; font-weight: 700; letter-spacing: .035em; text-decoration: none; white-space: nowrap; }
.primary-nav a { color: #3b4845; }
.primary-nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .5em; }
.header-repo { flex: none; border-bottom: 1px solid var(--ink); padding-bottom: .28rem; }
.header-repo span { margin-left: .35rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(3.5rem, 6.6vw, 7rem); padding-block: clamp(5rem, 8.2vw, 9rem) clamp(5.5rem, 9vw, 10rem); }
.eyebrow, .section-number, .figure-heading, .figure-axis, .window-row, .figure-arrow, .signal-figure figcaption, .status-grid span, .step-number, .contract-card-top, .contract-key, .source-table caption, .table-note, .note-topline, .note-index, .fixed-inputs span, .historical-stats span, .result-label, .coverage-card > div:first-child > span, .note-foot, .limits-kicker, .resource-number, .resource-list small, .footer-bottom, .ledger-key { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 2.2rem; color: var(--teal); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--coral); }
.eyebrow-rule { width: 24px; height: 1px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { margin-bottom: 1.55rem; font-size: clamp(4.5rem, 6.8vw, 7.2rem); line-height: .9; letter-spacing: -.075em; }
h1 em { color: var(--teal); font-weight: 400; }
.hero-subtitle { margin-bottom: 1.35rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.2; }
.hero-lede { max-width: 34rem; margin-bottom: 2.2rem; color: #3c4946; font-size: 1.05rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.1rem; margin-bottom: 2.6rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; min-width: 200px; gap: 1.5rem; padding: .95rem 1.15rem; font-size: .83rem; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-ink { background: var(--ink); color: var(--paper-pale); }
.button-ink:hover { background: var(--teal); color: white; }
.text-link { font-size: .85rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .3rem; }
.text-link span { padding-left: .3rem; }
.hero-caveat { max-width: 31rem; margin-bottom: 0; border-left: 2px solid var(--coral); padding-left: 1rem; color: #53615d; font-size: .78rem; line-height: 1.6; }

/* Diagram */
.signal-figure { position: relative; margin: 1.2rem 0 0; border: 1px solid #bdbeb2; background: var(--paper-deep); box-shadow: 18px 18px 0 #dedbd0; }
.signal-figure::before { content: ""; position: absolute; top: -15px; right: 26px; width: 108px; height: 15px; background: var(--coral-light); border: 1px solid #cdb5aa; border-bottom: 0; }
.figure-heading { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid #c4c5b9; color: #4d5955; font-size: .65rem; font-weight: 700; letter-spacing: .09em; }
.figure-stage { padding: clamp(1.4rem, 3vw, 2.5rem); }
.figure-axis { display: flex; justify-content: space-between; margin-bottom: .2rem; color: #56625d; font-size: .59rem; text-transform: uppercase; letter-spacing: .08em; }
.waveform { display: block; width: 100%; height: clamp(135px, 15vw, 190px); overflow: visible; }
.wave-baseline, .wave-grid, .wave-line { fill: none; vector-effect: non-scaling-stroke; }
.wave-baseline { stroke: #a2aba3; stroke-width: 1; stroke-dasharray: 3 6; }
.wave-grid { stroke: #c1c6bb; stroke-width: 1; stroke-dasharray: 5 5; }
.wave-line { stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.waveform circle { fill: var(--coral); }
.window-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .7rem; color: #5d6863; font-size: .56rem; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.window-row span { border-top: 1px solid #899c91; padding-top: .5rem; }
.figure-arrow { margin: 1.2rem auto .8rem; color: var(--coral); font-size: 1.4rem; text-align: center; line-height: 1; }
.figure-arrow span { display: block; margin-top: .25rem; color: #5c6762; font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.token-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.token-row span { border: 1px solid #aabcb0; padding: .7rem .2rem; background: #e1eae3; color: #275f5c; font-family: var(--mono); font-size: 1.35rem; text-align: center; }
.signal-figure figcaption { padding: 1.1rem 1.3rem 1.2rem; border-top: 1px solid #c4c5b9; color: #4b5651; font-size: .66rem; line-height: 1.55; }
.signal-figure figcaption strong { color: var(--ink); }

.status-strip { background: var(--ink); color: #f4f2e8; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.status-grid p { display: flex; flex-direction: column; justify-content: center; min-height: 97px; margin: 0; padding: 1rem 1.7rem; border-right: 1px solid #51605b; }
.status-grid p:first-child { padding-left: 0; }
.status-grid p:last-child { border-right: 0; }
.status-grid span { margin-bottom: .2rem; color: #b4c6be; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.status-grid strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }

/* Shared sections */
.section { padding-block: clamp(5.5rem, 8vw, 9rem); }
.section-number { margin-bottom: 1.25rem; color: var(--coral); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.section h2 { max-width: 900px; margin-bottom: 1.2rem; font-size: clamp(2.9rem, 5.2vw, 5.6rem); line-height: 1.04; letter-spacing: -.052em; }
.section-lede { max-width: 770px; margin-bottom: 0; color: #42504c; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.72; }
.section-intro { max-width: 950px; margin-bottom: 4.2rem; }
.purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.purpose-grid article { padding: 1.6rem 2.5rem 0 0; }
.purpose-grid article + article { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.step-number { display: block; margin-bottom: 2.6rem; color: var(--teal); font-size: .76rem; }
.purpose-grid h3 { margin-bottom: .7rem; font-size: 2rem; letter-spacing: -.04em; }
.purpose-grid p { max-width: 21rem; margin-bottom: 0; color: #46534f; font-size: .91rem; line-height: 1.7; }

/* Numeric contract */
.contract-section { background: #263532; color: #f5f1e9; }
.contract-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 8vw, 10rem); }
.contract-section .section-number { color: #efb8a4; }
.contract-section h2 { max-width: 650px; }
.contract-section p:not(.section-number) { max-width: 570px; color: #d0dad4; line-height: 1.75; }
.light-link { display: inline-block; margin-top: 1rem; border-bottom: 1px solid #d9e5dc; padding-bottom: .3rem; color: #f5f1e9; font-size: .85rem; font-weight: 700; text-decoration: none; }
.light-link:hover { color: #b8e4d3; }
.contract-section a:focus-visible, .site-footer a:focus-visible { outline-color: #f0b6a0; }
.contract-card { border: 1px solid #698179; padding: clamp(1.3rem, 3vw, 2.5rem); background: #2d413b; box-shadow: 14px 14px 0 #1e2e2a; }
.contract-card-top { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 2rem; color: #c1d1c8; font-size: .64rem; letter-spacing: .07em; }
.contract-line { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; padding: .85rem 0; border-top: 1px solid #71877c; font-family: var(--mono); font-size: .8rem; }
.contract-line > span:last-child { overflow-wrap: anywhere; }
.contract-key { color: #d0a08d; }
.contract-divider { height: 1px; margin: 1.7rem 0 1.1rem; background: #71877c; }
.contract-card p { margin-bottom: 0; font-size: .78rem; }
.contract-signal { margin-right: .5rem; color: #d3a18d; }

/* Acquisition table */
.acquisition-section { padding-bottom: clamp(5rem, 8vw, 8rem); }
.acquisition-intro { margin-bottom: 3rem; }
.source-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.source-table caption { margin-bottom: 1rem; color: #606a65; font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.source-table th, .source-table td { border-top: 1px solid var(--line); padding: 1.4rem 1.6rem 1.4rem 0; text-align: left; vertical-align: top; }
.source-table thead th { color: #66716b; font-family: var(--mono); font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.source-table tbody th { width: 29%; font-size: .94rem; }
.source-table td { color: #485650; font-size: .9rem; }
.source-table tr:last-child th, .source-table tr:last-child td { border-bottom: 1px solid var(--line); }
.source-table a { color: var(--teal); font-weight: 700; }
.source-table a:hover { color: var(--coral); }
.source-table th:nth-child(1) { width: 31%; }.source-table th:nth-child(2) { width: 30%; }
.table-note { max-width: 750px; margin: 1.25rem 0 0; color: #58635e; font-size: .66rem; line-height: 1.65; }

/* Research ledger */
.notes-section { background: #e9e5db; }
.notes-grid { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); gap: clamp(3rem, 7vw, 8rem); }
.notes-intro { padding-top: .6rem; }
.notes-intro h2 { max-width: 370px; }
.notes-intro > p:not(.section-number) { max-width: 320px; color: #4d5a55; line-height: 1.7; }
.ledger-key { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; color: #5c6862; font-size: .69rem; text-transform: uppercase; letter-spacing: .04em; }
.key-line { width: 29px; height: 1px; background: var(--coral); }
.note-stack { min-width: 0; display: grid; gap: 1.8rem; }
.note-card { position: relative; overflow: hidden; border: 1px solid #c5c8bc; padding: clamp(1.4rem, 3vw, 2.4rem); background: var(--paper-pale); }
.current-note { border-top: 4px solid var(--teal); }
.historical-note { border-top: 4px solid var(--coral); }
.note-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: 2.1rem; color: #53615b; font-size: .62rem; font-weight: 700; letter-spacing: .05em; }
.note-status, .complete-badge { display: inline-flex; align-items: center; gap: .42rem; border: 1px solid #93b2a7; border-radius: 100px; padding: .3rem .65rem; background: #e3eee9; color: #225a54; font-size: .59rem; text-transform: uppercase; }
.note-status > span[aria-hidden="true"] { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--teal); }
.complete-badge { border-color: #d7b6aa; background: #f8ece6; color: #8f4938; }
.note-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.note-heading h3 { max-width: 610px; margin-bottom: 1.2rem; font-size: clamp(2rem, 3.3vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; }
.note-index { flex: none; color: #c7d4ca; font-size: 3.8rem; font-weight: 400; letter-spacing: -.12em; line-height: 1; }
.historical-note .note-index { color: #e7d5cc; }
.note-description { max-width: 680px; margin-bottom: 2rem; color: #485650; font-size: .92rem; line-height: 1.7; }
.fixed-inputs, .historical-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fixed-inputs > div, .historical-stats > div { display: flex; flex-direction: column; gap: .25rem; padding: 1.3rem 1rem 1.3rem 0; }
.fixed-inputs > div + div, .historical-stats > div + div { border-left: 1px solid var(--line); padding-left: 1rem; }
.fixed-inputs strong, .historical-stats strong { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.fixed-inputs span, .historical-stats span { color: #59655e; font-size: .6rem; line-height: 1.5; text-transform: uppercase; }
.result-panel { margin-top: 1.8rem; border: 1px solid #b8cbbf; padding: 1.3rem 1.5rem; background: #edf3ec; }
.result-label { margin-bottom: .5rem; color: #306158; font-size: .62rem; font-weight: 700; letter-spacing: .07em; }
.result-pending { margin-bottom: 0; color: #305b55; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; }
.result-status { margin-bottom: .4rem; color: #326157; font-family: var(--mono); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.result-headline { margin-bottom: .6rem; font-family: var(--serif); font-size: 1.8rem; line-height: 1.16; letter-spacing: -.03em; }
.result-summary { margin-bottom: 1.1rem; color: #40514a; font-size: .89rem; line-height: 1.65; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.result-figure { margin: 1.3rem 0; }
.result-figure img { display: block; width: 100%; height: auto; }
.result-figure figcaption { color: #53645c; font-size: .75rem; line-height: 1.5; margin-top: .6rem; }
.result-metric { padding: .9rem; background: var(--paper-pale); }
.result-metric strong { display: block; margin: .2rem 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.result-metric span, .result-metric small { display: block; color: #53645c; font-size: .72rem; line-height: 1.45; }
.result-metric span { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.result-downloads, .result-limitations { margin: 1rem 0 0; padding-left: 1.2rem; color: #465a50; font-size: .83rem; }
.result-downloads li + li, .result-limitations li + li { margin-top: .3rem; }
.result-downloads a { color: var(--teal); font-weight: 700; }
.result-subheading { margin: 1.3rem 0 .3rem; font-family: var(--mono); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.coverage-card { margin-top: 1.8rem; border: 1px solid #ddc3b5; padding: 1.2rem 1.4rem; background: #f8eee7; }
.coverage-card > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.coverage-card > div:first-child > span { color: #7f4a3e; font-size: .63rem; font-weight: 700; letter-spacing: .05em; }
.coverage-card > div:first-child > strong { color: #8d4838; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.coverage-rule { height: 9px; margin: 1.1rem 0 .8rem; background: #dac9bb; }
.coverage-rule span { display: block; width: 11.36%; height: 100%; background: var(--coral); }
.coverage-card p { margin-bottom: 0; color: #5d514b; font-size: .78rem; line-height: 1.55; }
.coverage-card p strong { color: #554038; }
.note-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.5rem; color: #606a64; font-size: .62rem; }
.note-foot a { color: var(--teal); font-weight: 700; text-decoration: none; }
.note-foot a:hover { text-decoration: underline; }

/* Methods */
.methods-intro { margin-bottom: 4rem; }
.method-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; gap: clamp(3rem, 7vw, 8rem); }
.protocol-item { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 1.3rem; border-top: 1px solid var(--line); padding: 1.4rem 0 1.6rem; }
.protocol-item:last-child { border-bottom: 1px solid var(--line); }
.protocol-item > span { padding-top: .18rem; color: var(--coral); font-family: var(--mono); font-size: .76rem; }
.protocol-item h3 { margin-bottom: .35rem; font-size: 1.5rem; letter-spacing: -.035em; }
.protocol-item p { max-width: 640px; margin-bottom: 0; color: #4b5853; font-size: .89rem; line-height: 1.7; }
.limits-card { border: 1px solid #c7d0c5; padding: clamp(1.4rem, 3vw, 2.5rem); background: var(--teal-light); }
.limits-kicker { margin-bottom: 2rem; color: #245b55; font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.limits-card h3 { margin-bottom: 1.1rem; font-size: clamp(2rem, 2.7vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.limits-card > p:not(.limits-kicker) { color: #3d534b; font-size: .9rem; line-height: 1.7; }
.limits-card ul { margin: 1.5rem 0 0; padding: 1.3rem 0 0 1.1rem; border-top: 1px solid #a3b8aa; color: #3d534b; font-size: .82rem; line-height: 1.65; }
.limits-card li + li { margin-top: .7rem; }
.limits-card li::marker { color: var(--coral); }

/* Resources and footer */
.sources-section { border-top: 1px solid var(--line); background: #ece8de; }
.sources-grid { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: clamp(3rem, 8vw, 9rem); }
.sources-grid h2 { margin-bottom: 1rem; }
.sources-grid > div:first-child > p:last-child { max-width: 440px; color: #4b5852; line-height: 1.7; }
.resource-list { border-top: 1px solid #bfc5b9; }
.resource-list a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1.5rem; gap: 1.2rem; align-items: center; min-height: 86px; border-bottom: 1px solid #bfc5b9; padding: 1rem .25rem; text-decoration: none; }
.resource-list a:hover { background: #e2e6db; color: var(--ink); }
.resource-number { align-self: start; padding-top: .5rem; color: var(--coral); font-size: .66rem; }
.resource-list strong, .resource-list small { display: block; }
.resource-list strong { font-family: var(--serif); font-size: 1.33rem; font-weight: 500; letter-spacing: -.03em; }
.resource-list small { margin-top: .15rem; color: #5b6860; font-size: .65rem; }
.resource-arrow { color: var(--teal); font-size: 1.25rem; }
.site-footer { background: var(--ink); color: #f7f3eb; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-block: 4rem 3.4rem; }
.footer-brand { font-family: var(--serif); font-size: 3.6rem; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.footer-main p { margin: .8rem 0 0; color: #c4d1c8; font-size: .85rem; }
.footer-main a { border-bottom: 1px solid #dce6dc; padding-bottom: .3rem; color: #f7f3eb; font-size: .8rem; font-weight: 700; text-decoration: none; }
.footer-main a:hover { color: #b9e1d0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #4c5953; padding-block: 1.3rem 1.7rem; color: #c3d0c6; font-size: .64rem; }

@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0; padding-block: 1.2rem 1rem; }
  .primary-nav { flex-basis: 100%; order: 3; justify-content: flex-start; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; }
  .hero { gap: 3rem; }
  .notes-grid { grid-template-columns: minmax(0, .3fr) minmax(0, .7fr); gap: 2.5rem; }
}
@media (max-width: 800px) {
  .shell { width: min(100% - 2.6rem, 700px); }
  .hero, .contract-grid, .notes-grid, .method-layout, .sources-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 4.8rem 5.5rem; }
  .signal-figure { margin: 0 1rem 1rem 0; }
  .section { padding-block: 5.5rem; }
  .section-intro { margin-bottom: 3rem; }
  .purpose-grid article { padding-right: 1.2rem; }
  .purpose-grid article + article { padding-left: 1.2rem; }
  .notes-intro h2, .notes-intro > p:not(.section-number) { max-width: 100%; }
  .ledger-key { margin-top: 1rem; }
  .contract-card { margin-right: 1rem; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 2rem, 520px); }
  .header-inner { min-height: auto; }
  .brand { font-size: 1.8rem; }
  .header-repo { font-size: .74rem; }
  .primary-nav { gap: .45rem 1rem; margin-top: 1.1rem; }
  .primary-nav a { font-size: .69rem; }
  .hero { padding-block: 4.2rem 4.8rem; }
  h1 { font-size: clamp(3.8rem, 15vw, 5.4rem); }
  .hero-lede { font-size: .98rem; }
  .hero-caveat { font-size: .75rem; }
  .signal-figure { box-shadow: 10px 10px 0 #dedbd0; }
  .figure-heading { font-size: .56rem; }
  .figure-stage { padding: 1.25rem; }
  .waveform { height: 120px; }
  .window-row { font-size: .48rem; }
  .token-row { gap: .35rem; }
  .token-row span { font-size: 1.1rem; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid p { min-height: 73px; padding: .9rem 0; border-right: 0; border-bottom: 1px solid #51605b; }
  .status-grid p:last-child { border-bottom: 0; }
  .section { padding-block: 4.8rem; }
  .section h2 { font-size: clamp(2.6rem, 10vw, 3.7rem); }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-grid article, .purpose-grid article + article { border-left: 0; border-bottom: 1px solid var(--line); padding: 1.2rem 0 1.5rem; }
  .step-number { margin-bottom: .7rem; }
  .purpose-grid p { max-width: 100%; }
  .contract-card { padding: 1.25rem; }
  .contract-card-top { flex-wrap: wrap; margin-bottom: 1.2rem; font-size: .54rem; }
  .contract-line { grid-template-columns: 4.2rem 1fr; font-size: .67rem; }
  .source-table thead { display: none; }
  .source-table, .source-table tbody, .source-table tr, .source-table th, .source-table td { display: block; width: 100%; }
  .source-table tr { border-top: 1px solid var(--line); padding: 1.1rem 0 1.3rem; }
  .source-table tr:last-child { border-bottom: 1px solid var(--line); }
  .source-table tbody th, .source-table td { border: 0; padding: .25rem 0; }
  .source-table tr:last-child th, .source-table tr:last-child td { border: 0; }
  .source-table th:nth-child(1), .source-table th:nth-child(2) { width: 100%; }
  .source-table tbody th { margin-bottom: .4rem; }
  .source-table td { font-size: .83rem; }
  .note-card { padding: 1.3rem; }
  .note-topline { margin-bottom: 1.3rem; }
  .note-heading h3 { font-size: 2rem; }
  .note-index { font-size: 2.4rem; }
  .fixed-inputs, .historical-stats { grid-template-columns: 1fr; }
  .fixed-inputs > div, .historical-stats > div, .fixed-inputs > div + div, .historical-stats > div + div { border-left: 0; border-bottom: 1px solid var(--line); padding: .7rem 0; }
  .fixed-inputs > div:last-child, .historical-stats > div:last-child { border-bottom: 0; }
  .fixed-inputs strong, .historical-stats strong { font-size: 1.6rem; }
  .result-metrics { grid-template-columns: 1fr; }
  .coverage-card > div:first-child { align-items: flex-start; }
  .coverage-card > div:first-child > strong { font-size: 2rem; }
  .method-layout { gap: 2.5rem; }
  .protocol-item { grid-template-columns: 1.7rem minmax(0, 1fr); gap: .8rem; }
  .resource-list a { gap: .7rem; }
  .footer-main { padding-block: 3rem; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
