:root {
  --ink: #17191c;
  --muted: #5b6470;
  --line: #dfe3e8;
  --line-strong: #c9cfd7;
  --blue: #2459d6;
  --blue-dark: #1744ad;
  --blue-soft: #f1f5ff;
  --panel: #f7f8fa;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  color: inherit;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(36, 89, 214, 0.35);
  outline-offset: 4px;
}

.page-width {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(223, 227, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: grid;
  width: min(1320px, calc(100% - 48px));
  min-height: 70px;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.wordmark {
  width: fit-content;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.topbar nav {
  display: flex;
  gap: 34px;
  color: #48515d;
  font-size: 16px;
  font-weight: 540;
}

.topbar nav a,
.footer-links a {
  transition: color 160ms ease;
}

.topbar nav a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.topbar-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 680;
}

.hero {
  padding-top: clamp(72px, 9vw, 122px);
  padding-bottom: 70px;
  text-align: center;
}

.venue-line {
  display: flex;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 30px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.venue-line span + span {
  color: #6a7380;
  font-weight: 520;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 88px);
  font-weight: 790;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.paper-title {
  max-width: 1000px;
  margin: 28px auto 30px;
  color: #303640;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 460;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.authors {
  display: flex;
  max-width: 1010px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin: 0 auto;
  color: #263a67;
  font-size: 18px;
  line-height: 1.7;
}

.authors a {
  color: var(--blue);
}

.authors a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

sup {
  color: var(--blue);
  font-size: 0.67em;
  font-weight: 760;
}

.author-note {
  margin: 10px 0 0;
  color: #737c87;
  font-size: 15px;
}

.affiliation-line {
  max-width: 960px;
  margin: 17px auto 0;
  color: #5a6370;
  font-size: 17px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.project-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 16px;
  font-weight: 680;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue);
}

.project-link-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.project-link-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: white;
}

.link-icon {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.project-link-primary .link-icon {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.hero-demo {
  padding-bottom: 66px;
}

.section-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 30px;
}

.section-overline {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-label-row h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 55px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-label-row > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.compare-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #eef0f3;
  box-shadow: 0 18px 50px rgba(30, 45, 75, 0.09);
}

.compare-shell figure {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #131619;
}

.compare-shell figure + figure {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.compare-shell video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.compare-shell figcaption {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 18, 22, 0.75);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 580;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.compare-shell figcaption span {
  color: #a6c2ff;
  font-weight: 760;
  text-transform: uppercase;
}

.ours-frame::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(89, 134, 245, 0.72);
  content: "";
  pointer-events: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts article {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  text-align: center;
}

.facts article:last-child {
  border-right: 0;
}

.facts strong {
  font-size: 41px;
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1;
}

.facts span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.tldr {
  padding: 82px 0;
  background: var(--blue-soft);
}

.tldr-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 50px;
  align-items: start;
}

.tldr-copy {
  max-width: 970px;
  margin: 0;
  color: #172951;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.content-section {
  padding-top: clamp(96px, 11vw, 150px);
}

.abstract-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 90px;
}

.section-heading h2 {
  max-width: 820px;
}

.abstract-copy {
  border-top: 1px solid var(--line-strong);
}

.abstract-copy p {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: #3e4650;
  font-size: 19px;
  line-height: 1.8;
}

.centered-heading {
  max-width: 900px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-intro {
  max-width: 740px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.method-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.method-figure img {
  width: 100%;
}

.method-figure figcaption {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.method-cards article {
  display: grid;
  min-height: 285px;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.method-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 740;
}

.card-kicker {
  margin: 2px 0 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 740;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-cards h3,
.challenge-title h3,
.evaluation-grid h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 690;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.method-cards article > div > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.results-section {
  margin-top: clamp(96px, 11vw, 150px);
  padding: clamp(96px, 10vw, 135px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.procedure-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.procedure-tab {
  display: flex;
  min-height: 73px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: #3e4651;
  cursor: pointer;
  font-size: 15px;
  font-weight: 640;
  line-height: 1.25;
  text-align: left;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.procedure-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.procedure-tab span {
  display: grid;
  min-width: 41px;
  height: 41px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 780;
}

.procedure-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.procedure-tab.active span {
  background: rgba(255, 255, 255, 0.17);
  color: white;
}

.procedure-viewer {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: white;
}

.viewer-title {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 24px;
}

.viewer-title > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.viewer-title > div > span {
  display: grid;
  min-width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 780;
}

.viewer-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.viewer-title p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.viewer-title strong {
  color: var(--blue);
}

.procedure-viewer .compare-shell {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.factor-section {
  padding-bottom: clamp(96px, 11vw, 150px);
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.factor-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.factor-grid video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #16191c;
}

.factor-grid figcaption {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}

.factor-grid strong {
  color: var(--blue);
  font-size: 23px;
  letter-spacing: -0.03em;
}

.factor-grid span {
  color: var(--muted);
  font-size: 15px;
}

.challenge-section {
  padding: clamp(96px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.challenge-grid > article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.challenge-title {
  display: flex;
  min-height: 130px;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
}

.challenge-title > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 780;
}

.challenge-title h3 {
  font-size: 25px;
}

.challenge-title p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.mini-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.mini-compare figure {
  position: relative;
  min-width: 0;
  margin: 0;
  background: #15181b;
}

.mini-compare figure + figure {
  border-left: 1px solid white;
}

.mini-compare video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.mini-compare figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(15, 18, 22, 0.72);
  color: white;
  font-size: 13px;
  font-weight: 640;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.evaluation-section {
  padding-bottom: clamp(96px, 11vw, 150px);
}

.evaluation-section > .section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 50px;
}

.evaluation-section > .section-heading .section-overline {
  padding-top: 11px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.evaluation-grid article {
  min-height: 270px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.evaluation-grid article:last-child {
  border-right: 0;
}

.evaluation-grid > article > span {
  color: var(--blue);
  font-size: 15px;
  font-weight: 760;
}

.evaluation-grid h3 {
  margin-top: 26px;
}

.evaluation-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.publication-section {
  padding: clamp(96px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
  background: var(--blue-soft);
}

.publication-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 80px;
  align-items: start;
}

.publication-details h2 {
  margin: 0;
  font-size: clamp(35px, 4vw, 50px);
  font-weight: 730;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.citation-title {
  margin: 25px 0 30px;
  color: #3f4b5d;
  font-size: 19px;
  line-height: 1.65;
}

.publication-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 30px;
  border-top: 1px solid #ccd7ee;
}

.publication-details dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #ccd7ee;
}

.publication-details dl div:nth-child(odd) {
  padding-right: 20px;
}

.publication-details dl div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid #ccd7ee;
}

.publication-details dt {
  color: var(--muted);
  font-size: 15px;
}

.publication-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 680;
}

.doi-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.doi-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bibtex-card {
  overflow: hidden;
  border: 1px solid #c5d1e8;
  border-radius: 14px;
  background: white;
  box-shadow: 0 16px 40px rgba(30, 60, 120, 0.08);
}

.bibtex-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.bibtex-header > span {
  font-size: 16px;
  font-weight: 720;
}

.bibtex-header button {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: white;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
}

.bibtex-header button:hover {
  border-color: var(--blue);
}

.bibtex-card pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #33405a;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner strong {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.footer-inner p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: #4d5661;
  font-size: 15px;
  font-weight: 640;
}

@media (max-width: 980px) {
  .section-label-row,
  .abstract-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-label-row > p {
    max-width: 700px;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }

  .procedure-tabs {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .bibtex-card {
    max-width: 780px;
  }
}

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

  .page-width,
  .topbar-inner {
    width: min(100% - 32px, var(--page));
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    padding-top: 62px;
    padding-bottom: 50px;
  }

  .venue-line {
    flex-direction: column;
    gap: 5px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 68px);
  }

  .paper-title {
    font-size: 22px;
  }

  .authors {
    gap: 4px 15px;
    font-size: 17px;
  }

  .compare-shell {
    grid-template-columns: 1fr;
  }

  .compare-shell figure + figure {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
  }

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

  .facts article {
    border-bottom: 1px solid var(--line);
  }

  .facts article:nth-child(2) {
    border-right: 0;
  }

  .facts article:nth-child(n + 3) {
    border-bottom: 0;
  }

  .tldr-inner {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tldr-copy {
    font-size: 28px;
  }

  .method-cards article {
    padding: 28px;
  }

  .challenge-grid,
  .evaluation-grid {
    grid-template-columns: 1fr;
  }

  .evaluation-section > .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .evaluation-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .evaluation-grid article:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 34px;
  }

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

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(44px, 12vw, 52px);
    letter-spacing: -0.065em;
  }

  .topbar-link {
    font-size: 15px;
  }

  .paper-title {
    font-size: 20px;
  }

  .affiliation-line {
    font-size: 16px;
  }

  .link-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-link {
    justify-content: center;
    padding-inline: 12px;
  }

  .section-label-row h2,
  .section-heading h2 {
    font-size: 37px;
  }

  .facts article {
    min-height: 110px;
  }

  .facts strong {
    font-size: 35px;
  }

  .facts span {
    font-size: 14px;
  }

  .procedure-tabs {
    grid-template-columns: 1fr;
  }

  .viewer-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .factor-grid figure:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
  }

  .challenge-title {
    min-height: auto;
    padding: 24px;
  }

  .mini-compare {
    grid-template-columns: 1fr;
  }

  .mini-compare figure + figure {
    border-top: 1px solid white;
    border-left: 0;
  }

  .publication-details dl {
    grid-template-columns: 1fr;
  }

  .publication-details dl div:nth-child(odd),
  .publication-details dl div:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .bibtex-card pre {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
