:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-2: #101010;
  --text: #f2f2f2;
  --muted: #969696;
  --line: #262626;
  --accent: #c9ff3d;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.07), transparent 29%),
    radial-gradient(circle at 10% 35%, rgba(201, 255, 61, 0.025), transparent 24%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

video {
  width: 100%;
  background: #000;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(201, 255, 61, 0.65);
  content: "";
}

.site-nav {
  display: flex;
  gap: 25px;
}

.site-nav a {
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  padding-top: 110px;
  padding-bottom: 84px;
  text-align: center;
}

.kicker {
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(62px, 10vw, 126px);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.88;
}

.subtitle {
  max-width: 850px;
  margin: 0 auto 36px;
  color: #d5d5d5;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.authors {
  display: flex;
  max-width: 950px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 17px;
  margin-inline: auto;
  font-size: 13px;
}

.authors a {
  color: #ededed;
  text-decoration: none;
  transition: color 160ms ease;
}

.authors a:hover,
.authors a:focus-visible {
  color: var(--accent);
}

sup {
  color: var(--accent);
  font-size: 0.64em;
  font-weight: 600;
}

.affiliations {
  display: flex;
  max-width: 1000px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 15px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 11px;
}

.author-note {
  margin: 6px 0 24px;
  color: #737373;
  font-size: 10px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.actions a {
  padding: 10px 18px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  color: #e9e9e9;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.actions a:first-child,
.actions a:hover {
  color: #050505;
  border-color: var(--accent);
  background: var(--accent);
}

.demo {
  padding-bottom: 130px;
  text-align: center;
}

.demo h2 {
  margin-bottom: 4px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.feature-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  object-fit: contain;
}

.task-section,
.method {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 4px 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-title > p {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.04;
  white-space: nowrap;
}

.section-title h2 span {
  display: inline-block;
  color: #646464;
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: top;
}

.section-title > div {
  max-width: 510px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.case-grid {
  display: grid;
  gap: 20px;
}

.case-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case,
.edit-case {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.case > video,
.video-wrap video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.case h3 {
  margin: 0;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.video-wrap {
  position: relative;
}

.reference {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 78px;
  margin: 0;
  padding: 4px 4px 3px;
  border-radius: 7px;
  background: rgba(6, 6, 6, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.48);
}

.reference img {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
}

.reference figcaption {
  padding-top: 3px;
  color: #aaa;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.captions {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.captions li {
  display: grid;
  grid-template-columns: 53px 1fr;
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid #1d1d1d;
}

.captions li:last-child {
  border-bottom: 0;
}

.captions b {
  padding-top: 1px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.captions span {
  color: #9e9e9e;
  font-size: 10px;
  line-height: 1.52;
}

.edit-list {
  display: grid;
  gap: 68px;
}

.edit-case {
  padding: 20px;
}

.edit-case h3 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}

.edit-case h3 span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 7px;
  border: 1px solid #3d3d3d;
  border-radius: 999px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comparison > div {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.comparison video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.comparison > div > b {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.76);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.comparison > div:last-child > b {
  color: #050505;
  background: var(--accent);
}

.captions.compact {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
  border: 1px solid #202020;
  border-radius: 7px;
}

.captions.compact li {
  display: block;
  padding: 10px 12px;
  border-right: 1px solid #202020;
  border-bottom: 0;
}

.captions.compact li:last-child {
  border-right: 0;
}

.captions.compact b {
  display: block;
  margin-bottom: 4px;
}

.featured-case {
  max-width: 1040px;
  margin-inline: auto;
}

.featured-case video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.section-title.centered {
  display: block;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title.centered > div {
  max-width: 650px;
  margin: 16px auto 0;
}

.framework {
  margin: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.framework img {
  width: 100%;
}

.method-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-notes article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.method-notes article:last-child {
  border-right: 0;
}

.method-notes b {
  font-size: 12px;
  font-weight: 600;
}

.method-notes p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  color: #666;
  background: #020202;
}

footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

footer p {
  max-width: 760px;
  margin: 0;
  font-size: 9px;
}

footer a {
  color: #999;
  font-size: 9px;
}

@media (max-width: 940px) {
  .section-title {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-title h2 {
    white-space: normal;
  }

  .case-grid.three {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .site-header {
    min-height: 56px;
    padding-inline: 14px;
  }

  .nav-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-content: center;
    gap: 5px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
  }

  .hero {
    padding-top: 77px;
    padding-bottom: 65px;
  }

  .hero h1 {
    font-size: 16vw;
  }

  .subtitle {
    font-size: 18px;
  }

  .authors {
    font-size: 11px;
  }

  .demo {
    padding-bottom: 82px;
  }

  .task-section,
  .method {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .case-grid.three,
  .case-grid.two {
    grid-template-columns: 1fr;
  }

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

  .captions.compact {
    grid-template-columns: 1fr;
  }

  .captions.compact li {
    border-right: 0;
    border-bottom: 1px solid #202020;
  }

  .captions.compact li:last-child {
    border-bottom: 0;
  }

  .method-notes {
    grid-template-columns: 1fr;
  }

  .method-notes article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-notes article:last-child {
    border-bottom: 0;
  }

  .framework {
    overflow-x: auto;
    padding: 8px;
  }

  .framework img {
    min-width: 850px;
  }

  footer .shell {
    display: block;
  }

  footer a {
    display: inline-block;
    margin-top: 12px;
  }
}

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