:root {
  --accent: #6456c7;
  --accent-dark: #4b3eb2;
  --accent-soft: #eeecff;
  --ink: #172033;
  --muted: #657086;
  --line: #dfe3eb;
  --surface: #ffffff;
  --surface-alt: #f6f7fa;
  --viewer: #111522;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(26, 32, 51, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 4px;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

.container,
.wide-container {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.wide-container {
  width: min(100% - 40px, 1180px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(223, 227, 235, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.site-header nav {
  display: flex;
  gap: 26px;
  color: #4c566c;
  font-size: 13px;
  font-weight: 650;
}

.site-header nav a,
.header-paper {
  transition: color 180ms ease;
}

.site-header nav a:hover,
.header-paper:hover:not(.is-disabled) {
  color: var(--accent);
}

.header-paper {
  justify-self: end;
  font-size: 13px;
  font-weight: 750;
}

.header-paper.is-disabled {
  color: #7d8493;
  cursor: not-allowed;
  opacity: 0.7;
}

.publication-hero {
  padding: clamp(84px, 11vw, 142px) 0 clamp(72px, 9vw, 116px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% -18%, rgba(100, 86, 199, 0.18), transparent 46%),
    linear-gradient(180deg, #fbfbff 0%, #fff 72%);
}

.hero-inner {
  position: relative;
}

.eyebrow,
.section-heading > p {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.publication-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(35px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.publication-hero h1 span {
  color: inherit;
}

.authors {
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
}

.authors span {
  white-space: nowrap;
}

.authors i {
  margin-right: 8px;
  color: inherit;
  font-style: normal;
}

sup {
  margin-left: 2px;
  color: var(--accent);
  font-size: 0.68em;
  font-weight: 800;
}

.affiliations {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-width: 116px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 13px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover:not(.button-disabled) {
  transform: translateY(-2px);
  border-color: #beb7ec;
  box-shadow: 0 8px 20px rgba(62, 53, 137, 0.1);
}

.button-primary {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.button-disabled {
  color: #7d8493;
  border-color: var(--line);
  background: #f5f6f8;
  cursor: default;
}

.button-disabled small {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  scroll-margin-top: 64px;
}

.teaser {
  padding-top: 0;
  text-align: center;
}

.teaser img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teaser p {
  max-width: 790px;
  margin: 26px auto 0;
  color: #475269;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #9e91f0);
  content: "";
  transform: translateX(-50%);
}

.section-description {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.videos-section {
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.demo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(26, 32, 51, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(26, 32, 51, 0.11);
}

.demo-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eef0f5;
}

.demo-label {
  padding: 17px 19px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.demo-label h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abstract-section,
.results-section {
  background: var(--surface);
}

.prose-container {
  max-width: 800px;
}

.abstract-copy {
  color: #455067;
  font-size: 17px;
  line-height: 1.82;
}

.abstract-copy p {
  margin: 0;
}

.abstract-copy p + p {
  margin-top: 20px;
}

.abstract-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.method-section,
.bibtex-section {
  background: var(--surface-alt);
}

.paper-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 32px rgba(26, 32, 51, 0.06);
}

.paper-figure img {
  width: 100%;
  height: auto;
}

.paper-figure figcaption {
  padding: 1rem 0.4rem 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: center;
}

.paper-figure figcaption strong {
  color: var(--ink);
}

.method-steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-steps article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.method-steps article > span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.method-steps h3 {
  margin: 0.55rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: normal;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.result-figure {
  background: #fbfbfc;
}

.geo-results-table-block {
  margin-bottom: 3rem;
}

.geo-results-table-block h3,
.geo-results-visualization-title {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.35rem;
  text-align: center;
}

.geo-results-visualization-title {
  margin-bottom: 1.25rem;
}

.geo-results-table-intro {
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.geo-results-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(26, 32, 51, 0.06);
  -webkit-overflow-scrolling: touch;
}

.geo-results-table {
  width: 100%;
  min-width: 1060px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.geo-results-table .method-column {
  width: 170px;
}

.geo-results-table .metric-column {
  width: 89px;
}

.geo-results-table th,
.geo-results-table td {
  padding: 0.62rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.geo-results-table th:first-child,
.geo-results-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 170px;
  min-width: 170px;
  padding-left: 0.85rem;
  background: var(--surface);
  text-align: left;
}

.geo-results-table thead th {
  color: #465168;
  background: var(--surface-alt);
  font-weight: 750;
}

.geo-results-table thead th:first-child {
  z-index: 2;
  background: var(--surface-alt);
}

.geo-results-table thead tr:first-child th {
  padding-top: 0.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 0;
}

.geo-results-table thead tr:last-child th {
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.geo-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.geo-results-table tbody tr.group-start td {
  border-top: 2px solid #cdd3df;
}

.geo-results-table tbody tr.ours td,
.geo-results-table tbody tr.ours td:first-child {
  background: var(--accent-soft);
}

.geo-results-table tbody tr.ours td:first-child {
  font-weight: 750;
}

.geo-results-table .method-type {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.geo-results-table .second-best {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

@media (max-width: 700px) {
  .geo-results-table-block {
    margin-bottom: 2.25rem;
  }
}

.bibtex-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd8f5;
  border-radius: var(--radius);
  background: #f8f7ff;
  box-shadow: var(--shadow);
}

.bibtex-card pre {
  margin: 0;
  overflow-x: auto;
  padding: 56px 26px 27px;
  color: #2f2850;
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 7px 11px;
  color: #45378e;
  border: 1px solid #d0c9ef;
  border-radius: 7px;
  background: #ece9fb;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover {
  background: #e3def9;
}

footer {
  padding: 3rem 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.9rem;
}

.footer-content {
  max-width: 850px;
  text-align: center;
}

.footer-content p {
  margin: 0 0 0.7rem;
}

.footer-content p:last-child {
  margin-bottom: 0;
}

.footer-content a {
  color: var(--accent);
}

.footer-content a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container,
  .wide-container {
    width: min(100% - 28px, 1180px);
  }

  .publication-hero {
    padding-top: 72px;
  }

  .publication-hero h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero-actions {
    max-width: 360px;
    margin-inline: auto;
  }

  .button {
    flex: 1 1 145px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 68px;
  }

  .teaser {
    padding-top: 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .abstract-copy {
    font-size: 16px;
  }

}

@media (max-width: 440px) {
  .site-header {
    min-height: 58px;
    padding-inline: 16px;
  }

  .header-paper {
    font-size: 12px;
  }

  .authors,
  .affiliations {
    font-size: 1rem;
  }

  .affiliations {
    flex-direction: column;
  }

  .demo-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bibtex-card pre {
    padding-inline: 18px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
