:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --white: #fff;
  --ink: #192e27;
  --muted: #50635a;
  --green: #17654d;
  --deep: #173a30;
  --light-green: #d6e9d4;
  --line: #d3dcd3;
  --pale: #edf3ed;
  --serif: "STIX Two Text", "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p, dl, dd, figure, blockquote, pre { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #c1761c;
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
html:not(.js-enabled) .needs-js { display: none !important; }
section[id] { scroll-margin-top: 5rem; }
.shell { width: min(1220px, calc(100% - clamp(2.5rem, 9vw, 9rem))); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 10; top: .5rem; left: .5rem; background: white; padding: .6rem 1rem; }
.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #f7f8f2f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; font-size: 1.26rem; font-weight: 720; letter-spacing: -.055em; color: var(--ink); text-decoration: none; }
.wordmark img { border-radius: .35rem; }
nav { display: flex; align-items: center; gap: clamp(.62rem, 1.8vw, 1.8rem); }
nav a { display: block; padding: .65rem .1rem; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 550; }
nav a:is(:hover, [aria-current]) { color: var(--green); text-decoration: underline; text-underline-offset: .47em; text-decoration-thickness: 2px; }
.mobile-menu { display: none; }
.hero { background: var(--paper); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .97fr); gap: clamp(2.2rem, 5vw, 5.8rem); align-items: center; padding: clamp(2.4rem, 4.2vw, 4.5rem) 0; }
.hero-copy h1 { max-width: 13.5em; font: 400 clamp(3.15rem, 5.1vw, 4.9rem)/1.015 var(--serif); letter-spacing: -.052em; text-wrap: balance; }
.hero-copy h1 em { color: var(--green); font-weight: 400; }
.hero-lead { max-width: 39rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.32rem); line-height: 1.48; }
.byline { margin-top: 1.5rem; }
.byline #authors { font-size: .97rem; font-weight: 620; }
.byline #authors > * { white-space: nowrap; }
.byline #affiliations { font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.byline #affiliations > span { display: block; }
.byline #author-note { margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.byline sup { font-size: .73em; margin-inline: .1em; }
.resources { display: flex; align-items: stretch; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.resource-link, .resource-status { display: inline-flex; align-items: center; justify-content: center; gap: .46rem; border: 1px solid var(--line); border-radius: .4rem; padding: .55rem .8rem; font-size: .92rem; font-weight: 600; }
.resource-link { min-height: 2.75rem; text-decoration: none; }
.secondary:hover { border-color: var(--green); background: var(--pale); }
.resource-status { flex-direction: column; align-items: flex-start; gap: .04rem; min-width: 5.35rem; padding: .3rem .76rem; line-height: 1.12; color: var(--muted); }
.resource-status small { font-size: .75rem; font-weight: 400; }
.hero-finding { display: flex; align-items: center; gap: 1rem; max-width: 31rem; margin-top: 2.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.finding-value { flex: none; color: var(--green); font: 400 clamp(2.4rem, 3.6vw, 3.55rem)/1 var(--serif); letter-spacing: -.06em; }
.finding-value span { font: 500 1rem/1 var(--sans); letter-spacing: -.025em; }
.hero-finding p { color: var(--muted); font-size: .91rem; line-height: 1.45; }
.hero-finding strong { color: var(--ink); font-weight: 650; }
.bottle-demo { --demo-muted: #c3d4c8; color: #fafbf5; background: var(--deep); border-radius: .85rem; padding: clamp(1rem, 2.15vw, 1.8rem); }
.demo-heading, .step-row, .architecture figcaption, .rollout-caption, .chart-heading, .citation-tools, .viewer-heading, .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-dataset, .kicker, .file-type { font: 500 .77rem/1.4 var(--mono); letter-spacing: .08em; }
.demo-dataset { color: var(--demo-muted); }
.demo-heading h2 { margin-top: .1rem; font: 400 clamp(1.6rem, 3vw, 2.15rem)/1.13 var(--serif); letter-spacing: -.035em; }
.figure-link { display: inline-flex; align-items: center; gap: .4rem; flex: none; font-size: .86rem; font-weight: 600; text-decoration: none; }
.figure-link:hover { text-decoration: underline; }
.figure-link.on-dark { color: #e7f1e6; }
.file-type { padding: .06rem .24rem; border: 1px solid currentColor; border-radius: .16rem; font-size: .75rem; letter-spacing: .01em; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0 .9rem; }
.policy { display: grid; gap: .6rem; align-content: start; }
.policy h3 { color: #f5f6ef; font-size: .9rem; font-weight: 650; line-height: 1.35; }
.policy.ours h3 { color: #c8edc5; }
.policy figure { min-width: 0; }
.policy img { width: 100%; height: auto; border-radius: .3rem; background: #fff; }
.policy figcaption { margin-top: .21rem; color: var(--demo-muted); font-size: .79rem; line-height: 1.32; font-variant-numeric: tabular-nums; }
.step-row { justify-content: flex-start; flex-wrap: wrap; gap: .5rem; border-top: 1px solid #466255; padding-top: .75rem; font-size: .85rem; }
.steps { display: inline-flex; gap: .25rem; }
.steps button { min-width: 2.15rem; min-height: 1.95rem; border: 1px solid #6e8c7d; border-radius: .3rem; background: transparent; color: white; font-size: .84rem; font-variant-numeric: tabular-nums; }
.steps button:hover { border-color: white; }
.steps button[aria-pressed="true"] { color: #153629; background: #d9edd4; border-color: #d9edd4; font-weight: 700; }
.step-source { margin-left: auto; color: var(--demo-muted); font-size: .79rem; }
.step-source b { color: #f7faf4; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-caption { display: flex; align-items: center; gap: .52rem; color: var(--demo-muted); font-size: .8rem; margin-top: .65rem; }
.reference-line { display: inline-block; width: 1.65rem; flex: none; border-top: 2px dashed #efa052; }
details { min-width: 0; }
summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-weight: 400; }
details[open] > summary::after { content: "−"; }
.abstract { border-top: 1px solid var(--line); }
.abstract summary { padding: 1rem 0; color: var(--green); }
.abstract-text { max-width: 86ch; padding: .2rem 0 1.8rem; }
.abstract-text p + p { margin-top: .8rem; }
.section { padding-block: clamp(3.5rem, 6.5vw, 6rem); background: var(--white); border-top: 1px solid var(--line); }
.section-heading, .citation-layout { display: grid; align-items: end; grid-template-columns: 1fr .84fr; gap: clamp(2rem, 6vw, 6.5rem); }
.section-heading { margin-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.kicker { margin-bottom: .55rem; text-transform: uppercase; color: var(--green); font-size: .83rem; }
.section-heading h2, .citation-layout h2 { font: 400 clamp(2.4rem, 4.3vw, 3.9rem)/1.05 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
.section-heading > p { max-width: 58ch; color: var(--muted); }
.architecture { border: 1px solid var(--line); background: white; padding: clamp(.65rem, 2.2vw, 1.8rem); border-radius: .55rem; }
.architecture img { width: 100%; max-width: 1020px; margin: auto; height: auto; }
.architecture figcaption, .rollout-caption { flex-wrap: wrap; color: var(--muted); margin-top: .8rem; font-size: .88rem; }
.architecture figcaption { padding-top: .8rem; border-top: 1px solid var(--line); }
.method-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); margin-top: 1.8rem; }
.method-pair h3, .filmstrip h3, .chart-heading h3, #latency-title { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; }
.method-pair h3 span { color: var(--green); font: 500 .83rem var(--mono); margin-left: .35rem; }
.method-pair p, .chart-heading p { color: var(--muted); margin-top: .45rem; }
.rollout-section { background: var(--pale); }
.rollout-section blockquote { max-width: 52rem; margin-bottom: 1.65rem; padding-left: 1rem; border-left: 3px solid #72a88d; font: italic 400 clamp(1.22rem, 2.2vw, 1.65rem)/1.37 var(--serif); }
.filmstrips { display: grid; gap: 1.6rem; }
.filmstrip figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .55rem; }
.filmstrip figcaption span { color: var(--muted); font-size: .88rem; }
.filmstrip:first-child h3 { color: var(--green); }
.frame-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.33rem, .95vw, .85rem); }
.frame-grid a { min-width: 0; color: var(--muted); text-decoration: none; font: 400 .81rem/1.4 var(--mono); }
.frame-grid img { width: 100%; height: auto; border-radius: .3rem; background: #d8ded5; }
.frame-grid a:hover img { outline: 2px solid var(--green); outline-offset: 1px; }
.frame-grid a span { display: block; margin-top: .3rem; }
.rollout-caption { border-top: 1px solid #c9d7cd; padding-top: 1rem; margin-top: 1.4rem; }
.benchmark-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 1.4rem 0 2.3rem; }
.benchmark-summary > div { padding: 1.2rem 0; }
.benchmark-summary > div + div { border-left: 1px solid var(--line); padding-left: clamp(.8rem, 3vw, 2.5rem); }
.benchmark-summary dt { color: var(--green); font-weight: 650; }
.benchmark-summary .score { display: block; font: 400 clamp(2.65rem, 5vw, 4rem)/1.11 var(--serif); letter-spacing: -.055em; margin-block: .15rem .25rem; }
.benchmark-summary .score span { font-size: .52em; letter-spacing: 0; }
.benchmark-summary .measurement { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.benchmark-tabs { display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .22rem; border-radius: .5rem; background: #ecf1eb; }
.benchmark-tabs button { border: 0; background: transparent; border-radius: .36rem; padding: .55rem .95rem; font-weight: 600; color: var(--muted); font-size: .93rem; }
.benchmark-tabs button[aria-selected="true"] { background: var(--deep); color: white; }
#benchmark-panel { margin-top: 1.3rem; }
.chart-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.1rem; }
.chart-heading p { font-size: .92rem; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: .95rem; height: .45rem; border-radius: .08rem; }
.ours-swatch, .bar { background: var(--green); }
.baseline-swatch, .bar.baseline { background: #71848f; }
#comparison-chart { --label-w: clamp(6rem, 16vw, 11.3rem); --value-w: 2.7rem; background: #f4f6f2; padding: 1rem clamp(.65rem, 2vw, 1.65rem); border-radius: .45rem; }
.chart-scale { display: flex; margin-left: calc(var(--label-w) + .7rem); margin-right: calc(var(--value-w) + .5rem); }
.chart-scale div { width: 100%; display: flex; justify-content: space-between; color: var(--muted); font: 400 .77rem var(--mono); }
.chart-row { display: grid; grid-template-columns: var(--label-w) minmax(0,1fr); align-items: center; gap: .7rem; padding: .48rem 0; }
.chart-row + .chart-row { border-top: 1px solid #dfe6de; }
.condition { font-size: .91rem; font-weight: 550; }
.bar-pair { display: grid; gap: .17rem; }
.bar-line { display: grid; grid-template-columns: minmax(0,1fr) var(--value-w); gap: .5rem; align-items: center; }
.bar-track { height: .4rem; background: #e0e7df; border-radius: 2px; overflow: hidden; }
.bar { display: block; height: 100%; border-radius: inherit; }
.bar-value { text-align: right; font: 400 .8rem/1.12 var(--mono); color: var(--ink); }
.data-details { border-block-start: 1px solid var(--line); }
.data-details summary { padding-block: .85rem; color: var(--green); }
#full-results { margin-top: 1rem; }
.data-details > p { margin: .1rem 0 .85rem; font-size: .93rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: .6rem .52rem; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-size: .82rem; font-weight: 650; vertical-align: bottom; }
tbody th { font-weight: 500; }
.our-row { background: #e4f0e3; color: #184b35; }
.our-row th, .our-row td { font-weight: 650; }
caption { text-align: left; font-weight: 600; margin-block: .25rem .45rem; }
#benchmark-table { min-width: 37rem; }
#benchmark-table thead th:not(:first-child) { min-width: 4.4rem; }
#benchmark-table tbody th { white-space: nowrap; }
.data-details .table-note { margin: .8rem 0 1.2rem; }
#inference-latency { margin-top: .5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
#latency-context { margin: .45rem 0 .9rem; color: var(--muted); font-size: .93rem; }
.citation-section { padding-block: clamp(2.7rem, 5vw, 4.7rem); color: #f4f7ef; background: var(--deep); }
.citation-layout { align-items: start; grid-template-columns: .72fr 1.28fr; gap: 3rem; }
.citation-layout .kicker { color: #b6d5bf; }
.citation-layout h2 { font-size: clamp(2.2rem, 3.9vw, 3.6rem); }
#citation-status { margin-top: .9rem; max-width: 36ch; color: #ccdbd1; }
.citation-block { min-width: 0; padding: 1rem 1.2rem; border: 1px solid #537366; border-radius: .45rem; background: #112f27; }
.citation-tools { color: #c9dfd0; font: 500 .86rem var(--mono); }
.citation-tools button, dialog button { padding: .35rem .7rem; border: 1px solid #6b897c; border-radius: .3rem; background: transparent; color: inherit; font: 500 .85rem var(--sans); }
.citation-tools button:hover { background: #284e3e; }
pre { margin-top: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .9rem/1.6 var(--mono); }
pre code { font: inherit; }
.site-footer { background: var(--paper); color: var(--muted); font-size: .87rem; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }
.site-footer .shell > span { color: var(--ink); font-weight: 650; }
.site-footer a { color: var(--muted); }
dialog { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid #819b8c; border-radius: .65rem; padding: 1rem; color: #f7faf6; background: var(--deep); }
dialog::backdrop { background: #0a1d17be; }
.viewer-heading h2 { font: 400 1.45rem/1.2 var(--serif); letter-spacing: -.025em; }
#viewer-image { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; margin-block: .8rem; }
.viewer-controls { font-size: .86rem; }
dialog button:disabled { opacity: .48; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 1.9rem; }
  .hero-copy h1 { font-size: clamp(2.8rem, 5.7vw, 3.65rem); }
  .step-source { width: 100%; margin-left: 0; }
  .section-heading { gap: 2rem; }
}
@media (max-width: 790px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.7rem; }
  .hero-copy h1 { max-width: 16em; font-size: clamp(2.9rem, 7.8vw, 3.95rem); }
  .hero-lead { max-width: 48ch; }
  .hero-finding { margin-top: 1.35rem; }
  .policy { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: .42rem; }
  .policy h3 { grid-column: 1 / -1; }
  .step-source { width: auto; margin-left: auto; }
  .section-heading, .citation-layout { grid-template-columns: 1fr; gap: .9rem; }
  .citation-layout { gap: 1.5rem; }
  .section-heading > p { max-width: 65ch; }
  .benchmark-summary .measurement { font-size: .82rem; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 2.4rem); }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 3.65rem; }
  .mobile-menu:not([hidden]) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .55rem; border: 0; background: transparent; color: var(--green); font-weight: 600; }
  nav { width: 100%; justify-content: space-between; gap: .35rem; padding-bottom: .45rem; }
  .js-enabled .mobile-menu[aria-expanded="false"] + nav { display: none; }
  nav a { padding: .5rem .05rem; font-size: .88rem; }
  .method-pair { grid-template-columns: 1fr; gap: 1.1rem; }
  .frame-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; }
  .rollout-caption { align-items: start; }
  .step-source { font-size: .78rem; }
}
@media (max-width: 525px) {
  .shell { width: calc(100% - 1.9rem); }
  .policy-grid { grid-template-columns: 1fr; gap: .9rem; }
  .policy { gap: .3rem .55rem; }
  .policy h3 { margin-bottom: .05rem; }
  .hero-layout { padding-block: 1.8rem; }
  .hero-copy h1 { font-size: clamp(2.55rem, 9.6vw, 3.2rem); }
  .hero-lead { margin-top: .8rem; }
  .byline, .resources { margin-top: 1rem; }
  .hero-finding { align-items: center; padding-top: .75rem; }
  .step-source { flex-basis: 100%; }
  .benchmark-summary { grid-template-columns: 1fr; margin-bottom: 1.4rem; }
  .benchmark-summary > div, .benchmark-summary > div + div { display: grid; grid-template-columns: minmax(0,1fr) 62%; align-items: center; padding: .65rem 0; border-left: 0; }
  .benchmark-summary > div + div { border-top: 1px solid var(--line); }
  .benchmark-summary dd { text-align: right; }
  .benchmark-summary .score { margin: 0; font-size: 2.15rem; line-height: 1.06; }
  .benchmark-tabs { display: flex; }
  .benchmark-tabs button { flex: auto; padding: .48rem .3rem; font-size: .85rem; }
  #comparison-chart { --label-w: 5.15rem; --value-w: 2.1rem; }
  .condition { font-size: .82rem; }
  .chart-row { padding-block: .48rem; }
  .chart-heading { gap: .55rem; }
  .frame-grid a { font-size: .75rem; }
  .citation-block { padding: .85rem; }
}
@media (pointer: coarse) {
  .steps button, .citation-tools button, dialog button, .benchmark-tabs button { min-height: 44px; }
  .steps button { min-width: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header { position: static; }
  .site-header nav, .mobile-menu, .resources, .steps, .skip-link, .site-footer, .citation-tools button { display: none !important; }
  .section, .hero-layout, .citation-section { padding-block: 1.2rem; }
  .shell { width: 100%; }
  .filmstrip, .architecture, .benchmark-summary { break-inside: avoid; }
}
