:root {
  --ink: #e9eef2;
  --muted: #9aa7ae;
  --night: #10161a;
  --panel: #182126;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #c9ff57;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.scroll-film {
  height: 700vh;
}

.scroll-film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #080c0e;
}

.scroll-film__video,
.scroll-film__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-film__video {
  object-fit: cover;
}

.scroll-film__shade {
  background:
    linear-gradient(90deg, rgba(5, 9, 11, 0.78) 0%, rgba(5, 9, 11, 0.18) 55%, rgba(5, 9, 11, 0.4) 100%),
    linear-gradient(0deg, rgba(5, 9, 11, 0.62), transparent 45%);
  pointer-events: none;
}

.hero {
  position: absolute;
  left: clamp(1.5rem, 7vw, 7rem);
  top: 50%;
  width: min(46rem, 80vw);
  transform: translateY(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 8.2vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.hero__intro {
  max-width: 31rem;
  color: #d2dadd;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.story__card {
  position: absolute;
  right: clamp(1.5rem, 8vw, 8rem);
  bottom: 13vh;
  display: flex;
  gap: 1.25rem;
  width: min(33rem, calc(100vw - 3rem));
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(8, 12, 14, 0.64);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.story__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story__card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.story__card p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 7vw, 7rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.scroll-cue i {
  display: block;
  width: 4rem;
  height: 1px;
  background: currentColor;
}

.progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.explanation,
.result {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 10vw, 10rem);
  padding: clamp(6rem, 12vw, 12rem) clamp(1.5rem, 7vw, 7rem);
}

.section-heading h2,
.result h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.process-copy .lead,
.result__copy > p:last-child {
  color: #cbd4d8;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.process-copy ol {
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.process-copy li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.75fr) 1.25fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.process-copy li span {
  color: var(--muted);
}

.overview {
  width: min(52rem, calc(100% - 3rem));
  margin: 0 auto;
}

.overview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

.overview figcaption {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result {
  align-items: end;
  background: var(--panel);
}

.result__copy > p:last-child {
  margin: 2rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.result__video {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: #080c0e;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .scroll-film {
    height: 600vh;
  }

  .scroll-film__video {
    object-position: center;
  }

  .hero {
    top: 42%;
  }

  .story__card {
    right: 1.25rem;
    bottom: 12vh;
    left: 1.25rem;
    width: auto;
  }

  .explanation,
  .result {
    grid-template-columns: 1fr;
  }

  .process-copy li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .overview img {
    max-height: none;
  }
}

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

  .story__card,
  .hero,
  .scroll-cue {
    transition: none;
  }
}
