.hero-journey {
  /* Extra scroll while the hero is pinned. */
  --hero-scroll-distance: 200svh;
  --hero-header-height: 94px;
  --hero-crop: 66% 50%;
  --hero-mobile-crop: 76% 50%;
  --hero-mobile-art-height: 46%;
  background: #171526;
  color: #fff;
}

.hero-journey.is-scrubbing::after {
  content: "";
  display: block;
  height: var(--hero-scroll-distance);
}

.hero.journey-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100svh - var(--hero-header-height));
  display: flex;
  align-items: center;
  padding: clamp(32px, 5svh, 60px) max(36px, calc((100% - 1200px) / 2));
}

.is-scrubbing > .journey-stage {
  position: sticky;
  top: var(--hero-header-height);
}

.journey-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.journey-media img,
.journey-media video,
.journey-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-crop);
}

.journey-media video,
.journey-media canvas {
  opacity: 0;
}

.journey-stage.has-video canvas {
  opacity: 1;
}

.journey-stage.has-native-video canvas {
  opacity: 0;
}

.journey-stage.has-video.has-native-video video[data-hero-active] {
  opacity: 1;
}

.journey-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171526e8 0%, #171526ce 28%, #17152624 65%, transparent 100%);
}

.journey-stage .hero-copy {
  max-width: min(560px, 54vw);
}

.journey-stage h1,
.journey-story h2 {
  font-size: clamp(51px, min(6.7vw, 12svh), 94px);
}

.journey-story h2 {
  line-height: .99;
  letter-spacing: -.065em;
}

.journey-story h2 em {
  font-size: 1.2em;
  letter-spacing: -.055em;
}

[data-text-mode="chapters"] .journey-story-track {
  display: grid;
}

[data-text-mode="chapters"] .journey-story {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

[data-text-mode="chapters"] .journey-story[data-active] {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease 140ms, visibility 0s;
}

[data-text-mode="chapters"] .journey-captions {
  display: none;
}

.journey-stage .eyebrow {
  margin-bottom: clamp(16px, 3svh, 32px);
}

.journey-stage .hero-description,
.journey-stage .hero-actions {
  margin-top: clamp(16px, 3svh, 28px);
}

.journey-stage .hero-description,
.journey-stage .hero-note,
.journey-stage .eyebrow {
  color: #e9e5ee;
}

.journey-stage .title-dot {
  color: #ffdb58;
}

.journey-stage .hero-actions .dark {
  background: #f4ece4;
  color: #171526;
}

.journey-stage .hero-actions .dark:hover {
  background: #fff7ed;
}

.journey-stage .hero-actions .text-link,
.journey-stage .hero-actions .text-link:hover {
  text-decoration-color: #ebe5ec;
}

.journey-captions {
  display: grid;
  margin-top: clamp(16px, 3svh, 28px);
  padding-left: 13px;
  border-left: 1px solid #d8e9e5a0;
}

.journey-caption {
  grid-area: 1 / 1;
  visibility: hidden;
}

.journey-caption[data-active] {
  visibility: visible;
}

.journey-caption .mono {
  color: #ffe590;
}

.journey-caption p {
  color: #f6eff6;
  font-size: 15px;
  margin-top: 3px;
}

.journey-stage .membership-card {
  display: none;
}

.journey-stage .hero-visual {
  position: absolute;
  right: max(36px, calc((100% - 1200px) / 2));
  bottom: 20px;
  width: auto;
}

.journey-stage .arcade-play {
  background: #171526d9;
  color: #f6eff6;
  border-color: #f6eff660;
}

.journey-stage .arcade-play:hover,
.journey-stage .arcade-play:focus-visible {
  background: #29243c;
  color: #fff;
}

@media (max-width: 700px) {
  .hero-journey {
    --hero-header-height: 76px;
  }

  .hero.journey-stage {
    align-items: flex-end;
    padding: clamp(120px, 24svh, 260px) 24px 22px;
  }

  .journey-media {
    bottom: auto;
    height: var(--hero-mobile-art-height);
  }

  .journey-media img,
  .journey-media video,
  .journey-media canvas {
    object-position: var(--hero-mobile-crop);
  }

  .journey-media::after {
    background: linear-gradient(180deg, transparent 40%, #17152636 64%, #171526 100%);
  }

  .journey-stage .hero-copy {
    max-width: 100%;
  }

  .journey-stage h1,
  .journey-story h2 {
    font-size: clamp(35px, min(12.8vw, 7svh), 68px);
    letter-spacing: -.06em;
  }

  .journey-stage .hero-description {
    max-width: 430px;
  }

  .journey-stage .hero-actions {
    gap: 12px 16px;
  }

  .journey-stage .hero-actions .button {
    gap: 13px;
    padding: 12px 14px;
  }

  .journey-caption p {
    font-size: 14px;
  }
}

@media (max-width: 700px) and (max-height: 730px) {
  .hero.journey-stage {
    padding-top: clamp(100px, 19svh, 135px);
  }

  .journey-stage .hero-note {
    margin-top: 10px;
  }

  .journey-captions {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-text-mode="chapters"] .journey-story {
    transition: none;
  }

  .hero-journey.is-scrubbing::after {
    display: none;
  }

  .is-scrubbing > .journey-stage {
    position: relative;
    top: auto;
  }
}
