@font-face {
  font-family: Outfit;
  src: url('assets/outfit-regular.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #182128;
  --muted: #5b6570;
  --blue: #2056d8;
  --line: #e2e5e9;
  --sans: Outfit, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; }
button { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, video:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 1096px; margin: 0 auto; padding: 0 28px; }
.page-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; max-width: 1360px; margin: auto; padding: 0 24px; }
#main { min-width: 0; }
.section-space { padding-top: 48px; padding-bottom: 56px; }
#main > section:not(.hero) { position: relative; }
#main > section:not(.hero)::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: #c7d0da; }
.page-toc { position: sticky; top: 100px; align-self: start; margin-top: 48px; max-height: calc(100vh - 124px); overflow-y: auto; padding: 4px; }
.toc-label { margin: 0 0 16px 14px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
#section-nav { display: flex; flex-direction: column; gap: 4px; }
#section-nav a { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: baseline; gap: 9px; padding: 10px 10px 10px 12px; border-left: 2px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
#section-nav a:hover { color: var(--blue); border-left-color: #9bb4ec; }
#section-nav a[aria-current="location"] { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }
.toc-number { font-size: 11px; font-variant-numeric: tabular-nums; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: 1360px; min-height: 64px; margin: auto; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 17px; font-weight: 500; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand-mark { color: #adb3bb; padding: 0 4px; }
.brand-lab { color: var(--muted); font-size: 12px; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-paper { font-size: 13px; }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 7px 11px; font-size: 13px; }
.hero { padding-top: 48px; padding-bottom: 52px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: clamp(42px, 5vw, 62px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.version { color: var(--blue); }
.hero-subtitle { margin: 0 0 16px; font: 400 clamp(24px, 3vw, 34px)/1.35 var(--sans); letter-spacing: -.02em; }
.hero-description { max-width: 760px; margin: 0 auto 22px; color: var(--muted); }
.authors { max-width: 920px; margin: auto; font-size: 15px; line-height: 1.9; }
.author { white-space: nowrap; }
sup { font-size: .65em; line-height: 0; margin-left: 2px; }
.affiliations { margin-top: 8px; font-size: 12px; color: var(--muted); }
.affiliations span { display: inline-block; margin: 0 7px; }
.author-note { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.author-note a { text-decoration: underline; text-underline-offset: 3px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 16px; min-height: 42px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.secondary:hover { border-color: var(--blue); }
.text-link { padding: 8px 12px; font-size: 14px; }
.section-heading h2 { margin: 0 0 22px; font: 500 32px/1.3 var(--sans); letter-spacing: -.02em; }
.section-number { display: inline-block; margin-right: 14px; font: 500 13px/1 var(--sans); letter-spacing: .04em; color: var(--blue); vertical-align: middle; }
.section-heading p { margin: 0 0 20px; color: var(--muted); }
.project-film-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-picture { position: relative; }
.film-ending { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.film-shell [hidden] { display: none; }
.film-controls { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: #f3f6f6; }
.film-controls button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; font-size: 20px; }
.film-controls input { flex: 1; min-width: 0; height: 36px; margin: 0 5px; accent-color: #096e63; touch-action: none; cursor: pointer; }
.film-controls time { font-size: 13px; font-variant-numeric: tabular-nums; }
.film-shell:fullscreen { display: flex; flex-direction: column; justify-content: center; background: #101515; }
.film-shell:fullscreen video { height: calc(100vh - 44px); object-fit: contain; }
.demo-controls { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.demo-controls button { width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 20px; }
.demo-controls button:hover:enabled { border-color: var(--blue); color: var(--blue); }
.demo-controls button:disabled { opacity: .35; cursor: default; }
#demo-position, #extra-demo-position { margin-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.demo-group + .demo-group { margin-top: 42px; }
.demo-group-title { margin: 0 0 14px; font-size: 18px; line-height: 1.35; font-weight: 650; }
.demo-track { display: flex; flex-wrap: nowrap; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 16px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #aab2bb #fff; }
.demo-track::-webkit-scrollbar { height: 7px; }
.demo-track::-webkit-scrollbar-track { background: #fff; }
.demo-track::-webkit-scrollbar-thumb { background: #aab2bb; border-radius: 8px; }
.demo-card { flex: 0 0 326px; min-width: 0; scroll-snap-align: start; }
.demo-frame { position: relative; aspect-ratio: 2 / 1; }
.demo-player { position: absolute; inset: 0; border-radius: 5px; overflow: hidden; }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.demo-frame video:fullscreen { width: 100%; height: 100%; object-fit: contain; background: #000; }
.duration { position: absolute; top: 9px; right: 9px; padding: 1px 5px; border-radius: 3px; background: #172123bc; color: #fff; font-size: 10px; pointer-events: none; }
.demo-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0 0; }
.demo-caption h3 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 400; }
#demo-droid .demo-caption h3 { font-size: 12px; line-height: 1.35; }
.demo-index { color: var(--muted); font-size: 11px; }
.section-note { margin: 18px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.architecture { margin: 26px 0; background: #fff; }
.architecture img { width: 100%; height: auto; }
.architecture figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.architecture figcaption span { margin-right: 8px; font-size: 10px; font-weight: 500; }
.method-list article { margin: 0 0 20px; }
.method-list h3 { margin: 0 0 5px; font-size: 17px; font-weight: 500; }
.method-list p { margin: 0; font-size: 15px; color: var(--muted); }
.method-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 26px; }
.method-detail { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.method-detail h3 { margin: 0 0 16px; font-size: 17px; line-height: 1.45; font-weight: 500; }
.method-figure { display: block; aspect-ratio: 2.4; }
.method-figure img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.method-details p { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.results-card { margin-top: 24px; }
.result-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.result-tabs button { flex: 0 0 auto; padding: 12px 17px; border: 0; border-bottom: 2px solid transparent; background: #fff; font-size: 14px; color: var(--muted); white-space: nowrap; }
.result-tabs button:first-child { padding-left: 0; }
.result-tabs button[aria-selected=true] { color: var(--blue); border-bottom-color: var(--blue); }
.result-tabs button:hover { color: var(--blue); }
#result-panel { padding: 24px 0 0; }
.chart-heading h3 { margin: 0 0 4px; font-size: 19px; font-weight: 500; }
.chart-heading > span { font-size: 12px; color: var(--muted); }
.result-description { margin: 10px 0 24px; font-size: 14px; color: var(--muted); }
.result-chart { display: block; }
.score-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.score-groups figure { min-width: 0; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.score-groups figcaption { margin-bottom: 16px; font-size: 16px; font-weight: 600; }
@media (max-width: 680px) { .score-groups { grid-template-columns: 1fr; } }
.curve-link { display: block; }
.pretraining-curve { width: 100%; height: auto; }
.curve-caption { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 5px 12px; align-items: center; margin-bottom: 15px; }
.score-name { grid-column: 1 / -1; font-size: 13px; }
.bar-track { height: 19px; background: repeating-linear-gradient(to right, #e9edf2 0, #e9edf2 1px, transparent 1px, transparent 25%); }
.score-bar { display: block; height: 100%; background: #a7b4c5; }
.score-bar.ours { background: #3463b7; }
.score-value { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.chart-scale { display: flex; justify-content: space-between; margin-right: 60px; font-size: 10px; color: var(--muted); }
.chart-scale[hidden] { display: none; }
.result-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.resource-links { margin: 8px 0 30px; }
.resource-links a { display: block; padding: 9px 0; font-size: 15px; }
.resource-links span { margin-left: 9px; font-size: 11px; color: var(--muted); }
.citation-card { background: #fff; border-top: 1px solid var(--line); }
.citation-heading { display: flex; align-items: center; gap: 16px; padding: 20px 0 10px; }
.citation-heading h3 { margin: 0; font-size: 18px; font-weight: 500; }
.citation-heading button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; }
pre { margin: 0; padding: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; color: #465250; }
.citation-bottom { margin-top: 8px; font-size: 12px; }
.citation-bottom a { text-decoration: underline; text-underline-offset: 3px; }
#copy-status { margin-left: 14px; }
.site-footer { margin-top: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; }
.footer-inner > span { display: block; margin: 8px 0; font-size: 11px; color: var(--muted); }
.footer-inner > a:last-child { font-size: 12px; }
@media (max-width: 1099px) {
  .page-layout { display: block; padding: 0; }
  .menu-toggle { display: flex; gap: 12px; align-items: center; }
  .menu-toggle[aria-expanded="true"] > span { transform: rotate(45deg); }
  .page-toc { display: none; position: fixed; top: 72px; right: 20px; z-index: 30; width: min(320px, calc(100% - 40px)); margin: 0; padding: 20px; max-height: calc(100vh - 96px); border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 8px 28px #18212814; }
  .page-toc.open { display: block; }
}
@media (max-width: 800px) {
  .method-details { grid-template-columns: 1fr; gap: 24px; }
  .brand-lab, .brand-mark { display: none; }
  .hero { padding-top: 36px; }
  .authors { font-size: 14px; }
  .demo-card { flex-basis: 300px; }
}
@media (max-width: 540px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section-space { padding-top: 34px; padding-bottom: 40px; }
  #main > section:not(.hero)::before { left: 20px; right: 20px; }
  .nav-wrap { min-height: 60px; padding: 10px 20px; position: relative; }
  .brand { font-size: 16px; }
  .header-actions { gap: 12px; }
  .menu-toggle { gap: 8px; }
  .page-toc { top: 68px; }
  .hero { padding-top: 30px; padding-bottom: 36px; }
  .hero-subtitle { font-size: 24px; }
  .hero-description { font-size: 15px; }
  .authors { font-size: 13px; }
  .affiliations { font-size: 11px; }
  .author-note { font-size: 11px; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .button { padding: 8px 11px; font-size: 12px; gap: 6px; }
  .text-link { padding: 8px; font-size: 12px; }
  .section-heading h2 { font-size: 27px; margin-bottom: 18px; }
  .section-number { margin-right: 10px; font-size: 12px; }
  .section-heading p, .overview-text > p { font-size: 15px; }
  .demo-track { gap: 14px; }
  .demo-card { flex-basis: 88%; }
  .demo-caption h3 { font-size: 14px; }
  #demo-droid .demo-caption h3 { font-size: 11px; line-height: 1.35; }
  .result-tabs button { font-size: 12px; padding: 11px 13px; }
  .method-list h3 { font-size: 16px; }
  .method-list p { font-size: 14px; }
  .resource-links a { font-size: 13px; }
  .resource-links span { font-size: 10px; }
  pre { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .page-toc, .demos-section, .hero-actions, #copy-citation { display: none; }
  .page-layout { display: block; padding: 0; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  .section-space { padding-top: 20px; padding-bottom: 20px; }
  .hero { padding-top: 0; }
  .results-card { break-inside: avoid; }
}
