:root {
  --ink: #111513;
  --ink-soft: #4d5752;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9ded9;
  --cyan: #44d8d1;
  --coral: #ff765d;
  --lime: #b8e36e;
  --blue: #3867e8;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 0 36px;
  color: var(--white);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.wordmark-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--white);
  background: rgba(17, 21, 19, 0.34);
}

.menu-button svg,
.hero-next svg,
.site-footer > a:last-child svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 15;
  padding: 104px 28px 28px;
  color: var(--white);
  background: var(--ink);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, 88svh);
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-reel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 8, 0.68);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 48px));
  padding: 86px 0 42px;
  text-align: center;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 760px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 23px;
  line-height: 1.45;
}

.author-block {
  margin: 22px 0 0;
}

.authors,
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

.authors {
  max-width: 900px;
  gap: 6px 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 600;
}

.affiliations {
  max-width: 880px;
  gap: 4px 14px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.45;
}

.authors span,
.affiliations span {
  white-space: nowrap;
}

.authors sup,
.affiliations sup {
  font-size: 0.7em;
  line-height: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.resource-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  color: var(--white);
  background: rgba(17, 21, 19, 0.46);
  font-size: 14px;
  font-weight: 700;
}

.resource-button svg {
  width: 17px;
  height: 17px;
}

.resource-button small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 500;
}

.hero-next {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  transform: translateX(-50%);
}

.outcome-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.outcome-grid {
  display: grid;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}

.outcome-grid > div {
  min-height: 138px;
  padding: 30px 28px;
  border-left: 1px solid var(--line);
}

.outcome-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.outcome-grid > div:nth-child(1) strong {
  color: var(--blue);
}

.outcome-grid > div:nth-child(2) strong {
  color: #168c83;
}

.outcome-grid > div:nth-child(3) strong {
  color: #d64f38;
}

.outcome-grid > div:nth-child(4) strong {
  color: #557e17;
}

.outcome-grid strong,
.outcome-grid span {
  display: block;
}

.outcome-grid strong {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.outcome-grid span {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 112px max(24px, calc((100% - var(--content)) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2,
.summary-layout h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 52px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.summary-copy p {
  color: var(--ink-soft);
}

.heading-copy {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 18px;
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 70px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
}

.split-heading > p {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.7;
}

.wide-figure {
  margin: 0;
}

.wide-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.wide-figure figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.teaser-figure img,
.method-figure img,
.comparison-figure img,
.robot-task-figure img {
  border-radius: 4px;
}

.intro-section {
  padding-top: 72px;
  padding-bottom: 88px;
  background: var(--white);
}

.generation-section {
  color: var(--white);
  background: var(--ink);
}

.generation-section .kicker {
  color: var(--cyan);
}

.generation-section .heading-copy {
  color: rgba(255, 255, 255, 0.65);
}

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

.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #1a201d;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0d0c;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-shell {
  --split-position: 100%;
  --split-reveal: 0%;
}

.comparison-layer {
  position: absolute;
  inset: 0;
}

.comparison-skeleton-layer {
  z-index: 1;
}

.comparison-generated-layer {
  z-index: 2;
  clip-path: inset(0 var(--split-reveal) 0 0);
}

.comparison-layer video {
  position: absolute;
  inset: 0;
}

.comparison-skeleton-layer video {
  object-fit: contain;
}

.comparison-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(11, 13, 12, 0.76);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.comparison-slider {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
}

.comparison-slider::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.comparison-slider::-webkit-slider-thumb {
  width: 44px;
  height: 56px;
  appearance: none;
  border: 0;
  background: transparent;
}

.comparison-slider::-moz-range-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.comparison-slider::-moz-range-thumb {
  width: 44px;
  height: 56px;
  border: 0;
  background: transparent;
}

.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, var(--split-position), calc(100% - 18px));
  z-index: 6;
  width: 2px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-1px);
}

.split-divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.split-divider svg {
  width: 17px;
  height: 17px;
}

.comparison-slider:focus-visible + .split-divider > span {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--white);
  background: rgba(17, 21, 19, 0.74);
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transition: opacity 160ms ease, background 160ms ease;
}

.video-shell:hover .video-toggle,
.video-toggle:focus-visible {
  opacity: 1;
}

.video-toggle:hover {
  background: var(--blue);
}

.video-toggle svg {
  width: 16px;
  height: 16px;
}

.video-meta {
  min-height: 88px;
  padding: 16px 18px 18px;
}

.video-meta span,
.video-meta strong {
  display: block;
}

.video-meta span,
.robot-video-copy > span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.video-meta strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
}

.method-section {
  background: var(--white);
}

.method-figure {
  margin-top: 16px;
}

.method-details {
  display: grid;
  gap: 1px;
  margin-top: 72px;
  border: 1px solid var(--line);
  background: var(--line);
  grid-template-columns: minmax(0, 1fr);
}

.method-details article {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 38px;
  padding: 38px;
  background: var(--paper);
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
}

.method-details article:first-child {
  box-shadow: inset 0 4px 0 var(--coral);
}

.method-details article:last-child {
  box-shadow: inset 0 4px 0 var(--blue);
}

.method-number {
  color: #8a938f;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.method-details h3 {
  max-width: 440px;
  margin: 16px 0 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 26px;
  line-height: 1.22;
}

.method-details p {
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.method-details img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.error-callouts {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.error-callouts span {
  padding: 12px;
  border-left: 3px solid var(--blue);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
  line-height: 1.3;
}

.error-callouts b {
  display: block;
  color: var(--blue);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 20px;
}

.results-section {
  border-top: 1px solid var(--line);
}

.comparison-figure {
  margin-bottom: 54px;
}

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

.metric-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.metric-table caption {
  padding: 18px 16px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 13px;
  text-align: left;
}

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

.metric-table th:first-child,
.metric-table td:first-child,
.metric-table th:nth-child(2),
.metric-table td.category-cell + td {
  text-align: left;
}

.metric-table thead th {
  color: var(--ink-soft);
  background: #f0f3ee;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-table tbody tr:last-child td {
  border-bottom: 0;
}

.metric-table .ours td {
  color: #132e55;
  background: #e5eeff;
  font-weight: 700;
}

.metric-table .category-cell {
  color: var(--ink-soft);
  background: #f7f8f5;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.metric-table u {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.table-note {
  min-width: 1180px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
}

.robot-section {
  color: var(--white);
  background: #19201d;
}

.robot-section .kicker {
  color: var(--lime);
}

.robot-section .split-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.robot-videos {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.robot-video {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #222a26;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.65fr);
}

.robot-video .video-shell {
  aspect-ratio: 16 / 9;
}

.robot-video .video-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.robot-video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.robot-video-copy > span {
  color: var(--lime);
}

.robot-video-copy strong {
  margin-top: 6px;
  font-size: 17px;
}

.robot-task-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
}

.robot-task-heading strong {
  margin-top: 0;
}

.robot-task-heading span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.robot-task-heading svg {
  width: 13px;
  height: 13px;
}

.robot-video-copy p {
  margin: 30px 0 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.robot-video-copy b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 26px;
}

.robot-video-copy b svg {
  width: 18px;
  height: 18px;
}

.robot-task-figure {
  margin-top: 56px;
}

.robot-task-figure figcaption {
  color: rgba(255, 255, 255, 0.58);
}

.summary-section {
  background: var(--white);
}

.summary-layout {
  display: grid;
  gap: 90px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
}

.summary-layout h2 {
  font-size: 38px;
}

.summary-copy p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.8;
}

.site-footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(24px, calc((100% - var(--content)) / 2));
  border-top: 1px solid #343b37;
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.site-footer > a:last-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero h1 {
    font-size: 72px;
  }

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

  .outcome-grid > div:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .outcome-grid > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .split-heading {
    gap: 38px;
    grid-template-columns: 1fr;
  }

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

  .robot-video {
    grid-template-columns: 1fr;
  }

  .robot-video-copy {
    min-height: 180px;
  }

  .summary-layout {
    gap: 46px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-reel {
    grid-template-columns: 1fr;
  }

  .hero-reel video:nth-child(2),
  .hero-reel video:nth-child(3) {
    display: none;
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    padding-top: 76px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 18px;
  }

  .author-block {
    margin-top: 18px;
  }

  .authors {
    gap: 5px 12px;
    font-size: 13px;
  }

  .affiliations {
    gap: 3px 10px;
    margin-top: 8px;
    font-size: 9px;
  }

  .resource-button {
    min-height: 44px;
    padding: 0 13px;
  }

  .outcome-grid {
    width: 100%;
  }

  .outcome-grid > div {
    min-height: 122px;
    padding: 24px 18px;
  }

  .outcome-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .outcome-grid > div:nth-child(even) {
    border-right: 0;
  }

  .outcome-grid strong {
    font-size: 23px;
  }

  .section {
    padding: 78px 18px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .summary-layout h2 {
    font-size: 36px;
  }

  .split-heading > p,
  .heading-copy,
  .summary-copy p {
    font-size: 16px;
  }

  .wide-figure {
    overflow: hidden;
  }

  .teaser-figure img,
  .method-figure img,
  .comparison-figure img,
  .robot-task-figure img {
    width: 100%;
  }

  .video-grid,
  .method-details,
  .robot-videos {
    grid-template-columns: 1fr;
  }

  .method-details article {
    padding: 28px 22px;
    grid-template-columns: 1fr;
  }

  .error-callouts {
    grid-template-columns: 1fr 1fr;
  }

  .video-toggle {
    opacity: 1;
  }

  .robot-video-copy {
    min-height: 160px;
  }

  .site-footer {
    min-height: 190px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
