:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e3e6ec;
  --accent: #2a6df4;
  --accent-soft: #dfeaff;
  --highlight: #d8ebff;
  --shadow: 0 2px 12px rgba(20, 30, 60, 0.06);
  --radius: 10px;
  --max: 1200px;
  --max-narrow: 820px;
  --font-sans: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-narrow); }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section .lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 880px;
}

.hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.title {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 26px;
}

.authors {
  text-align: center;
  font-size: 17px;
  margin: 0 0 14px;
  line-height: 1.9;
}
.authors .author { margin: 0 8px; white-space: nowrap; }
.authors a { color: var(--accent); text-decoration: none; }
.authors a:hover { text-decoration: underline; }

.affiliations {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 6px 0;
  line-height: 1.8;
}
.affiliations span { margin: 0 10px; white-space: nowrap; }
.note { text-align: center; font-size: 13px; color: var(--text-muted); margin: 4px 0 22px; }

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn .icon { font-size: 16px; }
.btn-disabled {
  background: #b8bdc7;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.teaser {
  margin: 28px 0 0;
  text-align: center;
}
.teaser img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.teaser figcaption,
.method-figure figcaption,
.full-figure figcaption {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: left;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.method-figure { margin: 0 0 36px; text-align: center; }
.method-figure img,
.full-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.full-figure { margin: 0 0 36px; text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.card p { margin: 0; font-size: 15.5px; color: var(--text); }

.carousel {
  position: relative;
  width: 100%;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.carousel-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 380px;
  perspective: 1400px;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 350px;
  margin-left: -280px;
  margin-top: -175px;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.4s ease,
              filter 0.4s ease;
  pointer-events: none;
  opacity: 0;
  filter: brightness(0.55);
  z-index: 0;
}
.carousel-slide.is-active {
  pointer-events: auto;
  opacity: 1;
  filter: none;
  z-index: 5;
  transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
}
.carousel-slide.is-prev {
  opacity: 0.85;
  z-index: 4;
  transform: translate3d(-58%, 0, -160px) rotateY(28deg) scale(0.78);
}
.carousel-slide.is-next {
  opacity: 0.85;
  z-index: 4;
  transform: translate3d(58%, 0, -160px) rotateY(-28deg) scale(0.78);
}
.carousel-slide.is-prev-2 {
  opacity: 0.45;
  z-index: 3;
  transform: translate3d(-95%, 0, -320px) rotateY(36deg) scale(0.6);
}
.carousel-slide.is-next-2 {
  opacity: 0.45;
  z-index: 3;
  transform: translate3d(95%, 0, -320px) rotateY(-36deg) scale(0.6);
}
.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(15, 25, 60, 0.22);
}
.carousel-slide.is-active .slide-inner {
  box-shadow: 0 22px 60px rgba(15, 25, 60, 0.35);
}
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 14px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  z-index: 10;
}
.carousel-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.carousel-arrow:active { transform: translateY(0); }
.carousel-arrow svg { display: block; }

.carousel-counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .carousel-stage { height: 300px; }
  .carousel-slide { width: 440px; height: 275px; margin-left: -220px; margin-top: -137.5px; }
}
@media (max-width: 640px) {
  .carousel-stage { height: 240px; }
  .carousel-slide { width: 320px; height: 200px; margin-left: -160px; margin-top: -100px; }
  .carousel-arrow { width: 38px; height: 38px; margin: 0 6px; }
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.results-table caption {
  caption-side: bottom;
  padding: 14px 18px;
  text-align: left;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.results-table th,
.results-table td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table thead th {
  background: #f1f4fa;
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
}
.results-table tbody tr:hover { background: #fafbfd; }
.results-table tr.learning-based td { color: #8a8f99; }
.results-table tr.separator td {
  padding: 0;
  height: 4px;
  background: #eef0f4;
  border: none;
}
.results-table tr.ours td {
  background: var(--highlight);
  font-weight: 600;
}
.results-table tr.ours:hover td { background: #cde2fb; }
.results-table.small { font-size: 13.5px; }
.results-table.small th,
.results-table.small td { padding: 8px 10px; }

.model-icon {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 2px;
  border-radius: 3px;
}

.bibtex {
  background: #0f172a;
  color: #e7eefc;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
}
.bibtex code { font-family: inherit; }

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .title { font-size: 26px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 24px; }
}

