:root {
  --ink: #0c1712;
  --muted: #647169;
  --paper: #f4f6f1;
  --surface: #ffffff;
  --line: #dce3dc;
  --green: #167345;
  --green-bright: #73e2a7;
  --green-soft: #e8f4ec;
  --violet: #7762f2;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(10, 28, 19, 0.12);
}

* {
  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: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
video {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.narrow {
  width: min(calc(100% - 40px), 960px);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: #edf6f0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wordmark {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark-mark {
  width: 15px;
  height: 15px;
  border: 2px solid var(--green-bright);
  border-radius: 4px 11px 4px 11px;
  transform: rotate(12deg);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #b9c7be;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 92px;
  color: #f5fbf7;
  background:
    radial-gradient(circle at 50% 110%, rgba(34, 155, 95, 0.22), transparent 42%),
    linear-gradient(145deg, #07100c 0%, #0d1d15 58%, #09130e 100%);
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-one {
  top: -220px;
  right: 4%;
  background: radial-gradient(circle, rgba(115, 226, 167, 0.32), transparent 66%);
}

.hero-glow-two {
  top: 230px;
  left: -260px;
  background: radial-gradient(circle, rgba(119, 98, 242, 0.25), transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  padding: 7px 14px;
  color: #bfd1c4;
  border: 1px solid rgba(174, 214, 189, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(115, 226, 167, 0.1);
}

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

h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(68px, 11vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h1 > span {
  display: block;
  background: linear-gradient(110deg, #fff 25%, #a5e9c5 78%, #d8d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 small {
  display: block;
  max-width: 870px;
  margin: 30px auto 0;
  color: #eef5f0;
  font-size: clamp(26px, 4.3vw, 52px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 700px;
  margin: 28px auto 0;
  color: #b2c0b7;
  font-size: clamp(17px, 2vw, 21px);
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}

.resource-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #edf5ef;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.resource-link small {
  color: #8fa097;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-link-primary {
  color: #07100c;
  background: var(--green-bright);
  border-color: var(--green-bright);
}

.resource-link-primary:hover,
.resource-link-primary:focus-visible {
  background: #9aefbd;
}

.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.hero-media {
  position: relative;
  z-index: 1;
  margin-top: 68px;
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #000;
}

.video-frame-hero {
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.media-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 18px 0;
  color: #7f9186;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  max-width: 850px;
  margin-bottom: 34px;
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section-overview {
  background: var(--paper);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
  color: var(--muted);
}

.overview-lead {
  color: var(--ink);
  font-size: clamp(21px, 2.8vw, 29px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

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

.result-video {
  margin: 0;
}

.result-video video {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  background: #000;
}

.result-video figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.result-video figcaption strong {
  flex: 0 0 auto;
  color: #202621;
  font-size: 15px;
}

.result-video figcaption span {
  color: var(--muted);
}

.video-results-section {
  padding-top: 82px;
}

.video-results-section + .paper-section {
  border-top: 1px solid #eeeeea;
}

.paper-section {
  padding: 64px 24px;
  background: #fff;
}

.paper-section + .paper-section {
  padding-top: 36px;
}

.paper-container {
  width: min(100%, 1060px);
  margin: 0 auto;
}

.paper-section h2 {
  max-width: none;
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}

.paper-section-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.plain-figure {
  margin: 0;
}

.plain-figure img {
  width: 100%;
  height: auto;
}

.plain-figure figcaption {
  max-width: 820px;
  margin: 14px auto 0;
  color: #707870;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.quantitative-section {
  border-top: 1px solid #eeeeea;
}

.paper-table-block {
  margin-top: 56px;
}

.paper-table-block:first-of-type {
  margin-top: 42px;
}

.paper-table-block h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-align: center;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  outline-offset: 4px;
}

.paper-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border-top: 2px solid #333a35;
  border-bottom: 2px solid #333a35;
  color: #353b37;
  background: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.paper-table caption {
  padding: 0 0 10px;
  color: #757d77;
  caption-side: top;
  font-size: 12px;
  text-align: left;
}

.paper-table th,
.paper-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #dfe3df;
  text-align: center;
  white-space: nowrap;
}

.paper-table thead th {
  color: #1b211d;
  border-bottom: 1.5px solid #666d68;
  font-weight: 700;
}

.paper-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 128px;
  background: #fff;
  text-align: left;
}

.paper-table .solver-row th,
.paper-table .solver-row td {
  border-top: 1.5px solid #888f89;
}

.paper-table .ours-row th,
.paper-table .ours-row td {
  color: #126b40;
  background: #f4faf6;
  font-weight: 750;
}

.paper-table .ours-row th:first-child {
  background: #f4faf6;
}

.paper-table tbody tr:last-child th,
.paper-table tbody tr:last-child td {
  border-bottom: 0;
}

.resource-section-simple {
  padding-top: 24px;
  border-top: 1px solid #eeeeea;
}

.simple-resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  justify-content: center;
  margin: 0;
}

.simple-resource-list span,
.simple-resource-list a {
  color: #242a26;
  font-weight: 650;
}

.simple-resource-list small {
  margin-left: 6px;
  color: #8a928c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.citation-title {
  margin-top: 72px !important;
}

.citation-note {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

footer {
  color: #91a197;
  background: #07100c;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 110px;
  font-size: 12px;
}

.footer-inner > span {
  color: #f2faf5;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  color: #c6d4cb;
  font-weight: 700;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .result-video-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .shell,
  .narrow {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-wrap {
    min-height: 66px;
  }

  nav {
    gap: 16px;
  }

  nav a:nth-child(1) {
    display: none;
  }

  .hero {
    padding: 124px 0 72px;
  }

  h1 {
    font-size: clamp(64px, 23vw, 94px);
  }

  h1 small {
    margin-top: 24px;
    font-size: clamp(27px, 8vw, 42px);
  }

  .status-pill {
    font-size: 9px;
  }

  .resource-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-link {
    min-width: 0;
    padding: 0 12px;
  }

  .resource-link-primary {
    grid-column: 1 / -1;
  }

  .hero-media {
    width: 100%;
    margin-top: 48px;
  }

  .video-frame-hero {
    padding: 4px;
    border-radius: 12px;
  }

  .media-legend {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  h2 {
    margin-bottom: 24px;
    font-size: clamp(35px, 11vw, 50px);
  }

  .paper-section {
    padding: 52px 14px;
  }

  .paper-section h2 {
    font-size: 26px;
  }

  .result-video figcaption {
    display: block;
  }

  .result-video figcaption span {
    display: block;
    margin-top: 2px;
  }

  .paper-table-block {
    margin-top: 46px;
  }

  .paper-table {
    font-size: 12px;
  }

  .paper-table th,
  .paper-table td {
    padding: 9px 8px;
  }

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

  .footer-inner {
    gap: 8px;
    justify-content: center;
    min-height: 150px;
  }

  .footer-inner a {
    margin-top: 8px;
  }
}

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

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