:root {
  --ink: #17202a;
  --muted: #58616d;
  --accent: #2c67b1;
  --accent-dark: #173f72;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --rule: #dfe4e9;
  --content: 980px;
}

* {
  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;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.container.wide {
  width: min(calc(100% - 32px), 1200px);
}

.text-column {
  max-width: 820px;
}

.hero {
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(92, 153, 222, 0.16), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(240, 166, 84, 0.14), transparent 30%),
    #fbfcfd;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  position: relative;
  padding: 68px 0 58px;
}

.back-link {
  position: absolute;
  top: 20px;
  left: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(2.1rem, 5vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.authors {
  margin: 0 0 3px;
  font-size: 1.15rem;
}

.authors a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.affiliation,
.venue {
  margin: 0;
  color: var(--muted);
}

.venue {
  margin-top: 6px;
  font-weight: 650;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  padding: 8px 17px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.teaser-section {
  padding-top: 42px;
}

.hero-image {
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(23, 32, 42, 0.13);
}

.lead {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.55;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 50px;
}

.method-figure {
  padding: 34px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(23, 32, 42, 0.08);
}

.steps {
  margin: 0;
  padding-left: 1.35em;
}

.steps li + li {
  margin-top: 12px;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 9px;
}

.takeaways div {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  background: var(--soft);
}

.takeaways strong {
  color: var(--accent-dark);
  font-size: 1.35rem;
}

.takeaways span {
  color: var(--muted);
  font-size: 0.9rem;
}

figure {
  margin: 0;
}

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

.comparison-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.comparison-grid img,
.asset-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #aaa;
}

.stat-callout {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.stat-callout > div {
  display: flex;
  flex-direction: column;
}

.stat {
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-callout p {
  margin: 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.section-dark {
  color: #f7f9fb;
  background: #18212b;
}

.section-dark .section-heading p:last-child,
.section-dark figcaption {
  color: #bbc4ce;
}

.section-dark .eyebrow {
  color: #83b7f3 !important;
}

.video-grid video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #07090b;
}

pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  color: #e9eef5;
  background: #18212b;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.55;
}

footer {
  padding: 30px 0;
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

footer p {
  margin: 0;
}

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

  .hero-inner {
    padding-top: 62px;
  }

  .section {
    padding: 52px 0;
  }

  .method-layout,
  .comparison-grid,
  .video-grid,
  .asset-grid,
  .stat-callout {
    grid-template-columns: 1fr;
  }

  .method-layout {
    gap: 28px;
  }

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

  .asset-grid {
    gap: 30px;
  }

  footer .container {
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
