:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --panel: rgba(255, 255, 255, 0.96);
  --ink: #111827;
  --muted: #516074;
  --line: rgba(15, 23, 42, 0.1);
  --accent: #2c63eb;
  --accent-soft: rgba(44, 99, 235, 0.1);
  --teal: #0f766e;
  --warm: #c47a44;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(44, 99, 235, 0.06), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hero {
  padding: 3.35rem 0 1.85rem;
}

.hero__inner {
  text-align: center;
}

.hero__title,
.section-header h2,
.panel h3,
.gallery-header h3 {
  font-family: "Sora", sans-serif;
}

.hero__title {
  max-width: 31ch;
  margin: 0 auto;
  font-size: clamp(2.05rem, 2.65vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.authors,
.affiliation,
.hero__note,
.teaser-caption,
.section-header p,
.highlights-copy,
.benchmark-panel,
.figure-card p,
.ablation-copy,
.site-footer p,
.expression-box p,
.bullet-list,
.gallery-header p {
  color: var(--muted);
}

.authors {
  margin-top: 1.3rem;
  font-size: 1.02rem;
  line-height: 1.9;
}

.author {
  display: inline-block;
  margin: 0 0.18rem;
  font-weight: 500;
}

.affiliation {
  margin: 0.35rem 0 1.35rem;
  font-size: 0.98rem;
}

.link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.88rem 1.25rem;
  border-radius: 999px;
  background: #161b24;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}

.action-button:hover {
  background: #0f141c;
  transform: translateY(-1px);
}

.action-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #5b6575;
  pointer-events: none;
}

.action-button.is-disabled:hover {
  background: #5b6575;
  transform: none;
}

.hero__note {
  margin-top: 0.95rem;
  font-size: 0.95rem;
}

.section {
  padding: 1.95rem 0 3rem;
}

.section--teaser {
  padding-top: 0.8rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(245, 247, 251, 0.94), rgba(245, 247, 251, 0.94));
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.section-header {
  max-width: 52rem;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0.75rem auto 0;
  line-height: 1.78;
}

.teaser-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.teaser-card img {
  width: 100%;
}

.teaser-caption {
  max-width: 70rem;
  margin: 0.65rem auto 0;
  text-align: center;
  line-height: 1.78;
}

.overview-grid,
.benchmark-grid,
.results-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.abstract-card,
.highlights-card,
.benchmark-panel,
.figure-card,
.table-panel,
.ablation-panel {
  padding: 1.3rem;
}

.panel h3,
.gallery-header h3 {
  margin: 0 0 0.7rem;
  font-size: 1.26rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.abstract-card p,
.highlights-copy,
.figure-card p,
.ablation-copy {
  margin: 0;
  line-height: 1.82;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.fact-card,
.split-card,
.gain-card {
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 22px rgba(44, 99, 235, 0.05);
}

.fact-card__value,
.split-card__value,
.gain-card__value {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.fact-card__value {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.fact-card__label,
.split-card__name,
.gain-card__label {
  display: block;
  color: var(--muted);
}

.fact-card__label {
  font-size: 0.9rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

.compare-table,
.results-table,
.ablation-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table {
  min-width: 900px;
}

.results-table {
  min-width: 760px;
}

.ablation-table {
  min-width: 440px;
  margin-top: 0.9rem;
}

.compare-table th,
.compare-table td,
.results-table th,
.results-table td,
.ablation-table th,
.ablation-table td {
  padding: 0.82rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  font-size: 0.93rem;
}

.compare-table th,
.results-table th,
.ablation-table th {
  color: #27354a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-table tbody tr.is-ours,
.compare-table tbody tr.is-ours,
.ablation-table tbody tr.is-ours {
  background: linear-gradient(90deg, rgba(44, 99, 235, 0.08), rgba(15, 118, 110, 0.08));
  font-weight: 800;
}

.group-row td {
  padding-top: 1rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(44, 99, 235, 0.04);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.status--yes {
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
}

.status--no {
  color: #8a3348;
  background: rgba(225, 29, 72, 0.1);
}

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

.benchmark-panel--snapshot {
  background:
    radial-gradient(circle at top right, rgba(44, 99, 235, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.split-grid--snapshot {
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 0.8rem;
  margin: 1.05rem 0 1.15rem;
}

.split-grid--snapshot .split-card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 0.75rem;
  text-align: center;
  border-color: rgba(44, 99, 235, 0.12);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: 0 12px 28px rgba(44, 99, 235, 0.08);
}

.split-card__name {
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-card__value {
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}

.split-grid--snapshot .split-card__name {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.split-grid--snapshot .split-card__value {
  font-size: clamp(1rem, 1.45vw, 1.34rem);
  line-height: 1.05;
  white-space: nowrap;
}

.bullet-list.bullet-list--snapshot {
  padding: 1rem 1rem 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  line-height: 1.72;
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.figure-grid,
.gain-grid,
.demo-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.figure-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.figure-card__meta {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.figure-card img {
  width: 100%;
  margin-bottom: 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.demo-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-card,
.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.demo-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d8dfe9;
}

.demo-card__body {
  padding: 1rem 1rem 1.1rem;
}

.demo-card__tag {
  margin: 0 0 0.6rem;
  color: var(--warm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.expression-box,
.takeaway-callout {
  margin-top: 0.85rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.expression-box--gallery {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: #ffffff;
}

.expression-box span,
.takeaway-callout span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expression-box p {
  margin: 0;
  line-height: 1.72;
}

.gallery-header {
  margin: 1.6rem 0 1rem;
  text-align: center;
}

.gallery-header p {
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.72;
}

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

.demo-video--gallery {
  border-bottom: 1px solid var(--line);
}

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

.gain-card__value {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 1.68rem;
  letter-spacing: -0.04em;
}

.gain-card__label {
  font-size: 0.92rem;
  line-height: 1.58;
}

.takeaway-callout {
  margin-top: 1rem;
  background: linear-gradient(180deg, rgba(44, 99, 235, 0.08), rgba(255, 255, 255, 0.92));
  border-color: rgba(44, 99, 235, 0.12);
}

.takeaway-callout p {
  margin: 0;
  color: #27354c;
  font-weight: 700;
}

.bibtex {
  margin: 0;
  padding: 1.35rem 1.45rem;
  overflow-x: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.site-footer {
  padding: 1.9rem 0 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

.site-footer a {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1140px) {
  .overview-grid,
  .benchmark-grid,
  .results-grid,
  .figure-grid,
  .gain-grid,
  .demo-grid--featured,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.8rem;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2rem, 7vw, 2.9rem);
  }

  .authors {
    line-height: 1.75;
  }

  .author {
    margin: 0;
  }

  .fact-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .abstract-card,
  .highlights-card,
  .benchmark-panel,
  .figure-card,
  .table-panel,
  .ablation-panel,
  .demo-card__body,
  .expression-box--gallery,
  .bibtex {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
