:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #62666b;
  --line: #dedfe2;
  --link: #245b86;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.7; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #123c5c; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.paper-header, main, footer { width: min(940px, calc(100% - 48px)); margin-inline: auto; }
.paper-header { padding-top: 66px; text-align: center; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.19; letter-spacing: -.025em; margin: 0; }
h1 > span { display: block; font-size: .77em; letter-spacing: -.018em; margin-top: 10px; }
.authors { display: flex; justify-content: center; gap: 52px; margin: 32px 0 25px; }
.authors > div { display: flex; flex-direction: column; }
.authors a, .author-name { font-size: 1.05rem; }
.authors a { text-decoration: none; }
.authors > div > span:not(.author-name) { font-size: .875rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; font-size: .9375rem; }
nav a { text-decoration: none; }
.motion-intro { --stimulus-height: clamp(180px, 18vw, 240px); width: calc(100vw - 32px); position: relative; left: 50%; transform: translateX(-50%); padding-top: 44px; text-align: center; }
.motion-intro h2 { margin-bottom: 10px; }
.motion-intro > .prose { width: min(790px, calc(100vw - 48px)); text-align: left; }
.motion-instructions { font-size: 1rem; color: var(--muted); margin-bottom: 20px; text-align: justify; }
.motion-strip { overflow-x: auto; padding: 6px 0 0; }
.motion-strip.is-looping { overflow: hidden; }
.motion-track, .motion-group { display: flex; width: max-content; }
.motion-track { will-change: transform; background: #707070; }
.motion-group { flex: none; }
.stimulus-card { position: relative; flex: none; width: calc(var(--stimulus-height) * var(--video-ratio) + 16px); padding: 22px 8px; }
.stimulus-card::before, .stimulus-card::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Crect x='7' y='1' width='10' height='10' rx='1.5' fill='%23f7f7f7'/%3E%3C/svg%3E"); background-size: 24px 12px; background-repeat: round no-repeat; pointer-events: none; }
.stimulus-card::before { top: 5px; }
.stimulus-card::after { bottom: 5px; }
.stimulus-card video { width: 100%; height: var(--stimulus-height); aspect-ratio: auto; object-fit: contain; background: transparent; }
.motion-caption { font-size: 1rem; max-width: 680px; margin: 0 auto; color: #4b4e52; }
.motion-credit { font-size: .875rem; color: var(--muted); line-height: 1.4; margin: 4px auto 0; }
.overview video { aspect-ratio: 16 / 9; height: auto; }
.teaser h2 { text-align: center; font-size: 1.7rem; margin: 0 0 8px; }
.lead { text-align: center; color: #4b4e52; margin: 0 0 25px; line-height: 1.6; }
figure { margin: 0; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.video-pair h3 { font-size: .9375rem; font-weight: 500; margin: 0 0 8px; text-align: center; }
video { display: block; width: 100%; aspect-ratio: 718 / 360; object-fit: contain; background: #000; }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; }
[hidden] { display: none !important; }
.example-picker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.example-picker > span { color: var(--muted); font-size: .875rem; margin-right: 3px; }
button { font: inherit; font-size: .875rem; color: var(--ink); cursor: pointer; padding: 5px 13px; background: #fff; border: 1px solid #c9cdd1; border-radius: 3px; min-height: 36px; }
button:hover { background: #f4f5f6; }
button[aria-pressed="true"] { background: #eef3f7; border-color: #7896ad; color: #174a70; }
#play-pair { white-space: nowrap; }
figcaption, .note { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
figcaption { margin: 13px auto 0; max-width: 790px; }
section { margin-bottom: 49px; scroll-margin-top: 28px; }
.prose { max-width: 790px; margin-inline: auto; }
h2 { font-size: 1.8rem; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 17px; }
p { margin: 0 0 18px; }
#abstract { border-top: 1px solid var(--line); padding-top: 34px; }
#abstract p { font-size: 1rem; line-height: 1.8; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; gap: 28px; margin: 26px 0 22px; }
.method-steps li { border-top: 2px solid #8ca0b0; padding-top: 13px; }
.method-steps h3 { font-size: 1rem; margin: 0 0 7px; font-weight: 600; }
.method-steps p { font-size: .9375rem; line-height: 1.6; margin: 0; }
.generalization-figure { margin-top: 25px; }
img { width: 100%; height: auto; display: block; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 7px 0 19px; }
caption { text-align: left; color: var(--muted); font-size: .875rem; margin-bottom: 9px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
thead th { border-top: 1px solid #90969c; border-bottom: 1px solid #90969c; font-weight: 600; }
tbody th { font-weight: 500; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
footer { border-top: 1px solid var(--line); padding: 23px 0 35px; font-size: .875rem; color: var(--muted); }
footer p { margin: 0 0 3px; }
footer a { display: inline-block; margin-top: 6px; }
.visually-hidden, .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 { display: block; padding: 10px; text-align: center; }
@media (max-width: 650px) {
  body { font-size: 16px; }
  .paper-header, main, footer { width: calc(100% - 32px); }
  .paper-header { padding-top: 37px; }
  h1 { font-size: 2rem; }
  h1 > span { font-size: .74em; line-height: 1.3; }
  .authors { flex-wrap: wrap; gap: 15px 24px; margin: 26px 0 22px; }
  .authors > div { min-width: 145px; }
  nav { gap: 17px; font-size: .875rem; }
  .motion-intro { --stimulus-height: 160px; padding-top: 31px; }
  .motion-intro > .prose { width: 100%; }
  .desktop-break { display: none; }
  .video-pair { grid-template-columns: 1fr; gap: 17px; }
  .demo-controls { flex-wrap: wrap; }
  .method-steps { grid-template-columns: 1fr; gap: 19px; }
  section { margin-bottom: 36px; }
  h2 { font-size: 1.65rem; }
  th, td { padding: 10px 7px; }
}

.overview-player { position: relative; overflow: hidden; background: #000; }
.overview-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 16px 8px; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .8)); opacity: 0; transition: opacity .18s; }
.overview-player:hover .overview-controls, .overview-player:focus-within .overview-controls, .overview-player.is-paused .overview-controls { opacity: 1; }
.overview-timeline { display: flex; align-items: center; height: 20px; }
.overview-toolbar { display: flex; align-items: center; gap: 8px; height: 36px; }
.overview-toolbar button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; min-height: 34px; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.overview-toolbar button:hover { background: rgb(255 255 255 / .16); }
.overview-toolbar button:focus-visible, .overview-toolbar select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.overview-toolbar svg { width: 22px; height: 22px; }
#overview-time { margin-right: auto; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#overview-speed { appearance: none; font: inherit; font-size: 13px; font-weight: 600; text-align: center; width: 48px; height: 32px; padding: 0; color: #fff; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
#overview-speed:hover { background: rgb(255 255 255 / .16); }
#overview-speed option { color: #202124; background: #fff; }
.overview-controls input[type="range"] { appearance: none; -webkit-appearance: none; height: 4px; border-radius: 2px; margin: 0; cursor: pointer; background: rgb(255 255 255 / .35); }
#overview-seek { width: 100%; background: linear-gradient(to right, #fff var(--progress, 0%), rgb(255 255 255 / .35) var(--progress, 0%)); }
.overview-controls input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.overview-controls input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
#overview-volume { width: 56px; }
.pause-icon, .muted-icon { display: none; }
.overview-player:not(.is-paused) .play-icon, .is-muted .sound-icon { display: none; }
.overview-player:not(.is-paused) .pause-icon, .is-muted .muted-icon { display: initial; }
.overview-player:fullscreen { width: 100%; max-width: none; display: flex; align-items: center; background: #000; }
.overview-player:fullscreen video { height: 100%; width: 100%; object-fit: contain; }
@media (hover: none) { .overview-controls { opacity: 1; } }
@media (max-width: 650px) {
  .overview-controls { padding-inline: 10px; }
  .overview-toolbar { gap: 4px; }
  #overview-volume { display: none; }
}

.comparison-stage { position: relative; width: 100%; margin-inline: auto; background: #000; overflow: hidden; }
.comparison-canvas { display: block; width: 100%; height: auto; }
.comparison-labels { position: absolute; inset: 12px 0 auto; display: grid; grid-template-columns: repeat(var(--panel-count, 2), 1fr); justify-items: center; pointer-events: none; }
.comparison-labels span { padding: 3px 8px; background: rgb(0 0 0 / .65); color: #fff; border-radius: 3px; font-size: .875rem; }
.comparison-play, .comparison-fullscreen { position: absolute; bottom: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; background: rgb(0 0 0 / .6); border: 0; border-radius: 50%; color: #fff; }
.comparison-play:hover, .comparison-fullscreen:hover { background: rgb(0 0 0 / .85); }
.comparison-play svg, .comparison-fullscreen svg { width: 22px; height: 22px; }
.comparison-play-icon { display: none; }
.comparison-play.is-paused .comparison-play-icon { display: initial; }
.comparison-play.is-paused .comparison-pause-icon { display: none; }
.comparison-navigation { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 16px; }
.comparison-navigation > button { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border-radius: 50%; }
.comparison-navigation svg { width: 22px; height: 22px; }
.comparison-caption { text-align: center; min-width: min(230px, 55vw); }
.comparison-position { font-size: .875rem; color: var(--muted); }
.comparison-title { margin: 0; font-size: 1rem; }
.comparison-status { text-align: center; margin: 8px 0 0; }


.comparison-browser { margin: 24px 0 30px; }
.comparison-navigation.is-single > button { display: none; }
#applications h3 { font-size: 1.15rem; font-weight: 500; margin: 26px 0 12px; }
@media (max-width: 650px) {
  .comparison-labels { top: 7px; left: 7px; right: 7px; }
  .comparison-labels span { font-size: 12px; padding: 2px 5px; }
}

.comparison-play { right: 52px; }
.comparison-stage:fullscreen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #000; }
.comparison-stage:fullscreen .comparison-canvas { width: 100%; height: 100%; object-fit: contain; }

/* Citation and related work */
.citation-bibtex { max-width: 100%; padding: 18px 20px; background: #f5f6f7; border: 1px solid var(--line); border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.6; }
.related-papers { padding-left: 1.3rem; }
.related-papers li + li { margin-top: 16px; }

.resource-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: -9px 0 17px; }
.resource-links a { display: inline-flex; align-items: center; min-height: 40px; }
.resource-links img { display: block; height: 20px; width: auto; }

/* The introductory stimuli invite a still-frame versus motion comparison. */
.stimulus-card[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stimulus-card:focus-visible { outline: 2px solid var(--link); outline-offset: -8px; }
.stimulus-hint { position: absolute; bottom: 30px; left: 16px; padding: 3px 8px; border-radius: 3px; background: rgba(0, 0, 0, .68); color: #fff; font-size: .875rem; line-height: 1.5; pointer-events: none; }
.stimulus-hint::after { content: "Hover to play"; }
.stimulus-card.is-playing .stimulus-hint { visibility: hidden; }
@media (hover: none) { .stimulus-hint::after { content: "Tap to play"; } }

/* Selected results share the same content width as the other sections. */
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.results-grid .comparison-browser { min-width: 0; margin: 0; }
.results-grid .comparison-stage { aspect-ratio: auto; }
.results-grid .comparison-canvas { width: 100%; height: auto; }
.results-grid .comparison-navigation { display: none; }
.results-grid .comparison-status:empty { display: none; }
.results-grid .comparison-caption { min-width: 0; }
.results-grid .comparison-labels { inset: 7px 0 auto; }
.results-grid .comparison-labels span { font-size: .875rem; padding: 2px 6px; }
.results-grid .comparison-stage:fullscreen { aspect-ratio: auto; }
.results-grid .comparison-stage:fullscreen .comparison-canvas { height: 100%; object-fit: contain; }

.compression-table { width: 100%; border-collapse: collapse; margin: 20px 0 12px; font-size: 1rem; line-height: 1.5; }
.compression-table caption { text-align: left; font-weight: 600; margin-bottom: 10px; }
.compression-table th, .compression-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.compression-table thead th { background: #f5f6f7; }
.compression-table tbody th { font-weight: 400; }
.compression-note, .compression-details { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.compression-details { margin-bottom: 26px; }
.compression-details summary { cursor: pointer; color: var(--link); }
.compression-details code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .compression-table { font-size: .875rem; }
  .compression-table th, .compression-table td { padding: 8px 6px; }
}
