:root {
  --green: #0b6a3c;
  --green-deep: #084f2d;
  --blue: #1a4f8b;
  --blue-deep: #143e6e;
  --ink: #171a1f;
  --body: #22262c;
  --muted: #5c6570;
  --line: #e4e7ec;
  --wash: #f4faf6;
  --paper: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d7f0e2; }

img { max-width: 100%; height: auto; }

a { color: var(--green); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}

.skip:focus { top: 12px; }

.accent-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 38%, var(--blue) 100%);
}

.nav {
  position: sticky;
  top: 3px;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner,
.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 58px;
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.05rem;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.hero { padding: 64px 0 12px; }

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.98rem;
}

h1 {
  margin: 0;
  max-width: 16em;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.authors {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.authors sup { font-size: 0.7em; }

.affiliation {
  margin: 4px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dek {
  margin: 14px 0 0;
  max-width: 40rem;
  color: #3c434c;
  font-size: 1.28rem;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

.lede {
  margin: 18px 0 0;
  max-width: 40rem;
  color: var(--body);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}

.btn-soon {
  display: inline-grid;
  place-items: center;
}

.btn-soon > span { grid-area: 1 / 1; }

.btn-soon .soon-hover { visibility: hidden; }

.btn-soon:hover .soon-label,
.btn-soon:focus-visible .soon-label { visibility: hidden; }

.btn-soon:hover .soon-hover,
.btn-soon:focus-visible .soon-hover { visibility: visible; }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }

.btn-ghost {
  background: #fff;
  border-color: #d5d8de;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn:focus-visible,
.nav a:focus-visible,
.file:focus-visible,
.prose a:focus-visible,
footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 28px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.stats div { margin: 0; }

.stats dt {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stats dt.g { color: var(--green); }
.stats dt.b { color: var(--blue); }

.stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.block { padding: 28px 0 8px; }

.section {
  margin-top: 28px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.prose { max-width: 40.5rem; }

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.prose h3:first-child { margin-top: 0; }

p { margin: 0; }

.prose p + p { margin-top: 0.9em; }

.prose ul {
  margin: 0.7em 0 0;
  padding-left: 1.15em;
  max-width: 40.5rem;
}

.prose li + li { margin-top: 0.2em; }

.eq {
  display: block;
  margin: 0.45em 0;
  overflow-x: auto;
}


.prose.follow { margin-top: 22px; }

.prose a { text-underline-offset: 3px; }

.contrib {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 40.5rem;
  counter-reset: item;
}

.contrib li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.contrib li::before {
  content: counter(item);
  color: var(--green);
  font-weight: 600;
}

figure { margin: 28px 0 0; }

figcaption {
  margin-top: 10px;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.shot,
.plot {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.limit { width: min(100%, 680px); }

.pair {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.pair figure { margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  margin-top: 8px;
}

.split figure { margin: 0; }

.specs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  margin: 28px 0 0;
  padding: 0;
}

.specs li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.specs span {
  color: var(--muted);
}

.clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-top: 28px;
}

.clips figure { margin: 0; }

.clip {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #121614;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.clip iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

a.file {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

a.file > span:first-child {
  flex: 1;
  min-width: 0;
}

a.file:hover {
  border-color: var(--green);
  background: var(--wash);
}

.file-name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.011em;
}

.file-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.file-meta {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}

.empty {
  margin: 4px 0 0;
  padding: 16px 18px;
  border: 1px dashed #cfd5dc;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.files h3 { margin-top: 28px; }
.files h3:first-of-type { margin-top: 22px; }

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

footer p + p { margin-top: 6px; }

footer strong {
  color: var(--ink);
  font-weight: 600;
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

.table-wrap { margin: 28px 0 8px; overflow-x: auto; }

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

table.results th,
table.results td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.results th:first-child,
table.results td:first-child,
table.results th:nth-child(2),
table.results td:nth-child(2) { text-align: left; }

table.results thead th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

table.results caption {
  caption-side: bottom;
  margin-top: 10px;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: normal;
  max-width: 46rem;
}

@media (max-width: 860px) {
  .clips { grid-template-columns: 1fr; }

  .stats,
  .pair,
  .specs { grid-template-columns: 1fr 1fr; }

  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 360px; }
}

@media (max-width: 640px) {
  .nav-inner,
  .wrap { width: min(1080px, calc(100% - 32px)); }

  .hero { padding-top: 40px; }

  .stats,
  .pair,
  .specs { grid-template-columns: 1fr; }

  .specs li { grid-template-columns: 88px 1fr; }

  .section { padding-top: 40px; }
}
