@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #f4f4f4;
  --muted-ink: #a7a7a7;
  --line: #303030;
  --paper: #0d0d0d;
  --soft: #151515;
  --panel: #111111;
  --accent: #76b900;
  --accent-hover: #92d400;
  --accent-dark: #314f00;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
  padding: 0 clamp(18px, 4vw, 52px);
  color: var(--white);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  width: 28px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(118, 185, 0, 0.38);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.nav a:hover {
  color: var(--accent-hover);
}

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 16%, rgba(118, 185, 0, 0.22), transparent 30%),
    linear-gradient(135deg, #050505 0%, #151515 48%, #020202 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    linear-gradient(115deg, rgba(118, 185, 0, 0.18), transparent 44%),
    linear-gradient(245deg, rgba(255, 255, 255, 0.08), transparent 46%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px);
  transform: translate3d(0, 0, 0);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.78)),
    linear-gradient(to right, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  padding-top: 70px;
  color: var(--white);
  text-align: center;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 0;
}

.logo-tile {
  display: inline-flex;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.logo-tile img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
}

.nvidia-tile {
  width: 188px;
}

.hkust-tile {
  width: 236px;
}

.hkust-tile img {
  max-width: 220px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1080px;
  margin: 0 auto 20px;
  font-size: clamp(2.35rem, 5.4vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.subtitle {
  max-width: 740px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  max-width: 920px;
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.authors a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(118, 185, 0, 0.42);
  text-underline-offset: 4px;
}

.authors a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.authors sup,
.affiliations sup {
  margin-left: 2px;
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
  line-height: 0;
}

.affiliations sup {
  margin-right: 3px;
  margin-left: 0;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.68);
}

.author-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.92rem;
}

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

.button {
  display: inline-flex;
  min-width: 104px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 10px 18px;
  color: var(--black);
  background: var(--accent);
  font-weight: 750;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 18px rgba(118, 185, 0, 0.45);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black);
}

.section {
  padding: clamp(48px, 7vw, 84px) 0;
}

.section.intro {
  padding-top: clamp(44px, 7vw, 78px);
}

.teaser-section {
  padding: clamp(34px, 5vw, 60px) 0;
}

.teaser-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f7f3;
  box-shadow: var(--shadow);
}

.teaser-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.teaser-figure figcaption {
  padding: 16px clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.teaser-figure figcaption strong {
  color: var(--ink);
}

.section.muted {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.container.narrow {
  width: min(850px, calc(100% - 36px));
}

.section-heading {
  max-width: none;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.narrow h2::after {
  margin-left: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.section p {
  color: var(--muted-ink);
  font-size: 1.05rem;
}

#abstract p {
  max-width: none;
}

#citation pre {
  max-width: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(118, 185, 0, 0.1), transparent 62%),
    var(--panel);
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.stat-card span {
  display: block;
  color: var(--muted-ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.media-block {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.method-copy {
  max-width: none;
}

.figure-placeholder,
.thumb-placeholder,
.method-figure {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.14), rgba(255, 255, 255, 0.035)),
    var(--panel);
  color: var(--accent);
  font-weight: 750;
}

.method-figure {
  margin: 0;
  overflow: hidden;
  background: #f6f7f3;
}

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.application-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  border: 1px solid rgba(118, 185, 0, 0.36);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.12), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

.application-copy p {
  margin-bottom: 0;
}

.application-video {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #000000;
}

.comparison-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.11), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow);
}

.result-feature-primary {
  border-color: rgba(118, 185, 0, 0.42);
}

.video-embed {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #000000;
  box-shadow: var(--shadow);
}

.section-lead {
  max-width: none;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.results-subsection + .results-subsection {
  margin-top: clamp(44px, 6vw, 80px);
}

.subsection-title {
  margin-bottom: 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

.subsection-lead {
  max-width: none;
  margin-bottom: 28px;
}

.media-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  border: 1px dashed rgba(118, 185, 0, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.1), rgba(255, 255, 255, 0.03)),
    var(--panel);
  color: var(--accent);
  font-weight: 750;
  text-align: center;
}

.media-placeholder code {
  color: var(--muted-ink);
  font-size: 0.85rem;
}

.feature-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-copy p {
  margin-bottom: 0;
}

.comparison-video {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #000000;
}

.thumb-placeholder {
  min-height: 210px;
  border-width: 0 0 1px;
  border-radius: 0;
}

pre {
  overflow-x: auto;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #050505;
  color: #e8e8e8;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.footer {
  padding: 34px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  text-align: center;
}

.footer p {
  margin: 0;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: fixed;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 110px;
    padding-bottom: 52px;
  }

  .logo-row {
    gap: 8px;
    margin-top: 18px;
  }

  .logo-tile {
    height: 48px;
    padding: 0 8px;
  }

  .nvidia-tile {
    width: 140px;
  }

  .hkust-tile {
    width: 174px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1.03;
  }

  .authors {
    gap: 6px 12px;
    font-size: 0.9rem;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-width: calc(50% - 8px);
  }

  .media-block,
  .application-feature,
  .comparison-feature,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .figure-placeholder {
    min-height: 260px;
  }
}
