* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #363636;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a {
  color: #1769aa;
  text-underline-offset: 3px;
}
a:hover {
  color: #104879;
}
.project-header {
  max-width: 1040px;
  margin: 0 auto;
  padding: 65px 28px 25px;
  text-align: center;
}
h1 {
  margin: 0 0 25px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
  color: #303030;
}
.authors {
  font-size: 20px;
  color: #1769aa;
  line-height: 1.85;
  margin: 0 0 12px;
}
sup {
  font-size: 0.65em;
}
.affiliations {
  margin: 0;
  line-height: 1.65;
}
.affiliations span {
  display: inline-block;
  margin: 0 9px;
}
.author-note,
.note {
  font-size: 14px;
  color: #626262;
}
.author-note {
  margin: 9px 0 20px;
}
.resources {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.resources .resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #363636;
  color: white;
  border-radius: 24px;
  padding: 7px 22px;
  text-decoration: none;
  font-size: 16px;
}
.resources a:hover {
  background: #555;
}
.resources a:focus-visible {
  outline: 3px solid #3273dc;
  outline-offset: 3px;
}
.resource-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.resources .is-unavailable {
  background: #ededed;
  color: #666;
  cursor: default;
}
.resource-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background: #ddd;
  white-space: nowrap;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}
section {
  padding: 28px 0;
  scroll-margin-top: 25px;
}
h2 {
  text-align: center;
  font-size: 29px;
  line-height: 1.3;
  margin: 0 0 23px;
  color: #303030;
}
p {
  margin: 0 0 16px;
}
#abstract {
  max-width: 820px;
  margin: auto;
}
#abstract p {
  text-align: justify;
}
figure {
  margin: 0 0 22px;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  object-fit: contain;
  border-radius: 3px;
}
figcaption {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: #595959;
  margin: 12px auto 0;
  max-width: 820px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
caption {
  font-size: 14px;
  margin-bottom: 10px;
}
th,
td {
  padding: 10px 18px;
  text-align: right;
  border-bottom: 1px solid #e4e4e4;
}
th:first-child {
  text-align: left;
}
thead {
  border-top: 2px solid #555;
  border-bottom: 2px solid #555;
}
tbody th {
  font-weight: 400;
}
.ours {
  background: #f2f5f8;
  font-weight: 700;
}
.ours th {
  font-weight: 700;
}
.note {
  margin: 10px 0 0;
}
.citation-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.citation-heading h2 {
  margin: 0;
}
button {
  padding: 6px 16px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #363636;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
pre {
  overflow-x: auto;
  background: #f5f5f5;
  padding: 22px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
#copy-status {
  font-size: 14px;
  min-height: 24px;
  margin: 5px 0 0;
}
footer {
  padding: 25px 20px 40px;
  text-align: center;
  color: #626262;
  font-size: 14px;
}
:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  left: 15px;
  top: -80px;
  background: white;
  padding: 8px;
}
.skip-link:focus {
  top: 10px;
}
@media (max-width: 600px) {
  .project-header {
    padding: 40px 20px 20px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.5px;
  }
  .authors {
    font-size: 17px;
  }
  .desktop-break {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  body {
    font-size: 16px;
  }
  h2 {
    font-size: 25px;
  }
  section {
    padding: 24px 0;
  }
  #abstract p {
    text-align: left;
  }
  th,
  td {
    padding: 9px 12px;
  }
  .resources .resource-link {
    padding: 6px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Full-width chapter bands, with paper figures as the main visual content. */
.project-header {
  padding-bottom: 30px;
}
main {
  max-width: none;
  padding: 0;
}
section {
  padding: 60px 28px;
  border-top: 1px solid #e3e7ec;
}
.section-inner {
  max-width: 1060px;
  margin: 0 auto;
}
#abstract {
  max-width: none;
  margin: 0;
  background: #f4f5f7;
}
#abstract .section-inner {
  max-width: 820px;
}
#experiments {
  background: #f3f5f8;
}
#experiments .section-inner {
  max-width: 960px;
}
#results .section-inner {
  max-width: 900px;
}
#dataset {
  background: #edf3f5;
}
#citation {
  background: #f5f5f7;
}
#citation .section-inner {
  max-width: 960px;
}
.teaser {
  border-top: 0;
  padding-top: 12px;
  padding-bottom: 45px;
}
.teaser .section-inner {
  max-width: 960px;
}
.teaser-summary {
  text-align: center;
  font-size: 23px;
  line-height: 1.5;
  color: #454b55;
  margin: 0 0 26px;
}
.teaser-summary strong {
  color: #283f58;
  font-weight: 600;
}
.teaser .paper-figure {
  margin-bottom: 0;
}
.section-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  font-weight: 700;
  color: #506578;
  margin-bottom: 10px;
}
.section-intro {
  text-align: center;
  max-width: 780px;
  margin: -9px auto 30px;
  color: #58616b;
}
.paper-figure {
  margin-bottom: 26px;
}
.figure-link {
  display: block;
  background: white;
  border: 1px solid #e2e6ea;
  border-radius: 5px;
  padding: 12px;
}
.figure-link:hover {
  border-color: #8499ad;
}
.paper-figure figcaption {
  max-width: 900px;
  margin-top: 16px;
}
.method-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.method-points h3 {
  font-size: 17px;
  margin: 0 0 9px;
  color: #283f58;
}
.method-points p {
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.7;
}
.dataset-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0 24px;
  padding: 24px 0;
  border-top: 1px solid #cdd9df;
  border-bottom: 1px solid #cdd9df;
  text-align: center;
}
.dataset-facts p {
  margin: 0;
  padding: 0 12px;
}
.dataset-facts p + p {
  border-left: 1px solid #cdd9df;
}
.dataset-facts strong {
  display: block;
  color: #283f58;
  font-size: 23px;
}
.dataset-facts span {
  display: block;
  font-size: 14px;
  color: #58616b;
}
.dataset-description {
  max-width: 900px;
  margin: auto;
  font-size: 16px;
}
pre {
  background: #eaecef;
}
footer {
  background: #f5f5f7;
}
@media (max-width: 600px) {
  main {
    padding: 0;
  }
  section {
    padding: 38px 20px;
  }
  .teaser {
    padding-top: 8px;
    padding-bottom: 30px;
  }
  .teaser-summary {
    font-size: 19px;
  }
  .figure-link {
    padding: 5px;
  }
  .method-points {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .dataset-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dataset-facts p + p {
    border-left: 0;
  }
  .dataset-facts strong {
    font-size: 21px;
  }
  .section-intro {
    margin-top: -8px;
    font-size: 15px;
  }
}

.size-results {
  min-width: 620px;
}
.size-results th,
.size-results td {
  padding-left: 12px;
  padding-right: 12px;
}

/* Simulation-video carousel. */
#simulation {
  background: #f3f5f8;
}
#experiments {
  background: #fff;
}
.simulation-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.simulation-navigation {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}
.simulation-navigation button {
  width: 39px;
  height: 39px;
  padding: 0;
  border-radius: 50%;
  background: white;
  font-size: 20px;
}
.simulation-navigation button:disabled {
  opacity: 0.35;
  cursor: default;
}
.simulation-track {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-x: contain;
  padding: 4px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: #8a9bab #e2e7ec;
}
.simulation-example {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.simulation-example video {
  aspect-ratio: 1;
  height: auto;
}
.simulation-example figcaption {
  text-align: left;
  font-size: 14px;
  margin-top: 13px;
}
.instruction-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #506578;
  margin-bottom: 4px;
}
@media (max-width: 900px) and (min-width: 601px) {
  .simulation-example {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 600px) {
  .simulation-toolbar {
    gap: 8px;
    align-items: flex-start;
  }
  .simulation-navigation {
    gap: 5px;
  }
  .simulation-navigation button {
    width: 33px;
    height: 33px;
  }
  .simulation-track {
    gap: 16px;
  }
  .simulation-example {
    flex-basis: 92%;
  }
}

/* Real-world videos share the simulation slider and preserve native framing. */
.real-world-videos { align-items: flex-start; }
.real-world-example video {
  width: 100%;
  height: auto;
  aspect-ratio: var(--video-ratio);
  object-fit: contain;
}

/* Full-width video stages, with navigation beside the active player. */
#simulation, #experiments { padding-inline: 0; overflow: hidden; }
#simulation .section-inner, #experiments .section-inner { max-width: none; }
#simulation h2, #experiments h2 { padding-inline: 24px; }
.video-stage {
  --player-width: min(420px, calc(100vw - 116px));
  position: relative;
  padding: 22px 0 28px;
  isolation: isolate;
}
.video-stage .simulation-track {
  position: relative;
  display: block;
  width: 100%;
  height: var(--stage-height, 510px);
  padding: 0;
  overflow: visible;
  perspective: 1600px;
  scroll-snap-type: none;
  transition: height .45s ease;
}
.video-stage .simulation-example {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--player-width);
  margin: 0;
  opacity: .55;
  transform: translateX(calc(-50% + var(--card-offset, 0px))) scale(.85) rotateY(var(--card-angle, 0deg));
  transform-origin: center;
  transition: transform .6s cubic-bezier(.2,.75,.2,1), opacity .45s ease, filter .45s ease;
  filter: saturate(.65) brightness(.88);
  cursor: pointer;
  z-index: 1;
}
.video-stage .simulation-example.is-active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  filter: none;
  z-index: 5;
  cursor: default;
}
.video-stage .simulation-example.is-distant { visibility: hidden; pointer-events: none; }
.video-stage .simulation-example video {
  width: 100%;
  height: var(--media-height, 420px);
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 18px 46px -20px rgba(18,43,66,.5);
  pointer-events: none;
}
.video-stage .simulation-example.is-active video { pointer-events: auto; }
.video-stage .simulation-example figcaption {
  opacity: 0;
  transition: opacity .35s ease;
  padding: 0 8px;
}
.video-stage .simulation-example.is-active figcaption { opacity: 1; }
.video-stage-arrow {
  position: absolute;
  top: calc(22px + var(--media-height, 420px) / 2);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #d9e4ec;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  color: #24567d;
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 20px #16334d20;
  font-size: 23px;
  cursor: pointer;
  z-index: 10;
}
.video-stage-arrow.previous { right: calc(50% + var(--player-width) / 2 + 10px); }
.video-stage-arrow.next { left: calc(50% + var(--player-width) / 2 + 10px); }
.video-stage-arrow:hover { background: #24567d; color: white; }
.video-stage-arrow:focus-visible { outline: 3px solid #87bce3; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .video-stage .simulation-example, .video-stage .simulation-track,
  .video-stage .simulation-example figcaption { transition: none; }
}
