:root {
  --ink: #17191d;
  --muted: #666c72;
  --line: #e4e5e6;
  --paper: #ffffff;
  --soft: #f6f7f6;
  --warm: #fbf5f3;
  --blood: #a63d3d;
  --blood-dark: #792a2a;
  --blood-soft: #f4dfdc;
  --track: #168b7a;
  --track-soft: #ddf1ed;
  --blue: #305eb5;
  --page: 1180px;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(37, 31, 28, 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, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 229, 230, 0.92);
  backdrop-filter: blur(16px);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.wordmark-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 0 5px var(--blood-soft);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #51565b;
  font-size: 16px;
  font-weight: 600;
}

.topbar nav a,
.topbar-link {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.topbar nav a:hover,
.topbar-link:hover {
  color: var(--blood);
}

.topbar-link {
  justify-self: end;
  color: var(--blood-dark);
  font-size: 16px;
  font-weight: 700;
}

.hero {
  padding: 104px 0 78px;
  text-align: center;
}

.venue-line {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.venue-line span:first-child {
  color: var(--blood);
}

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(68px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.paper-title {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(22px, 2.55vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.authors {
  max-width: 940px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 27px;
  color: #334052;
  font-size: 18px;
}

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

sup {
  color: var(--blood);
  font-size: 0.68em;
  font-weight: 750;
}

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

.affiliation-line {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}

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

.project-link {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #d7d9da;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: #b9bdc0;
  box-shadow: 0 10px 24px rgba(40, 35, 33, 0.08);
}

.project-link-primary {
  color: #fff;
  background: var(--blood);
  border-color: var(--blood);
}

.link-icon {
  min-width: 36px;
  height: 30px;
  padding-inline: 7px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blood);
  background: var(--warm);
  font-size: 12px;
  font-weight: 800;
}

.project-link-primary .link-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-demo {
  min-height: 610px;
  padding: 62px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 58px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #25272b 0%, #1b2022 52%, #153b36 100%);
  box-shadow: var(--shadow);
}

.hero-demo-copy {
  color: #fff;
}

.section-overline {
  margin: 0 0 10px;
  color: var(--blood);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-demo .section-overline {
  color: #f3a7a0;
}

.hero-demo h2 {
  margin: 0;
  font-size: clamp(39px, 4.3vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-demo-copy > p:not(.section-overline) {
  max-width: 490px;
  margin: 24px 0 0;
  color: #d3d9d7;
  font-size: 18px;
}

.signal-key,
.viewer-legend {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #e6e9e8;
  font-size: 15px;
  font-weight: 650;
}

.signal {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.signal.predicted {
  background: #43d9a8;
  box-shadow: 0 0 0 4px rgba(67, 217, 168, 0.15);
}

.signal.alert {
  background: #ff6b61;
  box-shadow: 0 0 0 4px rgba(255, 107, 97, 0.15);
}

.signal.ground-truth {
  background: #4d66e8;
  box-shadow: 0 0 0 4px rgba(77, 102, 232, 0.14);
}

.hero-video {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: #101213;
}

.hero-video video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-video figcaption {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #aeb6b4;
  background: #171a1b;
  font-size: 14px;
}

.hero-video figcaption span {
  color: #fff;
  font-weight: 700;
}

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

.facts article {
  min-height: 94px;
  padding: 5px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

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

.facts strong {
  font-size: clamp(30px, 3.2vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.tldr {
  margin-top: 96px;
  padding: 80px 0;
  background: var(--warm);
  border-top: 1px solid #f1dfdb;
  border-bottom: 1px solid #f1dfdb;
}

.tldr-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
}

.tldr-inner p:last-child {
  max-width: 940px;
  margin: 0;
  font-size: clamp(28px, 3.15vw, 43px);
  line-height: 1.26;
  letter-spacing: -0.04em;
}

.content-section {
  padding: 124px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 46px;
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.deployment-section h2,
.publication-details h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.section-intro {
  max-width: 730px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading:not(.centered-heading) .section-intro {
  margin-left: 0;
}

.paper-figure {
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgba(43, 37, 34, 0.06);
}

.paper-figure img {
  width: 100%;
  border-radius: 12px;
}

.paper-figure figcaption {
  padding: 15px 8px 3px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.problem-flow {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.problem-flow article {
  min-height: 225px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.problem-flow article > span,
.contribution-grid article > span {
  color: var(--blood);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.problem-flow strong {
  display: block;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.problem-flow p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.problem-flow .flow-solution {
  border-color: #b8ddd5;
  background: var(--track-soft);
}

.problem-flow .flow-solution > span {
  color: var(--track);
}

.dataset-section {
  padding: 124px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dataset-figure {
  max-width: 1050px;
  margin-inline: auto;
}

.dataset-cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dataset-cards article {
  position: relative;
  min-height: 246px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: #e6d2cf;
  font-size: 62px;
  font-weight: 800;
  line-height: 1;
}

.card-kicker {
  margin: 0;
  color: var(--blood);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dataset-cards h3 {
  margin: 46px 0 8px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.dataset-cards article > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.method-figure {
  max-width: 1060px;
  margin-inline: auto;
}

.stage-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stage-card {
  min-height: 445px;
  padding: 42px;
  border: 1px solid #ead5d2;
  border-radius: 24px;
  background: var(--warm);
}

.tracking-card {
  border-color: #c6e3dc;
  background: #eff8f6;
}

.stage-number {
  margin-bottom: 55px;
  color: #878b8e;
  font-size: 15px;
  font-weight: 700;
}

.tracking-card .card-kicker {
  color: var(--track);
}

.stage-card h3 {
  margin: 8px 0 18px;
  font-size: clamp(30px, 3vw, 41px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.stage-card > p:not(.card-kicker) {
  color: #52585c;
  font-size: 17px;
}

.stage-card ul {
  margin: 24px 0 0;
  padding: 22px 0 0 20px;
  border-top: 1px solid rgba(115, 102, 98, 0.18);
  color: #42484b;
  font-size: 16px;
}

.stage-card li + li {
  margin-top: 7px;
}

.metrics-section {
  padding: 112px 0;
  color: #fff;
  background: #1e2324;
}

.metrics-section .section-overline {
  color: #75d3c4;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #444b4c;
  border-bottom: 1px solid #444b4c;
}

.metric-grid article {
  min-height: 270px;
  padding: 36px 36px 32px 0;
  border-right: 1px solid #444b4c;
}

.metric-grid article + article {
  padding-left: 36px;
}

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

.metric-grid strong {
  color: #fff;
  font-size: clamp(50px, 5.8vw, 76px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.metric-grid h3 {
  margin: 36px 0 8px;
  font-size: 21px;
}

.metric-grid p {
  margin: 0;
  color: #adb6b5;
  font-size: 16px;
}

.comparison-note {
  margin: 28px 0 0;
  color: #9da7a5;
  font-size: 15px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.scenario-tab {
  min-height: 82px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  color: #4f5559;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.scenario-tab span {
  color: #999ea1;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.scenario-tab.active {
  color: #fff;
  border-color: var(--blood);
  background: var(--blood);
}

.scenario-tab.active span {
  color: #f6c4bf;
}

.scenario-viewer {
  margin-top: 18px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

.scenario-copy {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scenario-copy > span {
  color: var(--blood);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scenario-copy h3 {
  margin: 14px 0 14px;
  font-size: clamp(31px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.scenario-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.scenario-copy .viewer-legend {
  color: #52585b;
}

.scenario-viewer video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: #101213;
}

.deployment-section {
  padding: 112px 0;
  background: var(--warm);
  border-top: 1px solid #f0dfdc;
  border-bottom: 1px solid #f0dfdc;
}

.deployment-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 72px;
}

.deployment-grid > div > p:not(.section-overline) {
  color: var(--muted);
}

.deployment-points {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.deployment-points span {
  padding: 8px 12px;
  color: var(--blood-dark);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.deployment-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #181a1b;
  box-shadow: var(--shadow);
}

.deployment-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.deployment-grid figcaption {
  padding: 13px 17px;
  color: #ccd1d0;
  background: #181a1b;
  font-size: 14px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contribution-grid article {
  padding: 32px;
  border-top: 3px solid var(--blood);
  background: var(--soft);
}

.contribution-grid h3 {
  margin: 42px 0 10px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

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

.publication-section {
  padding: 112px 0;
  color: #fff;
  background: #202225;
}

.publication-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}

.publication-section .section-overline {
  color: #f3a39b;
}

.citation-title {
  margin: 26px 0;
  color: #c9ccce;
}

.publication-details dl {
  margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #404348;
  border-radius: 14px;
  background: #404348;
}

.publication-details dl div {
  padding: 15px;
  background: #282b2f;
}

.publication-details dt {
  color: #8f9599;
  font-size: 13px;
  text-transform: uppercase;
}

.publication-details dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.doi-link {
  color: #f1aaa3;
  font-weight: 700;
}

.bibtex-card {
  overflow: hidden;
  border: 1px solid #3e4246;
  border-radius: 18px;
  background: #181a1d;
}

.bibtex-header {
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3e4246;
  font-size: 15px;
  font-weight: 700;
}

.bibtex-header button {
  padding: 8px 12px;
  color: #f1aaa3;
  border: 1px solid #52575c;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.bibtex-card pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #cdd1d2;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-inner strong {
  font-size: 19px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid rgba(22, 139, 122, 0.42);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .topbar nav {
    display: none;
  }

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

  .hero-demo,
  .deployment-grid {
    grid-template-columns: 1fr;
  }

  .hero-demo {
    padding: 48px;
  }

  .problem-flow {
    grid-template-columns: 1fr 1fr;
  }

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

  .scenario-viewer {
    grid-template-columns: 1fr;
  }

  .scenario-viewer video {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

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

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

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

  .topbar-inner {
    min-height: 66px;
  }

  .hero {
    padding: 76px 0 58px;
  }

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

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

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

  .hero-demo {
    width: 100%;
    min-height: auto;
    padding: 42px 16px 16px;
    border-radius: 0;
  }

  .hero-demo-copy {
    padding-inline: 2px;
  }

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

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

  .facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .tldr {
    margin-top: 72px;
    padding: 60px 0;
  }

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

  .content-section,
  .dataset-section {
    padding: 88px 0;
  }

  .problem-flow,
  .dataset-cards,
  .stage-grid,
  .metric-grid,
  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid article,
  .metric-grid article + article {
    min-height: 215px;
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid #444b4c;
  }

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

  .scenario-copy {
    padding: 34px;
  }

  .publication-grid {
    gap: 40px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .wordmark {
    font-size: 17px;
  }

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

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

  .venue-line {
    flex-direction: column;
    gap: 0;
    font-size: 15px;
  }

  .authors {
    font-size: 17px;
  }

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

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

  .hero-demo h2,
  .section-heading h2,
  .deployment-section h2,
  .publication-details h2 {
    font-size: 37px;
  }

  .facts article {
    padding-inline: 14px;
  }

  .paper-figure {
    padding: 8px;
    border-radius: 15px;
  }

  .problem-flow {
    gap: 10px;
  }

  .problem-flow article,
  .dataset-cards article {
    min-height: 205px;
    padding: 25px;
  }

  .stage-card {
    min-height: auto;
    padding: 30px 26px;
  }

  .stage-number {
    margin-bottom: 34px;
  }

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

  .scenario-tab {
    min-height: 76px;
  }

  .scenario-copy {
    padding: 30px 24px;
  }

  .deployment-section,
  .metrics-section,
  .publication-section {
    padding: 82px 0;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
