@font-face {
  font-family: "STIX Two Text";
  src: url(assets/fonts/stix-two-text-latin-wght-normal.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #202a2a;
  --quiet: #505e5f;
  --accent: #15666a;
  --line: #d7e1df;
  --wash: #f3f7f6;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --serif: "STIX Two Text", Georgia, serif;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: white;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 6px; left: 6px; background: white; padding: 12px; }
h2 { font-family: var(--serif); font-size: clamp(2.15rem, 3.4vw, 3.25rem); letter-spacing: -.035em; font-weight: 500; line-height: 1.08; }
h3 { letter-spacing: -.03em; }
.mast, .hero-band { color: var(--ink); background: #f9fbfa; }
.mast-inner, .mast nav { display: flex; align-items: center; }
.mast-inner { min-height: 62px; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.logotype, .hero-mark { display: block; }
.logotype { width: 80px; }
.wordmark-art {
  display: block;
  width: 100%;
  height: auto;
}
.mast nav { gap: clamp(14px, 2vw, 30px); color: var(--quiet); font-size: 14px; font-weight: 540; }
.mast a:hover { color: var(--accent); }
.mast :focus-visible, .hero-band :focus-visible { outline-color: var(--accent); }
.hero-band {
  border-bottom: 3px solid #dce8e5;
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 5vw, 80px); padding-block: clamp(38px, 3.8vw, 64px); }
.hero h1 { font-size: inherit; }
.hero-mark { width: min(100%, clamp(236px, 28vw, 386px)); margin: 0 0 28px; }
.paper-name { display: block; max-width: 28ch; font-family: var(--serif); font-size: clamp(27px, 2.5vw, 38px); line-height: 1.16; font-weight: 470; letter-spacing: -.026em; text-wrap: balance; }
.paper-name span { white-space: nowrap; }
.paper-byline { margin-top: 24px; }
.paper-byline ul, .paper-roles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; }
.paper-byline ul { padding: 0; list-style: none; margin: 0; }
.paper-byline li, .paper-roles span { white-space: nowrap; }
.paper-authors { font-size: 17px; line-height: 1.45; font-weight: 550; }
.paper-byline .paper-affiliations { margin-top: 9px; }
.paper-affiliations, .paper-roles { font-size: 13px; line-height: 1.5; color: var(--quiet); }
.paper-roles { margin-top: 3px; }
.paper-roles em { font-synthesis: style; }
.paper-byline sup { font-size: .72em; line-height: 0; color: var(--accent); }
.hero-summary { color: #435353; margin: 23px 0 20px; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.paper-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.primary-link { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: white; border-radius: 6px; padding: 11px 18px; }
.primary-link:hover { background: #104c50; }
.code-link, .pending-resource { display: inline-flex; align-items: baseline; gap: 6px; border-radius: 6px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.code-link { background: white; border: 1px solid #9fb5b3; color: var(--accent); }
.code-link:hover { background: #eaf1ef; border-color: var(--accent); }
.pending-resource { color: var(--quiet); background: #eaf0ee; }
.pending-resource small { font-size: 11px; font-weight: 450; }
.play-glyph { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.hero-figure { width: min(100%, 570px); min-width: 0; justify-self: end; }
.hero-task { margin: 0 0 7px; font-size: 15px; font-weight: 650; }
.hero-task span, .hero-figure figcaption { color: var(--quiet); }
.hero-task span { font: 450 12px/1.4 var(--mono); }
.hero-stage + .hero-task { margin-top: 18px; }
.hero-labels { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.hero-stage { position: relative; overflow: hidden; aspect-ratio: 1040 / 300; border-radius: 3px; background: #0c1013 url(assets/images/hero-controls.jpg) 0 var(--poster-y) / 100% 600% no-repeat; }
#hero-sequence, .hero-stage canvas, .hero-sliders { position: absolute; inset: 0; width: 100%; }
#hero-sequence, .hero-stage canvas { display: block; height: auto; pointer-events: none; }
.hero-sliders:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; }
.hero-stage::after { content: ""; position: absolute; inset-block: 0; left: 50%; width: 2px; transform: translateX(-50%); background: white; pointer-events: none; }
.hero-slider { position: relative; overflow: hidden; --split: 78%; }
.hero-slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.hero-slider:focus-within { outline: 2px solid white; outline-offset: -3px; }
.hero-divider { position: absolute; inset-block: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: white; box-shadow: 0 0 3px #0009; pointer-events: none; }
.hero-divider b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 1px 4px #0005; font: 600 15px/1 Arial, sans-serif; }
.hero-figure figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding-top: 8px; font-size: 12px; }
.hero-controls:not([hidden]) { display: inline-flex; align-items: center; gap: 5px; }
.hero-controls button, .hero-controls select { border: 1px solid #c4d4d1; border-radius: 4px; padding: 3px 6px; min-height: 29px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.hero-controls button { min-width: 50px; }
.hero-controls button:hover, .hero-controls select:hover { border-color: var(--accent); }

.overview-section, .video-section, .results-section { padding-block: clamp(50px, 5.7vw, 86px); }
.intro-copy p + p { margin-top: 1em; }
.overview-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 108px); align-items: center; }
.intro-copy h2 { margin-bottom: 24px; }
.intro-copy p { max-width: 51ch; font-size: 19px; line-height: 1.55; color: var(--quiet); }
.overview-section .arch { margin-top: clamp(24px, 4vw, 56px); }
.paper-fig { min-width: 0; }
.paper-fig a { position: relative; display: block; padding: 16px; background: white; border-radius: 5px; border: 1px solid var(--line); cursor: zoom-in; }
.paper-fig a:hover { border-color: #81a6a2; }
.paper-fig img { display: block; width: 100%; height: auto; }
.paradigm img { width: auto; max-width: 100%; max-height: 435px; object-fit: contain; margin: auto; }
.paper-fig .zoom { position: absolute; bottom: 8px; right: 8px; border: 1px solid var(--line); background: #fff; color: var(--accent); border-radius: 3px; line-height: 25px; width: 26px; text-align: center; font-size: 16px; }
.paper-fig figcaption { margin-top: 9px; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.paper-fig figcaption b { font-weight: 650; color: var(--accent); margin-right: 5px; }
.arch a { padding: clamp(9px, 1.6vw, 24px); }

.video-section { background: var(--wash); border-block: 1px solid var(--line); }
.section-desc { color: var(--quiet); font-size: 16px; line-height: 1.5; margin-top: 10px; }
.player-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.playback { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--quiet); font-size: 13px; }
.rate { display: flex; gap: 2px; border: 1px solid #c4d4d1; border-radius: 5px; padding: 2px; background: white; }
.rate button { background: transparent; color: var(--quiet); border: 0; padding: 5px 11px; font-size: 14px; font-weight: 600; border-radius: 3px; }
.rate button[aria-pressed=true] { background: var(--accent); color: white; }
.gallery-nav { display: flex; align-items: stretch; gap: 25px; border-bottom: 1px solid var(--line); margin: 27px 0 20px; overflow-x: auto; scrollbar-width: thin; }
.gallery-nav button { display: flex; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 0 12px; color: var(--quiet); white-space: nowrap; font-size: 15px; font-weight: 570; }
.gallery-nav button:hover { color: var(--ink); }
.gallery-nav button[aria-pressed=true] { color: var(--accent); border-bottom-color: var(--accent); }
.gallery-nav small { font-size: 12px; font-weight: 600; min-width: 15px; text-align: center; }
.player-wrap { width: 100%; background: #0c1013; border-radius: 5px; overflow: hidden; line-height: 0; }
.player-wrap video { display: block; width: 100%; height: auto; aspect-ratio: 3840 / 1840; background: #090c0e; object-fit: contain; max-height: 76vh; }
.player-wrap video:fullscreen { max-height: none; aspect-ratio: auto; }
.player-caption { flex-basis: 100%; }
.player-toolbar:has(#clips:empty) .player-caption { flex: 1 1 30rem; }
#clips:empty + .playback { margin-left: 0; }
.player-caption h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 20px; line-height: 1.3; font-weight: 640; }
.player-caption h3 span { font: 500 13px/1.4 var(--mono); color: var(--quiet); }
.player-caption p { font-size: 15px; line-height: 1.55; max-width: 85ch; margin-top: 5px; color: var(--quiet); }
#clips { display: flex; gap: 9px; flex-wrap: wrap; }
#clips:empty { display: none; }
.clip { display: flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 550; line-height: 1.2; border: 1px solid #ccd8d6; border-radius: 4px; padding: 4px 10px 4px 4px; color: var(--quiet); background: transparent; }
.clip img { width: 44px; height: 29px; object-fit: cover; border-radius: 2px; }
.clip[aria-pressed=true] { background: #fff; border-color: var(--accent); color: var(--accent); }
.clip:hover { background: #fff; }
.table-section { margin-top: 32px; }
.table-section + .table-section { margin-top: 42px; }
.table-section h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-size: clamp(21px, 1.9vw, 28px); font-weight: 610; line-height: 1.22; }
.table-section h3 span { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: white; }
.result-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.generation-table { min-width: 790px; }
.consistency-table { min-width: 520px; }
.result-table td, .result-table th { padding: 8px 11px; text-align: center; }
.result-table thead { background: #eaf1ef; }
.result-table thead th { font-size: 13px; font-weight: 620; }
.result-table th[scope=row], .result-table th[scope=rowgroup], .consistency-table thead th:first-child { text-align: left; }
.result-table th[scope=row] { font-weight: 450; white-space: nowrap; }
.result-table th[scope=rowgroup] { vertical-align: top; color: var(--quiet); font-size: 13px; font-weight: 650; border-right: 1px solid var(--line); }
.result-table tbody { border-top: 1px solid var(--line); }
.result-table tbody tr + tr { border-top: 1px solid #e9efed; }
.result-table .ours { background: #e0efeb; color: #164f4d; }
.result-table .paper-reported { color: #596461; background: #f3f5f4; }
.result-table u { text-underline-offset: 2px; }
.table-note { color: var(--quiet); font-size: 13px; line-height: 1.55; margin-top: 10px; text-align: justify; }
.citation-section { padding-bottom: clamp(32px, 4vw, 56px); }
.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 20px; min-height: 84px; padding-block: 16px; border-top: 1px solid var(--line); }
.site-credit { font-size: 14px; color: var(--quiet); }
.site-credit a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--accent); }
.foot > a:last-child { font-size: 14px; }
dialog { max-width: min(95vw, 1550px); max-height: 94vh; padding: 12px 15px 16px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); }
dialog::backdrop { background: #172627ce; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.dialog-bar h2 { font-size: 19px; letter-spacing: -.025em; }
.dialog-bar button { border: 1px solid var(--line); background: white; border-radius: 4px; padding: 5px 8px; font-size: 14px; }
#full-figure { display: block; max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .hero { column-gap: 32px; }
  .paper-name { font-size: 25px; }
  .intro-section { gap: 32px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 54px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
  .hero-mark { margin-bottom: 13px; }
  .paper-name { max-width: 29ch; font-size: clamp(24px, 5vw, 30px); }
  .paper-byline { margin-top: 16px; }
  .hero-summary { margin: 16px 0; font-size: 17px; }
  .hero-figure { justify-self: start; }
  .overview-section, .video-section, .results-section { padding-block: 42px; }
  .overview-intro { grid-template-columns: 1fr; gap: 20px; }
  .intro-copy p { font-size: 16px; }
  .intro-copy h2 { margin-bottom: 16px; }
  .gallery-nav { gap: 18px; margin: 18px 0 14px; }
  .table-section { margin-top: 24px; }
  .table-note { text-align: start; }
  .foot { min-height: 68px; }
}
@media (max-width: 500px) {
  .foot { grid-template-columns: 1fr auto; }
  .site-credit { grid-column: 1 / -1; grid-row: 2; }
  .mast-inner { gap: 8px; }
  .mast .logotype { width: 70px; }
  .mast nav { gap: clamp(8px, 2.5vw, 14px); font-size: 13px; }
  .gallery-nav { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 3px 20px; }
  .gallery-nav button { font-size: 14px; padding: 7px 0; }
  .rate button { padding: 4px 8px; }
  .clip { flex: 1 0 40%; }
  .clip img { width: 36px; height: 24px; }
  #clips { flex-basis: 100%; gap: 6px; }
}
@media (max-width: 370px) {
  .mast-inner { display: grid; padding-block: 12px; gap: 9px; }
  .mast nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
