:root {
  color-scheme: light;
  --ink: #17241f;
  --muted: #55655c;
  --accent: #216b55;
  --accent-dark: #194f40;
  --line: #dce5df;
  --tint: #f5f8f6;
  --tint-strong: #e8f2eb;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: #d5ead9; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 64px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: -60px; padding: 10px 15px; background: white; border: 2px solid var(--accent); }
.skip-link:focus { top: 12px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.2vw, 42px); }
h3 { font-size: 21px; }

.site-header { border-bottom: 1px solid var(--line); background: white; }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 42px; }
.header-brand { color: var(--ink); white-space: nowrap; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.04em; }
.header-brand span { font-weight: 440; }
.preview-label { margin-left: auto; color: #77877b; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; white-space: nowrap; }

.paper-header { max-width: 900px; text-align: center; padding-block: 85px 56px; }
.paper-header h1 { margin-bottom: 28px; font-size: clamp(52px, 6vw, 76px); letter-spacing: -.065em; line-height: 1.02; font-weight: 770; }
.paper-header h1 > span { display: block; max-width: 790px; margin: 13px auto 0; font-size: clamp(28px, 3.5vw, 43px); letter-spacing: -.035em; font-weight: 480; line-height: 1.18; }
.authors { display: flex; align-items: center; justify-content: center; gap: 8px 26px; flex-wrap: wrap; font-size: 18px; font-weight: 650; }
.affiliations { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.publication-links { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.publication-link { min-width: 90px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--tint); color: var(--muted); font-size: 13px; font-weight: 700; }
.publication-link:hover { color: var(--muted); }
.publication-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.paper-summary { max-width: 740px; margin: 34px auto 0; color: #415349; font-size: 17px; line-height: 1.75; }
.paper-summary strong { color: var(--ink); }

.paper-figure { margin: 0 auto; }
.paper-figure > a { display: block; }
.paper-figure img { width: 100%; height: auto; }
.paper-figure figcaption { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.paper-figure figcaption strong { color: var(--ink); }
.paper-figure figcaption a { white-space: nowrap; margin-left: 3px; }

.story-teaser { max-width: 900px; padding: 18px 0 42px; border-top: 1px solid var(--line); }
.story-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); }
.story-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.story-controls { display: flex; align-items: stretch; gap: 9px; margin-top: 11px; }
.story-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; flex: 1; }
.story-step, .story-replay { border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); cursor: pointer; font: inherit; }
.story-step { padding: 10px 13px; text-align: left; font-size: 13px; font-weight: 720; }
.story-step small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.story-step:hover, .story-step[aria-current="true"], .story-replay:hover { border-color: #9abca6; background: var(--tint-strong); }
.story-replay { flex: none; padding: 10px 17px; font-size: 13px; font-weight: 720; }
.story-step:focus-visible, .story-replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.section { padding-block: 90px; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--accent); text-transform: uppercase; letter-spacing: .125em; font-size: 11px; font-weight: 800; }
.section-label span { display: inline-grid; place-items: center; height: 27px; width: 27px; border: 1px solid #a8c8b3; border-radius: 50%; letter-spacing: 0; font-size: 10px; }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: end; margin-bottom: 33px; }
.section-heading h2 { margin: 0 0 13px; }
.section-heading p { max-width: 590px; margin: 0; color: #4a5e50; font-size: 15px; line-height: 1.7; }
.section-heading > p { align-self: end; font-size: 14px; }
.fineprint { color: #66776a; font-size: 12px; line-height: 1.7; margin: 15px 0 0; }

.framework-graphic { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.framework-phase + .framework-phase { margin-top: 26px; padding-top: 23px; border-top: 1px solid var(--line); }
.framework-phase h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 15px; font-size: 19px; }
.framework-phase h3 span { color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: 0; }
.framework-chain { display: grid; gap: 22px; }
.framework-chain-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.framework-chain-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.framework-node { position: relative; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.framework-chain .framework-node:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; }
.framework-node-editable { border-color: #adccb6; background: #edf5ef; }
.framework-node-fixed { border-color: #cfd7d1; background: #f0f3f1; }
.framework-node-heldout { border-color: #d7d4ce; background: #f5f4f1; }
.framework-node-agent { border-color: #b7cfbd; border-left: 3px solid var(--accent); background: #f5f9f6; }
.framework-node-type { color: var(--accent); font-size: 10px; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.framework-node h4 { margin: 8px 0 5px; font-size: 15px; line-height: 1.3; }
.framework-node h4 i, .framework-node p i { white-space: nowrap; font-weight: 500; }
.framework-node p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.framework-cycle { margin: 13px 0 0; padding: 8px 12px; border: 1px dashed #9abca6; border-radius: 4px; color: var(--accent-dark); background: var(--tint); font-size: 12px; font-weight: 700; text-align: center; }
.framework-legend { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.framework-legend span { display: inline-flex; align-items: center; gap: 7px; }
.framework-legend i { width: 11px; height: 11px; border: 1px solid; }
.framework-legend .framework-key-editable { border-color: #adccb6; background: #edf5ef; }
.framework-legend .framework-key-fixed { border-color: #cfd7d1; background: #f0f3f1; }
.framework-legend .framework-key-heldout { border-color: #d7d4ce; background: #f5f4f1; }
.framework-phase.is-animating { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.framework-phase.is-animating.is-visible { opacity: 1; transform: none; }
.framework-phase:nth-child(2).is-animating { transition-delay: .35s; }
.framework-phase:nth-child(3).is-animating { transition-delay: .7s; }
.framework-settings { margin-top: 42px; padding-top: 32px; border-top: 1px solid var(--line); }
.framework-settings .section-heading h2 { margin: 0; font-size: clamp(26px, 2.6vw, 33px); }
.settings-heading { display: block; margin-bottom: 22px; }
.settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.settings article { display: flex; flex-direction: column; border-top: 2px solid #8eac98; padding-top: 16px; }
.settings-number { color: var(--accent); font-size: 11px; font-weight: 780; text-transform: uppercase; letter-spacing: .06em; }
.settings h3 { margin: 9px 0 8px; font-size: 18px; }
.settings p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.settings .settings-test { margin-top: auto; padding-top: 12px; }
.settings-test strong { color: var(--accent); }
.settings code { color: var(--accent-dark); background: #e9f1eb; padding: 1px 3px; font-size: .94em; }

.gain-plot { --bar-width: 48px; margin: 0; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.gain-plot-main { max-width: 820px; }
.gain-plot-main + .fineprint { max-width: 820px; }
.plot-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.plot-legend { display: flex; gap: 16px; color: var(--muted); font-size: 11px; }
.plot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.plot-legend span::before { content: ""; width: 10px; height: 10px; background: #b5beb8; }
.plot-legend span + span::before { background: var(--accent); }
.plot-scroll { overflow-x: auto; padding: 29px 4px 0; scrollbar-color: #b3c9b9 #f4f7f4; }
.plot-body { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding-bottom: 75px; }
.plot-axis { display: flex; flex-direction: column; justify-content: space-between; height: 230px; color: var(--muted); font-size: 10px; line-height: 1; text-align: right; }
.plot-field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 230px; border-bottom: 1px solid #84968a; background: linear-gradient(to top, var(--line) 1px, transparent 1px) left bottom / 100% 20% repeat-y; }
.plot-group { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; min-width: 0; }
.plot-column { position: relative; width: var(--bar-width); height: var(--seed); }
.plot-column-evolved { height: var(--evolved); }
.plot-bar { display: block; width: 100%; height: 100%; border-radius: 3px 3px 0 0; background: #b5beb8; transform-origin: center bottom; }
.plot-column-evolved .plot-bar { background: var(--accent); }
.plot-value { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); color: #405248; font-size: 12px; font-weight: 750; line-height: 1; white-space: nowrap; }
.plot-column-evolved .plot-value { color: var(--accent); }
.plot-name { position: absolute; top: calc(100% + 11px); left: 0; right: 0; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; }
.plot-gain { display: block; margin-top: 5px; color: var(--accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.gain-plot.is-animating .plot-bar { transform: scaleY(0); }
.gain-plot.is-animating .plot-value, .gain-plot.is-animating .plot-gain { opacity: 0; }
.gain-plot.is-animating.is-visible .plot-bar { transform: scaleY(1); transition: transform 1s cubic-bezier(.15, .75, .22, 1.05) .1s; }
.gain-plot.is-animating.is-visible .plot-column-evolved .plot-bar { transition-delay: .27s; }
.gain-plot.is-animating.is-visible .plot-value, .gain-plot.is-animating.is-visible .plot-gain { opacity: 1; transition: opacity .3s ease .9s; }
.transfer-plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gain-plot-transfer { --bar-width: 22px; padding: 18px 16px 12px; min-width: 0; }
.gain-plot-transfer .plot-body { min-width: 500px; }
.gain-plot-transfer .plot-field { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.gain-plot-transfer .plot-group { gap: 11px; }
.gain-plot-transfer .plot-value { font-size: 10px; }
.gain-plot-transfer .plot-name { font-size: 11px; }
.gain-plot-transfer .plot-gain { font-size: 11px; }
.plot-swipe { display: none; }
.main-findings { margin: 0; padding: 0; list-style: none; counter-reset: main-finding; }
.main-findings > li { counter-increment: main-finding; }
.main-findings > li + li { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.main-findings h3 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 30px); }
.main-findings h3::before { content: counter(main-finding) "."; margin-right: 10px; color: var(--accent); }
.main-findings > li > p:not(.fineprint) { margin: 0 0 26px; color: #4a5e50; font-size: 15px; line-height: 1.7; }
.finding-cost-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 36px; align-items: start; }
.result-explainer { max-width: 760px; }
.cost-figure { width: 100%; padding: 14px 16px 12px; margin: 0; border: 1px solid var(--line); border-radius: 5px; background: white; }
.result-explainer > p { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: #4a5c51; }
.cost-comparison { margin: 20px 0; padding: 12px 0; border-block: 1px solid var(--line); }
.cost-comparison-label { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.cost-comparison-label strong { color: var(--accent); }
.cost-comparison dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cost-comparison dl > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.cost-comparison dt { color: var(--muted); font-size: 11px; line-height: 1.4; }
.cost-comparison dd { display: flex; flex-direction: column; gap: 2px; margin: 7px 0 0; }
.cost-comparison dd strong { color: var(--accent); font-size: 24px; letter-spacing: -.04em; line-height: 1.1; }
.cost-comparison dd span { color: #69786d; font-size: 12px; }
.result-sampling { padding: 14px 17px; border-left: 3px solid var(--accent); background: var(--tint); color: #4a5c51; font-size: 13px; line-height: 1.6; }
.result-sampling > strong { color: var(--accent-dark); }
.result-sampling p { margin: 5px 0 0; }

.analysis-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.analysis-figure { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.analysis-figure-heading { margin-bottom: 20px; }
.analysis-figure-heading h3 { margin: 0 0 6px; font-size: 23px; }
.analysis-figure-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.analysis-strategy-list { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 13px; margin: 0; padding: 0; list-style: none; }
.analysis-strategy-list li { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 12px; }
.analysis-strategy-list li:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: -11px; left: 14px; border-left: 1px solid #cddcd1; }
.analysis-index { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #b1c8b7; border-radius: 50%; color: var(--accent); background: white; font-size: 10px; font-weight: 750; }
.analysis-strategy-list .is-shared .analysis-index { border-color: var(--accent); color: white; background: var(--accent); }
.analysis-strategy-list h4 { margin: 2px 0 3px; font-size: 14px; line-height: 1.3; }
.analysis-strategy-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.analysis-figure figcaption { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: #647669; font-size: 11px; line-height: 1.55; }
.analysis-shared-key { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; background: var(--accent); }
.analysis-tool-groups { columns: 2; column-gap: 12px; }
.analysis-tool-group { break-inside: avoid; min-width: 0; margin-bottom: 12px; padding: 14px; border-top: 2px solid #80aa8d; background: var(--tint); }
.analysis-tool-group h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin: 0 0 10px; color: var(--accent-dark); font-size: 15px; line-height: 1.35; }
.analysis-tool-group h4 span { color: var(--accent); font-size: 10px; font-weight: 750; }
.analysis-tool-group dl { margin: 0; }
.analysis-tool-group dl > div + div { margin-top: 8px; }
.analysis-tool-group dt { color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.35; }
.analysis-tool-group dd { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.analysis-tool-group > p { margin: 0; padding-top: 14px; color: #516458; font-size: 11px; line-height: 1.45; }
.analysis-tool-group > p strong { display: block; color: var(--accent-dark); }
.footer { background: #172720; color: #e5eee7; padding: 54px 0 60px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }
.footer strong { font-size: 21px; }
.footer p { font-size: 12px; line-height: 1.7; color: #c4d2c8; }
.footer a { color: #e5f7e8; font-size: 12px; }
.footer-inner > div:last-child { max-width: 445px; }

@media (max-width: 950px) {
  .finding-cost-layout { grid-template-columns: 1fr; gap: 22px; }
  .cost-figure { max-width: 470px; }
  .analysis-figures { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .wrap { width: min(100% - 40px, 700px); }
  .header-inner { gap: 15px; }
  .preview-label { display: none; }
  .section { padding-block: 70px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .framework-chain { grid-template-columns: 1fr; }
  .framework-chain .framework-node:not(:last-child)::after { content: "↓"; top: auto; right: auto; bottom: -23px; left: 50%; transform: translateX(-50%); }
  .section-heading > p { max-width: 640px; }
  .transfer-plots { grid-template-columns: 1fr; }
  .framework-steps, .settings { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .wrap { width: min(100% - 32px, 440px); }
  .header-inner { min-height: 60px; justify-content: space-between; }
  .paper-header { padding-block: 60px 42px; }
  .paper-header h1 { font-size: clamp(44px, 11vw, 58px); }
  .paper-header h1 > span { font-size: 26px; }
  .authors { font-size: 16px; gap: 2px 20px; }
  .authors span { display: block; }
  .paper-summary { font-size: 15px; }
  .story-teaser { padding-top: 16px; }
  .story-controls { display: block; }
  .story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-replay { width: 100%; margin-top: 9px; }
  .section { padding-block: 58px; }
  .main-findings > li + li { margin-top: 44px; padding-top: 28px; }
  .section-heading h2 { font-size: 31px; }
  .gain-plot { padding: 17px 12px 12px; }
  .gain-plot-main { --bar-width: 28px; }
  .gain-plot-main .plot-group { gap: 7px; }
  .gain-plot-main .plot-value { font-size: 10px; }
  .gain-plot-main .plot-name { font-size: 11px; }
  .gain-plot-transfer { --bar-width: 22px; }
  .cost-comparison dl { gap: 6px; }
  .cost-comparison dl > div + div { padding-left: 8px; }
  .cost-comparison dd strong { font-size: 22px; }
  .plot-swipe { display: block; margin: 0; color: var(--accent); font-size: 11px; font-weight: 720; }
  .framework-graphic { padding: 18px; }
  .framework-settings { margin-top: 34px; padding-top: 26px; }
  .analysis-tool-groups { columns: 1; }
  .analysis-figure { padding: 17px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .framework-phase.is-animating { opacity: 1; transform: none; }
  .gain-plot.is-animating .plot-bar { transform: none; }
  .gain-plot.is-animating .plot-value, .gain-plot.is-animating .plot-gain { opacity: 1; }
}
