:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202a33;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202a33;
  --text: #35434f;
  --accent: #37678e;
  --line: #dce3e9;
  --tint: #f5f7f9;
  scroll-behavior: smooth;
  --gutter: clamp(.75rem, 4%, 6rem);
  --page-width: calc(100% - var(--gutter) - var(--gutter));
  --stage-width: min(var(--page-width), 148.75rem, max(64rem, 225svh));
  --header-height: clamp(3.5rem, 3.75vw, 5.875rem);
  scroll-padding-top: calc(var(--header-height) + 1rem);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; }
button, select { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #6698c1; outline-offset: 5px; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h2 { font-size: 36px; font-weight: 600; line-height: 1.25; letter-spacing: -1px; }
h3 { font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.4px; }
p { line-height: 1.8; }
sup { font-size: .66em; line-height: 0; vertical-align: super; }
sub { font-size: .65em; }
.container { width: min(var(--page-width), clamp(70rem, 68vw, 101.25rem)); margin-inline: auto; }
.narrow { max-width: 940px; }
.section { padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.band { background: var(--tint); border-block: 1px solid #e9edf1; }
.section-heading { margin-bottom: 32px; }
.section-heading p { color: var(--text); font-size: 18px; margin-top: 13px; max-width: 850px; }
.centered { text-align: center; }
.centered > p { margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; background: #fff; padding: 15px; z-index: 100; }
.skip-link:focus { top: 8px; }
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 20; background: #fffffff2; border-bottom: 1px solid #e4e9ed; backdrop-filter: blur(16px); }
.nav-inner { position: relative; width: var(--stage-width); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; column-gap: clamp(1rem, 1.55vw, 2.5rem); }
.wordmark { display: inline-flex; flex: none; align-items: center; font-size: clamp(1.125rem, 1.17vw, 1.875rem); letter-spacing: -.035em; font-weight: 700; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.wordmark svg { width: 1.35em; height: 1.35em; stroke: var(--accent); stroke-width: 1.6; fill: none; margin-right: .4em; }
#project-nav { display: flex; align-items: center; column-gap: clamp(.875rem, 1.4vw, 2.75rem); }
#project-nav a { position: relative; flex: none; font-size: clamp(.875rem, .86vw, 1.375rem); color: #293b49; padding-block: .8em; white-space: nowrap; }
#project-nav a:hover, #project-nav a[aria-current="location"] { color: var(--accent); }
#project-nav a[aria-current="location"]::after { content: ''; position: absolute; bottom: .3em; inset-inline: 0; height: 2px; background: var(--accent); }
.menu-toggle { display: none; min-height: 44px; padding: .45rem .25rem; background: transparent; }
.nav-inner.is-compact .menu-toggle { display: block; }
.nav-inner.is-compact #project-nav {
  position: absolute;
  inset: 100% 0 auto auto;
  width: min(100%, 30rem);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-wrap: wrap;
  row-gap: .125rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 .5rem .5rem;
  background: #fff;
  visibility: hidden;
}
.nav-inner.is-compact #project-nav.is-open { visibility: visible; }

.project-hero { background: #0b121a; color: #f5f8fa; }
.hero-layout {
  width: var(--stage-width);
  margin-inline: auto;
  padding-block: clamp(1.25rem, 3.5vmin, 5.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vmin, 3rem) 2.5%;
  container: hero / inline-size;
}
.hero-copy { flex: 7 1 23rem; min-width: 0; }
.hero-media { flex: 12 1 35rem; min-width: 0; }
.hero-backdrop { position: relative; aspect-ratio: 20 / 13; container-type: inline-size; }
.hero-backdrop video { width: 100%; height: 100%; object-fit: contain; }
/* The reel has two 608 × 342 panels per row on a 1280 × 832 canvas.
   Place the captions in the reserved bands above each moving image. */
.task-grid-labels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 5%;
  grid-template-rows: 44fr 402fr 44fr 342fr;
  align-items: center;
  pointer-events: none;
}
.task-grid-labels span {
  font-size: clamp(.625rem, 1.8cqi, 1.5rem);
  line-height: 1;
  font-weight: 600;
  color: #e6edf3;
}
.task-grid-labels span:nth-child(n + 3) { grid-row: 3; }
.project-hero h1 { font-size: clamp(2.65rem, 1.55rem + 4cqi, 7.5rem); line-height: 1; font-weight: 650; letter-spacing: -.055em; }
.project-hero h1 span { color: #96c9ed; }
.paper-subtitle { margin: .48em 0 .8em; font-size: clamp(1.19rem, .8rem + 1.25cqi, 2.5rem); line-height: 1.26; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.paper-subtitle span { display: inline-block; max-width: 100%; }
.authors { display: flex; flex-wrap: wrap; gap: .2em .8em; font-size: clamp(.875rem, .67rem + .51cqi, 1.44rem); line-height: 1.55; }
.authors span { white-space: nowrap; }
.authors sup { color: #abd1ee; margin-left: 2px; }
.affiliations { margin-top: 1em; color: #d6dfe7; font-size: clamp(.78rem, .6rem + .44cqi, 1.25rem); line-height: 1.55; }
.affiliation-row { display: flex; flex-wrap: wrap; gap: .15em 1em; }
.affiliation-row + .affiliation-row { margin-top: .15em; }
.affiliations sup { color: #abd1ee; }
.author-notes { font-size: clamp(.73rem, .55rem + .36cqi, 1.06rem); line-height: 1.5; color: #b8c8d6; margin-top: .65em; }
.author-notes span { display: inline-block; margin-left: .65em; }
.project-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.65fr);
  gap: .5rem;
  width: 100%;
  max-width: 34em;
  margin-top: 1.5rem;
  font-size: clamp(.875rem, .64rem + .48cqi, 1.25rem);
}
.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-width: 0;
  min-height: 2.5rem;
  padding: .55em .6em;
  border: 1px solid #40596e;
  border-radius: 8px;
  background: #162635;
  color: #e1edf6;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.resource-link :is(svg, img) { width: 1.15em; height: 1.15em; flex-shrink: 0; object-fit: contain; }
.resource-link img { filter: brightness(0) invert(1); opacity: .9; }
a.resource-link:hover { border-color: #8db8d8; background: #223c50; }
.resource-pending { color: #a8bac9; }
.soon { font-size: .8em; margin-left: .25em; }
@container hero (max-width: 59.5rem) {
  .hero-copy { text-align: center; }
  .affiliation-row { justify-content: center; }
  .project-links { margin-inline: auto; }
  .authors { display: block; text-wrap: balance; }
  .authors span { display: inline-block; margin: .08em .22em; }
}
@container hero (max-width: 36rem) {
  .project-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 23rem; }
}

.hero-playback { width: fit-content; margin: .6em 0 0 auto; display: flex; gap: 12px; align-items: center; color: white; font-size: clamp(.8125rem, .61rem + .48cqi, 1.25rem); background: #101921ed; border: 1px solid #50606e; border-radius: 24px; padding: 1px 4px 1px 14px; }
.hero-playback a:hover { text-decoration: underline; }
.reel-speed { color: #c2d2df; font-variant-numeric: tabular-nums; }
#toggle-backdrop { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: transparent; color: #fff; }
#toggle-backdrop:hover { background: #314356; }
#toggle-backdrop svg { width: 17px; height: 17px; fill: currentColor; }
#toggle-backdrop .pause-icon, #toggle-backdrop.is-playing .play-icon { display: none; }
#toggle-backdrop.is-playing .pause-icon { display: block; }
.overview { padding-block: clamp(2.125rem, 3vw, 5.625rem) clamp(2.25rem, 5vw, 4.5rem); }
#overview-title { font-size: clamp(2rem, 1.25rem + 1.25vw, 3.5rem); }
.overview .section-heading p { font-size: clamp(1.0625rem, .9rem + .45vw, 1.5625rem); max-width: 48em; }
.paper-figure { background: #fff; padding: clamp(.5rem, 2vw, 1.375rem); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zoom-figure { display: block; background: #fff; width: 100%; padding: 0; cursor: zoom-in; }
.zoom-figure img { width: 100%; height: auto; object-fit: contain; }
figcaption { font-size: 16px; color: var(--text); line-height: 1.75; text-align: center; margin-top: 15px; }
.subsection-title { margin: clamp(1.5rem, 3vw, 2.25rem) 0 1.375rem; }
.carousel { outline-offset: 8px; }
.carousel:not([data-carousel^="rollout-"]) { container: gallery / inline-size; }
.carousel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 56px 17px; }
.carousel-heading h3 { font-size: 20px; font-weight: 500; }
.slide-count { font-size: 16px; color: #2f4556; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carousel-stage { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 16px; align-items: center; }
.carousel-arrow { height: 44px; width: 40px; border: 1px solid #bdcbd6; border-radius: 7px; display: grid; place-items: center; background: #fff; color: #305e80; align-self: center; margin-bottom: 42px; transition: background .15s, border-color .15s; }
.carousel-arrow svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:hover { background: #eaf1f7; border-color: #769ab8; }
.carousel-arrow:disabled { opacity: .4; cursor: default; }
/* Give a narrow gallery the whole row for the footage, with navigation underneath. */
@container gallery (max-width: 32rem) {
  .carousel-heading { margin: 0 0 .75rem; gap: .75rem; }
  .carousel-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .video-figure { grid-area: 1 / 1 / 2 / -1; }
  .carousel-arrow { grid-row: 2; width: 2.75rem; margin: 0; }
  .carousel-arrow:last-child { justify-self: end; }
}
.video-shell { border: 1px solid var(--line); border-radius: 9px; background: #edf1f4; overflow: hidden; position: relative; }
.video-shell video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #edf1f4; }
.video-shell:has(video[data-failed])::after { content: 'Video unavailable. Please try another example.'; position: absolute; inset: 0; display: grid; place-items: center; background: #edf1f4; color: var(--ink); font-size: 16px; padding: 16px; pointer-events: none; }
.autoplay-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 20px; background: #fff; border: 1px solid #b8cbd9; border-radius: 7px; font-size: 16px; color: #294a64; }
[hidden] { display: none !important; }
.abstract-section { padding-block: clamp(2rem, 5vw, 3.625rem); }
.abstract-section h2 { margin-bottom: 22px; }
.abstract-section p { font-size: 18px; line-height: 1.95; color: #2e3c47; }
.abstract-section strong { color: #243c4f; font-weight: 600; }
.method-steps {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.method-steps article { border-top: 1px solid #b4c9d9; padding: 22px 0; }
.method-steps h3 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; }
.method-steps p { font-size: 17px; color: #2f3d48; line-height: 1.85; }
#reconstruction { padding-top: 0; }
.reconstruction-layout { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.125rem, 3.5vw, 2.625rem); }
.reconstruction-layout > figure { flex: 3 1 25.5rem; min-width: 0; }
.reconstruction-copy { flex: 2 1 17rem; min-width: 0; }
.reconstruction-layout .paper-figure { border: 0; padding: 0; }
.asset-frame { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.asset-frame > video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.asset-controls { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: .65rem .25rem .375rem; }
.asset-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; padding: 3px; border: 1px solid #bdcbd6; border-radius: .65rem; background: var(--tint); }
.asset-slide { min-height: 44px; padding: .35rem clamp(.4rem, 1vw, 1rem); border-radius: .4rem; background: transparent; color: var(--text); font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.asset-slide:hover, .asset-toggle:hover { background: #e5edf3; }
.asset-slide[aria-pressed="true"] { background: var(--accent); color: #fff; }
.asset-options button:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.asset-toggle { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; border: 1px solid #bdcbd6; border-radius: .5rem; background: #fff; color: var(--accent); }
.asset-toggle .play-icon, .asset-toggle.is-paused .pause-icon { display: none; }
.asset-toggle.is-paused .play-icon { display: inline; }
.reconstruction-copy h3 { font-size: 24px; }
.reconstruction-copy > p { font-size: 17px; color: var(--text); margin-top: 16px; }
.reconstruction-copy dl { margin: 23px 0 0; }
.reconstruction-copy dl div { border-top: 1px solid var(--line); padding: 15px 0; }
.reconstruction-copy dt { font-size: 17px; font-weight: 600; }
.reconstruction-copy dd { font-size: 16px; color: var(--text); margin: 6px 0 0; line-height: 1.7; }
.heading-with-stat { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.heading-with-stat > :first-child { flex: 1 1 24rem; min-width: 0; }
.inline-stat { min-width: 0; display: flex; flex-direction: column; }
.inline-stat strong { font-size: 52px; color: var(--accent); font-weight: 500; letter-spacing: -2px; line-height: 1.2; }
.inline-stat strong span { font-size: 29px; }
.inline-stat > span { font-size: 16px; color: var(--text); margin-top: 8px; }
.generation-figure { max-width: 960px; margin: auto; }
.transfer-evaluation + .transfer-evaluation { margin-top: 52px; padding-top: 38px; border-top: 1px solid var(--line); }
.evaluation-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.evaluation-heading p { font-size: 17px; color: var(--text); margin-top: 10px; max-width: 700px; }
.evaluation-stat { max-width: 100%; }
.evaluation-stat strong { display: block; font-size: 25px; font-weight: 500; color: var(--accent); line-height: 1.4; }
.evaluation-stat span { display: block; font-size: 15px; color: var(--text); margin-top: 7px; }
.evaluation-note, .rollout-note { font-size: 16px; color: var(--text); margin-top: 22px; line-height: 1.75; }
.gallery-intro { font-size: 17px; color: var(--text); margin-bottom: 24px; }
.generated-gallery { margin-top: 42px; }
.generated-gallery .video-shell video { aspect-ratio: 5 / 1; }
.rollout-gallery { margin-top: 48px; }
.rollout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(24rem, 40%)), 1fr));
  gap: 2.25rem clamp(1rem, 2.5vw, 2rem);
}
.task-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.task-heading h3 { font-size: 22px; }
.task-heading > span { font-size: 16px; color: var(--text); white-space: nowrap; }
.task-rollouts .carousel-heading { margin-inline: 0; }
.task-rollouts .carousel-heading h3 { font-size: 18px; }
.task-rollouts .carousel-stage { display: block; position: relative; }
.task-rollouts .carousel-arrow { position: absolute; z-index: 2; top: 42%; margin: 0; width: 34px; height: 40px; background: #ffffffed; }
.task-rollouts .carousel-arrow:first-child { left: 8px; }
.task-rollouts .carousel-arrow:last-child { right: 8px; }
.task-rollouts .carousel-arrow:disabled { visibility: hidden; }
.task-rollouts .video-shell { aspect-ratio: 16 / 9; background: #17212a; }
.task-rollouts .video-shell video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #17212a; }
.task-rollouts figcaption { text-align: left; min-height: 3.5em; }
.task-rollouts .carousel-arrow { top: calc((100cqw * 9 / 16) / 2); transform: translateY(-50%); }
.task-rollouts .carousel-stage { container-type: inline-size; }
.citation-section { padding: 54px 0; }
.citation-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  max-width: 100%;
  margin-top: 23px;
  padding: clamp(.875rem, 2vw, 1.5rem);
  border: 1px solid #ccd9e2;
  border-radius: 8px;
  background: #fff;
  color: #273c4c;
}
.citation-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .75rem; }
.copy-status { font-size: .875rem; }
#copy-citation { min-height: 44px; padding: .45rem .85rem; border: 1px solid #bdcbd6; border-radius: 6px; background: var(--tint); color: var(--accent); font-weight: 600; }
#copy-citation:hover { background: #e5edf3; }
.paper-citation {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  font: .9375rem/1.6 ui-monospace, monospace;
}
.paper-citation code { display: block; max-width: 100%; white-space: break-spaces; overflow-wrap: anywhere; font: inherit; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; }
footer > a:last-child { font-size: 16px; color: var(--text); }
footer .wordmark { font-size: 18px; }
#figure-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-width: min(1500px, 96vw); max-height: 94dvh; overflow: auto; width: max-content; background: #fff; }
#figure-dialog::backdrop { background: #14212dbd; backdrop-filter: blur(6px); }
#figure-dialog img { max-width: 100%; max-height: 77vh; object-fit: contain; margin: auto; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 17px; }
.dialog-toolbar p { flex: 1 1 18rem; min-width: 0; font-size: 16px; color: var(--text); }
.dialog-toolbar button { background: var(--tint); border: 1px solid var(--line); padding: 9px 13px; white-space: nowrap; border-radius: 6px; font-size: 16px; }
.dialog-toolbar button span { margin-left: 8px; font-size: 19px; }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
