:root {
  --black: #000;
  --panel: #080808;
  --panel-2: #0d0d0d;
  --white: #fff;
  --text: #d2d2d2;
  --muted: #9b9b9b;
  --line: #303030;
  --line-light: #555;
  --font: "Times New Roman", Times, serif;
  --container: min(1120px, calc(100% - 48px));
  --narrow: min(900px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  color: #000;
  background: #fff;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 9px 14px;
  color: #000;
  background: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container.narrow {
  width: var(--narrow);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  transition: background 180ms ease;
}

.topbar.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.brand-door {
  position: relative;
  display: block;
  width: 18px;
  height: 24px;
  border: 2px solid currentColor;
}

.brand-door::before {
  position: absolute;
  inset: 3px -1px 2px 4px;
  content: "";
  background: #fff;
  clip-path: polygon(0 0, 100% 9%, 100% 91%, 0 100%);
}

.brand-door::after {
  position: absolute;
  top: 10px;
  right: 1px;
  width: 3px;
  height: 3px;
  content: "";
  background: #000;
  border-radius: 50%;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav a {
  position: relative;
  padding: 7px 0;
}

.topnav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 102px 28px 72px;
  color: #fff;
  background: #000;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  top: 64px;
  bottom: auto;
  height: calc(100% - 64px);
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.9)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1380px, 100%);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.3rem, 9.2vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

.paper-title {
  max-width: 1000px;
  margin: 28px auto 22px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.75rem, 2.65vw, 2.6rem);
  line-height: 1.14;
}

.authors {
  display: flex;
  max-width: 1050px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 27px;
  margin: 23px auto 10px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.28rem;
  line-height: 1.35;
}

.authors sup,
.affiliations sup,
.author-note sup {
  font-size: 0.68em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.author-note {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.resource-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.resource-button {
  display: inline-flex;
  min-width: 190px;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  font-size: 1.14rem;
  font-weight: 700;
  text-shadow: none;
}

.resource-button small {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

.resource-button-outline {
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.65);
}

.resource-button.is-disabled {
  cursor: default;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tagline strong {
  color: #fff;
}

.hero-tagline span {
  color: rgba(255, 255, 255, 0.45);
}

.hero-stats {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(3, 1fr);
  margin: 27px auto 0;
  background: rgba(0, 0, 0, 0.33);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.hero-stats > div {
  position: relative;
  display: flex;
  min-height: 95px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.hero-stats > div + div::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.hero-stats strong {
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stats em {
  font-size: 0.55em;
  font-style: normal;
}

.hero-stats > div > span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue span {
  margin-left: 8px;
  font-size: 1rem;
}

.section {
  padding: 92px 0;
  background: #000;
  border-top: 1px solid #222;
}

.section-heading {
  display: grid;
  max-width: 1020px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 38px 70px;
  align-items: end;
  margin: 0 auto 43px;
}

.section-heading.compact {
  max-width: 970px;
}

.kicker {
  grid-column: 1 / -1;
  margin: 0 0 -25px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading > .kicker {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 4.5vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 1rem;
}

.media-card {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.media-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

.media-card figcaption strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-card-feature {
  width: min(960px, 100%);
  margin-inline: auto;
}

.abstract-block {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px 42px;
  margin: 52px auto 0;
  padding: 34px 0 4px;
  border-top: 1px solid var(--line-light);
}

.abstract-block .kicker {
  grid-column: auto;
  margin: 5px 0 0;
}

.abstract-block > p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.72;
  text-align: justify;
}

.pipeline-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  line-height: 0;
}

.pipeline-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.two-video-grid,
.door-video-grid {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-inline: auto;
}

.door-video-stack {
  display: grid;
  width: min(900px, 100%);
  gap: 30px;
  margin-inline: auto;
}

.door-video-stack > * {
  min-width: 0;
}

.door-video-stack .media-card-ultrawide video {
  aspect-ratio: 8 / 3;
}

.compare-card figcaption {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px 34px;
  align-items: start;
  padding: 18px 20px 20px;
}

.compare-card figcaption strong {
  line-height: 1.35;
}

.compare-card figcaption span {
  color: #b8b8b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.compare-card figcaption em {
  color: #fff;
  font-style: normal;
}

.quality-table-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 4px 0 10px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
}

.quality-table-card > figcaption {
  padding: 19px 22px 14px;
  color: #000;
  font-size: 1.16rem;
  font-weight: 700;
  text-align: center;
}

.quality-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0 22px 22px;
}

.quality-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #111;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
}

.quality-table th,
.quality-table td {
  padding: 10px 13px;
  border-right: 1px solid #b7b7b7;
  text-align: center;
  vertical-align: middle;
}

.quality-table th:last-child,
.quality-table td:last-child {
  border-right: 0;
}

.quality-table thead {
  border-top: 2px solid #111;
  border-bottom: 1.5px solid #111;
}

.quality-table thead tr:first-child th[colspan] {
  border-bottom: 1px solid #777;
}

.quality-table thead tr:first-child > th:last-child {
  border-left: 1.5px solid #777;
}

.quality-table tbody {
  border-bottom: 2px solid #111;
}

.quality-table tbody tr + tr {
  border-top: 1px solid #d1d1d1;
}

.quality-table tbody td:last-child {
  border-left: 1.5px solid #b7b7b7;
}

.quality-table th[scope="row"],
.quality-table thead th:first-child {
  text-align: center;
  white-space: nowrap;
}

.quality-table .ours-row {
  background: #ededed;
}

.quality-table .ours-row th {
  font-weight: 700;
}

.simulation-section {
  background: #030303;
}

.simulation-grid {
  width: min(930px, 100%);
}

.result-strip {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 75px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.result-strip > div {
  position: relative;
  display: flex;
  min-height: 145px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.result-strip > div + div::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.result-strip strong {
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.result-strip > div > span {
  max-width: 220px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.subheading {
  width: min(980px, 100%);
  margin: 0 auto 26px;
}

.subheading .kicker {
  margin: 0 0 7px;
}

.subheading h3 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.door-video-grid .media-card figcaption {
  justify-content: center;
}

.door-video-grid .media-card figcaption strong {
  font-size: 1rem;
  text-align: center;
}

.ten-trials-block {
  display: grid;
  width: min(1050px, 100%);
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
  align-items: center;
  margin: 85px auto 0;
  padding-top: 60px;
  border-top: 1px solid var(--line-light);
}

.ten-trials-copy .kicker {
  margin: 0 0 12px;
}

.ten-number {
  display: block;
  color: #fff;
  font-size: clamp(5rem, 9vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.ten-trials-copy h3 {
  margin: 22px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.ten-trials-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.zero-shot-block {
  display: grid;
  width: min(1050px, 100%);
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
  align-items: center;
  margin: 85px auto 0;
  padding-top: 60px;
  border-top: 1px solid var(--line-light);
}

.zero-shot-copy .kicker {
  margin: 0 0 12px;
}

.zero-shot-copy > strong {
  display: block;
  color: #fff;
  font-size: clamp(4.5rem, 8vw, 7.2rem);
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.zero-shot-copy h3 {
  margin: 22px 0 14px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.zero-shot-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.bibtex-section {
  background: #030303;
}

.bibtex-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bibtex-heading .kicker {
  margin: 0 0 6px;
}

.bibtex-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
}

.copy-button {
  padding: 10px 14px;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line-light);
  cursor: pointer;
}

.copy-button:hover {
  color: #000;
  background: #fff;
}

.bibtex {
  margin: 0;
  padding: 24px 26px;
  overflow-x: auto;
  color: #eee;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  line-height: 1.6;
}

.citation-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer {
  padding: 36px 0;
  background: #000;
  border-top: 1px solid #222;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 34px, 760px);
    --narrow: min(100% - 34px, 700px);
  }

  .topbar {
    height: 58px;
    padding: 0 17px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .topnav {
    position: fixed;
    top: 58px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 28px;
    color: #fff;
    background: rgba(0, 0, 0, 0.98);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding: 95px 18px 70px;
  }

  .hero-video {
    top: 58px;
    height: calc(100% - 58px);
  }

  .hero h1 {
    font-size: clamp(3.5rem, 10.5vw, 6rem);
  }

  .paper-title {
    font-size: 1.75rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading .kicker {
    margin-bottom: -8px;
  }

  .section-heading h2 {
    font-size: clamp(2.5rem, 7vw, 3.8rem);
  }

  .abstract-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .two-video-grid,
  .door-video-grid,
  .ten-trials-block,
  .zero-shot-block {
    grid-template-columns: 1fr;
  }

  .ten-trials-block,
  .zero-shot-block {
    gap: 35px;
  }
}

@media (max-width: 600px) {
  :root {
    --container: calc(100% - 26px);
    --narrow: calc(100% - 26px);
  }

  body {
    font-size: 16px;
  }

  .brand {
    font-size: 0.91rem;
  }

  .hero {
    padding: 88px 13px 58px;
  }

  .hero-video {
    object-position: 48% center;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .paper-title {
    margin-top: 22px;
    font-size: 1.48rem;
  }

  .paper-title br {
    display: none;
  }

  .authors {
    gap: 5px 15px;
    font-size: 1.05rem;
  }

  .affiliations {
    display: grid;
    gap: 3px;
    font-size: 0.98rem;
  }

  .resource-actions {
    flex-direction: column;
    align-items: center;
  }

  .resource-button {
    width: min(330px, 100%);
  }

  .hero-tagline {
    flex-wrap: wrap;
    gap: 2px 8px;
    font-size: 0.79rem;
  }

  .hero-tagline strong {
    flex-basis: 100%;
  }

  .hero-tagline span {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats > div {
    min-height: 82px;
  }

  .hero-stats > div + div::before {
    top: 0;
    right: 15px;
    bottom: auto;
    left: 15px;
    width: auto;
    height: 1px;
  }

  .hero-stats strong {
    font-size: 2.35rem;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 2.45rem;
  }

  .abstract-block > p:last-child {
    text-align: left;
  }

  .media-card figcaption {
    display: block;
  }

  .media-card figcaption strong,
  .media-card figcaption span {
    display: block;
  }

  .media-card figcaption span {
    margin-top: 4px;
  }

  .pipeline-card {
    overflow-x: auto;
  }

  .pipeline-card img {
    width: 920px;
    height: auto;
    max-width: none;
  }

  .compare-card figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quality-table-card > figcaption {
    padding-inline: 14px;
    font-size: 1.05rem;
  }

  .quality-table-scroll {
    padding: 0 14px 16px;
  }

  .result-strip {
    grid-template-columns: 1fr;
    margin-bottom: 55px;
  }

  .result-strip > div {
    min-height: 112px;
  }

  .result-strip > div + div::before {
    top: 0;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    height: 1px;
  }

  .subheading h3 {
    font-size: 2.35rem;
  }

  .ten-trials-block,
  .zero-shot-block {
    margin-top: 60px;
    padding-top: 45px;
  }

  .ten-number {
    font-size: 5.2rem;
  }

  .ten-trials-copy h3 {
    font-size: 2.25rem;
  }

  .zero-shot-copy > strong {
    font-size: 4.8rem;
  }

  .zero-shot-copy h3 {
    font-size: 2.25rem;
  }

  .bibtex {
    padding: 18px 15px;
    font-size: 0.66rem;
  }

  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
