:root {
  --ink: #122b40;
  --body: #42566a;
  --muted: #607487;
  --teal: #087b76;
  --blue: #316cdf;
  --line: #dce5ea;
  --pale: #f5f8fa;
  --mint: #eaf5f1;
  --font: 'Noto Sans', sans-serif;
  --title-font: 'Google Sans', 'Noto Sans', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
h2 { font-size: 1.8rem; margin-bottom: 28px; }
h2::after { content: ''; display: block; width: 34px; height: 3px; margin-top: 11px; border-radius: 2px; background: var(--teal); }
h3 { font-size: 1.125rem; }
strong { font-weight: 650; color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { background: #c9e5ed; }
.container { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 58px; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

/* Restrained navigation and a single full-width title block. */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.nav { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.wordmark { white-space: nowrap; font-size: 1.35rem; font-weight: 750; letter-spacing: -.07em; }
.wordmark > span:first-child { color: var(--teal); }
.wordmark-period { color: var(--blue); margin-left: 1px; }
.nav-links { display: flex; gap: 28px; align-items: center; color: var(--body); font-size: .875rem; font-weight: 550; }
.nav-links a { padding-block: 21px; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active::after { content: ''; position: absolute; height: 2px; background: var(--teal); bottom: 0; left: 0; right: 0; }
.nav-paper { display: inline-flex; align-items: center; gap: 18px; padding: 6px 15px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: .875rem; font-weight: 600; }
.nav-paper:hover:not(:disabled) { background: var(--pale); }
.hero { display: block; text-align: center; padding-block: 54px 30px; }
.hero h1 { font-family: var(--title-font); width: 100%; max-width: 1040px; margin-inline: auto; font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.2; font-weight: 720; letter-spacing: -.03em; text-wrap: balance; }
.title-accent { color: var(--teal); }
.authors { font-family: var(--title-font); margin-top: 20px; color: var(--muted); font-size: 1rem; }
.hero-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 17px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 21px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: .875rem; font-weight: 600; transition: background .15s; }
.button:hover:not(:disabled) { background: var(--pale); border-color: #aebfc9; }
.button.primary { background: var(--ink); border-color: var(--ink); color: white; }
.button.primary:hover:not(:disabled) { background: #214861; }
.nav-paper:disabled, .button:disabled { cursor: default; opacity: 1; }

/* Video occupies its own row; the six tasks stay directly beneath it. */
.video-section { max-width: 940px; padding-bottom: 42px; }
.demo-player { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #0c1720; }
.demo-player video { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
figcaption { padding-top: 14px; color: var(--body); font-size: 1rem; line-height: 1.65; text-align: left; }
figcaption strong { font-weight: 650; }
.task-selector { margin-top: 24px; }
.task-selector h3 { margin-bottom: 13px; font-size: 1.125rem; font-weight: 600; }
.chapter-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 12px; }
.chapter { display: flex; align-items: center; text-align: left; gap: 13px; width: 100%; min-height: 59px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); transition: background .15s, border-color .15s; }
.chapter-index { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--muted); }
.chapter-name { font-size: .9375rem; font-weight: 550; line-height: 1.4; }
.chapter-play { font-size: .6rem; color: var(--teal); margin-left: auto; opacity: .35; }
.chapter:hover { border-color: #a4bebc; background: var(--pale); }
.chapter.active { background: var(--mint); border-color: #b4d8cd; }
.chapter.active .chapter-name, .chapter.active .chapter-index { color: var(--teal); }
.chapter.active .chapter-play, .chapter:hover .chapter-play { opacity: 1; }
.video-status { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.video-status:empty { display: none; }

.highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 25px; gap: 24px; }
.highlight { display: flex; align-items: center; gap: 17px; min-width: 0; }
.highlight + .highlight { padding-left: 23px; border-left: 1px solid var(--line); }
.metric { font-size: 2.3rem; line-height: 1.2; color: var(--teal); font-weight: 650; letter-spacing: -.05em; white-space: nowrap; }
.metric > span { font-size: 1rem; margin-left: 2px; }
.highlight p { font-size: .875rem; line-height: 1.5; font-weight: 550; }
.highlight small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.5; font-weight: 400; }
.overview-content { color: var(--body); }
.overview-content p + p { margin-top: 16px; }

/* All image captions use a bold lead followed by inline prose. */
.method-section { background: var(--pale); }
a[data-lightbox] { cursor: zoom-in; display: block; }
.figure-image { border: 1px solid var(--line); background: white; border-radius: 6px; overflow: hidden; }
.architecture .figure-image { padding: 24px 18px; }
.architecture img { width: 100%; }
.method-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 30px; }
.method-steps article { padding-top: 18px; border-top: 2px solid #bdcdd6; }
.method-steps article:nth-child(2) { border-top-color: var(--teal); }
.method-steps article:nth-child(3) { border-top-color: var(--blue); }
.method-steps h3 { margin-bottom: 11px; font-size: 1.075rem; }
.method-steps p { font-size: .9375rem; line-height: 1.75; color: var(--body); }

.results-board { padding: 28px 30px 23px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 28px; }
.results-heading h3 { font-size: 1.125rem; }
.result-tabs { display: flex; flex-shrink: 0; gap: 3px; border: 1px solid var(--line); border-radius: 5px; padding: 3px; background: var(--pale); }
.result-tabs button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.result-tabs button[aria-selected=true] { background: var(--ink); color: white; }
.result-tabs button:hover:not([aria-selected=true]) { background: #e1eaf0; color: var(--ink); }
.bar-row { display: grid; grid-template-columns: 210px minmax(0,1fr) 48px; gap: 20px; align-items: center; min-height: 32px; margin-bottom: 15px; }
.bar-label { font-size: .875rem; color: var(--body); overflow-wrap: anywhere; }
.bar-track { height: 25px; position: relative; border-right: 1px solid #e7edf2; background: repeating-linear-gradient(to right,#e7edf2 0,#e7edf2 1px,transparent 1px,transparent 25%); }
.bar-fill { display: block; width: var(--value); height: 100%; background: #b3c3d0; border-radius: 0 3px 3px 0; transition: width .3s; }
.bar-value { text-align: right; font-size: .9375rem; font-variant-numeric: tabular-nums; font-weight: 550; }
.ours .bar-label, .ours .bar-value { color: var(--teal); font-weight: 700; }
.ours .bar-fill { background: var(--teal); }
.chart-axis { display: flex; justify-content: space-between; margin-left: 230px; margin-right: 68px; color: var(--muted); font-size: .75rem; }
.results-board > figcaption { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 1.2rem; color: var(--muted); font-weight: 400; }
details[open] > summary > span { color: var(--teal); }
.table-details { margin-top: 20px; }
.table-scroll { overflow-x: auto; padding-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: right; white-space: nowrap; }
caption { text-align: left; white-space: normal; color: var(--body); font-size: 1rem; line-height: 1.65; padding-bottom: 16px; }
td, th { padding: 11px 15px; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { background: var(--pale); font-weight: 600; color: var(--body); }
tbody th { font-weight: 500; }
.ours-table { background: var(--mint); color: var(--teal); }
.findings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; margin-top: 34px; }
.finding { display: flex; flex-direction: column; }
.ablation-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; min-height: 115px; }
.ablation-grid > div { border-top: 3px solid #b3c3d0; padding-top: 16px; }
.ablation-grid span { white-space: nowrap; font-size: 1.7rem; font-weight: 650; letter-spacing: -.04em; }
.ablation-grid small { font-size: .8125rem; }
.ablation-grid p { margin-top: 5px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.ablation-grid .ablation-best { border-top-color: var(--teal); color: var(--teal); }
.efficiency-callout { display: flex; align-items: center; gap: 24px; min-height: 115px; border-top: 3px solid var(--teal); }
.efficiency-callout strong { color: var(--teal); font-size: 3.4rem; letter-spacing: -.06em; line-height: 1.2; }
.efficiency-callout span { color: var(--body); font-size: .9375rem; }
.finding figcaption { margin-top: auto; }

.spatial-section { padding-top: 20px; }
.spatial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px; }
.research-figure .figure-image { padding: 12px; }
.research-figure img { width: 100%; height: 335px; object-fit: contain; }
.spatial-grid .research-figure img { height: 340px; max-height: none; }
.gallery-details { margin-top: 30px; }
.semantic-gallery { max-width: 730px; margin-inline: auto; padding-bottom: 25px; }
.semantic-gallery .figure-image { padding: 12px; }
.resources-section { background: var(--pale); padding-block: 38px; }
.resources-section h2 { margin-bottom: 23px; }
.resource-links { display: flex; gap: 38px; flex-wrap: wrap; }
.resource-links a { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--teal); font-size: 1rem; font-weight: 550; }
.resource-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-block: 25px; }
.footer .wordmark { font-size: 1.15rem; }
.footer p, .footer > a:last-child { color: var(--muted); font-size: .8125rem; }

#image-dialog { width: min(1280px,94vw); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); overflow: auto; }
#image-dialog::backdrop { background: rgba(6,19,31,.82); backdrop-filter: blur(5px); }
.dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: white; }
.dialog-toolbar p { font-size: .875rem; font-weight: 600; }
.dialog-toolbar button { flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--pale); color: var(--ink); padding: 7px 13px; font-size: .875rem; }
.dialog-toolbar button > span { margin-left: 10px; }
#dialog-image { width: 100%; padding: 18px; object-fit: contain; }
body.dialog-open { overflow: hidden; }

@media (max-width: 980px) {
  .highlight { flex-direction: column; align-items: flex-start; gap: 9px; }
  .hero h1 { font-size: 2.4rem; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .result-tabs { align-self: flex-end; }
  .method-steps { gap: 24px; }
  .findings-grid { gap: 30px; }
  .ablation-grid { gap: 10px; }
  .ablation-grid span { font-size: 1.45rem; }
  .research-figure img { height: 280px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .nav { min-height: 64px; gap: 20px; }
  .nav-links { gap: 20px; }
  .nav-links a { padding-block: 19px; }
  .nav-paper { display: none; }
  .hero { padding-block: 40px 26px; }
  .hero h1 { font-size: 2.1rem; }
  .video-section { padding-bottom: 30px; }
  .chapter-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chapter { min-height: 57px; padding-inline: 14px; }
  .highlights { gap: 20px; padding-block: 22px; }
  .highlight + .highlight { padding-left: 19px; }
  .metric { font-size: 2.1rem; }
  .highlight p { font-size: .875rem; }
  .section { padding-block: 45px; }
  .method-steps { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
  .method-steps article { padding-top: 15px; }
  .method-steps h3 { margin-bottom: 8px; }
  .findings-grid { grid-template-columns: 1fr; gap: 32px; }
  .ablation-grid { gap: 22px; min-height: 102px; }
  .ablation-grid span { font-size: 1.8rem; }
  .efficiency-callout { min-height: 100px; }
  .spatial-section { padding-top: 10px; }
  .spatial-grid { grid-template-columns: minmax(0,1fr); max-width: 660px; margin-inline: auto; gap: 28px; }
  .spatial-grid .research-figure img { height: auto; }
  .research-figure img { height: 240px; }
  .resource-links { gap: 22px 35px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 105px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .nav { flex-direction: column; gap: 0; padding-top: 10px; }
  .nav > .wordmark { font-size: 1.15rem; }
  .nav-links { justify-content: space-between; width: 100%; gap: 15px; font-size: .8125rem; }
  .nav-links a { padding-block: 10px; }
  .hero { padding-block: 32px 24px; }
  .hero h1 { font-size: 1.9rem; line-height: 1.24; }
  .authors { margin-top: 17px; font-size: .9375rem; }
  .hero-links { margin-top: 14px; }
  .button { min-height: 42px; padding-inline: 20px; }
  h2 { font-size: 1.8rem; margin-bottom: 24px; }
  .section { padding-block: 38px; }
  figcaption, caption { font-size: .9375rem; line-height: 1.7; }
  .demo-player { border-radius: 5px; }
  .task-selector { margin-top: 20px; }
  .task-selector h3 { font-size: 1.05rem; }
  .chapter-list { gap: 8px; }
  .chapter { gap: 9px; padding: 12px 10px; }
  .chapter-index { font-size: .75rem; }
  .chapter-name { font-size: .8125rem; }
  .chapter-play { font-size: .5rem; }
  .highlights { gap: 12px; }
  .highlight + .highlight { padding-left: 11px; }
  .metric { font-size: 1.8rem; }
  .metric > span { font-size: .8125rem; }
  .highlight p { font-size: .8125rem; line-height: 1.5; }
  .highlight small { font-size: .75rem; }
  .architecture .figure-image { padding: 12px 6px; }
  .method-steps h3 { font-size: 1.075rem; }
  .results-board { padding: 20px 14px; }
  .results-heading { gap: 15px; margin-bottom: 22px; }
  .results-heading h3 { font-size: 1.0625rem; }
  .result-tabs { width: 100%; }
  .result-tabs button { flex: 1; padding-inline: 8px; font-size: .8125rem; min-height: 40px; }
  .bar-row { grid-template-columns: 125px minmax(0,1fr) 32px; gap: 9px; margin-bottom: 13px; }
  .bar-label { font-size: .875rem; line-height: 1.5; }
  .bar-value { font-size: .8125rem; }
  .bar-track { height: 23px; }
  .chart-axis { margin-left: 134px; margin-right: 41px; font-size: .75rem; }
  .results-board > figcaption { padding-top: 14px; margin-top: 18px; }
  summary { font-size: .875rem; }
  td, th { font-size: .8125rem; padding: 10px 13px; }
  .ablation-grid { gap: 12px; }
  .ablation-grid span { font-size: 1.55rem; }
  .ablation-grid small { font-size: .75rem; }
  .ablation-grid p { font-size: .75rem; }
  .efficiency-callout strong { font-size: 3rem; }
  .efficiency-callout span { font-size: .875rem; }
  .spatial-section { padding-top: 5px; }
  .spatial-grid { grid-template-columns: 1fr; gap: 28px; }
  .research-figure img { height: auto; max-height: 350px; }
  .resource-links { flex-direction: column; gap: 18px; align-items: flex-start; }
  .resource-links a { font-size: .9375rem; }
  .footer { flex-wrap: wrap; gap: 14px; }
  .footer p { order: 3; width: 100%; }
  .footer > a:last-child { margin-left: auto; }
  .dialog-toolbar { padding: 12px 14px; }
  .dialog-toolbar p { font-size: .8125rem; }
  #dialog-image { padding: 6px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 1.65rem; }
  .metric { font-size: 1.5rem; }
  .metric > span { font-size: .75rem; }
  .highlights { gap: 9px; }
  .highlight + .highlight { padding-left: 8px; }
  .chapter-list { grid-template-columns: 1fr; }
  .chapter-name { font-size: .9375rem; }
  .bar-row { grid-template-columns: 115px minmax(0,1fr) 29px; gap: 7px; }
  .chart-axis { margin-left: 122px; margin-right: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .hero-links, .task-selector, .result-tabs, .resources-section, .footer, #image-dialog { display: none !important; }
  .container { width: 100%; }
  .hero { padding: 20px 0; }
  .hero h1 { font-size: 25pt; }
  .section { padding: 26px 0; }
  h2 { font-size: 22pt; }
  .demo-figure { max-width: 450px; margin-inline: auto; }
  .highlights, .results-board, .finding, .research-figure { break-inside: avoid; }
  body { font-size: 11pt; background: white; }
  .method-section { background: white; }
  summary, details:not([open]) { display: none; }
}
