:root {
  --ink: #172026;
  --muted: #5f6b74;
  --line: #d9e0e4;
  --paper: #ffffff;
  --soft: #f5f8f7;
  --accent: #0f766e;
  --accent-soft: #d7eee9;
  --warm: #a35d18;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.project-nav {
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.project-mark {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.project-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.project-hero .hero-body {
  padding: 4.5rem 1.5rem 3rem;
}

.hero-copy {
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.publication-title {
  color: var(--ink);
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 2.35rem;
  line-height: 1.12;
  margin: 0 auto 1.25rem;
  max-width: 1180px;
  text-align: center;
}

.authors,
.affiliation,
.author-note {
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;
}

.authors {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.affiliation {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.65rem;
}

.author-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.publication-links .button {
  border-radius: 999px;
  min-width: 8.5rem;
}

.hero-figure {
  margin: 2.2rem auto 0;
  max-width: 1120px;
}

.hero-figure img,
.paper-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.section {
  padding: 4rem 1.5rem;
}

.section-muted {
  background: var(--soft);
}

.section-title {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.abstract-text {
  font-size: 1.05rem;
}

.paper-figure {
  margin: 1.5rem auto 2rem;
}

.paper-figure.compact {
  margin: 0;
}

.paper-figure figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  text-align: center;
}

.method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.method-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
}

.method-step h3 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.method-step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-index {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2rem;
}

.result-block,
.demo-block {
  margin-top: 3rem;
}

.result-block:first-of-type,
.demo-block:first-of-type {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-heading h3 {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 820px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.benchmark-tables {
  display: grid;
  gap: 1.5rem;
}

.result-table {
  background: var(--paper);
  font-size: 0.9rem;
  margin: 0;
  min-width: 680px;
}

.result-table caption {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.result-table thead th {
  background: #eef4f2;
  border-color: var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.result-table td,
.result-table th {
  border-color: var(--line);
  vertical-align: middle;
}

.result-table .ours td {
  background: #f0faf7;
  color: #0d4f49;
  font-weight: 700;
}

.demo-subtitle {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2rem 0 0.9rem;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

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

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

.video-grid.single-video {
  grid-template-columns: minmax(260px, 520px);
  justify-content: center;
}

.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.video-card video {
  aspect-ratio: 4 / 3;
  background: #101418;
  display: block;
  object-fit: cover;
  width: 100%;
}

.video-card figcaption {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 3.2rem;
  padding: 0.7rem 0.85rem;
  text-align: center;
}

.bibtex {
  background: #111820;
  border-radius: 8px;
  color: #e6edf3;
  font-size: 0.88rem;
  overflow-x: auto;
  padding: 1rem;
  white-space: pre;
}

.project-footer {
  background: var(--ink);
  color: #dfe7ea;
  padding: 2rem 1.5rem;
  text-align: center;
}

@media screen and (max-width: 1023px) {
  .project-nav .navbar-menu {
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

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

@media screen and (max-width: 768px) {
  .project-hero .hero-body {
    padding: 3rem 1rem 2rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .publication-title {
    font-size: 1.65rem;
  }

  .method-grid,
  .video-grid.five-up,
  .video-grid.three-up {
    grid-template-columns: 1fr;
  }

  .publication-links .button {
    flex: 1 1 100%;
  }

  .result-table {
    font-size: 0.84rem;
  }
}
