:root {
  color-scheme: light;
  --ink: #111316;
  --muted: #5c6570;
  --line: #d9dee5;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --accent: #2f6f73;
  --accent-strong: #17494d;
  --warm: #e6b85f;
  --shadow: 0 18px 50px rgba(21, 31, 40, 0.09);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

.site-header {
  padding-top: 52px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(47, 111, 115, 0.08), rgba(251, 251, 248, 0) 44%),
    var(--paper);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(217, 222, 229, 0.75);
  background: rgba(251, 251, 248, 0.9);
  backdrop-filter: blur(14px);
  font-size: 14px;
}

.nav-brand {
  justify-self: start;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.nav-links {
  display: flex;
  grid-column: 2;
  justify-content: center;
  gap: 26px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav .nav-brand {
  color: var(--accent-strong);
}

.top-nav a:hover {
  color: var(--ink);
}

.hero,
.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 62px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 23px;
  font-weight: 750;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1180px;
  margin: 0 auto 24px;
  font-size: clamp(36px, 5.7vw, 70px);
  line-height: 1.03;
  font-weight: 800;
}

h1 span {
  display: block;
  color: var(--accent-strong);
}

h1 .title-rest {
  max-width: 1120px;
  margin: 10px auto 0;
  color: var(--ink);
  font-size: clamp(28px, 4.25vw, 50px);
  line-height: 1.08;
}

.authors {
  max-width: 900px;
  margin: 0 auto 8px;
  color: var(--muted);
  font-size: 18px;
}

.authors a {
  color: var(--ink);
  text-decoration: none;
}

.authors a:hover {
  color: var(--accent-strong);
}

.affiliations {
  margin: 0 auto 8px;
  color: var(--muted);
  font-size: 16px;
}

.author-notes {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 14px;
}

.author-notes a {
  color: var(--accent-strong);
  text-decoration: none;
}

.author-notes a:hover {
  text-decoration: underline;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button,
.copy-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button.primary,
.copy-button {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button.disabled {
  color: #7d858d;
  cursor: default;
  pointer-events: none;
}

.section {
  padding: 50px 0 70px;
}

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

.section-heading {
  max-width: 900px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.lead {
  width: 100%;
  margin-bottom: 18px;
  color: #2e363d;
  font-size: 20px;
  text-align: justify;
}

.lead:last-child {
  margin-bottom: 0;
}

.tldr-panel {
  width: 100%;
  max-width: none;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.62);
}

.paper-figure {
  width: 100%;
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.video-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.video-comparison article,
.method-card,
.table-card,
.citation-box,
.pipeline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-comparison article {
  overflow: hidden;
}

.video-label {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-label.accent {
  color: var(--accent-strong);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #15191e;
}

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

.qual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.qual-title {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 800;
}

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

.qual-pair > div + div {
  border-left: 1px solid var(--line);
}

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

.method-explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.interpretability-copy {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 20px;
}

.interpretability-copy > .method-card {
  flex: 1 1 0;
  min-width: 0;
}

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

.method-card,
.table-card {
  padding: 22px;
}

.method-index {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 111, 115, 0.12);
  color: var(--accent-strong);
  font-weight: 800;
}

.method-card h3,
.pipeline-copy h3,
.table-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.method-card h3,
.table-card h3 {
  color: var(--accent-strong);
}

.table-card th {
  color: var(--accent-strong);
}

.method-card p,
.pipeline-copy p {
  color: #385f61;
}

.method-card p {
  margin-bottom: 14px;
  text-align: justify;
}

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

.method-figure {
  margin-top: 0;
}

.interp-figures {
  display: grid;
}

.interp-figures .interp-figure {
  margin: 0;
}

.interp-spacer {
  height: 21px;
}

.math {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
}

.pipeline {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 26px;
  margin-top: 20px;
  padding: 22px;
  align-items: center;
}

.pipeline-graphic {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f5f3;
}

.pipeline-graphic img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.pipeline-copy {
  width: 100%;
  min-width: 0;
}

.pipeline-copy p {
  max-width: none;
  margin-bottom: 14px;
  text-align: justify;
}

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

.paper-results {
  display: grid;
  gap: 34px;
}

.paper-table-card {
  padding: 22px;
}

.table-caption {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.results-subheading {
  margin-top: 8px;
  margin-bottom: -12px;
}

.table-scroll {
  overflow-x: auto;
}

.mini-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0;
}

table,
.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.paper-table {
  min-width: 760px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.compact-table {
  min-width: 0;
}

.vbench-table {
  min-width: 1080px;
}

.vbench-table th:first-child,
.vbench-table td:first-child {
  min-width: 150px;
  white-space: nowrap;
}

.paper-table th,
.paper-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.paper-table th {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.paper-table td:not(:first-child),
.paper-table th:not(:first-child) {
  text-align: right;
}

.videophy-table td:not(:first-child),
.videophy-table thead tr:first-child th:not(:first-child),
.videophy-table thead tr:nth-child(n + 2) th,
.vbench-table td:not(:first-child),
.vbench-table th:not(:first-child) {
  text-align: center;
}

.paper-table thead tr:last-child th {
  border-bottom-color: #aeb8bd;
}

.paper-table .group-break td {
  border-top: 2px solid #6f7b80;
}

.paper-muted td {
  color: #8b9298;
}

.ours td {
  background: rgba(47, 111, 115, 0.08);
}

.ours td:first-child,
.ours td:nth-child(2) {
  color: var(--accent-strong);
  font-weight: 800;
}

.second {
  text-decoration: underline;
  text-underline-offset: 3px;
}

tr.best td,
.paper-table strong {
  color: var(--accent-strong);
  font-weight: 800;
}

.citation-box {
  position: relative;
  overflow: hidden;
}

.citation-box pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  background: #101316;
  color: #eef3f0;
  font-size: 14px;
  line-height: 1.55;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 14px;
}

@media (max-width: 860px) {
  .top-nav {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-brand {
    flex: 0 0 auto;
  }

  .nav-links {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-width: max-content;
  }

  .hero {
    padding-top: 52px;
  }

  .video-comparison,
  .method-grid,
  .method-explain,
  .qual-grid,
  .pipeline,
  .conclusion-grid,
  .mini-table-grid {
    grid-template-columns: 1fr;
  }

  .qual-pair {
    grid-template-columns: 1fr;
  }

  .qual-pair > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

}

@media (max-width: 640px) {
  .interpretability-copy {
    flex-direction: column;
  }
}

@media (min-width: 861px) {
  .hero,
  .section {
    width: min(1240px, calc(100% - 36px));
  }
}
