@font-face {
  font-family: Inter;
  src: url("assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --brand: #072a60;
  --brand-ink: color-mix(in srgb, var(--brand) 60%, #101518);
  --brand-mid: var(--brand-ink);
  --brand-light: color-mix(in srgb, var(--brand) 35%, white);
  --heading-ink: var(--brand-ink);
  --accent: var(--brand-mid);
  --ink: color-mix(in srgb, var(--brand-ink) 30%, #2b3032);
  --muted: color-mix(in srgb, var(--brand-ink) 16%, #646a6c);
  --line: color-mix(in srgb, var(--brand-ink) 15%, white);
  --mist: color-mix(in srgb, var(--brand-ink) 3%, white);
  --tint: color-mix(in srgb, var(--brand-ink) 8%, white);
  --canvas: #ffffff;
  --panel: #ffffff;
  --strong-fill: var(--heading-ink);
  --strong-ink: #ffffff;
  --selected-fill: var(--accent);
  --selected-ink: #ffffff;
  --code-surface: #e4e4e7;
  --code-ink: #24292e;
  --code-kind: #bf3441;
  --code-key: #6f42c1;
  --code-field: #005cc5;
  --code-quote: #032f62;
  --award-ink: #7b4505;
  --award-fill: #fff3cf;
  --award-line: #e9c76c;
  --oral-ink: #982837;
  --oral-fill: #ffebeb;
  --oral-line: #e9a5ac;
  /* The masthead spans both columns. Article sections use a separate reading width. */
  --banner-width: min(95rem, calc(100% - clamp(4rem, 5vw, 5rem)));
  --text-size: clamp(1rem, .92rem + .4cqi, 1.125rem);
  --subheading-size: clamp(1.3rem, 1.07rem + 1.25cqi, 1.75rem);
  --caption-size: clamp(.875rem, .82rem + .3cqi, 1rem);
  --page-width: min(825px, calc(92% - clamp(2rem, 7vw, 6rem)));
  --wide: 1040px;
  color-scheme: light;
}
@supports (color: oklch(from red l c h)) {
  :root {
    --brand-ink: oklch(from var(--brand) min(l, .42) c h);
    --brand-mid: oklch(from var(--brand) .45 c h);
    --brand-light: oklch(from var(--brand) .84 c h);
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #141718;
  --panel: color-mix(in srgb, var(--brand-ink) 15%, #202324);
  --mist: color-mix(in srgb, var(--brand-ink) 15%, #191d1e);
  --tint: color-mix(in srgb, var(--brand-ink) 48%, #272d30);
  --line: color-mix(in srgb, var(--brand-light) 22%, #262a2b);
  --heading-ink: color-mix(in srgb, var(--brand-light) 25%, white);
  --accent: var(--brand-light);
  --ink: #e0e5e4;
  --muted: #aeb8b8;
  --strong-fill: var(--brand-light);
  --strong-ink: #151a1b;
  --selected-fill: var(--accent);
  --selected-ink: var(--strong-ink);
  --code-surface: #1c2128;
  --code-ink: #e6edf3;
  --code-kind: #ff7b72;
  --code-key: #d2a8ff;
  --code-field: #79c0ff;
  --code-quote: #a5d6ff;
  --award-ink: #ffda82;
  --award-fill: #3a2e19;
  --award-line: #786038;
  --oral-ink: #ffb4bc;
  --oral-fill: #3d222b;
  --oral-line: #854657;
}
html { background: var(--canvas); font-size: 100%; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 400 1rem/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--heading-ink); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, summary, label { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, input { accent-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .symbols { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.icon { display: inline-block; flex: none; width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.skip { position: fixed; top: .5rem; left: .75rem; z-index: 10; padding: .5rem 1rem; background: var(--panel); transform: translateY(-160%); }
.skip:focus { transform: none; }
.container, .reading, .foot-inner { width: var(--page-width); margin-inline: auto; }
.masthead.container, .hero-inner, .bar { width: var(--banner-width); margin-inline: auto; }
.masthead.container, .hero-info, .hero-gallery, .paper-section, .story-copy { container-type: inline-size; }
.site-head { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: var(--canvas); }
.bar { min-height: 4.05rem; padding-block: .5rem; display: flex; align-items: center; gap: 1.15rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; white-space: nowrap; }
.brand img { object-fit: contain; height: 2.5rem; width: auto; }
.brand-type { display: grid; line-height: 1.25; }
.brand strong { font-size: 1.36rem; font-weight: 760; letter-spacing: -.045em; }
.brand-school { color: var(--muted); font-size: .91rem; font-weight: 470; }
.brand-signature { display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1.3rem); min-width: 0; max-width: 100%; flex: none; }
.brand-signature > .brand { flex: none; max-width: 100%; }
.brand-landmark {
  width: clamp(10rem, 18vw, 13.5rem); height: auto; min-width: 0; flex-shrink: 1;
  pointer-events: none; user-select: none;
}
.section-nav { display: flex; margin-left: auto; gap: 1.15rem; min-width: 0; align-items: center; overflow-x: auto; scrollbar-width: thin; padding: .35rem .18rem; }
.section-nav a { white-space: nowrap; color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 560; }
.section-nav a:hover { color: var(--accent); text-decoration: underline; }
.works { position: relative; }
.works summary, .resource { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.6rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--heading-ink); background: var(--panel); font-weight: 620; font-size: .88rem; line-height: 1.25; text-decoration: none; cursor: pointer; }
.works summary { min-height: 2.4rem; list-style: none; white-space: nowrap; padding-inline: .9rem .65rem; }
.works summary::-webkit-details-marker { display: none; }
.works summary .icon:last-child { width: .9rem; transition: transform .18s ease; }
.works[open] summary .icon:last-child { transform: rotate(180deg); }
.works[open] summary, .works summary:hover, a.resource:hover { background: var(--tint); border-color: var(--heading-ink); color: var(--heading-ink); }
.works-panel { position: absolute; z-index: 3; top: calc(100% + .45rem); right: 0; width: min(23rem, calc(100vw - 2rem)); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: .65rem; max-height: calc(100dvh - 5rem); overflow-y: auto; box-shadow: 0 14px 42px color-mix(in srgb, var(--brand-ink) 11%, transparent), 0 2px 5px color-mix(in srgb, var(--brand-ink) 3%, transparent); }
.works-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .4rem .6rem; border-bottom: 1px solid var(--line); }
.works-head h2 { margin: 0; font-size: .98rem; color: var(--heading-ink); letter-spacing: -.025em; }
.icon-button, .copy { display: grid; place-items: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; width: 2.15rem; height: 2.15rem; }
.icon-button:hover, .copy:hover { color: var(--accent); border-color: var(--accent); }
.work-card { display: flex; align-items: center; gap: .8rem; padding: .85rem .5rem; text-decoration: none; border-radius: .5rem; }
.work-card + .work-card { border-top: 1px solid var(--line); }
.work-card:hover { background: var(--mist); }
.work-card strong, .work-card small, .work-card span span { display: block; }
.work-card small { color: var(--accent); font-size: .76rem; font-weight: 650; }
.work-card strong { font-size: .93rem; line-height: 1.4; margin: .12rem 0; }
.work-card span span { font-size: .84rem; line-height: 1.45; color: var(--muted); }
.work-mark { width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center; border-radius: .6rem; font-size: 1rem; font-weight: 780; letter-spacing: -.05em; }
.work-mark { color: var(--heading-ink); background: var(--tint); }
.work-thumb { object-fit: cover; }

.masthead { padding-block: clamp(2.25rem, 4.4vw, 4.15rem) 2.45rem; text-align: center; }
.masthead h1 { max-width: 59rem; margin: 0 auto; color: var(--heading-ink); font-size: clamp(2.1rem, .95rem + 6.8cqi, 4.1rem); font-weight: 730; line-height: 1.07; letter-spacing: -.047em; text-wrap: balance; overflow-wrap: break-word; }
.subtitle { max-width: 46rem; margin: .95rem auto 0; color: var(--muted); font-size: clamp(1.05rem, .94rem + .8cqi, 1.25rem); line-height: 1.55; font-weight: 440; letter-spacing: -.015em; text-wrap: balance; }
.venue { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 0; }
.venue-name { display: inline-flex; align-items: center; gap: .55rem; color: var(--heading-ink); font-size: 1.35rem; font-weight: 680; text-decoration: none; line-height: 1.1; }
.venue-logo { height: 2.55rem; max-width: 10.5rem; width: auto; object-fit: contain; }
.venue-year { font-size: 1.25rem; font-weight: 590; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.honor { display: inline-flex; align-items: center; gap: .32rem; padding: .23rem .67rem; border: 1px solid var(--line); border-radius: 99px; background: var(--tint); color: var(--heading-ink); line-height: 1.25; font-size: .85rem; font-weight: 660; }
.honor .icon { width: .9rem; height: .9rem; }
.honor[data-tone="highlight"] { color: var(--award-ink); background: var(--award-fill); border-color: var(--award-line); }
.honor[data-tone="oral"] { color: var(--oral-ink); background: var(--oral-fill); border-color: var(--oral-line); }
.authors, .affiliations, .resources { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; }
.authors { margin: 1.6rem 0 .35rem; gap: .1rem .92rem; font-size: 1.04rem; }
.authors a, .authors > span { color: var(--accent); font-weight: 600; text-decoration: none; }
.authors a:hover { text-decoration: underline; }
sup { color: var(--accent); font-size: .65em; font-weight: 650; }
.authors span, .affiliations span { white-space: nowrap; }
.affiliations { margin: 0; gap: 0 .9rem; color: var(--muted); font-size: .89rem; }
.notes { margin: .12rem 0 0; color: var(--muted); font-size: .78rem; }
.notes span { padding-inline: .26rem; }
.resources { margin-top: 1.3rem; gap: .55rem; }
.resource { min-width: 5.8rem; }
.resource:disabled { opacity: 1; cursor: default; background: var(--mist); color: var(--muted); }
.resource:disabled small { border-inline-start: 1px solid var(--line); padding-inline-start: .5em; font-size: .82em; font-weight: 500; }
.resource.primary { color: var(--strong-ink); background: var(--strong-fill); border-color: var(--strong-fill); }
.resource.primary:hover { background: var(--accent); border-color: var(--accent); }
.teaser { margin-block: 0; }
.teaser-box { background: var(--mist); border: 1px solid var(--line); border-radius: 1.15rem; overflow: hidden; }
.teaser-top { padding: .85rem 1.8rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.fig-label { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .85rem; font-weight: 680; letter-spacing: -.02em; }
.fig-label::before { content: ""; width: .24rem; height: 1rem; background: var(--accent); border-radius: 3px; }
.example-switch { display: inline-flex; margin: 0; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.example-switch label { display: block; position: relative; cursor: pointer; }
.example-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; margin: 0; cursor: pointer; }
.example-switch span { display: block; padding: .34rem .78rem; border-radius: 999px; color: var(--muted); font-size: .81rem; font-weight: 600; line-height: 1.35; }
.example-switch input:checked + span { color: var(--selected-ink); background: var(--selected-fill); }
.example-switch input:focus-visible + span { outline: 2px solid var(--heading-ink); outline-offset: 2px; }
.example { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.62fr); align-items: center; gap: 2rem; padding: 1.8rem; }
.example-text { padding-right: .4rem; }
.micro { margin: 0 0 .5rem; color: var(--muted); font-size: .8rem; font-weight: 590; }
.example h2 { margin: 0; color: var(--heading-ink); font-size: clamp(1.4rem,2.25vw,2.05rem); line-height: 1.15; letter-spacing: -.05em; font-weight: 665; text-wrap: balance; }
.answer { display: flex; gap: .6rem; align-items: center; margin: 1.25rem 0 0; color: var(--muted); font-size: .84rem; }
.answer strong { background: var(--tint); border: 1px solid var(--line); color: var(--accent); padding: .1rem .6rem; border-radius: .35rem; font-weight: 690; }
.timeline { width: 100%; }
figcaption, .table-note { margin: .55rem 0 0; color: var(--muted); font-size: var(--caption-size); line-height: 1.55; }
.teaser figcaption, .method-figure figcaption { text-align: start; }
.paper-section { padding-top: clamp(3.1rem, 6vw, 5.3rem); }
.paper-section > :where(p, div, figure) { font-size: var(--text-size); }
.section-title { margin: 0 0 clamp(1.4rem, 2.3vw, 2.1rem); text-align: left; color: var(--heading-ink); font-weight: 740; letter-spacing: -.047em; font-size: clamp(1.65rem, 1.22rem + 2.35cqi, 2.5rem); line-height: 1.12; }
.section-title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: .85rem 0 0; border-radius: 2px; background: linear-gradient(90deg, var(--heading-ink), var(--brand-light)); }
#abstract > p {
  max-inline-size: 46.25rem;
  padding-inline: clamp(0rem, 14cqi - 3.5rem, 3.375rem);
  font-size: clamp(.96875rem, .93rem + .2cqi, 1rem);
  line-height: 1.6;
  text-align: justify;
  text-align-last: start;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.reading > p:not(.table-note, .copy-status) { margin-block: 0; font-size: var(--text-size); line-height: 1.72; }
.figure-trigger { display: block; width: 100%; min-width: 0; border: 0; padding: 0; background: none; color: inherit; cursor: zoom-in; }
.method-figure { margin: 0; }
.method-figure .figure-trigger { display: block; padding: clamp(.55rem,2.6vw,1.8rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.method-figure .figure-trigger:hover { border-color: var(--accent); }
.method-figure img { width: 100%; }
.table-scroller { width: 100%; min-width: 0; container-type: inline-size; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.table-scroller table { font-size: clamp(.875rem, .75rem + .65cqi, 1rem); }
caption { caption-side: bottom; text-align: center; color: var(--muted); padding-top: .7rem; line-height: 1.6; font-size: var(--caption-size); }
th, td { padding: .72rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.table-scroller :is(th, td) { padding-inline: clamp(.25rem, 2.2cqi - .5rem, 1rem); }
th:first-child { text-align: left; }
thead th { color: #fff; background: var(--brand-ink); font-weight: 650; line-height: 1.4; hyphens: auto; border: 0; }
thead th:first-child { border-radius: .45rem 0 0 0; }
thead th:last-child { border-radius: 0 .45rem 0 0; }
tbody tr:nth-child(even) { background: var(--mist); }
tbody th { color: var(--ink); font-weight: 600; }
.ours th, .best-score { color: var(--accent); font-weight: 760; }
html[data-theme="dark"] thead th { background: color-mix(in srgb, var(--brand-ink) 70%, #45494b); }
.citation { padding-bottom: 3.5rem; }

.code-box { position: relative; border-radius: .5rem; background: var(--code-surface); color: var(--code-ink); }
.code-box pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 1.25rem 3.2rem 1.25rem 1.2rem; font-size: .85rem; line-height: 1.72; tab-size: 2; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.token-kind { color: var(--code-kind); }
.token-key { color: var(--code-key); }
.token-field { color: var(--code-field); }
.token-quote { color: var(--code-quote); }
.copy { position: absolute; top: .5rem; right: .5rem; background: var(--panel); z-index: 1; }
.copy-status { min-height: 1.5em; margin: .45rem 0 0; font-size: .85rem; color: var(--accent); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.foot-inner { padding-block: 1.45rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.5rem; flex-wrap: wrap; }
.footer-lab { font-weight: 650; text-decoration: none; }
@media (max-width: 54rem) {
  .example { gap: 1.4rem; padding: 1.4rem; grid-template-columns: minmax(0, .9fr) minmax(0,1.35fr); }
}
@media (max-width: 42rem) {
  html { scroll-padding-top: 4.5rem; }
  .bar { min-height: 3.5rem; }
  .masthead { padding-block: 2.1rem 1.7rem; }
  .authors { gap: .2rem .75rem; }
  .resources { gap: .4rem; }
  .resource { min-width: 0; padding-inline: .72rem; min-height: 2.6rem; }
  .teaser-top { padding: .8rem 1rem; flex-wrap: wrap; }
  .example { grid-template-columns: 1fr; padding: 1.25rem 1rem 1.05rem; gap: 1.25rem; }
  .example h2 { max-width: 23rem; }
  .answer { margin-top: .65rem; }
}
@media (max-width: 26.5rem) {
  .resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 15rem; margin-inline: auto; }
}
@media (max-width: 24rem) {
  .example-switch span { padding-inline: .6rem; }
  .resource .icon { width: .9rem; height: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.standard-figure .figure-trigger img, .standard-figure > video { display: block; width: 100%; height: auto; border-radius: .85rem; }
.paper-section > p + p { margin-top: .85rem; }
.paper-section p + .method-figure, .paper-section p + .result-table { margin-top: 1rem; }
main { padding-bottom: 1.75rem; }
.citation { padding-bottom: 1.75rem; }


.header-actions { flex: none; display: flex; align-items: center; gap: .45rem; }
.bar:not(:has(.section-nav)) .header-actions { margin-inline-start: auto; }
.theme-switch { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; background: var(--panel); color: var(--heading-ink); border: 1px solid var(--line); border-radius: 99px; min-height: 2.4rem; min-width: 5rem; padding: .35rem .72rem; font-size: .85rem; font-weight: 610; }
.theme-switch:hover { background: var(--tint); border-color: var(--accent); }
.theme-switch .icon { width: 1rem; height: 1rem; }
.theme-switch span { display: inline-flex; }
.theme-switch .day-icon, html[data-theme="dark"] .theme-switch .night-icon { display: none; }
html[data-theme="dark"] .theme-switch .day-icon { display: inline-flex; }
html[data-theme="dark"] :is(.brand img, .venue-logo):not([data-dark-src]) { background: white; border-radius: .2rem; padding: .14rem; }
.motivation-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.motivation-point { min-width: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.motivation-point h3 { color: var(--heading-ink); font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 .45rem; }
.motivation-point p { margin: 0 0 .5rem; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.motivation-image { width: 100%; margin-bottom: 1rem; border-radius: .45rem; }
@media (max-width: 76rem) {
  html { scroll-padding-top: 7.5rem; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
  .brand-landmark { width: clamp(7.5rem, 38vw, 11rem); }
  .brand strong { overflow: hidden; text-overflow: ellipsis; }
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .65rem; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .section-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; gap: 1rem; }
  .section-nav a { font-size: .98rem; }
  .theme-switch { min-width: 2.4rem; padding-inline: .6rem; }
}
@media (max-width: 38rem) {
  .header-actions .theme-label { display: none; }
  .brand-landmark { width: min(20vw, 8rem); }
}
@media (max-width: 32rem) {
  .bar:has(.works) .brand-landmark { display: none; }
  .brand img { height: 2.15rem; }
  .brand strong { font-size: 1.2rem; }
  .brand-school { font-size: .82rem; }
  .works summary { gap: .3rem; padding-inline: .6rem; }
  .works summary .icon:last-child { display: none; }
}
@media (max-width: 23rem) {
  .header-actions .works-label { display: none; }
  .works summary { width: 2.4rem; }
}
@media (max-width: 35rem) {
  .motivation-grid { gap: 1.35rem; }
  .motivation-point { padding-top: .85rem; }
}

/* Ordered text, figures and tables inside a paper section. */
.masthead + .paper-section { padding-top: .8rem; }
.reading > p + p:not(.table-note, .copy-status) { margin-top: .9rem; }
.story-block + .story-block { margin-top: clamp(1.6rem, 4vw, 2.8rem); }
.story-block { min-width: 0; }
.result-table { margin: 0; width: 100%; min-width: 0; }
.result-table > figcaption { margin: 0 0 .5rem; text-align: start; }
.story-copy h3 { margin: 0 0 .65rem; color: var(--heading-ink); font-size: var(--subheading-size); line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.story-copy p { margin: 0; font-size: var(--text-size); line-height: 1.72; }
.story-copy p + p { margin-top: .65rem; }
.story-copy .block-link { font-size: .85rem; font-weight: 610; }
.story-block > * + :is(figure, .table-scroller, .frame-strip) { margin-top: 1rem; }
.paper-figure { width: 100%; min-width: 0; margin: 0; }
.paper-figure .figure-trigger { display: block; padding: clamp(.5rem, 1.75vw, 1.3rem); background: white; border: 1px solid var(--line); border-radius: .7rem; cursor: zoom-in; }
.paper-figure .figure-trigger:hover { border-color: var(--accent); }
.paper-figure .figure-trigger:has(img[data-dark-src]) { background: var(--panel); }
.paper-figure img { width: 100%; }
.paper-figure figcaption { text-align: start; }
.paper-section figcaption strong { color: var(--ink); font-weight: 650; }

.comparison { width: 100%; margin: 0 auto; }
.comparison-stage {
  --split: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: .65rem; background: var(--panel);
}
.comparison-stage img { display: block; width: 100%; pointer-events: none; user-select: none; }
.comparison-stage .comparison-right {
  position: absolute; inset: 0; height: 100%; object-fit: contain; background: var(--panel);
  clip-path: inset(0 0 0 var(--split));
}
.comparison-range {
  position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%;
  margin: 0; appearance: none; direction: ltr; cursor: ew-resize; touch-action: pan-y;
}
.comparison-range::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; }
.comparison-range::-moz-range-thumb { width: 1px; border: 0; }
.comparison-divider {
  position: absolute; inset-block: 0; left: var(--split); width: 2px; transform: translateX(-50%);
  pointer-events: none; background: white; box-shadow: 0 0 4px #1a222199;
}
.comparison-divider > span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; white-space: pre; width: 2.5rem; height: 2.5rem;
  background: var(--brand-ink); color: white; border: 2px solid white; border-radius: 50%;
  font: 600 1.2rem/1 Inter, sans-serif; box-shadow: 0 1px 6px #1a222155;
}
.comparison-stage:has(.comparison-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.comparison figcaption { margin: .55rem 0 0; text-align: start; }
.comparison-labels { display: flex; justify-content: space-between; gap: 1rem; color: var(--heading-ink); font-size: .88rem; font-weight: 620; }
.comparison-labels > :last-child { text-align: right; }
.comparison-question { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.comparison-answer {
  flex: none; padding: .18em .68em; border-radius: 999px;
  background: #ffae65; color: #492105; font-size: .88rem; font-weight: 700;
}
.comparison-playback {
  position: absolute; z-index: 2; right: .5rem; bottom: .5rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  color: white; background: #1a2221df; border: 1px solid #ffffff88; border-radius: 50%;
  font: 700 .9rem/1 system-ui, sans-serif; cursor: pointer;
}
.comparison-caption { display: block; min-height: 3.3em; text-align: start; margin-top: .35rem; }
.story-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.25fr); align-items: center; gap: clamp(1.5rem, 3.6vw, 3rem); }
.story-split > :is(figure, .frame-strip) { width: 100%; margin: 0; }
.story-split > .result-table { grid-column: 1/-1; width: 100%; }
.story-split:has(.frame-strip, .comparison) { padding: clamp(1.2rem, 3.4vw, 2.4rem); background: var(--mist); border: 1px solid var(--line); border-radius: 1rem; }
.story-split:has(.frame-strip, .comparison) h3 { font-size: var(--subheading-size); line-height: 1.1; }
.frame-strip { display: flex; gap: .65rem; flex-wrap: wrap; }
.frame-strip figure { flex: 1 1 8rem; min-width: 0; margin: 0; }
.frame-strip img { width: 100%; border-radius: .4rem; }
.frame-strip figcaption { font-size: .82rem; font-weight: 620; margin: .45rem 0 0; }
@media (max-width: 48rem) {
  .story-split { grid-template-columns: 1fr; gap: 1rem; }
  .story-split > .story-copy { width: 100%; }
}

.hero-spread {
  padding: 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(95deg, var(--canvas) 8%, transparent 100%),
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--accent) 7%, transparent) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--accent) 7%, transparent) 23px 24px),
    linear-gradient(125deg, var(--canvas) 35%, var(--tint));
}
.hero-inner {
  padding-block: clamp(2.1rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  gap: clamp(1.65rem, 4vw, 4.5rem);
  align-items: center;
}
.hero-info { min-width: 0; }
.hero-info h1 { margin: 0; line-height: 1.06; }
.hero-info .subtitle { margin: 1.15rem 0 0; text-wrap: pretty; }
.hero-info :is(.authors, .affiliations, .resources, .venue) { justify-content: flex-start; }
.hero-info .resources { display: flex; max-width: none; margin-inline: 0; }
.hero-gallery { min-width: 0; padding: clamp(.72rem, 1.4vw, 1rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1.05rem; box-shadow: 0 8px 30px color-mix(in srgb, var(--brand-ink) 6%, transparent); }
.hero-panel { margin: 0; }
.hero-image { display: grid; place-items: center; width: 100%; aspect-ratio: 1.3; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: .52rem; overflow: hidden; cursor: zoom-in; }
.hero-image:has(img[data-dark-src]) { background: var(--panel); }
.hero-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.hero-panel figcaption { margin: .85rem .2rem; line-height: 1.55; min-height: 4.6em; }
.hero-panel figcaption strong { display: block; font-size: 1.05rem; color: var(--heading-ink); letter-spacing: -.02em; }
.hero-switch { display: inline-flex; }
.hero-switch span { font-size: .78rem; }
.hero-spread + .paper-section { padding-top: clamp(2.5rem, 4.8vw, 4rem); }
@media (max-width: 48rem) {
  .hero-inner { grid-template-columns: 1fr; }
  :root { --banner-width: calc(100% - 2rem); }
  .hero-gallery { width: 100%; }
}

/* The overview occupies the same space before and after a video is added. */
.overview-player, .overview-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: clamp(.75rem, 1.6vw, 1.25rem);
  background: #171b1c;
  box-shadow: 0 .5rem 1.6rem color-mix(in srgb, var(--brand-ink) 7%, transparent);
}
.overview-player { object-fit: contain; }
.overview-poster { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; }
.overview-cover { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.overview-poster::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(10deg, #0c1011df, #1418199c 55%, #14181966);
}
.video-status {
  display: inline-flex; align-items: center; gap: .65rem; color: #fff;
  padding: clamp(1.15rem, 3.2vw, 2.8rem);
  font-size: clamp(1.15rem, 2.5vw, 2.1rem); font-weight: 590; letter-spacing: -.035em;
}
.video-status .icon { width: 1.05em; height: 1.05em; }

html { scrollbar-gutter: stable; }
html:has(.figure-viewer[open]) { overflow: hidden; }
.figure-viewer {
  width: min(75rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100dvh - 2rem); padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 1rem; color: var(--ink);
  background: var(--panel); box-shadow: 0 1rem 4rem #0005;
}
.figure-viewer[open] { display: flex; flex-direction: column; }
.figure-viewer::backdrop { background: rgb(8 15 28 / 78%); }
.viewer-toolbar {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  padding: .55rem .8rem; border-bottom: 1px solid var(--line);
}
.viewer-toolbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  min-height: 2.65rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: .55rem;
  color: var(--heading-ink); background: var(--panel); font-size: .95rem; font-weight: 600;
}
.viewer-toolbar .viewer-close { background: var(--strong-fill); color: var(--strong-ink); border-color: var(--strong-fill); }
.viewer-close span { font-size: 1.4em; line-height: 1; }
.viewer-zoom[aria-pressed="true"] { background: var(--tint); }
.viewer-stage {
  display: grid; place-items: center; overflow: auto; min-height: 0; overscroll-behavior: contain;
  height: min(68dvh, 48rem); background: var(--mist);
}
.viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-stage.actual-size { display: block; }
.viewer-stage.actual-size img { width: auto; height: auto; max-width: none; margin: auto; }
.viewer-caption { flex: none; max-height: 17dvh; overflow: auto; font-size: .97rem; line-height: 1.5; margin: 0; padding: .8rem 1.15rem; }
@media (max-width: 35rem) {
  .brand-school { white-space: normal; }
  .brand { gap: .35rem; }
  .figure-viewer { width: calc(100% - 1rem); }
  .viewer-toolbar { padding: .35rem .5rem; }
}

/* The university artwork belongs to the title block, including in the stacked layout. */
.campus-cover {
  overflow: hidden;
  background: radial-gradient(ellipse at 33% 100%, var(--brand-mid) 0%, transparent 63%),
              linear-gradient(115deg, color-mix(in srgb, var(--brand-ink) 70%, black) 0%, var(--brand-ink) 65%, color-mix(in srgb, var(--brand-mid) 75%, black));
}
html[data-theme="dark"] .campus-cover {
  background: radial-gradient(ellipse at 35% 100%, var(--brand-ink), transparent 68%), var(--canvas);
}
.campus-cover .hero-inner { padding-block: clamp(1.9rem, 4vw, 3.5rem); }
.campus-cover .hero-info {
  --heading-ink: #fafafa;
  --ink: #f4f4f4;
  --muted: #e3e5e4;
  --accent: color-mix(in srgb, var(--brand-light) 45%, white);
  --panel: var(--brand-ink);
  --line: color-mix(in srgb, var(--brand-ink) 40%, white);
  --tint: var(--brand-mid);
  --strong-fill: #fafafa;
  --strong-ink: var(--brand-ink);
  position: relative; isolation: isolate; align-self: stretch;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-block: .5rem clamp(4.3rem, 7.2vw, 7.5rem);
}
.cover-art {
  pointer-events: none; user-select: none; position: absolute; z-index: -1;
  width: min(95%, 37rem); left: 13%; bottom: -.7rem; opacity: .25;
}
.cover-quote {
  margin: 0 0 1.05rem; display: flex; align-items: center; gap: .7rem;
  font: 500 clamp(.95rem, 1.2vw, 1.08rem)/1.6 "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  letter-spacing: .055em; color: #ecdcb7;
}
.cover-quote::before { content: ""; width: 1.85rem; height: 1px; background: currentColor; }
.solo-cover { display: block; }
.solo-cover .hero-info { align-items: center; text-align: center; }
.solo-cover .hero-info :is(h1, .subtitle) { margin-inline: auto; text-wrap: balance; }
.solo-cover .hero-info :is(.authors, .affiliations, .resources, .venue, .cover-quote) { justify-content: center; }
.solo-cover .cover-art { left: auto; right: 0; width: min(52%, 32rem); }
@media (max-width: 48rem) {
  .campus-cover .hero-info { padding-block: .5rem 5rem; }
  .cover-art, .solo-cover .cover-art { left: auto; right: 0; width: min(87%, 25rem); bottom: -.5rem; }
}

/* A wide architectural drawing shares the title's paper background. */
.illustrated-cover {
  --paper: #fefdfb;
  --paper-edge: #f4f3ef;
  isolation: isolate;
  overflow: hidden;
  border-bottom-color: color-mix(in srgb, var(--line) 68%, var(--paper-edge));
  background: radial-gradient(ellipse at 15% 100%, var(--paper-edge), transparent 62%),
              linear-gradient(110deg, var(--paper) 12%, var(--canvas) 100%);
}
.illustrated-cover .hero-inner {
  align-items: center;
  padding-block: clamp(1.9rem, 3.5vw, 3.1rem) clamp(1.25rem, 2.4vw, 2.5rem);
}
.illustrated-cover .hero-info { position: relative; }
.illustrated-cover .hero-info > :not(.cover-art) { position: relative; z-index: 1; }
.illustrated-cover .hero-info h1 { color: var(--heading-ink); }
.illustrated-cover .cover-art {
  position: relative;
  inset: auto;
  z-index: auto;
  width: min(72%, 25.5rem);
  margin: clamp(-4.25rem, -5vw, -2.8rem) 0 0 auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  opacity: .4;
  filter: saturate(.38);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 87%, transparent),
              linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-composite: intersect;
}
.illustrated-cover .hero-gallery {
  border-color: color-mix(in srgb, var(--line) 60%, var(--canvas));
  box-shadow: 0 10px 35px -22px rgb(61 55 45 / 30%);
}
.illustrated-cover .solo-cover .cover-art {
  width: min(66%, 25.5rem);
  margin: .2rem auto -.4rem;
}
html[data-theme="dark"] .illustrated-cover {
  --paper: var(--panel);
  --paper-edge: var(--tint);
}
html[data-theme="dark"] .illustrated-cover .hero-info h1 { color: var(--heading-ink); }
html[data-theme="dark"] .illustrated-cover .cover-art {
  mix-blend-mode: screen;
  opacity: .33;
  filter: invert(1) hue-rotate(180deg) saturate(.38);
}
@media (max-width: 48rem) {
  .illustrated-cover .hero-inner { gap: 1.15rem; }
  .illustrated-cover .cover-art {
    width: min(70%, 20rem);
    margin: -1.3rem 0 0 auto;
  }
}

/* The paper's artwork sits behind its title; the figure column is a separate grid item. */
.research-cover {
  --paper: var(--canvas);
  --paper-edge: var(--tint);
}
/* Blend the image against the actual cover color in both palettes. */
.research-cover .hero-info > .paper-heading { z-index: auto; }
.paper-heading h1 { position: relative; }
.research-art {
  position: absolute; inset: -1.5rem 0; width: 100%; height: calc(100% + 3rem);
  object-fit: cover; object-position: center; pointer-events: none; user-select: none;
  opacity: .32; mix-blend-mode: multiply;
  mask-image: linear-gradient(95deg, #0004, #000b 52%, black 86%, #000b);
}
html[data-theme="dark"] .research-cover { --paper: var(--panel); --paper-edge: var(--tint); }
html[data-theme="dark"] .research-art { opacity: .23; mix-blend-mode: screen; }
html[data-theme="dark"] .research-art:not([data-dark-src]) { filter: invert(1) hue-rotate(180deg); }

/* Interactive figures for the StreamLoG project. */
.hero-gallery .hero-switch { display: flex; width: fit-content; max-width: 100%; margin: 0 0 .8rem; }
.hero-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-panels > .hero-panel { grid-area: 1 / 1; min-width: 0; display: grid; }
/* Keep both tabs in the same grid cell so the longer caption sets the height. */
.hero-panels > .hero-panel[hidden] { display: grid !important; visibility: hidden; }
.hero-panel > figure { display: grid; grid-template-rows: auto 1fr; width: 100%; }
.hero-panel :is(.hero-image, .comparison-stage) { contain: size; }
.hero-panel .comparison-answer { min-width: 4.2em; text-align: center; }
.hero-gallery .hero-panel figcaption { margin: .55rem 0 0; min-height: 0; }
.hero-gallery .figure-source { display: block; width: fit-content; margin-top: .5rem; font-size: .78rem; color: var(--accent); }
.hero-still { margin: 0; }
.hero-still .hero-image { aspect-ratio: 16 / 9; background: white; }
.hero-gallery .comparison-stage { aspect-ratio: 16 / 9; }
.hero-gallery .comparison figcaption { text-align: start; }
.hero-gallery .comparison-labels { margin-bottom: .5rem; }
.hero-gallery .comparison-caption { margin-top: .1rem; min-height: 3.1em; }
.loop-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; margin: 1.25rem auto 0; overflow: hidden; border-radius: .85rem; background: #18201e; }
.loop-media :is(img, video) { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Wide videos can extend past the text column on larger screens. */
.video-wide { aspect-ratio: 21 / 9; }
video.video-wide, .loop-media.video-wide > :is(video, img:only-child) { height: auto; aspect-ratio: auto 21 / 9; }
.loop-media.video-wide:has(> video, > img:only-child) { aspect-ratio: auto; }
@media (min-width: 48rem) {
  .paper-section .video-wide {
    --video-width: max(100%, min(var(--wide), calc(100vw - 4rem)));
    width: var(--video-width);
    margin-inline: calc((100% - var(--video-width)) / 2);
  }
}
.clip-placeholder { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .5rem .85rem; border-radius: .4rem; color: #eff5f3; background: #18201ee8; font-size: clamp(.95rem, 1.4vw, 1.2rem); }
.clip-placeholder .icon { width: 1.25em; height: 1.25em; }

.paired-scoring { margin: 1.3rem 0 0; width: 100%; }
.paired-scoring table { min-width: 0; table-layout: fixed; border: 1px solid var(--line); }
.paired-scoring th, .paired-scoring td { padding: .65rem .5rem; line-height: 1.3; text-align: center; }
.paired-scoring tr > th:first-child { width: 22%; text-align: left; }
.paired-scoring thead th:nth-child(2) { color: #513910; background: #f4dfac; }
.paired-scoring thead th:last-child { color: #e7eeff; background: #35557c; }
.paired-scoring .sce-correct { color: var(--accent); font-weight: 750; }
.paired-scoring .sce-missed { color: var(--oral-ink); font-weight: 750; }
.paired-scoring .sce-pair { background: var(--panel); }
.paired-scoring .sce-pair td { padding: .35rem; border: 0; }
.sce-pair td > div { border-inline: 3px solid currentColor; border-radius: .38rem; padding: .45rem; }
.sce-pair b, .sce-pair span { display: block; }
.sce-pair span { font-size: .83rem; margin-top: .15rem; }
.sce-cross-time { background: var(--oral-fill); color: var(--oral-ink); }
.sce-cross-state { background: var(--tint); color: var(--accent); }
.paired-scoring figcaption { margin: .8rem 0 0; }
.paired-scoring figcaption a { display: inline-block; font-size: .85rem; }

@media (max-width: 38rem) {
  .paired-scoring :is(td, th, thead th) { font-size: .77rem; padding: .5rem .26rem; }
  .paired-scoring .sce-pair span { font-size: .73rem; }
  .paired-scoring .sce-pair td { padding: .2rem; }
}
.reading-notes { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 3rem; }
.reading-notes > div { padding: 1rem 0 0; border-top: 2px solid var(--line); }
.reading-notes dt { color: var(--accent); font-weight: 675; font-size: clamp(1.05rem, .96rem + .53cqi, 1.22rem); margin-bottom: .45rem; }
.reading-notes dd { margin: 0; }
.benchmark { margin-top: 1.1rem; }
.benchmark-view > p { margin: 1rem 0; }
.benchmark tr.ours { background: var(--tint); }
.paper-figure:has(picture) .figure-trigger { width: 100%; padding: 0; overflow: hidden; }
@media (max-width: 38rem) {
  .reading-notes { grid-template-columns: 1fr; gap: .9rem; }
  .benchmark .example-switch { max-width: 100%; }
  .benchmark .example-switch span { font-size: .75rem; padding-inline: .55rem; }
}


.story-split:has(.reading-notes) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.story-split .reading-notes { grid-template-columns: 1fr; margin-top: 1rem; gap: .75rem; }
.story-split .reading-notes > div { padding-top: .65rem; border-width: 1px; }
.story-split .reading-notes dt { margin-bottom: .2rem; }
.story-split:has(.reading-notes) .figure-trigger { padding: .4rem; }
.chart-views > .example-switch { display: flex; width: fit-content; margin: 0 0 .4rem auto; }
.chart-view:not([hidden]) { animation: chart-appear .24s ease-out; }
@keyframes chart-appear { from { opacity: .6; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chart-view:not([hidden]) { animation: none; } }
@media (max-width: 46rem) { .story-split:has(.reading-notes) { grid-template-columns: 1fr; } }
