:root {
  --bg: #0c0f0e;
  --bg-soft: #101411;
  --panel: #141916;
  --panel-raised: #191f1b;
  --line: #29302c;
  --line-bright: #3a443e;
  --text: #f4f6ef;
  --muted: #9ba49d;
  --dim: #6f7871;
  --accent: #d7ff66;
  --accent-deep: #9ecb28;
  --accent-ink: #10140b;
  --blue: #8eb9ff;
  --orange: #ffac70;
  --page: 1440px;
  --content: 1180px;
  --radius: 14px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --body-copy: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

sup {
  color: var(--accent);
  font-size: 0.62em;
  vertical-align: 0.5em;
}

mark {
  padding: 0 0.12em;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

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

.site-nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(58, 68, 62, 0.76);
  background: rgba(12, 15, 14, 0.84);
  backdrop-filter: blur(18px);
}

.header-logos {
  display: flex;
  height: 48px;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}

.header-logos img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.header-logo-nvidia {
  width: 54px;
  height: 54px;
}

.header-logo-sketchx {
  width: 98px;
  height: 34px;
  filter: grayscale(1) brightness(0) invert(1);
}

.header-logo-surrey {
  width: 138px;
  height: 34px;
}

.lab-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lab-wordmark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lab-wordmark:hover,
.lab-wordmark:focus-visible {
  color: var(--accent);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  display: flex;
  width: 29px;
  height: 29px;
  align-items: flex-end;
  gap: 2px;
}

.wordmark-mark span {
  display: block;
  width: 8px;
  border-radius: 1px;
  background: var(--accent);
}

.wordmark-mark span:nth-child(1) {
  height: 42%;
}

.wordmark-mark span:nth-child(2) {
  height: 70%;
}

.wordmark-mark span:nth-child(3) {
  height: 100%;
}

.site-nav nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: var(--text);
}

.site-nav nav a:hover::after,
.site-nav nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: clamp(130px, 15vh, 176px) clamp(20px, 4vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  top: 3%;
  left: 50%;
  width: min(84vw, 1100px);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(215, 255, 102, 0.09), transparent 64%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 1220px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.section-number,
.group-index {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 1180px;
  margin: 18px 0 28px;
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.05;
}

h1 span {
  color: var(--accent);
}

h1 .hero-title-rest {
  color: inherit;
  white-space: nowrap;
}

.authors {
  display: flex;
  max-width: 1020px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 20px;
  color: #e8ebe5;
  font-size: var(--body-copy);
  font-weight: 650;
  line-height: 1.5;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.resource-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: rgba(20, 25, 22, 0.86);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.resource-link:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--panel-raised);
}

.resource-link svg,
.copy-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.resource-link small {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-link.is-disabled {
  color: var(--dim);
  cursor: not-allowed;
}

.hero-media {
  position: relative;
  width: min(100%, 832px);
  margin: clamp(42px, 6vw, 72px) auto 0;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: #050706;
  box-shadow: var(--shadow);
}

.hero-media::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 28%;
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent);
  content: "";
  pointer-events: none;
}

.hero-media video {
  display: block;
  width: 100%;
  aspect-ratio: 832 / 480;
  opacity: 0;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.hero-media video.is-ready {
  opacity: 1;
}

.frame-corners::before,
.frame-corners::after {
  position: absolute;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-color: var(--accent);
  content: "";
  pointer-events: none;
}

.frame-corners::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.frame-corners::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.hero-media-label {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(215, 255, 102, 0.8);
}

.tldr {
  display: grid;
  width: min(100%, 1040px);
  grid-template-columns: 96px 1fr;
  gap: 22px;
  margin: 42px auto 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tldr-label {
  padding-top: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.tldr p {
  margin: 0;
  color: #d9ded8;
  font-size: var(--body-copy);
  font-weight: 520;
  letter-spacing: -0.014em;
  line-height: 1.5;
}

.tldr em {
  color: var(--accent);
  font-style: normal;
}

.hero-metrics {
  display: grid;
  width: calc(100% + clamp(40px, 8vw, 128px));
  max-width: var(--page);
  grid-template-columns: repeat(4, 1fr);
  margin-top: 68px;
  border-top: 1px solid var(--line);
}

.hero-metrics > div {
  display: flex;
  min-height: 144px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.hero-metrics > div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  font-size: clamp(18px, 2vw, 27px);
  letter-spacing: -0.03em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-shell {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: clamp(78px, 9vw, 120px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) 1fr;
  gap: 32px;
  align-items: start;
}

.section-heading > div {
  max-width: 920px;
}

.section-heading h2 {
  margin: -6px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.section-heading > div > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: var(--body-copy);
  line-height: 1.6;
}

.result-group {
  margin-top: clamp(82px, 9vw, 124px);
  padding-top: 28px;
  border-top: 1px solid var(--line-bright);
  scroll-margin-top: 86px;
}

.result-intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.62fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.result-intro h3 {
  margin: 7px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.result-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--body-copy);
  line-height: 1.6;
}

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

.chunk-results {
  display: grid;
  gap: 42px;
}

.chunk-set {
  min-width: 0;
}

.chunk-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.plain-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plain-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050706;
  transition: border-color 160ms ease;
}

.plain-video:hover {
  border-color: var(--line-bright);
}

.video-card,
.camera-card,
.long-slide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.video-card:hover,
.camera-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
}

.video-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050706;
  cursor: pointer;
}

.video-card-media video {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video-card-media video.is-ready {
  opacity: 1;
}

.video-mode {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.video-mode i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(215, 255, 102, 0.65);
}

.video-mode.is-chunk-wise i {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(142, 185, 255, 0.65);
}

.camera-control-overlay {
  --camera-key-size: clamp(22px, 2.4vw, 31px);
  --camera-key-gap: 3px;
  --camera-joystick-size: clamp(58px, 6.2vw, 78px);
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: opacity 120ms ease;
}

.camera-control-overlay.is-ready {
  opacity: 1;
}

.camera-wasd {
  position: absolute;
  bottom: 14px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(3, var(--camera-key-size));
  grid-template-rows: repeat(2, var(--camera-key-size));
  gap: var(--camera-key-gap);
}

.camera-key {
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 238, 242, 0.6);
  border-radius: 16%;
  background: rgba(4, 10, 18, 0.62);
  color: rgba(238, 242, 245, 0.72);
  font-size: calc(var(--camera-key-size) * 0.46);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.camera-key.active {
  border-color: white;
  background: rgba(250, 252, 253, 0.96);
  color: #07101a;
  box-shadow:
    0 0 0 2px rgba(215, 255, 102, 0.46),
    0 3px 12px rgba(0, 0, 0, 0.34);
}

.camera-key-w {
  grid-column: 2;
  grid-row: 1;
}

.camera-key-a {
  grid-column: 1;
  grid-row: 2;
}

.camera-key-s {
  grid-column: 2;
  grid-row: 2;
}

.camera-key-d {
  grid-column: 3;
  grid-row: 2;
}

.camera-look-joystick {
  --joystick-left: 50%;
  --joystick-top: 50%;
  position: absolute;
  right: 12px;
  bottom: 15px;
  width: var(--camera-joystick-size);
  height: var(--camera-joystick-size);
  border-radius: 50%;
}

.camera-joystick-well {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(229, 235, 239, 0.64);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(12, 18, 21, 0.1) 0 24%, rgba(1, 5, 8, 0.58) 60%),
    rgba(5, 13, 23, 0.3);
  box-shadow:
    inset 0 0 0 4px rgba(5, 8, 10, 0.38),
    inset 0 0 0 6px rgba(213, 222, 228, 0.2),
    inset 0 8px 16px rgba(0, 0, 0, 0.42),
    0 4px 13px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
}

.camera-joystick-well::before,
.camera-joystick-well::after {
  position: absolute;
  top: 49.5%;
  left: 13%;
  width: 74%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(218, 226, 232, 0.18) 22%,
    rgba(218, 226, 232, 0.18) 78%,
    transparent
  );
  content: "";
}

.camera-joystick-well::after {
  transform: rotate(90deg);
}

.camera-joystick-stem {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(219, 226, 231, 0.42), rgba(215, 255, 102, 0.8));
  opacity: 0;
  transform-origin: 0 50%;
  transition: width 90ms linear, transform 90ms linear, opacity 120ms ease;
}

.camera-look-joystick.active .camera-joystick-stem {
  opacity: 1;
}

.camera-joystick-knob {
  position: absolute;
  z-index: 2;
  top: var(--joystick-top);
  left: var(--joystick-left);
  width: 31%;
  height: 31%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(249, 251, 252, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #eef1f2 0 10%, #a3abb0 28%, #3b4449 68%, #11171a 100%);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.52),
    0 4px 8px rgba(0, 0, 0, 0.58);
  transition:
    top 90ms linear,
    left 90ms linear,
    background 120ms ease,
    box-shadow 120ms ease;
}

.camera-joystick-knob::after {
  position: absolute;
  inset: 25%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.camera-look-joystick.active .camera-joystick-knob {
  border-color: rgba(241, 255, 200, 0.95);
  background:
    radial-gradient(circle at 36% 30%, #fbffe9 0 10%, var(--accent) 34%, #829f2c 72%, #26300d 100%);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(215, 255, 102, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.58),
    0 0 12px rgba(215, 255, 102, 0.32);
}

.camera-joystick-label {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -10px;
  left: 0;
  color: rgba(231, 236, 239, 0.58);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
}

.camera-overlay-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  max-width: 54%;
  overflow: hidden;
  color: rgba(245, 248, 242, 0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.camera-control-overlay.has-error .camera-wasd,
.camera-control-overlay.has-error .camera-look-joystick {
  display: none;
}

.camera-control-overlay.has-error .camera-overlay-label {
  max-width: 90%;
  color: #ff9d8e;
}

.video-card:hover video {
  transform: scale(1.015);
}

.video-state {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.64);
  color: rgba(255, 255, 255, 0.76);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.video-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.video-card-copy {
  min-height: 118px;
  padding: 18px 19px 20px;
}

.video-id,
.camera-index,
.long-index {
  margin: 0 0 7px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.video-title,
.camera-title,
.long-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.video-caption,
.camera-caption,
.long-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.camera-card {
  padding: 18px;
}

.camera-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.camera-direction {
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.camera-trajectory {
  height: 52px;
  margin: 10px 0 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.camera-trajectory svg {
  width: 100%;
  height: 100%;
}

.trajectory-path {
  fill: none;
  stroke: var(--accent);
  stroke-dasharray: 4 4;
  stroke-width: 1.3;
}

.trajectory-start {
  fill: var(--muted);
}

.trajectory-end {
  fill: var(--accent);
  filter: drop-shadow(0 0 5px rgba(215, 255, 102, 0.65));
}

.camera-card .video-card-media {
  border-radius: 8px;
}

.camera-caption {
  min-height: 30px;
}

.long-carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-columns: min(84vw, 980px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 0 calc((100% - min(84vw, 980px)) / 2) 12px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.long-slide {
  scroll-snap-align: center;
  transform: scale(0.975);
  opacity: 0.55;
  transition: opacity 250ms ease, transform 250ms ease, border-color 250ms ease;
}

.long-slide.is-active {
  transform: scale(1);
  border-color: var(--line-bright);
  opacity: 1;
  box-shadow: var(--shadow);
}

.long-slide-media {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #050706;
}

.long-slide-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.long-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.long-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent);
}

.long-slide-copy {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.7fr);
  gap: 34px;
  align-items: end;
  min-height: 108px;
  padding: 18px 20px 21px;
}

.long-slide-copy .long-caption {
  margin: 0;
  text-align: right;
}

.carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 42%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: rgba(12, 15, 14, 0.78);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.carousel-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.carousel-arrow-prev {
  left: 14px;
}

.carousel-arrow-next {
  right: 14px;
}

.carousel-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 13px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.carousel-footer p:last-child {
  justify-self: end;
}

.interaction-mark {
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 18px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-bright);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 38px;
  background: var(--accent);
}

.method {
  background:
    radial-gradient(circle at 70% 42%, rgba(215, 255, 102, 0.055), transparent 35%),
    rgba(16, 20, 17, 0.62);
}

.method-figure {
  margin: 66px 0 0;
  padding: clamp(7px, 1vw, 12px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  scrollbar-color: var(--accent-deep) var(--panel);
  scrollbar-width: thin;
}

.method-figure::-webkit-scrollbar {
  height: 8px;
}

.method-figure::-webkit-scrollbar-track {
  background: var(--panel);
}

.method-figure::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent-deep);
}

.method-figure-viewport {
  position: relative;
  width: max(100%, 960px);
  aspect-ratio: 6907 / 1552;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background: #fff;
}

.method-figure-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.method-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.method-principle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(215, 255, 102, 0.35);
  border-radius: 8px;
  background: rgba(215, 255, 102, 0.055);
}

.method-principle span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.method-principle p {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(19px, 1.8vw, 22px);
}

.abstract-copy {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.abstract-copy p {
  grid-column: 3 / span 8;
  margin: 0;
  color: #c5cbc5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--body-copy);
  line-height: 1.72;
}

.abstract-copy p + p {
  margin-top: 4px;
}

.citation-card {
  position: relative;
  margin-top: 50px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel);
}

.citation-card pre {
  margin: 0;
  overflow-x: auto;
  padding: clamp(26px, 4vw, 46px);
  color: #cdd4cc;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-bright);
  border-radius: 7px;
  background: var(--panel-raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.is-copied {
  border-color: var(--accent);
  color: var(--accent);
}

footer {
  display: grid;
  width: min(100%, var(--page));
  min-height: 150px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  justify-self: end;
  margin: 0;
  text-align: center;
}

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

@media (max-width: 1040px) {
  .video-grid,
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .camera-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }

}

@media (max-width: 760px) {
  :root {
    --body-copy: 18px;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
    min-height: 60px;
  }

  .site-nav nav {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    width: 100%;
    font-size: clamp(34px, 9.8vw, 46px);
  }

  h1 .hero-title-rest {
    white-space: normal;
  }

  .authors {
    gap: 5px 14px;
  }

  .affiliations {
    flex-direction: column;
    gap: 5px;
  }

  .header-logos {
    height: 38px;
    gap: 12px;
  }

  .header-logo-nvidia {
    width: 42px;
    height: 42px;
  }

  .header-logo-sketchx {
    width: 76px;
    height: 28px;
  }

  .header-logo-surrey {
    width: 106px;
    height: 28px;
  }

  .hero-media {
    width: calc(100% + 24px);
  }

  .tldr {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics > div {
    min-height: 124px;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics > div:nth-child(2) {
    border-right: 0;
  }

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

  .section-heading h2 {
    margin-top: 0;
  }

  .result-intro {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .video-grid,
  .camera-grid,
  .plain-video-grid {
    grid-template-columns: 1fr;
  }

  .video-mode {
    top: 10px;
    right: 10px;
    font-size: 13px;
  }

  .camera-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .carousel-track {
    grid-auto-columns: 91vw;
    padding-right: calc((100% - 91vw) / 2);
    padding-left: calc((100% - 91vw) / 2);
  }

  .carousel-arrow {
    display: none;
  }

  .long-slide-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .long-slide-copy .long-caption {
    text-align: left;
  }

  .carousel-footer {
    grid-template-columns: 1fr auto;
  }

  .carousel-dots {
    display: none;
  }

  .method-principle {
    flex-direction: column;
    align-items: flex-start;
  }

  .abstract-copy {
    display: block;
  }

  .abstract-copy p + p {
    margin-top: 24px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  footer p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .resource-links {
    width: 100%;
  }

  .resource-link {
    flex: 1;
    justify-content: center;
  }

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

  .hero-metrics > div {
    border-right: 0;
  }

  .citation-card pre {
    padding-top: 76px;
  }
}

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

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

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