:root {
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #d9e1e7;
  --paper: #ffffff;
  --wash: #f4f7f6;
  --green: #1e7f64;
  --teal: #237c8b;
  --gold: #aa7a20;
  --red: #a74949;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a:hover {
  color: var(--green);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 1.25rem;
}

.brand {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

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

.hero-section {
  background:
    linear-gradient(180deg, #f8fbfa 0%, #ffffff 72%);
  padding: 4.75rem 1.25rem 3.5rem;
}

.paper-kicker {
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 auto 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.publication-title {
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 2.1rem auto 0;
  max-width: 1120px;
  text-align: center;
}

.publication-subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin: 1.35rem auto 0;
  max-width: 900px;
  text-align: center;
}

.publication-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  justify-content: center;
  margin: 1.45rem auto 0;
  max-width: 960px;
}

.publication-authors span {
  color: var(--ink);
  font-weight: 700;
}

.publication-authors a {
  border-bottom: 1px solid rgba(35, 124, 139, 0.45);
  color: var(--teal);
  padding-bottom: 0.08rem;
}

.publication-authors a:hover {
  border-bottom-color: var(--green);
  color: var(--green);
}

.affiliation {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.85rem auto 0;
  max-width: 900px;
  text-align: center;
}

.publication-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.button {
  border-radius: 999px;
  font-weight: 750;
  min-height: 2.6rem;
}

.button.is-dark {
  background: var(--ink);
}

.button.is-dark:hover {
  background: #253442;
}

.button.is-light {
  background: #eef4f2;
  color: var(--ink);
}

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

.paper-section {
  padding: 4.5rem 1.25rem;
}

.section-tint {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin: 0 auto 2rem;
  max-width: 820px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 0.6rem;
}

.section-title {
  color: var(--ink);
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 1rem;
  text-align: center;
}

.abstract-text {
  color: #26323d;
  font-size: 1.04rem;
}

.abstract-text p + p {
  margin-top: 1rem;
}

.feature-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
}

.paper-visual {
  margin: 0 auto 2rem;
  max-width: 960px;
}

.paper-visual img {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.06);
  display: block;
  height: auto;
  width: 100%;
}

.results-visual {
  margin-bottom: 2.2rem;
  max-width: 780px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.metric-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.05);
}

.feature-card {
  min-height: 250px;
  padding: 1.2rem;
}

.feature-label {
  color: var(--gold);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 0.55rem;
}

.feature-card h3 {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

.metric-card {
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  color: var(--green);
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.metric-label {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  margin-top: 0.45rem;
}

.comparison-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.05);
  margin: 0 auto 2.25rem;
  max-width: 920px;
  overflow-x: auto;
}

.comparison-table {
  border-collapse: collapse;
  min-width: 660px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.96rem;
  padding: 0.85rem 1rem;
  text-align: center;
  vertical-align: middle;
}

.comparison-table thead th {
  background: #eef4f2;
  color: #31404c;
  font-weight: 850;
}

.comparison-table tbody th {
  font-weight: 820;
  text-align: left;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table .ours-row th,
.comparison-table .ours-row td {
  background: #f7fbf9;
}

.best-value {
  color: var(--green);
  font-weight: 900;
}

.second-best {
  color: var(--gold);
  font-weight: 850;
}

.video-shell {
  background: #0f171d;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.paper-video {
  margin: 2.3rem auto 0;
  max-width: 1080px;
  position: relative;
}

.paper-video .video-shell {
  box-shadow: 0 24px 60px rgba(23, 32, 42, 0.16);
}

.video-shell iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.bibtex {
  background: #101820;
  border-radius: 8px;
  color: #eef4f2;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  padding: 1.2rem;
  white-space: pre;
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 2rem 1.25rem;
}

@media (max-width: 1024px) {
  .feature-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding-bottom: 0.85rem;
    padding-top: 0.85rem;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-section {
    padding-top: 3.25rem;
  }

  .publication-links .button {
    width: 100%;
  }

  .feature-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .paper-section {
    padding: 3.25rem 1rem;
  }

}
