:root {
  --bg: #fbfbfc;
  --text: #1c1e22;
  --muted: #6a707a;
  --line: #e7e8ec;
  --card: #ffffff;
  --accent: #2a3fd0;
  --accent-deep: #1d2da8;
  --soft: #eef1ff;
  --shadow: 0 30px 70px -36px rgba(40, 50, 90, 0.45);
  --sans: "Instrument Sans", "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --page: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.page { width: min(var(--page), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 40px;
  background: rgba(251, 251, 252, 0.88);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 17px;
}
.brand .bee { display: block; height: 22px; width: auto; }
.site-nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.site-nav a { color: #6a707a; text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.hero {
  padding: 84px 24px 0;
  text-align: center;
}
.kicker {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.wordmark {
  margin: 0;
  font-size: clamp(76px, 10vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
  background: linear-gradient(102deg, #2f6bff 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.paper-title {
  max-width: 740px;
  margin: 22px auto 18px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}
.authors {
  max-width: 920px;
  margin: 0 auto 8px;
  font-size: 15px;
  line-height: 1.7;
}
.authors span { display: block; }
.authors sup { font-size: 0.68em; }
.affiliations {
  margin: 0 auto 4px;
  color: var(--muted);
  font-size: 13.5px;
}
.corresponding {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 13.5px;
}
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fbfbfc; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary span {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(251, 251, 252, 0.35);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.btn-secondary {
  border: 1px solid #e1e2e6;
  background: #f7f7f8;
  color: var(--muted);
}
.btn-secondary:hover { color: var(--text); }
.btn-soon {
  border: 1px solid #e1e2e6;
  background: #f7f7f8;
  color: #8b9098;
  cursor: default;
}
.btn-soon em {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #d8d9de;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-figure { margin-top: 28px; }
.facts-wrap { padding-top: 14px; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f3f4f7;
  border-radius: 16px;
}
.facts div { padding: 16px 16px 15px; }
.facts div + div { box-shadow: inset 1px 0 0 #e4e6eb; }
.facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.facts strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.facts p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.hero-video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #111216;
  box-shadow: var(--shadow);
}

section { padding: 56px 0 8px; }
#abstract { padding-top: 36px; }
#abstract .prose { max-width: none; }
#abstract h2, #method h2 { max-width: none; }
#abstract p { margin: 0 0 14px; color: #3a3e46; }
#abstract p:last-child { margin-bottom: 0; }
#abstract em { font-style: italic; color: var(--accent); }
section h2 {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.lead, .prose p { margin: 0 0 14px; }
.prose { max-width: none; }
.prose strong { font-weight: 700; }
.setup { max-width: none; margin: 22px 0 0; color: #3a3e46; }
.extra { margin-top: 18px; max-width: none; }

.figure {
  margin: 28px 0 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.figure img {
  width: 100%;
  height: auto;
  background: white;
  image-rendering: auto;
  cursor: zoom-in;
}
#zoom {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(22, 24, 30, 0.45);
  cursor: zoom-out;
}
#zoom[hidden] { display: none; }
#zoom img {
  max-width: min(1040px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.figure figcaption {
  margin: 0;
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
}
.steps li {
  background: white;
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 3px 3px 0 #e6e8ee;
}
.steps em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.steps strong { display: block; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.subhead {
  margin: 28px 0 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
  align-items: start;
}
.pair .figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pair .plot {
  position: relative;
  aspect-ratio: 3338 / 1218;
  background: white;
}
.pair .plot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.task { margin-top: 12px; }
.task-head {
  display: flex;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 4px;
}
.task-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.task-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}
.frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.frames.three { grid-template-columns: repeat(3, 1fr); }
.frame {
  margin: 0;
  background: white;
  overflow: hidden;
  border: 0;
}
.frames .frame:first-child { border-radius: 8px 0 0 8px; }
.frames .frame:last-child { border-radius: 0 8px 8px 0; }
.frames .frame:first-child img { border-radius: 8px 0 0 0; }
.frames .frame:last-child img { border-radius: 0 8px 0 0; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frames.three img { object-fit: contain; background: #f3f4f6; }
.frame figcaption { padding: 8px 10px 10px; color: var(--muted); font-size: 13px; }

.compare {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--muted);
  font-size: 14.5px;
}
.compare-label {
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  font-weight: 600;
}
.compare .bee { color: var(--accent); font-weight: 600; }
.compare b { font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
}
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #f7f7f8;
}
tr.bee td { background: #f4f6ff; font-weight: 700; }
tr.bee td:first-child { color: var(--accent); }
.note { margin: 10px 2px 0; color: var(--muted); font-size: 13.5px; }
.spec-wrap { margin-top: 22px; }
table.spec { min-width: 920px; }
table.spec th, table.spec td { text-align: left; font-size: 13.5px; }
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}
.charts .figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.charts .plot {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 552;
  background: white;
}
.charts .plot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.charts .figure figcaption { flex: 1; }
.rollouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.rollouts .figure { margin: 0; }
.rollouts video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111216;
}
.rollouts figcaption strong {
  color: var(--text);
  font-weight: 600;
}

button.copy {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button.copy:hover { border-color: var(--accent); color: var(--accent); }
pre.bib {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}
footer {
  margin-top: 56px;
  padding: 22px 40px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--text); }
section, h2, h3 { scroll-margin-top: 78px; }

@media (max-width: 860px) {
  .site-header { padding: 14px 18px; }
  .site-nav { gap: 14px; font-size: 14px; }
  .page { width: min(var(--page), calc(100% - 32px)); }
  .hero { padding-top: 48px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { box-shadow: none; }
  .facts div:nth-child(n + 3) { box-shadow: inset 0 1px 0 #e4e6eb; }
  .facts div:nth-child(4) { box-shadow: inset 1px 0 0 #e4e6eb, inset 0 1px 0 #e4e6eb; }
  .frames, .steps, .charts { grid-template-columns: 1fr 1fr; }
  .frames.three { grid-template-columns: 1fr; }
  .pill { margin-left: 0; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { box-shadow: inset 0 1px 0 #e4e6eb; }
  .frames, .steps, .charts, .rollouts, .pair { grid-template-columns: 1fr; }
  .pair .plot { aspect-ratio: auto; }
  .pair .plot img { position: static; inset: auto; width: 100%; height: auto; }
  .wordmark { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
