:root {
  --paper: #f4efe4;
  --paper-bright: #fffdf7;
  --ink: #132e35;
  --ink-soft: #385057;
  --night: #102f3b;
  --night-deep: #082029;
  --cyan: #5ed0c7;
  --cyan-deep: #117d78;
  --coral: #e5574f;
  --gold: #f0b84c;
  --violet: #65487e;
  --line: rgba(19, 46, 53, .27);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: var(--serif); }
a { color: inherit; text-underline-offset: .18em; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.paper-hero {
  min-height: 94vh;
  color: #f8f4e9;
  background:
    radial-gradient(circle at 83% 17%, rgba(94, 208, 199, .28), transparent 23rem),
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(132deg, var(--night-deep), var(--night) 64%, #174f59);
  background-size: auto, 32px 32px, 32px 32px, auto;
  border-bottom: 12px solid var(--coral);
}

.hero-inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 58px; }
.paper-hero .hierarchy-nav { margin-bottom: clamp(48px, 8vh, 92px); }
.paper-hero .hierarchy-nav a { color: #fff !important; }
.paper-kind, .eyebrow, .section-kicker, .formula-label, .contents > p {
  margin: 0;
  font: 800 .72rem/1.25 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.paper-kind { color: var(--cyan); }
.paper-hero h1 {
  max-width: 1180px;
  margin: 19px 0 0;
  font: 900 clamp(4rem, 9.7vw, 9.2rem)/.79 var(--sans);
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.paper-hero h1 sup { display: inline-block; margin-left: .08em; color: var(--gold); font-size: .23em; letter-spacing: 0; vertical-align: top; }
.hero-deck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: end; margin-top: 50px; }
.hero-deck > p { max-width: 760px; margin: 0; font: italic clamp(1.35rem, 2.8vw, 2.15rem)/1.33 var(--serif); }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hero-actions a, .download-button, .paper-download a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  color: var(--night-deep);
  background: var(--cyan);
  border: 1px solid #bdf6ee;
  box-shadow: 5px 5px 0 var(--coral);
  font: 800 .76rem/1.2 var(--mono);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-actions a:last-child { color: white; background: transparent; border-color: rgba(255,255,255,.5); box-shadow: none; }
.hero-actions a:hover, .hero-actions a:focus-visible, .download-button:hover, .download-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-footnote { max-width: 780px; margin: 45px 0 0; color: #bcd0d3; font: .82rem/1.55 var(--mono); }
.hero-footnote sup { color: var(--gold); }

main { overflow: clip; }
.sell-screen {
  display: grid;
  gap: 42px;
  min-height: 100svh;
  align-content: center;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(76px, 10vh, 124px) 0;
  border-bottom: 1px solid var(--line);
}
.sell-heading { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 10px 54px; align-items: end; }
.sell-heading .eyebrow { grid-column: 1 / -1; color: var(--coral); }
.sell-heading h2, .resizer h2, .article-section h2 { margin: 8px 0 0; font-family: var(--sans); letter-spacing: -.045em; }
.sell-heading h2 { max-width: 780px; font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .88; letter-spacing: -.065em; }
.sell-heading > p:last-child { margin: 0; font-size: 1.16rem; line-height: 1.62; }

.sell-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--ink); }
.sell-comparison figure { min-width: 0; margin: 0; padding: 20px; background: var(--paper-bright); }
.sell-comparison svg { display: block; width: 100%; height: auto; }
.sell-axis { fill: none; stroke: rgba(19,46,53,.24); stroke-width: 2; }
.sell-guide { fill: none; stroke: rgba(19,46,53,.25); stroke-width: 3; stroke-dasharray: 7 7; }
.sell-source-step { fill: none; stroke: var(--ink); stroke-width: 4; }
.sell-samples circle { fill: var(--ink); stroke: var(--paper-bright); stroke-width: 3; }
.sell-curve { fill: none; stroke-width: 7; stroke-linecap: round; }
.sell-curve--ring { stroke: var(--coral); }
.sell-curve--conv { stroke: var(--cyan-deep); }
.sell-turns circle { fill: var(--gold); stroke: var(--coral); stroke-width: 3; }
.sell-comparison figcaption { display: grid; gap: 7px; margin-top: 6px; }
.sell-comparison figcaption b { font: 800 1.03rem/1.2 var(--sans); }
.sell-comparison figcaption span { color: var(--ink-soft); line-height: 1.5; }

.sell-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sell-benefits > div { display: grid; grid-template-columns: 38px 1fr; gap: 8px 12px; align-content: start; }
.sell-benefits span { grid-row: 1 / 3; color: var(--coral); font: 900 1.5rem/1 var(--sans); }
.sell-benefits b { font: 800 1.02rem/1.2 var(--sans); }
.sell-benefits p { margin: 0; line-height: 1.5; }

.sell-receipt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; color: white; background: var(--cyan); border: 1px solid var(--night); }
.sell-receipt p { display: grid; gap: 8px; min-height: 132px; align-content: center; margin: 0; padding: 20px; background: var(--night); }
.sell-receipt b { color: var(--gold); font: 900 clamp(2.1rem, 4.3vw, 4rem)/.9 var(--sans); letter-spacing: -.06em; }
.sell-receipt span { color: #d7e7e7; font: .72rem/1.45 var(--mono); }

.method-map {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 24px;
}
.method-map > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 8px 42px; align-items: end; }
.method-map > header .eyebrow { grid-column: 1 / -1; color: var(--coral); }
.method-map > header h2 { margin: 0; font: 900 clamp(2.8rem, 6vw, 5.5rem)/.9 var(--sans); letter-spacing: -.06em; }
.method-map > header > p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.method-map-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 42px 0 0; padding: 1px; background: var(--ink); list-style: none; }
.method-map-steps li { position: relative; min-width: 0; min-height: 220px; padding: 24px; background: var(--paper-bright); }
.method-map-steps li::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -15px; display: grid; width: 28px; height: 28px; place-items: center; color: white; background: var(--coral); border-radius: 50%; font: 900 1rem/1 var(--sans); transform: translateY(-50%); }
.method-map-steps li:last-child::after { display: none; }
.method-map-steps span { display: block; color: var(--coral); font: 900 1.7rem/1 var(--sans); }
.method-map-steps b { display: block; margin-top: 26px; font: 800 1.12rem/1.1 var(--sans); }
.method-map-steps p { margin: 12px 0 0; line-height: 1.52; }
.method-map-branches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0 25%; padding-top: 40px; border-top: 4px solid var(--cyan-deep); }
.method-map-branches::before { content: "ADMITTED CURRENT c"; position: absolute; top: 0; left: 0; padding-right: 12px; color: var(--cyan-deep); background: var(--paper); font: 800 .68rem/1 var(--mono); letter-spacing: .12em; transform: translateY(-65%); }
.method-map-branches div { display: grid; gap: 8px; min-height: 116px; align-content: start; padding: 18px; color: white; background: var(--night); border-top: 5px solid var(--gold); }
.method-map-branches b { font: 800 .95rem/1.2 var(--sans); }
.method-map-branches span { color: #d7e7e7; font: .72rem/1.45 var(--mono); }

.resizer {
  width: min(1240px, calc(100% - 48px));
  margin: 74px auto 104px;
  padding: clamp(24px, 4vw, 52px);
  color: var(--ink);
  background:
    linear-gradient(rgba(19,46,53,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,46,53,.025) 1px, transparent 1px),
    var(--paper-bright);
  background-size: 28px 28px;
  border: 2px solid var(--ink);
  border-top: 10px solid var(--cyan-deep);
  box-shadow: 14px 14px 0 var(--night);
}
.resizer-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .72fr); gap: 34px; align-items: end; }
.resizer-heading h2 { font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .88; text-transform: uppercase; }
.resizer-heading > p { margin: 0; padding-left: 24px; border-left: 5px solid var(--gold); font-size: 1rem; line-height: 1.6; }
.resizer-controls { display: grid; grid-template-columns: minmax(250px, 1.2fr) auto; gap: 12px; align-items: end; margin-top: 42px; }
.resizer-controls label { display: grid; gap: 7px; font: 800 .76rem/1.3 var(--mono); text-transform: uppercase; }
.resizer-controls input[type="file"], .resizer-controls input[type="number"] { width: 100%; min-height: 50px; padding: 9px 11px; color: var(--ink); background: white; border: 1px solid var(--ink); }
.resizer-controls button {
  min-height: 50px;
  padding: 11px 16px;
  color: white;
  background: var(--cyan-deep);
  border: 1px solid var(--ink);
  font: 800 .74rem/1.2 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.resizer-controls button:disabled { opacity: .42; cursor: not-allowed; }
.resizer-controls .quiet-button { color: var(--ink); background: #e8e1d3; }
.resizer-controls .cancel-button { background: var(--coral); }
.preset-control { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 0; margin: 8px 0 0; padding: 14px; border: 1px solid var(--ink); }
.preset-control legend { padding: 0 7px; color: var(--coral); font: 800 .68rem/1 var(--mono); text-transform: uppercase; }
.preset-control button { color: var(--ink); background: #e8e1d3; }
.target-size { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto; gap: 10px; align-items: end; }
.dimension-times { align-self: end; padding: 0 0 14px; font: 900 1.2rem/1 var(--sans); }
.target-size .ratio-lock { display: flex; min-height: 50px; align-items: center; gap: 8px; padding: 0 12px; background: #e8e1d3; border: 1px solid var(--ink); white-space: nowrap; }
.target-size .ratio-lock input { accent-color: var(--coral); }
.run-buttons { grid-column: 1 / -1; }
.run-buttons { display: grid; }
.dimension-note, .resizer-boundary { margin: 14px 0 0; color: var(--ink-soft); font: .75rem/1.5 var(--mono); }
.resizer progress { width: 100%; height: 13px; margin-top: 18px; accent-color: var(--cyan-deep); }
.resizer-status { margin: 18px 0 0; padding: 13px 15px; background: #e8eee8; border-left: 6px solid var(--gold); font: .85rem/1.5 var(--mono); }
.resizer-status[data-kind="error"] { color: #7d1915; background: #f7ded9; border-color: var(--coral); }
.resizer-status[data-kind="ready"] { color: #0e514c; border-color: var(--cyan-deep); }
.image-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.image-stage figure { min-width: 0; margin: 0; border: 1px solid var(--ink); background: white; }
.image-stage figcaption { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: .72rem/1.4 var(--mono); }
.image-stage figcaption span { text-align: right; }
.canvas-well { display: grid; min-height: 250px; place-items: center; padding: 14px; background: repeating-conic-gradient(#dee2de 0 25%, #f5f5ef 0 50%) 0 / 24px 24px; }
.canvas-well canvas { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; image-rendering: auto; }
.download-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.download-button { color: white; background: var(--coral); border-color: var(--ink); box-shadow: 5px 5px 0 var(--night); }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 870px); gap: 56px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; align-items: start; }
.contents { position: sticky; top: 20px; padding: 20px 18px; background: rgba(255,253,247,.74); border: 1px solid var(--line); }
.contents > p { color: var(--coral); }
.contents ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: section; }
.contents li { counter-increment: section; border-top: 1px solid var(--line); }
.contents a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; font: .72rem/1.35 var(--mono); text-decoration: none; }
.contents a::before { content: counter(section, decimal-leading-zero); color: var(--cyan-deep); font-weight: 800; }
.contents a:hover, .contents a:focus-visible { color: var(--coral); }
.paper-body { min-width: 0; }
.article-section { padding: 0 0 104px; scroll-margin-top: 20px; }
.article-section + .article-section { padding-top: 94px; border-top: 1px solid var(--line); }
.section-kicker { color: var(--coral); }
.article-section h2 { max-width: 800px; font-size: clamp(2.65rem, 6vw, 5.2rem); line-height: .94; }
.article-section h3 { max-width: 760px; margin: 46px 0 0; font: 800 clamp(1.55rem, 3vw, 2.35rem)/1.08 var(--sans); letter-spacing: -.035em; }
.article-section > p { max-width: 720px; margin: 25px 0 0; font-size: 1.13rem; line-height: 1.7; }
.article-section .lead { max-width: 790px; font-size: 1.42rem; line-height: 1.55; }
blockquote { max-width: 720px; margin: 42px 0; padding: 16px 0 16px 28px; color: var(--cyan-deep); border-left: 8px solid var(--gold); font: italic 1.6rem/1.42 var(--serif); }

.requirement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.requirement-grid div { display: grid; gap: 8px; min-height: 136px; align-content: start; padding: 22px; background: var(--paper-bright); }
.requirement-grid b { font: 800 1.05rem/1.2 var(--sans); }
.requirement-grid span { line-height: 1.5; }

.formula-card { display: grid; grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr); gap: 30px; align-items: center; margin: 46px 0; padding: clamp(22px, 4vw, 38px); background: var(--paper-bright); border: 1px solid var(--ink); box-shadow: 8px 8px 0 rgba(19,46,53,.18); }
.formula-card--dark { color: #f8f4e9; background: var(--night); box-shadow: 8px 8px 0 var(--gold); }
.formula-label { color: var(--coral); }
.formula-card--dark .formula-label { color: var(--cyan); }
.formula-copy > p:last-child { margin: 20px 0 0; line-height: 1.6; }
.equation { margin-top: 17px; font: 500 clamp(1.45rem, 3.2vw, 2.35rem)/1.45 "STIX Two Math", Cambria Math, var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.equation b { margin-left: .5em; color: var(--coral); font: 700 .72rem/1 var(--mono); }
.equation--stack { display: grid; gap: 10px; font-size: clamp(1.1rem, 2.3vw, 1.65rem); }
.formula-visual { min-width: 0; margin: 0; }
.formula-visual svg { display: block; width: 100%; height: auto; }
.formula-visual figcaption, .wide-visual figcaption, .evidence-figure figcaption { margin-top: 10px; color: currentColor; font: .7rem/1.45 var(--mono); }
.chart-grid path { fill: none; stroke: rgba(19,46,53,.16); stroke-width: 1; }
.chart-curve { fill: none; stroke: var(--cyan-deep); stroke-width: 4; }
.chart-nodes circle { fill: var(--coral); stroke: var(--paper-bright); stroke-width: 3; }
.basin-bands rect { fill: rgba(94,208,199,.09); stroke: rgba(19,46,53,.25); stroke-width: 1; }
.basin-bands rect:nth-child(even) { fill: rgba(240,184,76,.12); }
.basin-curve { fill: none; stroke: var(--cyan-deep); stroke-width: 5; stroke-linecap: round; }
.basin-averages circle { fill: var(--coral); stroke: var(--paper-bright); stroke-width: 3; }
.basin-axis { stroke: var(--ink); stroke-width: 2; }
.formula-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 44px 0; background: var(--ink); border: 1px solid var(--ink); }
.formula-strip--two { grid-template-columns: repeat(2, 1fr); }
.formula-strip > div { display: grid; gap: 13px; align-content: start; padding: 19px; background: var(--paper-bright); }
.formula-strip span { color: var(--coral); font: 800 .65rem/1.2 var(--mono); text-transform: uppercase; }
.formula-strip b { font: 500 1.14rem/1.4 "STIX Two Math", Cambria Math, var(--serif); }
.formula-strip small { line-height: 1.45; }

.stencil-line { stroke: #b8d5d4; stroke-width: 3; }
.stencil-nodes circle { fill: var(--cyan); stroke: #f8f4e9; stroke-width: 3; }
.stencil-nodes circle:nth-child(3) { fill: var(--gold); }
.stencil-labels text, .stencil-output text { fill: #f8f4e9; font: 14px var(--mono); text-anchor: middle; }
.stencil-arrow, .tensor-arrow, .lifting-arrow { fill: none; stroke: var(--coral); stroke-width: 4; }
.stencil-output rect { fill: transparent; stroke: var(--cyan); stroke-width: 2; }
.wide-visual { margin: 44px calc(50% - 50vw); padding: 38px max(24px, calc(50vw - 435px)); color: #f8f4e9; background: var(--night); }
.wide-visual svg { display: block; width: 100%; height: auto; }
.lineage-visual svg text { fill: #f8f4e9; font: 700 15px var(--mono); }
.raw-bars rect:nth-child(odd), .admitted-bars rect:nth-child(-n+4) { fill: var(--cyan); }
.raw-bars rect:nth-child(even), .admitted-bars rect:nth-child(n+5) { fill: var(--coral); }
.zero-line { stroke: #f8f4e9; stroke-width: 2; }
.admission-arrow { stroke: var(--gold); stroke-width: 5; }
.coarse-ledger rect:first-of-type { fill: var(--cyan-deep); }.coarse-ledger rect:last-of-type { fill: var(--coral); }
.coarse-ledger text:not(:first-child) { text-anchor: middle; }
.fibre-plane { fill: rgba(94,208,199,.18); stroke: var(--cyan-deep); stroke-width: 2; }
.fibre-line { stroke: var(--cyan-deep); stroke-width: 5; }
.raw-point { fill: var(--coral); }.admitted-point { fill: var(--cyan-deep); stroke: white; stroke-width: 3; }
.projection-line { stroke: var(--gold); stroke-width: 4; }
.fibre-visual text { fill: var(--ink); font: 15px var(--mono); }
.control-polygon { fill: none; stroke: rgba(19,46,53,.35); stroke-width: 2; stroke-dasharray: 5 6; }
.bezier-curve { fill: none; stroke: var(--cyan-deep); stroke-width: 5; }
.control-points circle { fill: var(--ink); }.phase-dot { fill: var(--coral); stroke: white; stroke-width: 4; }
.phase-control { display: grid; gap: 8px; margin-top: 25px; color: var(--coral); font: 800 .75rem/1 var(--mono); }
.phase-control input { width: 100%; accent-color: var(--coral); }
.tensor-grid path { fill: none; stroke: rgba(248,244,233,.65); stroke-width: 2; }
.tensor-grid--x path:nth-child(n+2), .tensor-grid--xy path { stroke: var(--cyan); }
.tensor-visual text { fill: var(--gold); font: 800 20px var(--mono); }

.claim-list { display: grid; margin-top: 44px; border-top: 1px solid var(--ink); }
.claim-list > div { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.claim-list span { color: var(--coral); font: 900 2rem/1 var(--sans); }
.claim-list p { margin: 0; font-size: 1.05rem; line-height: 1.62; }
.formula-card--theorem { grid-template-columns: 110px 1fr; color: white; background: var(--violet); box-shadow-color: var(--gold); }
.theorem-mark { align-self: stretch; display: grid; place-items: center; padding: 10px; color: var(--violet); background: var(--gold); font: 900 .78rem/1 var(--mono); letter-spacing: .12em; writing-mode: vertical-rl; }
.formula-card--theorem p { margin: 14px 0 0; line-height: 1.58; }
.boundary-note { padding: 22px 24px; background: #f4dfc4; border-left: 7px solid var(--coral); }

.lifting-fine circle { fill: var(--coral); }.lifting-anchor circle { fill: var(--cyan-deep); }.lifting-detail rect { fill: var(--gold); stroke: var(--ink); }
.lifting-return { fill: none; stroke: var(--violet); stroke-width: 4; stroke-dasharray: 7 7; }
.lifting-visual text { fill: var(--ink); font: 14px var(--mono); }
.article-section--evidence { position: relative; }
.evidence-figure { margin: 44px 0; }
.evidence-figure img { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--line); }
.evidence-figure--technical img { padding: 12px; }
.evidence-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 38px 0; }
.evidence-facts div { display: grid; gap: 8px; min-height: 145px; align-content: center; padding: 19px; color: white; background: var(--night); border-top: 7px solid var(--cyan); }
.evidence-facts b { color: var(--gold); font: 900 clamp(1.6rem, 3.5vw, 2.65rem)/1 var(--sans); letter-spacing: -.055em; }
.evidence-facts span { font: .75rem/1.45 var(--mono); }
.performance-facts div:nth-child(3) { border-top-color: var(--coral); }
table { width: 100%; margin-top: 50px; border-collapse: collapse; background: var(--paper-bright); font: .78rem/1.4 var(--mono); }
caption { padding: 0 0 13px; text-align: left; font: italic 1rem/1.45 var(--serif); }
th, td { padding: 11px 9px; border: 1px solid var(--line); text-align: right; }
thead th { color: white; background: var(--night); }
tbody th { color: var(--coral); }
.pipeline-equation { display: grid; grid-template-columns: repeat(9, auto); gap: 9px; align-items: center; margin: 44px 0; }
.pipeline-equation div { display: grid; min-width: 0; gap: 5px; padding: 16px 10px; color: white; background: var(--night); text-align: center; }
.pipeline-equation div:nth-of-type(3) { background: var(--violet); }
.pipeline-equation b { font: 900 1rem/1 var(--sans); text-transform: uppercase; }
.pipeline-equation span { color: var(--cyan); font: .68rem/1 var(--mono); }
.pipeline-equation i { color: var(--coral); font: 900 1.4rem/1 var(--sans); }
.fraction { display: inline-grid; grid-template-rows: 1fr 1fr; margin: 0 .2em; vertical-align: middle; font-size: .72em; line-height: 1.05; text-align: center; }
.fraction span:first-child { border-bottom: 1px solid currentColor; }
.weight-axis { stroke: #f8f4e9; stroke-width: 2; }.weight-bars rect { fill: var(--cyan); }.weight-labels text { fill: var(--gold); font: 800 16px var(--mono); text-anchor: middle; }
.timing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.paper-download { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 46px; padding: 26px; color: white; background: var(--night); border-left: 8px solid var(--coral); }
.paper-download h3 { margin: 7px 0 0; font: 800 1.5rem/1.15 var(--sans); }
.paper-download a { color: var(--night-deep); }
.references ol { max-width: 760px; margin: 34px 0 0; padding-left: 1.5em; }
.references li { margin-bottom: 14px; line-height: 1.55; }

@media (max-width: 980px) {
  .hero-deck, .sell-heading, .resizer-heading { grid-template-columns: 1fr; }
  .sell-heading .eyebrow { grid-column: auto; }
  .hero-actions { max-width: 560px; }
  .resizer-heading > p { max-width: 700px; }
  .resizer-controls { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .contents { position: static; }
  .contents ol { display: grid; grid-template-columns: repeat(2, 1fr); }
  .contents li:nth-child(2) { border-top: 0; }
  .formula-card { grid-template-columns: 1fr; }
  .formula-card--theorem { grid-template-columns: 90px 1fr; }
  .method-map-steps { grid-template-columns: repeat(2, 1fr); }
  .method-map-steps li:nth-child(2)::after { display: none; }
  .method-map-branches { margin-left: 0; }
}

@media (max-width: 700px) {
  .hero-inner, .sell-screen, .method-map, .resizer, .article-layout { width: min(100% - 24px, 1240px); }
  .paper-hero { min-height: 100svh; }
  .paper-hero h1 { font-size: clamp(3rem, 14vw, 5rem); line-height: .82; }
  .hero-actions, .sell-comparison, .sell-benefits, .sell-receipt, .method-map > header, .method-map-steps, .method-map-branches, .image-stage, .requirement-grid, .formula-strip, .evidence-facts, .timing-grid, .paper-download { grid-template-columns: 1fr; }
  .sell-screen { gap: 32px; padding: 68px 0; }
  .sell-heading h2 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .sell-receipt p { min-height: 112px; }
  .method-map > header .eyebrow { grid-column: auto; }
  .method-map-steps li { min-height: 0; }
  .method-map-steps li::after { top: auto; right: 50%; bottom: -15px; transform: translateX(50%) rotate(90deg); }
  .method-map-steps li:nth-child(2)::after { display: grid; }
  .method-map-branches { margin-top: 30px; padding-top: 30px; }
  .resizer { margin-top: 36px; padding: 20px; box-shadow: 7px 7px 0 var(--night); }
  .resizer-controls { grid-template-columns: 1fr; }
  .preset-control, .target-size, .run-buttons { grid-column: 1; }
  .preset-control { grid-template-columns: 1fr; }
  .target-size { grid-template-columns: 1fr auto 1fr; }
  .target-size .ratio-lock { grid-column: 1 / -1; }
  .canvas-well { min-height: 180px; }
  .contents ol { grid-template-columns: 1fr; }
  .contents li:nth-child(2) { border-top: 1px solid var(--line); }
  .article-section { padding-bottom: 70px; }
  .article-section + .article-section { padding-top: 66px; }
  .article-section h2 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .wide-visual { margin-left: -12px; margin-right: -12px; padding: 24px 12px; overflow-x: auto; }
  .wide-visual svg { min-width: 660px; }
  .formula-card { margin: 34px 0; padding: 18px; }
  .formula-card--theorem { grid-template-columns: 1fr; }
  .theorem-mark { min-height: 40px; writing-mode: horizontal-tb; }
  .pipeline-equation { grid-template-columns: 1fr; }
  .pipeline-equation i { transform: rotate(90deg); text-align: center; }
  .paper-download a { width: 100%; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

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