@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #191919;
  --body: #353535;
  --muted: #626262;
  --line: #dedede;
  --accent: #242424;
  --tint: #f5f5f5;
  --font: "DM Sans", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: white;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: .19em; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
figure, p, h1, h2, h3 { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { width: min(64rem, calc(100% - 3.5rem)); margin-inline: auto; }
#main {
  --block-gap: clamp(1.125rem, 2vw, 1.625rem);
  display: grid; gap: var(--block-gap); padding-block: var(--block-gap);
}
.content-block {
  min-width: 0;
  padding: clamp(1.15rem, 2.4vw, 1.875rem) clamp(1rem, 3.6vw, 2.875rem);
  border: 1px solid #dedfe1; border-radius: .95rem; background: white;
  box-shadow: 0 1px 5px rgb(24 30 38 / .12), 0 3px 14px rgb(24 30 38 / .09);
}
.demo-collection { position: relative; display: grid; gap: var(--block-gap); min-width: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; z-index: 10; top: .7rem; left: .7rem;
  padding: .5rem 1rem; background: white; transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.site-header {
  position: sticky; top: 0; z-index: 3;
  border-bottom: 1px solid var(--line);
  background: white;
}
.nav-inner, .brand, .nav-links, .resource-links, .button {
  display: flex; align-items: center;
}
.nav-inner { min-height: 3.8rem; justify-content: space-between; gap: 1rem; }
.brand {
  gap: .62rem; color: var(--ink); text-decoration: none;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.055em;
}
.brand-mark { display: inline-flex; transform: skewX(-18deg); gap: 2px; padding-inline: 2px; }
.brand-mark i { width: .29rem; height: 1rem; background: var(--accent); border-radius: 1px; }
.brand-mark i:first-child { background: #b0b0b0; }
.brand-mark i:nth-child(2) { background: #737373; }
.nav-links { gap: clamp(.8rem, 3vw, 2.1rem); }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 550;
}
.nav-links a:hover, .affiliations a:hover { color: var(--accent); text-decoration: underline; }

.paper-header { container-type: inline-size; text-align: center; }
#paper-title {
  color: #111418;
  font-size: min(3.95vw, 2.75rem);
  font-size: min(4.2cqi, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.03em;
}
.title-line { display: block; white-space: nowrap; }
.method-name { color: #1f4e9c; }
.authors, .affiliations {
  display: flex; justify-content: center; flex-wrap: wrap;
  list-style: none; padding: 0; margin-inline: auto;
}
.authors { gap: .2rem 1.25rem; margin-top: 1.3rem; margin-bottom: .45rem; font-size: 1.11rem; font-weight: 600; }
.authors a { color: var(--accent); text-decoration-thickness: 1px; text-decoration-color: #999; }
.authors a:hover { text-decoration-color: currentColor; }
.authors li { white-space: nowrap; }
sup { font-size: .65em; line-height: 0; vertical-align: super; }
.authors sup { margin-left: .12em; color: var(--muted); }
.affiliations { max-width: 50rem; margin-block: 0; gap: .12rem 1rem; font-size: .89rem; color: var(--muted); }
.affiliations a { color: inherit; text-decoration: none; }
.correspondence { margin-top: .32rem; font-size: .8rem; color: var(--muted); }
.resource-links { justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.button, .copy-button, .close-dialog {
  justify-content: center; gap: .5rem; min-height: 2.55rem; padding: .45rem .95rem;
  border: 1px solid var(--line); background: white; color: var(--ink); border-radius: .45rem;
  font-size: .9rem; font-weight: 650; text-decoration: none;
}
.button:hover, .copy-button:hover, .close-dialog:hover { background: var(--tint); border-color: #999; }
.button:disabled { background: var(--tint); border-color: var(--line); color: #707070; cursor: not-allowed; }
.button.primary { border-color: var(--ink); }
.paper-icon {
  display: inline-grid; place-items: center; width: .8rem; height: 1rem;
  border: 1.3px solid currentColor; border-radius: 2px;
}
.paper-icon::after { content: ""; width: 60%; height: .27rem; border-block: 1px solid currentColor; }
.film-icon {
  display: inline-grid; place-items: center; width: 1rem; height: .78rem;
  border: 1.3px solid currentColor; border-radius: 2px;
}
.film-icon::after {
  content: ""; margin-left: .06rem; border-block: .16rem solid transparent; border-left: .24rem solid currentColor;
}
.symbol-icon { font: 650 .94rem ui-monospace, monospace; letter-spacing: -.14em; margin-right: .12em; }

#overview-video { width: 100%; margin-top: clamp(1.25rem, 2.4vw, 1.875rem); border-radius: .5rem; }
figcaption, .dialog-bar, .dialog-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.media-note { font-family: ui-monospace, monospace; font-size: .77rem; color: var(--muted); white-space: nowrap; }
.media-surface { display: grid; place-items: center; cursor: zoom-in; }
.media-surface:focus-visible { outline-offset: -4px; }
.media-surface img { width: 100%; }
figcaption {
  border-top: 1px solid var(--line); padding: .8rem clamp(.85rem, 2.3vw, 1.55rem);
  font-size: .92rem; line-height: 1.5; color: var(--muted);
}
figcaption strong { color: var(--ink); font-weight: 650; }
.gallery-panel figcaption, .method-figure figcaption { padding: .65rem 0 0; }
.enlarge-link { flex: none; font-size: .86rem; font-weight: 650; }
figure video { width: 100%; object-fit: contain; background: white; }
figure video:focus-visible { outline-offset: -3px; }

h2, .demo-group > h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 690; line-height: 1.18;
  letter-spacing: -.04em; text-align: center;
}
.section-heading { margin-bottom: 1.25rem; }
.section-heading p, .demo-group > p {
  max-width: 80ch; margin: .55rem auto 0; text-align: center; color: var(--body);
}
.prose { max-width: 96ch; margin: .85rem auto 0; color: var(--body); font-size: 1rem; line-height: 1.55; }
.abstract-section p { text-align: justify; }
.prose strong { font-weight: 690; color: var(--ink); }
.motion-viewer, .demo-group .gallery { margin-top: 1.1rem; }
.motion-picker {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: .65rem; margin-bottom: .65rem;
}
.motion-picker select, .motion-navigation button {
  min-height: 2.55rem; padding: .38rem .7rem; border: 1px solid var(--line);
  border-radius: .38rem; background: white; color: var(--ink); font: inherit; font-size: .92rem;
}
.motion-picker select { width: 100%; text-overflow: ellipsis; }
.motion-picker select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.motion-navigation { display: flex; gap: .35rem; }
.motion-navigation button:hover:enabled { background: var(--tint); }
.motion-navigation button:disabled { color: var(--muted); opacity: .5; cursor: default; }
.motion-timeline, .motion-tools, .motion-options { display: flex; align-items: center; }
.motion-reset, .motion-message button {
  min-height: 2.15rem; padding: .32rem .75rem; border: 1px solid transparent; border-radius: .36rem;
  background: white; color: var(--muted); font-size: .88rem; font-weight: 600;
}
.motion-reset:hover { color: var(--ink); background: var(--tint); }
.motion-stage {
  position: relative; isolation: isolate; height: clamp(22rem, 46vw, 30rem);
  overflow: hidden; border-radius: .5rem; background: #f4f6f5;
}
.motion-stage canvas, .motion-poster { display: block; width: 100%; height: 100%; }
.motion-stage canvas { position: relative; touch-action: none; cursor: grab; }
.motion-stage canvas:active { cursor: grabbing; }
.motion-stage canvas:focus-visible { outline-offset: -4px; }
.motion-poster { position: absolute; inset: 0; object-fit: cover; }
.motion-input {
  position: absolute; right: .8rem; top: .8rem; width: clamp(4.5rem, 11%, 6.4rem);
  border: 1px solid #ccd3cf; border-radius: .42rem; overflow: hidden; background: white;
  pointer-events: none;
}
.motion-input.landscape { width: clamp(6.4rem, 23%, 13rem); }
.motion-input video { display: block; width: 100%; height: auto; object-fit: contain; background: #e4e8e5; }
.motion-input figcaption { display: block; padding: .18rem .35rem; font-size: .69rem; text-align: center; color: var(--body); }
.motion-message {
  position: absolute; left: 50%; bottom: .75rem; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: max-content; max-width: 92%;
  padding: .32rem .7rem; border-radius: .38rem; background: rgb(255 255 255 / .94); font-size: .85rem;
}
.motion-message button, .motion-reset { min-height: 1.9rem; border-color: var(--line); }
.motion-timeline { gap: .85rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.motion-play { min-width: 4.5rem; padding: .35rem .65rem; border: 1px solid var(--ink); border-radius: .38rem; background: var(--ink); color: white; font-size: .9rem; font-weight: 650; }
.motion-play:disabled { opacity: .52; cursor: default; }
.motion-scrub { flex: 1; min-width: 0; min-height: 1.8rem; margin: 0; cursor: pointer; accent-color: #186b63; }
.motion-readout { min-width: 5.6rem; color: var(--body); text-align: right; font: .84rem/1.4 var(--font); font-variant-numeric: tabular-nums; }
.motion-tools { justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-top: .4rem; }
.motion-hint, .motion-options { color: var(--muted); font-size: .83rem; }
.motion-options { gap: .9rem; }
.motion-options label { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; cursor: pointer; }
.motion-options input { margin: 0; accent-color: #186b63; }
.motion-options .motion-reset { font-size: .8rem; }
@media (max-width: 36rem) {
  .motion-picker { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .motion-navigation { justify-self: end; }
  .motion-navigation button { min-height: 2.1rem; font-size: .84rem; }
  .motion-input.landscape { width: clamp(5.5rem, 28%, 8rem); }
  .motion-stage { height: clamp(17rem, 86vw, 24rem); }
  .motion-input { right: .45rem; top: .45rem; }
  .motion-timeline { gap: .45rem; }
  .motion-readout { min-width: 4.1rem; font-size: .78rem; }
  .motion-options { flex-wrap: wrap; gap: .65rem; }
}
.clip figcaption { display: block; }
.gallery-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; padding: 0 0 .65rem; }
.gallery-panel video { border-radius: .5rem; }
.gallery-tabs button {
  border: 1px solid transparent; border-radius: .38rem; background: transparent;
  min-height: 2.4rem; padding: .35rem .85rem;
  font-weight: 600; font-size: .92rem; color: var(--muted);
}
.gallery-tabs button:hover { color: var(--accent); }
.gallery-tabs button[aria-selected="true"] { color: var(--ink); border-color: #aaa; background: var(--tint); }
.gallery-panel .media-surface { position: relative; }
.scene-gallery .media-surface { aspect-ratio: 16 / 9; }
.trajectory-gallery .media-surface { height: clamp(15rem, 80vw, 29rem); }
.gallery-panel .media-surface img { position: absolute; inset: 0; width: 100%; height: 100%; padding: .65rem; object-fit: contain; }
.method-figure .media-surface { padding: 1rem; }
.benchmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1rem, 3.5vw, 2.2rem); }
.benchmark { border-block: 1px solid var(--line); }
.benchmark h3 {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .25rem .6rem; margin-block: 1rem .8rem; font-size: 1.35rem; letter-spacing: -.04em;
}
.benchmark h3 span { color: var(--muted); font-size: .82rem; font-weight: 480; letter-spacing: 0; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
th, td { padding: .58rem .72rem; text-align: right; }
thead th { color: var(--muted); font-size: .86rem; font-weight: 600; }
th:first-child { text-align: left; }
tbody th { font-weight: 550; }
td:last-child, thead th:last-child { background: var(--tint); color: var(--ink); font-weight: 690; }
tbody tr { border-top: 1px solid var(--line); }
th small { font-size: .78rem; color: var(--muted); font-weight: 450; }
.metrics-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); max-width: 52rem; }
.citation-heading { display: grid; align-items: center; }
.citation-heading > * { grid-area: 1 / 1; }
.citation-heading .copy-button { justify-self: end; }
.citation-section pre {
  margin: 1.12rem 0 0; border-radius: .55rem; padding: 1.25rem clamp(.85rem, 3vw, 1.6rem);
  background: var(--tint); border: 1px solid var(--line); color: var(--body);
  white-space: pre; overflow-x: auto; overscroll-behavior-x: contain;
  font: .87rem/1.62 ui-monospace, monospace;
}
@media (pointer: fine) {
  .citation-section pre::-webkit-scrollbar { height: .75rem; }
  .citation-section pre::-webkit-scrollbar-thumb {
    background: var(--muted); border: 2px solid var(--tint); border-radius: .5rem;
  }
}
.copy-status:not(:empty) { margin-top: .45rem; font-size: .9rem; color: var(--accent); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; }
.footer .brand { font-size: 1rem; }
.footer .brand-mark { transform: scale(.82) skewX(-18deg); transform-origin: left; margin-right: -.3rem; }

dialog {
  max-width: min(92rem, 96vw); max-height: 92dvh; padding: 0;
  border: 1px solid var(--line); border-radius: .65rem; background: white; color: var(--ink);
  box-shadow: 0 12px 70px rgb(0 0 0 / .16);
}
dialog::backdrop { background: rgb(250 250 250 / .88); }
.dialog-bar, .dialog-foot { padding: .6rem 1rem; background: white; }
.dialog-bar { border-bottom: 1px solid var(--line); font-size: .95rem; }
.dialog-foot { justify-content: flex-end; border-top: 1px solid var(--line); }
.close-dialog { min-height: 2.15rem; padding: .2rem .7rem; }
.dialog-image { padding: .5rem; }
.dialog-image img { margin: auto; max-height: 68dvh; object-fit: contain; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2.1rem); }
  .nav-inner { min-height: 3.35rem; }
  .benchmark-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .method-figure .media-surface { padding: .35rem; }
}
@container (max-width: 32rem) {
  .resource-links { display: grid; grid-template-columns: repeat(2, max-content); gap: .38rem; }
  .button { padding-inline: .77rem; }
}
@media (max-width: 30rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .nav-inner { gap: .5rem; }
  .brand { font-size: 1.08rem; gap: .36rem; }
  .nav-links { gap: .65rem; }
  .nav-links a { font-size: .82rem; }
  .authors { gap: .16rem .75rem; font-size: 1rem; }
  .affiliations { display: grid; gap: .1rem; font-size: .83rem; }
  .projection-gallery video { aspect-ratio: 3 / 1; }
  .gallery-tabs { gap: .15rem; }
  .gallery-tabs button { padding: .3rem .38rem; font-size: .86rem; }
  .gallery-panel .media-surface img { padding: .35rem; }
  figcaption { display: block; }
  figcaption .media-note, figcaption .enlarge-link { display: inline-block; margin-top: .4rem; }
  .footer { align-items: flex-start; }
}
@media (max-width: 23rem) {
  .citation-heading { grid-template-columns: 1fr auto; gap: .5rem; }
  .citation-heading > * { grid-area: auto; }
  .citation-heading h2 { text-align: left; }
  .nav-links { gap: .45rem; }
  .brand-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
