:root {
  --ink: #1f252e;
  --muted: #5f6875;
  --paper: #ffffff;
  --wash: #fff8f7;
  --blush: #ffefed;
  --line: #f4b5af;
  --red: #b31c12;
  --red-dark: #7f160f;
  --coral: #ed7e75;
  --blue: #2f5f8f;
  --green: #2f7a61;
  --shadow: 0 16px 48px rgba(88, 42, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--red-dark);
}

.container {
  width: calc(100% - 32px) !important;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(244, 181, 175, 0.65);
  backdrop-filter: blur(10px);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  color: var(--red);
  font-weight: 800;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 1.05rem;
  font-weight: 780;
}

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

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

.hero-section {
  padding: 72px 0 54px;
  background:
    linear-gradient(180deg, rgba(255, 239, 237, 0.82) 0%, rgba(255, 255, 255, 0) 34%),
    var(--paper);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--red);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-kicker::after {
  content: "";
  display: inline-block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
}

.section-heading.centered .section-kicker {
  justify-content: center;
}

.publication-title {
  margin: 0;
  color: var(--ink);
  font-size: 3.1rem;
  line-height: 1.08;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.publication-title span {
  color: var(--red);
}

.hero-lead {
  max-width: 860px;
  margin: 22px auto 0;
  color: #3f4752;
  font-size: 1.2rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.publication-authors {
  max-width: 1020px;
  margin: 28px auto 0;
}

.author-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 8px;
}

.author-row + .author-row {
  margin-top: 8px;
}

.author-row a {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(179, 28, 18, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.author-row a:hover,
.author-row a:focus-visible {
  color: var(--red);
  text-decoration-color: currentColor;
}

.author-row sup,
.affiliations sup {
  color: var(--red);
  font-size: 0.68em;
  font-weight: 850;
  vertical-align: super;
}

.affiliations {
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.affiliations p {
  margin: 3px 0;
}

.affiliations .author-notes {
  margin-top: 8px;
  color: #49515c;
}

.meta-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 4px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--red-dark);
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.meta-line .acceptance-badge {
  min-height: 40px;
  padding: 8px 17px;
  color: white;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-color: var(--red);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 9px 22px rgba(179, 28, 18, 0.2);
}

.acceptance-badge i {
  margin-right: 8px;
  font-size: 1.05em;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button.action-button {
  height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(179, 28, 18, 0.16);
}

.button.action-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: white;
}

.button.action-button.secondary {
  color: var(--red);
  background: white;
  border-color: var(--line);
  box-shadow: none;
}

.button.action-button.secondary:hover {
  color: var(--red-dark);
  background: var(--wash);
}

.button.action-button.muted {
  color: #7a6a68;
  background: #f7f0ef;
  border-color: #ead1ce;
  box-shadow: none;
  cursor: default;
}

.teaser-block {
  width: 100%;
  margin: 46px auto 0;
  max-width: 1080px;
}

.teaser-block img,
.teaser-block object {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(244, 181, 175, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.teaser-block figcaption {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  text-align: center;
}

.section {
  padding: 72px 0;
}

.compact-section {
  padding-top: 66px;
  padding-bottom: 66px;
}

.band-section {
  background: var(--wash);
  border-top: 1px solid rgba(244, 181, 175, 0.45);
  border-bottom: 1px solid rgba(244, 181, 175, 0.45);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1.22;
  font-weight: 830;
  overflow-wrap: anywhere;
}

.section-heading p:not(.section-kicker) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.body-copy {
  color: #3e4651;
  font-size: 1.08rem;
  line-height: 1.78;
  overflow-wrap: break-word;
}

.body-copy p + p {
  margin-top: 18px;
}

.metric-band {
  padding: 28px 0;
  background: #89180f;
  color: white;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.metric {
  min-height: 118px;
  padding: 24px 22px;
  background: #991b12;
}

.metric strong {
  display: block;
  color: white;
  font-size: 2.08rem;
  line-height: 1;
  font-weight: 850;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.35;
}

.insight-grid,
.method-grid,
.result-grid,
.demo-grid,
.dataset-grid {
  display: grid;
  gap: 18px;
}

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

.info-card,
.dataset-card,
.result-card,
.video-card,
.method-grid article {
  background: var(--paper);
  border: 1px solid rgba(244, 181, 175, 0.76);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(88, 42, 38, 0.05);
}

.info-card {
  padding: 24px;
}

.card-index {
  display: inline-block;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 850;
  margin-bottom: 14px;
}

.info-card h3,
.dataset-card h3,
.method-grid h3,
.video-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.3;
  font-weight: 800;
}

.info-card p,
.dataset-card p,
.method-grid p,
.result-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.62;
}

.figure-panel {
  margin: 28px 0;
  background: white;
  border: 1px solid rgba(244, 181, 175, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.figure-panel figcaption {
  padding: 16px 20px 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid rgba(244, 181, 175, 0.55);
  background: #fffaf9;
}

.figure-panel figcaption strong {
  color: var(--red-dark);
  font-weight: 850;
}

.native-figure {
  width: 100%;
  border: 0;
  background: white;
}

.teaser-pdf {
  aspect-ratio: 820 / 334;
}

.pipeline-pdf {
  aspect-ratio: 892 / 360;
}

.sample-pdf {
  aspect-ratio: 792 / 284;
}

.method-pdf {
  aspect-ratio: 819 / 284;
}

.visualization-pdf {
  aspect-ratio: 900 / 319;
}

.keyframe-pdf {
  aspect-ratio: 490 / 720;
}

.slim-figure {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.setup-figure {
  max-width: 900px;
  margin: 34px auto 0;
}

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

.dataset-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.dataset-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--red);
}

.align-card::before {
  background: var(--blue);
}

.dataset-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.dataset-card dl div {
  padding: 12px;
  background: #fff7f6;
  border: 1px solid rgba(244, 181, 175, 0.55);
  border-radius: 8px;
}

.align-card dl div {
  background: #f6f9fc;
  border-color: rgba(47, 95, 143, 0.18);
}

.dataset-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.dataset-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 850;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.method-grid article {
  padding: 24px;
}

.method-grid article:nth-child(2) {
  border-color: rgba(47, 95, 143, 0.32);
}

.method-grid article:nth-child(3) {
  border-color: rgba(47, 122, 97, 0.32);
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0;
}

.result-card {
  padding: 22px;
  min-height: 160px;
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.result-card strong {
  display: block;
  margin-top: 12px;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
  font-weight: 880;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid rgba(244, 181, 175, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.94rem;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1dedb;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--red-dark);
  background: #fff0ee;
  font-weight: 850;
  white-space: nowrap;
}

.direction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  margin-left: 0.32em;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 0.72em;
  vertical-align: 0.12em;
}

.direction-icon.is-lower {
  color: var(--red);
  background: #ffe5e2;
  border-color: rgba(179, 28, 18, 0.16);
}

.direction-icon.is-higher {
  color: var(--green);
  background: #e7f4ef;
  border-color: rgba(47, 122, 97, 0.18);
}

td {
  color: #3d4550;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.ours-row td {
  color: var(--red-dark);
  background: #fff9f8;
  font-weight: 800;
}

.demo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.video-card {
  overflow: hidden;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #181818;
}

.video-caption {
  min-height: 70px;
  padding: 14px 15px 16px;
}

.video-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.bibtex {
  margin: 24px 0 0;
  padding: 22px;
  color: #f9e8e5;
  background: #2a1715;
  border: 1px solid #4b2824;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid rgba(244, 181, 175, 0.55);
  text-align: center;
}

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

@media screen and (max-width: 1024px) {
  .publication-title {
    font-size: 2.35rem;
  }

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

  .insight-grid,
  .method-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 760px) {
  .container {
    width: calc(100% - 24px) !important;
  }

  .site-nav {
    position: static;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.96rem;
  }

  .hero-section {
    padding: 48px 0 40px;
  }

  .publication-title {
    font-size: 1.78rem;
    line-height: 1.16;
  }

  .eyebrow {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .section-kicker {
    font-size: 1.08rem;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
  }

  .section-kicker::after {
    width: 36px;
    height: 3px;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .publication-authors {
    margin-top: 24px;
  }

  .author-row {
    column-gap: 20px;
  }

  .author-row a {
    font-size: 1rem;
  }

  .affiliations {
    font-size: 0.84rem;
  }

  .section,
  .compact-section {
    padding: 48px 0;
  }

  .section-heading h2 {
    font-size: 1.68rem;
  }

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

  .metric {
    min-height: auto;
  }

  .dataset-card dl {
    grid-template-columns: 1fr;
  }

  .publication-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button.action-button {
    width: 100%;
  }
}
