:root {
  --paper: #f3f0e9;
  --paper-strong: #e8e3d9;
  --ink: #17201d;
  --muted: #65716c;
  --line: #c9cec8;
  --night: #101311;
  --night-soft: #18201d;
  --mint: #9ad8ca;
  --cyan: #62c7cc;
  --acid: #dbe986;
  --coral: #ee7659;
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

body,
button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
video {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
}

.section-shell,
.overview-inner,
.teaser-figure,
.citation-inner {
  width: min(1280px, calc(100% - 80px));
  margin: 0 auto;
}

.hero {
  position: relative;
  height: 92svh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-reel {
  position: absolute;
  inset: 10px auto 10px 0;
  display: flex;
  width: max-content;
  gap: 10px;
  animation: hero-scroll 48s linear infinite;
  will-change: transform;
  pointer-events: none;
}

.hero-reel-set {
  display: grid;
  flex: none;
  width: 122vw;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-reel-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #29312e;
}

.hero-reel-card video,
.hero-reel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.015);
}

.hero-reel-card figcaption {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  background: rgba(8, 12, 10, 0.74);
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7, 11, 9, 0.67);
}

.hero-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(1520px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  padding: 26px 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.wordmark {
  color: #fff;
  font-size: 16px;
  font-weight: 820;
}

.topbar-links {
  display: flex;
  gap: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  color: var(--acid);
}

.hero-heading {
  width: min(1120px, 84%);
  margin-top: auto;
  padding-bottom: 28px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 15px;
  color: #257e75;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-kicker,
.eyebrow-bright {
  color: var(--acid);
}

.hero h1 {
  margin: 0;
  font-size: 88px;
  font-weight: 780;
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 1040px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.17;
}

.hero-authors {
  max-width: 1100px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.hero-authors sup,
.hero-affiliations sup,
.citation-authors sup,
.citation-affiliations sup {
  margin-left: 1px;
  color: var(--acid);
  font-size: 0.72em;
  line-height: 0;
}

.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: 1100px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.hero-actions,
.citation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button,
.citation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--night);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #fff;
  background: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--mint);
  background: rgba(154, 216, 202, 0.16);
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 10, 0.76);
}

.hero-facts p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 17px 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-facts p + p {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-facts strong {
  color: var(--acid);
}

.section-light {
  background: var(--paper);
}

.overview {
  padding: 118px 0 126px;
}

.overview-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  align-items: start;
}

.section-heading h2,
.compact-heading h2,
.method-heading h2,
.demo-heading h2,
.results-heading h2,
.ablation h2,
.citation-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.overview-heading h2 {
  max-width: 520px;
  font-size: 67px;
  line-height: 1;
}

.overview-copy {
  padding-top: 28px;
}

.overview-copy p {
  margin: 0;
  color: #53605a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.62;
}

.overview-copy p + p {
  margin-top: 22px;
}

.overview-copy strong {
  color: var(--ink);
}

.media-figure {
  margin: 0;
  text-align: center;
}

.media-figure img {
  display: block;
  width: 100%;
  margin-inline: auto;
  object-position: center center;
}

.media-figure figcaption,
.comparison-figure figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.overview-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1440px, calc(100% - 40px));
  margin: 76px auto 0;
}

.overview-video {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--night);
}

.overview-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  cursor: pointer;
}

.overview-video > div {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(9, 13, 11, 0.92));
  color: #fff;
  pointer-events: none;
}

.overview-video span,
.ablation-video span {
  color: var(--acid);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.overview-video h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.workflow-figure {
  width: min(1280px, calc(100% - 80px));
  margin: 72px auto 0;
  border: 1px solid #bcc6bf;
  border-radius: 4px;
  background: #e7ece7;
  text-align: center;
}

.workflow-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.workflow-figure figcaption {
  margin: 0;
  padding: 14px 24px 16px;
  border-top: 1px solid #c2cbc5;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workflow-panel {
  fill: #f8faf7;
  stroke: #b6c2bb;
}

.workflow-index {
  fill: #257e75;
  font-size: 11px;
  font-weight: 850;
}

.workflow-heading {
  fill: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.workflow-note,
.workflow-input text,
.workflow-occluder text,
.workflow-legend text {
  fill: #627069;
  font-size: 10px;
  font-weight: 750;
}

.workflow-input rect {
  fill: #dbe5df;
  stroke: #7c8d84;
}

.workflow-input circle,
.workflow-input path,
.workflow-canonical circle,
.workflow-canonical > path:not(.workflow-axis) {
  fill: var(--coral);
  stroke: var(--coral);
}

.workflow-input-dynamic rect {
  fill: #d4ddd7;
}

.workflow-canonical rect {
  fill: #fff;
  stroke: #6d8076;
  stroke-width: 2;
}

.workflow-axis {
  fill: none;
  stroke: #b6c2bb;
  stroke-dasharray: 3 4;
}

.workflow-flow,
.workflow-bridge,
.workflow-arrow {
  fill: none;
  stroke: #4b9d92;
  stroke-width: 2;
}

.workflow-flow,
.workflow-trajectory {
  stroke-dasharray: 7 7;
  animation: workflow-dash 1.3s linear infinite;
}

.workflow-grid {
  fill: none;
  stroke: #dce3de;
  stroke-width: 1;
}

.workflow-trajectory {
  fill: none;
  stroke: #2c8f85;
  stroke-width: 3;
}

.workflow-token circle:first-child {
  fill: var(--acid);
  stroke: #35423c;
  stroke-width: 2;
}

.workflow-token circle:not(:first-child),
.workflow-token path {
  fill: var(--coral);
}

.workflow-occluder rect {
  fill: #31403a;
}

.workflow-occluder path {
  stroke: rgba(255, 255, 255, 0.18);
}

.workflow-sky {
  fill: #b8dbd7;
}

.workflow-ground {
  fill: #6d8b7b;
}

.workflow-sun {
  fill: var(--acid);
}

.workflow-output-subject circle,
.workflow-output-subject path {
  fill: var(--coral);
}

.workflow-output-subject ellipse {
  fill: rgba(18, 29, 24, 0.32);
}

.workflow-output-frame {
  fill: none;
  stroke: #42534b;
  stroke-width: 2;
}

.workflow-scan {
  fill: rgba(255, 255, 255, 0.72);
}

.workflow-legend circle {
  fill: var(--coral);
}

.workflow-legend path {
  stroke: #2c8f85;
  stroke-width: 3;
  stroke-dasharray: 7 6;
}

.workflow-legend rect {
  fill: #6d8b7b;
}

.contributions {
  padding: 98px 0 104px;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.compact-heading {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  align-items: end;
  gap: 40px;
}

.compact-heading .eyebrow {
  margin: 0 0 5px;
}

.compact-heading h2 {
  font-size: 49px;
  line-height: 1.07;
}

.contribution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid #aeb8b1;
}

.contribution-list article {
  min-width: 0;
  padding: 28px 34px 0 0;
}

.contribution-list article + article {
  padding-left: 34px;
  border-left: 1px solid #aeb8b1;
}

.contribution-list span {
  color: #25877e;
  font-size: 12px;
  font-weight: 850;
}

.contribution-list h3 {
  margin: 42px 0 14px;
  font-size: 21px;
  line-height: 1.18;
}

.contribution-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.section-dark {
  background: var(--night);
  color: #fff;
}

.method {
  padding: 108px 0 104px;
}

.method-heading,
.demo-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 80px;
}

.method-heading h2,
.demo-heading h2,
.results-heading h2 {
  font-size: 58px;
  line-height: 1.03;
}

.method-heading > p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
  line-height: 1.55;
}

.method-figure {
  margin-top: 54px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f7f8f4;
}

.method-figure figcaption {
  margin-top: 18px;
  color: #68736e;
}

.method-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.method-stages p {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px 28px 0 0;
}

.method-stages p + p {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.method-stages strong {
  color: var(--acid);
  font-size: 12px;
  text-transform: uppercase;
}

.method-stages span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.demos {
  padding: 112px 0 120px;
  background: #edf2ee;
}

.demo-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border: 1px solid #b9c4bd;
  border-radius: 5px;
  background: #dfe6e1;
}

.demo-tab {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #50605a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.demo-tab:hover,
.demo-tab:focus-visible {
  color: var(--ink);
}

.demo-tab.is-active {
  background: var(--night);
  color: #fff;
}

.demo-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.demo-panel[hidden] {
  display: none;
}

.demo-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c2cbc5;
  border-radius: 4px;
  background: #0f1412;
  color: #fff;
}

.demo-item-wide {
  grid-row: span 2;
}

.demo-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.demo-item-wide video {
  height: 100%;
  min-height: 520px;
  aspect-ratio: auto;
}

.demo-item > div {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(9, 13, 11, 0.94));
  pointer-events: none;
}

.demo-item span {
  color: var(--acid);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-item h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.18;
}

.demo-item-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: stretch;
  min-height: 520px;
}

.demo-item-feature video {
  height: 100%;
  aspect-ratio: auto;
}

.demo-item-feature > div {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 40px;
  background: var(--night-soft);
}

.demo-item-feature h3 {
  font-size: 31px;
}

.demo-item-feature p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.composition-case {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px;
  border: 1px solid #c2cbc5;
  border-radius: 4px;
  background: #e4eae5;
}

.composition-case > header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 2px 2px 16px;
}

.composition-case > header span {
  color: #257e75;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.composition-case > header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.composition-strip {
  display: grid;
  gap: 8px;
}

.composition-strip-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.composition-strip-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.composition-strip article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bdc7c0;
  background: #fff;
}

.composition-strip article.is-output {
  border-color: #6f9f96;
}

.composition-strip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.composition-strip p {
  margin: 0;
  padding: 10px 8px;
  color: #59665f;
  font-size: 9px;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
}

.composition-strip .is-input p {
  background: #d9e0db;
}

.composition-strip .is-output p {
  background: #e6f0eb;
  color: #246b62;
}

.transfer-case {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #c2cbc5;
  border-radius: 4px;
  background: #e4eae5;
}

.transfer-case header {
  grid-column: 1 / -1;
  min-height: 72px;
}

.transfer-case header span {
  color: #257e75;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.transfer-case h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.transfer-case article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bbc5be;
  background: #fff;
}

.transfer-case article.is-ours {
  border-color: #438f84;
}

.transfer-case video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.transfer-case article p {
  margin: 0;
  padding: 10px 8px;
  color: #56635d;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.transfer-case article.is-ours p {
  background: #d7ebe4;
  color: #175f57;
}

.more-results {
  margin-top: 88px;
  padding-top: 62px;
  border-top: 1px solid #b9c4bd;
}

.more-results > header {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  align-items: end;
  gap: 24px;
}

.more-results .eyebrow {
  margin-bottom: 5px;
}

.more-results h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 400;
}

.result-video-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.result-video-wall article {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bbc5be;
  border-radius: 3px;
  background: var(--night);
}

.result-video-wall video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.result-video-wall span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  background: rgba(9, 13, 11, 0.78);
  color: var(--acid);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  pointer-events: none;
}

.results {
  padding: 110px 0 116px;
}

.results-heading {
  max-width: 860px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.metric-grid article {
  min-width: 0;
  padding: 38px 26px 38px 0;
}

.metric-grid article + article {
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.metric-grid strong {
  display: block;
  color: var(--mint);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
}

.metric-grid span {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.5;
}

.comparison-stack {
  margin-top: 86px;
}

.comparison-section {
  margin: 0;
}

.comparison-section + .comparison-section {
  margin-top: 84px;
  padding-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.comparison-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.comparison-title span {
  padding-bottom: 5px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 850;
}

.comparison-title h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 400;
}

.comparison-title p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.comparison-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-cases-static {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-case {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #17201d;
}

.comparison-case > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 2px 2px 12px;
}

.comparison-case > header strong {
  color: var(--acid);
  font-size: 11px;
  text-transform: uppercase;
}

.comparison-case > header span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  text-align: right;
}

.comparison-video-grid,
.comparison-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.comparison-video-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-input-grid {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.comparison-video-grid figure,
.comparison-input-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0f0d;
}

.comparison-video-grid figure.is-ours {
  border-color: var(--mint);
}

.comparison-video-grid video,
.comparison-input-grid video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.comparison-video-grid figcaption,
.comparison-input-grid figcaption {
  min-height: 34px;
  padding: 10px 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.comparison-input-grid figcaption {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.46);
}

.comparison-video-grid .is-ours figcaption {
  background: rgba(154, 216, 202, 0.13);
  color: var(--mint);
}

.ablation {
  padding: 112px 0 116px;
}

.ablation-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 70px;
}

.ablation h2 {
  font-size: 54px;
  line-height: 1.05;
}

.ablation-intro > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.ablation-suite {
  margin-top: 62px;
}

.ablation-group + .ablation-group {
  margin-top: 68px;
  padding-top: 58px;
  border-top: 1px solid #b7c0ba;
}

.ablation-group > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.ablation-group > header span {
  color: #257e75;
  font-size: 11px;
  font-weight: 850;
}

.ablation-group > header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.ablation-group > header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.ablation-video-grid {
  display: grid;
  gap: 12px;
}

.ablation-video-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ablation-video-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ablation-video {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.ablation-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  cursor: pointer;
}

.ablation-video > div {
  min-height: 100px;
  padding: 18px;
}

.ablation-video p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.ablation-video-full {
  border-color: #6f9f96;
}

.challenge {
  padding: 108px 0 116px;
}

.challenge-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 80px;
}

.challenge-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.04;
}

.challenge-heading > p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.65;
}

.challenge-case {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 54px;
}

.challenge-inputs,
.challenge-results {
  display: contents;
}

.challenge-case figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #080b0a;
}

.challenge-case figure.is-ours {
  border-color: var(--mint);
}

.challenge-case video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
}

.challenge-case figcaption {
  min-height: 38px;
  padding: 12px 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
}

.challenge-inputs figcaption {
  background: rgba(255, 255, 255, 0.07);
}

.challenge-case .is-ours figcaption {
  background: rgba(154, 216, 202, 0.13);
  color: var(--mint);
}

.citation {
  padding: 104px 0 112px;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.citation-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 9vw;
}

.citation-title h2 {
  font-size: 68px;
  line-height: 1;
}

.citation-paper-title {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.48;
}

.citation-authors {
  max-width: 520px;
  margin: 20px 0 0;
  color: #34413b;
  font-size: 14px;
  line-height: 1.58;
}

.citation-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.citation-affiliations sup {
  color: #257e75;
}

.citation-venue {
  margin: 17px 0 0;
  color: #257e75;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.citation-button {
  min-height: 46px;
  border-color: #87938c;
}

.citation-button:hover,
.citation-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.bibtex {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b8c0bb;
  border-radius: 4px;
  background: #dfe5e0;
}

.bibtex-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #b8c0bb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.bibtex-toolbar button {
  min-width: 74px;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.bibtex pre {
  margin: 0;
  padding: 34px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #2f3b36;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@keyframes hero-scroll {
  to { transform: translateX(calc(-50% - 5px)); }
}

@keyframes workflow-dash {
  to { stroke-dashoffset: -28; }
}

@media (max-width: 1040px) {
  .section-shell,
  .overview-inner,
  .teaser-figure,
  .workflow-figure,
  .citation-inner {
    width: calc(100% - 56px);
  }

  .hero-reel-set {
    width: 170vw;
  }

  .hero-heading {
    width: 94%;
  }

  .hero h1 {
    font-size: 66px;
  }

  .hero-subtitle {
    font-size: 25px;
  }

  .overview-inner,
  .citation-inner,
  .ablation-intro,
  .challenge-heading {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .overview-copy {
    padding-top: 0;
  }

  .compact-heading,
  .method-heading,
  .demo-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .demo-tabs {
    justify-content: flex-start;
    width: fit-content;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .metric-grid article:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

  .demo-item-feature {
    grid-template-columns: 1fr;
  }

  .demo-item-feature video {
    min-height: 420px;
  }

  .result-video-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-cases {
    grid-template-columns: 1fr;
  }

  .composition-strip-five,
  .ablation-video-grid-five,
  .challenge-case {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .section-shell,
  .overview-inner,
  .teaser-figure,
  .citation-inner {
    width: calc(100% - 32px);
  }

  .workflow-figure {
    width: calc(100% - 32px);
    overflow-x: auto;
    text-align: left;
  }

  .workflow-svg {
    width: 820px;
    max-width: none;
  }

  .workflow-figure figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 34px);
    text-align: left;
  }

  .hero {
    height: max(100svh, 740px);
    min-height: 740px;
  }

  .hero-reel {
    inset: 6px auto 6px 0;
    gap: 6px;
  }

  .hero-reel-set {
    width: 265vw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-stage {
    width: calc(100% - 28px);
    padding: 15px 0 14px;
  }

  .topbar-links {
    gap: 16px;
    font-size: 9px;
  }

  .hero-heading {
    width: 100%;
    padding-bottom: 16px;
  }

  .hero-kicker {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-subtitle {
    max-width: 520px;
    margin-top: 10px;
    font-size: 19px;
    line-height: 1.18;
  }

  .hero-authors {
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.4;
  }

  .hero-affiliations {
    gap: 2px 9px;
    margin-top: 5px;
    font-size: 8.5px;
    line-height: 1.4;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .button {
    min-height: 37px;
    padding: 0 12px;
    font-size: 9px;
  }

  .hero-facts p {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 8px 0 0;
    font-size: 8px;
  }

  .hero-facts p + p {
    padding-left: 10px;
  }

  .overview,
  .method,
  .demos,
  .results,
  .ablation,
  .challenge,
  .citation {
    padding: 76px 0 80px;
  }

  .contributions {
    padding: 72px 0 76px;
  }

  .overview-heading h2,
  .method-heading h2,
  .demo-heading h2,
  .results-heading h2,
  .ablation h2,
  .challenge-heading h2,
  .citation-title h2 {
    font-size: 42px;
  }

  .overview-copy p {
    font-size: 19px;
    line-height: 1.55;
  }

  .overview-video-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: 48px;
  }

  .compact-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .compact-heading h2 {
    font-size: 37px;
  }

  .contribution-list {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .contribution-list article {
    padding: 24px 0 28px;
  }

  .contribution-list article + article {
    padding-left: 0;
    border-top: 1px solid #aeb8b1;
    border-left: 0;
  }

  .contribution-list h3 {
    margin-top: 20px;
  }

  .method-figure {
    margin-top: 38px;
    padding: 12px;
    overflow: hidden;
  }

  .method-figure img {
    width: 100%;
    min-width: 0;
  }

  .method-stages {
    grid-template-columns: 1fr;
  }

  .method-stages p {
    padding: 20px 0;
  }

  .method-stages p + p {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
  }

  .demo-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .demo-item-wide {
    grid-row: auto;
  }

  .demo-item-wide video,
  .demo-item video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .demo-item-feature {
    min-height: 0;
  }

  .demo-item-feature video {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .demo-item-feature > div {
    padding: 30px 22px;
  }

  .demo-item-feature h3 {
    font-size: 25px;
  }

  .composition-case {
    padding: 10px;
  }

  .composition-case > header {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-bottom: 14px;
  }

  .composition-case > header h3 {
    font-size: 19px;
  }

  .composition-strip-three,
  .composition-strip-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .composition-strip article.is-input {
    grid-column: 1 / -1;
  }

  .transfer-case {
    grid-column: 1;
    padding: 10px;
  }

  .transfer-case header {
    min-height: 64px;
  }

  .transfer-case h3 {
    font-size: 18px;
  }

  .transfer-case article p {
    padding-inline: 3px;
    font-size: 8px;
  }

  .more-results {
    margin-top: 64px;
    padding-top: 48px;
  }

  .more-results > header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .more-results h3 {
    font-size: 30px;
  }

  .result-video-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid article,
  .metric-grid article + article {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .metric-grid article:first-child {
    border-top: 0;
  }

  .metric-grid strong {
    font-size: 38px;
  }

  .comparison-stack {
    margin-top: 60px;
  }

  .comparison-title {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .comparison-title h3 {
    font-size: 28px;
  }

  .comparison-title p {
    grid-column: 2;
  }

  .comparison-case {
    padding: 8px;
  }

  .comparison-case > header {
    align-items: flex-start;
    min-height: 54px;
  }

  .comparison-case > header span {
    max-width: 62%;
  }

  .comparison-video-grid {
    gap: 5px;
  }

  .comparison-video-grid-three {
    grid-template-columns: 1fr;
  }

  .comparison-video-grid figcaption,
  .comparison-input-grid figcaption {
    min-height: 31px;
    padding: 9px 3px;
    font-size: 8px;
  }

  .ablation-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ablation-suite {
    margin-top: 46px;
  }

  .ablation-group > header {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .ablation-group > header h3 {
    font-size: 26px;
  }

  .ablation-group > header p {
    grid-column: 2;
  }

  .ablation-video-grid-five,
  .ablation-video-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ablation-video-grid-five .ablation-video-full {
    grid-column: 1 / -1;
  }

  .challenge-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .challenge-case {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .challenge-case .is-ours {
    grid-column: 1 / -1;
  }

  .citation-inner {
    gap: 42px;
  }

  .bibtex pre {
    padding: 22px 18px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-reel { animation: none; }
  .workflow-flow,
  .workflow-trajectory { animation: none; }
}
