:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --ink: #161616;
  --muted: #5c5c5c;
  --line: #e6e3dc;
  --accent: #e85d04;
  --accent-dark: #c2410c;
  --ok: #0f766e;
  --fail: #b42318;
  --shadow: 0 12px 40px rgba(22, 22, 22, 0.08);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
}

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

a {
  color: var(--accent-dark);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 58px;
  gap: 16px;
  padding: 0 28px;
  margin: 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
}

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

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

.hero {
  padding: 64px 0 28px;
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 14px;
  max-width: 100%;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: min(44px, calc((100vw - 80px) / 21));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 auto 22px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 20px;
}

.authors {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
}

.venue {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.venue {
  margin-top: 4px;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero-video {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #111;
}

.hero-video video {
  width: 100%;
}

.caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}

.stat {
  padding: 18px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

section {
  padding: 56px 0 8px;
  scroll-margin-top: 72px;
}

h2 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
}

.lede {
  margin: 0 0 24px;
  max-width: 46rem;
  color: var(--muted);
}

.abstract {
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.abstract p {
  margin: 0;
}

.figure {
  margin: 0 0 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.figure img,
.figure video {
  width: 100%;
  background: #fff;
}

.figure figcaption,
.card figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.grid-2,
.grid-3,
.grid-tasks {
  display: grid;
  gap: 18px;
}

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

.collection-figures {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

.collection-figures figure {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  margin: 0;
}

.collection-figures img {
  width: 100%;
  display: block;
  background: #fff;
}

.collection-figures figure:first-child img {
  aspect-ratio: 1024 / 516;
  height: auto;
  object-fit: contain;
}

.collection-figures figure:last-child img {
  height: 100%;
  object-fit: fill;
}

.force-figures .figure {
  margin-bottom: 0;
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card video {
  width: 100%;
  background: #111;
}

.card h3,
.task h3 {
  margin: 16px 16px 6px;
  font-size: 18px;
}

.card p,
.task p {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 15px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.compare figure {
  margin: 0;
}

.compare img,
.compare video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f1ec;
}

.compare figcaption {
  padding: 8px 0 12px;
  text-align: center;
  font-size: 13px;
}

.task video {
  width: 100%;
  background: #111;
}

.task .split-label {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task .split-label span:first-child {
  color: var(--ok);
}

.task .split-label span:last-child {
  color: var(--fail);
}

.bullets {
  margin: 0;
  padding-left: 1.15rem;
}

.bullets li {
  margin: 0 0 10px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

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

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

td.good {
  color: var(--ok);
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.bibtex {
  position: relative;
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  background: #1b1b1b;
  color: #f4f1ea;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .stats,
  .grid-2,
  .grid-3,
  .grid-tasks,
  .collection-figures {
    grid-template-columns: 1fr;
  }

  .collection-figures {
    grid-template-rows: none;
  }

  .collection-figures figure {
    display: block;
    grid-row: auto;
  }

  .collection-figures figure:last-child img {
    height: auto;
    object-fit: contain;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .abstract {
    padding: 20px;
  }
}
