:root {
  --ink: #17211f;
  --muted: #5c6764;
  --paper: #faf8f2;
  --panel: #ffffff;
  --line: #dce2df;
  --teal: #0a7b78;
  --teal-dark: #055f5c;
  --coral: #c9583d;
  --amber: #d39b28;
  --mint: #e3f4ec;
  --bluewash: #edf3f8;
  --shadow: 0 18px 50px rgba(25, 38, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 226, 223, 0.86);
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--teal-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  padding: 8px 0;
}

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

.hero {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 44px;
  text-align: center;
}

.hero-copy {
  max-width: 1080px;
  margin: 0 auto;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 3.85rem;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.author-block {
  max-width: 980px;
  margin: 20px auto 0;
  display: grid;
  gap: 8px;
}

.authors,
.affiliations {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.authors {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
}

.authors span:not(:last-child)::after {
  content: ",";
}

.authors sup,
.affiliations sup {
  margin-left: 1px;
  color: var(--coral);
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations sup {
  margin-right: 2px;
}

.affiliations {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.badge-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.badge-row img {
  height: 22px;
}

.tagline {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.meta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 6px 10px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(23, 33, 31, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 123, 120, 0.45);
  background: #f7fffc;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.hero-media {
  width: min(1100px, 100%);
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  background: #ffffff;
}

figcaption {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  scroll-margin-top: 84px;
}

.section.narrow {
  width: min(940px, calc(100% - 32px));
}

.section h2 {
  margin: 0 0 18px;
  font-size: 2.2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.section p:last-child {
  margin-bottom: 0;
}

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

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-strip div,
.highlight-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.07);
}

.stat-strip div {
  min-height: 118px;
  padding: 18px;
}

.stat-strip strong {
  display: block;
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.stat-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.highlight-card,
.result-card {
  padding: 22px;
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
}

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

.method-diagram {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) 38px minmax(360px, 1.7fr) 38px minmax(170px, 0.65fr);
  align-items: center;
  gap: 12px;
}

.flow-column {
  display: grid;
  gap: 12px;
}

.token {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--panel);
  font-weight: 800;
  text-align: center;
}

.token-vision,
.token-grasp {
  border-color: rgba(10, 123, 120, 0.35);
  background: #e6f5f1;
}

.token-mask,
.token-score {
  border-color: rgba(201, 88, 61, 0.35);
  background: #fff0ec;
}

.token-point,
.token-recon {
  border-color: rgba(211, 155, 40, 0.35);
  background: #fff8e8;
}

.flow-arrow {
  position: relative;
  height: 2px;
  background: var(--ink);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--ink);
}

.backbone {
  min-height: 278px;
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid rgba(10, 123, 120, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
  padding: 20px;
}

.block-label {
  color: var(--teal-dark);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.layer-row,
.register-lane {
  display: grid;
  gap: 10px;
}

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

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

.layer-row span,
.register-lane span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.layer-row span {
  border: 1px solid #b9d8d0;
  background: #e7f4f0;
}

.register-lane span {
  border: 1px dashed rgba(201, 88, 61, 0.48);
  background: #fff3ee;
  color: #813625;
}

.inference-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inference-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.inference-strip strong {
  display: block;
  margin-bottom: 4px;
}

.inference-strip span {
  color: var(--muted);
}

.results-section {
  display: grid;
  gap: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.result-panel,
.qual-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.07);
}

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.metric-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  color: var(--teal-dark);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
}

.metric-card span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-panel {
  overflow: hidden;
}

.panel-heading {
  padding: 20px 22px 12px;
}

.panel-heading p {
  margin-bottom: 0;
}

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

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

.results-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.35;
}

.table-wrap.compact .results-table {
  min-width: 560px;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: center;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
  text-align: left;
}

.results-table thead th {
  background: #eef7f3;
  color: #263330;
  font-weight: 800;
}

.results-table thead th:first-child {
  background: #eef7f3;
}

.results-table tbody tr:hover td,
.results-table tbody tr:hover td:first-child {
  background: #fbfdf9;
}

.results-table .ours-row td,
.results-table .ours-row td:first-child {
  background: #e3f4ec;
  color: #103e3b;
  font-weight: 800;
}

.qualitative-section {
  border-top: 1px solid var(--line);
}

.qualitative-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.qual-card {
  overflow: hidden;
}

.qual-card.feature {
  grid-column: 1 / -1;
}

.qual-card img {
  width: 100%;
  background: #ffffff;
}

.qual-card div {
  padding: 18px;
}

.qual-card p {
  margin-bottom: 0;
}

.asset-showcase {
  margin-top: 28px;
}

.interactive-models {
  scroll-margin-top: 84px;
}

.showcase-heading {
  max-width: 820px;
  margin-bottom: 18px;
}

.showcase-heading h3,
.model-card h4 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.showcase-heading p {
  margin: 0;
  color: var(--muted);
}

.asset-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

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

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

.asset-tile {
  --rotate: 0deg;
  --lift: 0px;
  --mx: 50%;
  --my: 50%;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(23, 33, 31, 0.08);
  transform: translateY(var(--lift)) rotate(var(--rotate));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.asset-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.46), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.asset-tile:hover {
  --lift: -8px;
  z-index: 3;
  border-color: rgba(10, 123, 120, 0.42);
  box-shadow: 0 22px 54px rgba(23, 33, 31, 0.16);
}

.asset-tile:hover::after {
  opacity: 1;
}

.asset-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ffffff;
}

.single-object-wall .asset-tile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  scroll-margin-top: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.07);
}

.model-card model-viewer {
  width: 100%;
  height: min(58vh, 560px);
  min-height: 420px;
  display: block;
  background:
    linear-gradient(180deg, #f9fbf8 0%, #ffffff 54%, #edf3f8 100%);
  --poster-color: #ffffff;
  --progress-bar-color: var(--teal);
  --progress-mask: rgba(255, 255, 255, 0.82);
}

.model-card div {
  padding: 16px 18px;
}

.model-card h4 {
  font-size: 1.02rem;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.component-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bluewash);
  padding: 14px;
}

.component-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #25302d;
}

.component-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.figures-section {
  border-top: 1px solid var(--line);
}

.figure-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.figure-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 33, 31, 0.07);
}

.figure-card img {
  width: 100%;
  background: white;
}

.figure-card div {
  padding: 18px;
}

.figure-card p {
  margin-bottom: 12px;
}

.figure-card a {
  color: var(--teal-dark);
  font-weight: 800;
}

.citation-section {
  padding-bottom: 74px;
}

.bibtex-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111916;
  color: #e8f5ef;
}

.bibtex-box pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f5ef;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .method-diagram {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 2px;
    height: 34px;
    justify-self: center;
  }

  .flow-arrow::after {
    right: -5px;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--ink);
    border-bottom: 0;
  }

  .highlight-grid,
  .inference-strip,
  .result-grid,
  .component-grid,
  .figure-gallery,
  .qualitative-gallery {
    grid-template-columns: 1fr;
  }

  .qual-card.feature {
    grid-column: auto;
  }
}

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .nav-shell {
    min-height: 58px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    width: min(100% - 24px, 1220px);
    padding: 28px 0 34px;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .section {
    width: min(100% - 24px, 1180px);
    padding: 42px 0;
  }

  .section h2 {
    font-size: 1.7rem;
  }

  .layer-row,
  .register-lane {
    grid-template-columns: 1fr;
  }

  .backbone {
    padding: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .single-object-wall,
  .scene-wall {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-card model-viewer {
    height: 420px;
    min-height: 360px;
  }

  .metric-card strong {
    font-size: 1.8rem;
  }

  .panel-heading {
    padding: 16px 16px 10px;
  }

  .results-table {
    font-size: 0.78rem;
  }

  .bibtex-box pre {
    padding-top: 58px;
  }
}
