:root {
  --ink: #171914;
  --muted: #666a61;
  --paper: #f7f4ee;
  --cream: #eeeadf;
  --line: #d7d2c7;
  --accent: #e85d36;
  --sky: #68add8;
  --green: #b8db70;
  --blue: #68add8;
  --dark: #20241d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(23,25,20,.16); background: rgba(247,244,238,.9); backdrop-filter: blur(14px); }
.wordmark { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.wordmark-main { color: var(--ink); }
.wordmark-accent { color: var(--sky); }
nav { display: flex; gap: 28px; }
nav a { color: var(--ink); font-family: inherit; font-size: 17.55px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; text-transform: none; }
nav a:hover { color: var(--accent); }

.hero.shell { width: calc(100% - 48px); }
.hero { padding: 82px 0 70px; text-align: center; }
.venue, .section-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-label { font-size: 21.6px; }
.venue { display: inline-block; margin: 0 0 30px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 100px; }
.hero h1 { max-width: 1320px; margin: 0 auto; font-size: clamp(34px, 4vw, 63px); font-weight: 900; letter-spacing: -.055em; line-height: 1.12; text-wrap: balance; }
.hero h1 span { display: block; }
.title-sky { color: var(--sky); font-size: 1em; }
.title-black { margin-top: 22px; color: var(--ink); font: 500 clamp(25px, 3vw, 43px)/1.2 Georgia, serif; letter-spacing: -.035em; }
.authors { max-width: 1296px; margin: 34px auto 0; font-size: 20.4px; font-weight: 700; line-height: 1.8; }
.authors a { text-decoration: none; border-bottom: 1px solid transparent; }
.authors a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.authors span { margin-inline: 5px; color: #a29f96; }
.authors sup, .affiliations sup { color: var(--accent); }
.affiliations { margin: 6px auto 0; color: var(--muted); font-size: 20.16px; text-align: center; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 13px 17px; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; font-size: 16.8px; font-weight: 800; text-decoration: none; transition: transform .2s; }
.button:hover { transform: translateY(-2px); }
.button.dark { color: var(--paper); background: var(--ink); }
.hero-summary { max-width: 1050px; margin: 50px auto 0; font-size: 18px; line-height: 1.65; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.numbers article { padding: 28px 18px; text-align: center; border-right: 1px solid var(--ink); }
.numbers article:last-child { border: 0; }
.numbers strong { display: block; color: var(--accent); font: 42px/1 Georgia, serif; }
.numbers span { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.4; }

.section { padding: 100px 0; scroll-margin-top: 62px; }
.split { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 58px; }
.section-label { padding-top: 9px; color: var(--sky); }
h2 { margin: 0; font: 500 clamp(42px, 6vw, 72px)/.98 Georgia, serif; letter-spacing: -.055em; }
.prose { max-width: 850px; }
.prose > p, .section-head p, .figure-setup, .figure-readout { color: var(--muted); font-size: 17px; line-height: 1.68; }
.prose > p:first-of-type { margin-top: 30px; }
.section-head { display: grid; grid-template-columns: 1fr 430px; align-items: end; gap: 55px; margin: 18px 0 45px; }
.section-head p { margin: 0; }
.full-span { grid-column: 1 / -1; }

.paper-figure { margin: 34px 0 0; }
.paper-figure img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.paper-figure.full-span img { background: transparent; border: 0; mix-blend-mode: multiply; }
.paper-figure figcaption { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.paper-figure figcaption strong, .figure-number { color: var(--ink); font-weight: 700; }
.figure-readout { max-width: 880px; margin: 22px auto 0; }
#idea { row-gap: 0; background: #eaf1f4; box-shadow: 0 0 0 100vmax #eaf1f4; clip-path: inset(0 -100vmax); }
#idea > .full-span { grid-column: 2; }
#idea > .figure-readout.full-span { width: 100%; max-width: none; margin: 8px 0 0; font-size: 25.5px; }
.figure-setup { max-width: 880px; margin: 0 auto; }
.pipeline-figure { max-width: 880px; margin-inline: auto; }
.pipeline-figure img { background: transparent; border: 0; mix-blend-mode: multiply; }
.method-section .figure-setup { max-width: none; font-size: 25.5px; }

.method-section { background: var(--cream); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; background: var(--ink); border: 1px solid var(--ink); }
.stages article { padding: 27px 24px; background: var(--paper); }
.stages span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stages h3 { margin: 15px 0 10px; font: 500 24px/1.1 Georgia, serif; }
.stages p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.dark-section { color: var(--paper); background: var(--dark); }
.dark-section .split { row-gap: 0; }
.dark-section .section-label { color: var(--sky); }
.dark-section .prose > p, .dark-section .figure-setup, .dark-section .figure-readout { color: #b9bdb3; }
.dark-section h2 sub { font-size: .55em; }
.dark-section .prose h2 { font-size: clamp(40px, 4.7vw, 62px); letter-spacing: -.025em; white-space: nowrap; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-block: 1px solid #5a5e55; }
.metric-strip div { padding: 23px 15px 23px 0; }
.metric-strip div + div { padding-left: 20px; border-left: 1px solid #5a5e55; }
.metric-strip strong { display: block; color: var(--green); font: 35px Georgia, serif; }
.metric-strip span { display: block; margin-top: 6px; color: #b9bdb3; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.distribution-figure { margin-top: 20px; }
.distribution-figure > .figure-setup { max-width: none; margin-right: 0; margin-left: 268px; }
.compact-figure { max-width: 660px; margin-inline: auto; }
.dark-section .paper-figure img { border-color: #5a5e55; }
.dark-section .paper-figure figcaption strong, .dark-section .figure-number { color: var(--paper); }
.dark-section .compact-figure img { background: transparent; border: 0; filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }

.table-block { margin-top: 42px; border: 1px solid var(--ink); }
.table-heading { display: flex; align-items: baseline; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--ink); }
.table-heading span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.table-heading h3 { margin: 0; font: 500 24px Georgia, serif; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.correlation-scroll { overflow-x: visible; }
.correlation-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 12.5px; }
.correlation-table th, .correlation-table td { padding-right: 10px; padding-left: 10px; }
.correlation-table th:first-child { width: 190px; }
.correlation-table thead th { text-transform: none; }
.correlation-table thead tr:first-child th[colspan] { position: relative; text-align: center; border-bottom: 0; }
.correlation-table thead tr:first-child th[colspan]::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 1px; background: var(--line); }
.correlation-table thead tr:nth-child(3) th { text-align: right; }
.correlation-table thead tr:nth-child(2) th[colspan="2"] { position: relative; text-align: center; border-bottom: 0; }
.correlation-table thead tr:nth-child(2) th[colspan="2"]::after { content: ""; position: absolute; right: 10px; bottom: 0; left: 10px; height: 1px; background: var(--line); }
th, td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); background: rgba(23,25,20,.035); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.best-row th, .best-row td { background: rgba(184,219,112,.32); font-weight: 700; }
.best-row th { color: #4a6319; }
.table-note { margin: 0; padding: 12px 20px 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.result-readout { max-width: 850px; margin: 34px auto 0; font: 23px/1.5 Georgia, serif; text-align: center; }
#results { padding-bottom: 55px; }
#results .result-readout { width: 100%; max-width: none; }

.collapse-section { background: var(--cream); }
.collapse-section .section-head { grid-template-columns: 1fr; }
.collapse-section .section-head h2 { font-size: clamp(35.7px, 5.1vw, 61.2px); white-space: nowrap; }
.collapse-section .figure-setup { max-width: none; font-size: 27.2px; }
.collapse-section .figure-readout { width: 100%; max-width: none; margin-inline: 0; font-size: 24.48px; }
.adaptation-section { padding-bottom: 55px; color: var(--paper); background: #29343a; }
.adaptation-section .section-label { color: var(--sky); }
.adaptation-section .section-head p { color: #bcc5c8; }
.adaptation-setup { margin: 24px 0 0; color: #bcc5c8; font-size: 17px; line-height: 1.68; }
.generalization-readout { max-width: 900px; margin-inline: auto; text-align: center; }
.dark-table { border-color: #647176; }
.dark-table .table-heading { border-color: #647176; }
.dark-table .table-heading span { color: var(--green); }
.dark-table table { min-width: 1140px; }
.dark-table th, .dark-table td { border-color: #536167; }
.dark-table thead th { color: #b3bec1; background: rgba(255,255,255,.035); }
.dark-table thead th { text-transform: none; }
.dark-table thead th[colspan] { text-align: center; }
.dark-table .protocol-label { display: block; margin-bottom: 5px; color: #b3bec1; font-size: 11px; font-weight: 400; }
.dark-table .protocol-start > * { border-top: 2px solid #647176; }
.dark-table .best-row th, .dark-table .best-row td { color: var(--paper); background: rgba(184,219,112,.1); }
.dark-table .best-row th { color: var(--green); }
.dark-table .cfg-aware-row th, .dark-table .cfg-aware-row td { background: rgba(184,219,112,.18); }
.dark-table small { color: var(--green); font-weight: 800; }
.dark-table .gain-cell { text-align: right; }
.dark-table .gain-cell > span, .dark-table .gain-cell > small { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }
.dark-table .gain-cell > span { min-width: 4.2ch; }
.dark-table .gain-cell > small { min-width: 4.7ch; margin-left: .35em; }
.dark-table .baseline-row td:not(.unreported) { padding-right: calc(16px + 4.7ch + .35em); }
.dark-table .unreported { color: #b3bec1; text-align: center; }
.dark-table .table-note { color: #b3bec1; }
.light-readout { color: var(--paper); }
.gallery-head { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 34px; align-items: start; margin: 90px 0 28px; }
.gallery-head > span { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gallery-head h3 { margin: 0; font: 500 34px/1.12 Georgia, serif; }
.gallery-head p { margin: 0; color: #bcc5c8; font-size: 16px; line-height: 1.6; }
.sample-grid { display: grid; grid-template-columns: 1fr; gap: 42px; }
.sample-grid figure { margin: 0; padding: 12px; color: var(--paper); background: transparent; }
.sample-grid img { width: 100%; }
.sample-grid figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 11px; font-size: 13px; font-weight: 700; }
.sample-grid figcaption span { color: #bcc5c8; font-size: 11px; font-weight: 400; }
.gallery-readout { max-width: 820px; margin: 25px auto 0; font: 23px/1.45 Georgia, serif; text-align: center; }

.takeaways { display: grid; grid-template-columns: 210px 1fr; gap: 58px; }
.takeaways ol { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.takeaways li { counter-increment: item; display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 21px 0; border-top: 1px solid var(--line); font: 27.6px/1.35 Georgia, serif; }
.takeaways li::before { content: "0" counter(item); padding-top: 7px; color: var(--sky); font: 800 15.6px Arial, sans-serif; }
.takeaway-text { display: block; min-width: 0; }
.takeaway-text sub, .takeaway-text sup { display: inline; font-size: .7em; line-height: 0; }

.citation { color: #fff; background: var(--sky); }
.citation .section-label { color: #fff; }
.citation-head { display: flex; align-items: end; justify-content: space-between; margin: 15px 0 38px; }
.citation-head a { color: #fff; font-weight: 800; text-decoration: none; }
.citation pre { margin: 0; padding: 26px; overflow: auto; color: #eef1e8; background: var(--ink); border-radius: 3px; font: 21px/1.65 Consolas, Monaco, monospace; white-space: pre-wrap; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; padding: 12px 18px; color: #fff; background: transparent; border: 1px solid #fff; border-radius: 4px; font: inherit; font-weight: 800; cursor: pointer; }
.copy-button:hover { color: var(--sky); background: #fff; }
footer { padding: 24px 0; color: #c5c8bf; background: var(--ink); font-size: 13px; }
footer .shell { display: flex; justify-content: space-between; }
footer a { color: inherit; }

@media (max-width: 800px) {
  .shell { width: min(100% - 30px, var(--max)); }
  nav { display: none; }
  .hero.shell { width: calc(100% - 30px); }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(33.6px, 9.8vw, 54.6px); white-space: normal; }
  .authors { line-height: 1.8; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers article:nth-child(2) { border-right: 0; }
  .numbers article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .section { padding: 72px 0; }
  .split, .takeaways { grid-template-columns: 1fr; gap: 22px; }
  #idea > .full-span { grid-column: 1; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head p { max-width: 650px; }
  .collapse-section .section-head h2 { white-space: normal; }
  .dark-section .prose h2 { white-space: normal; }
  .distribution-figure > .figure-setup { margin-left: 0; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages article:nth-child(3) { border-top: 1px solid var(--ink); }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip div + div { padding-left: 0; border-top: 1px solid #5a5e55; border-left: 0; }
  .gallery-head { grid-template-columns: 1fr; gap: 14px; margin-top: 65px; }
  .sample-grid { grid-template-columns: 1fr; }
  .citation-head { display: block; }
  .citation-head a { display: inline-block; margin-top: 20px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 10.5vw; }
  .authors span { display: none; }
  .authors { max-width: 330px; }
  .numbers strong { font-size: 34px; }
  .numbers article { padding: 23px 8px; }
  .stages { grid-template-columns: 1fr; }
  .stages article + article { border-top: 1px solid var(--ink); }
  .sample-grid figure { padding: 8px; }
  .sample-grid figcaption { flex-direction: column; gap: 3px; }
  .citation pre { padding: 18px; font-size: 18px; }
}

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