/* V10: preserve the approved cinematic and scroll-led experience on every browser. */

/* The opening film is intentionally visible even when the operating system reduces UI motion. */
@media (prefers-reduced-motion: reduce) {
  #orbit-intro {
    display: grid !important;
  }

  .hero.hero-orbit {
    height: 116svh;
  }

  .orbit-sticky {
    position: sticky;
  }

  .helix {
    height: 260svh;
  }

  .helix-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 640px;
  }

  .helix-stage figure {
    will-change: transform;
  }

  .journey {
    height: 230svh;
  }

  .journey-sticky {
    position: sticky;
    display: grid;
  }

  .journey-images img:not(:first-child) {
    display: block;
  }

  .journey-text,
  .journey-text.active {
    margin: 0;
  }

  .journey-text {
    display: none;
  }

  .journey-text.active {
    display: block;
  }

  .journey-dots,
  .journey-number {
    display: flex;
  }

  .journey-number {
    display: block;
  }
}

/* Desktop: a compact editorial frame with a vertical image at left and matching text panel at right. */
@media (min-width: 701px) {
  .journey {
    height: 230svh;
    padding: 0 3vw;
    background: #d7d9ce;
  }

  .journey-sticky {
    top: 7svh;
    width: min(1440px, 94vw);
    height: 86svh;
    min-height: 560px;
    max-height: 780px;
    margin: 0 auto;
    grid-template-columns: minmax(360px, 43%) minmax(0, 57%);
    box-shadow: 0 24px 70px rgba(18, 32, 23, .14);
  }

  .journey-images {
    min-width: 0;
    height: 100%;
  }

  .journey-images img {
    object-position: center;
  }

  .journey-panel {
    height: 100%;
    padding: clamp(45px, 7vh, 75px) clamp(48px, 7vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .journey-panel .eyebrow {
    margin-bottom: clamp(15px, 2.5vh, 24px);
  }

  .journey-number {
    font-size: clamp(52px, 5vw, 72px);
    line-height: .9;
  }

  .journey-text h2 {
    font-size: clamp(42px, 4vw, 60px);
    margin: clamp(12px, 2vh, 20px) 0 clamp(15px, 2.6vh, 26px);
  }

  .journey-text p {
    max-width: 52ch;
    font-size: clamp(12px, .9vw, 14px);
  }

  .journey-text small {
    margin-top: clamp(20px, 3.5vh, 34px);
  }

  .journey-dots {
    margin-top: clamp(20px, 4vh, 36px);
  }
}

/* Phones keep the same three-step scroll sequence in a compact stacked composition. */
@media (max-width: 700px) {
  .journey,
  body.mobile-motion-enabled .journey {
    height: 230svh !important;
  }

  .journey-sticky,
  body.mobile-motion-enabled .journey-sticky {
    position: sticky !important;
    top: 0;
    height: 100svh !important;
    min-height: 620px;
    display: flex !important;
    flex-direction: column;
  }

  .journey-images {
    height: 42%;
    flex: 0 0 42%;
  }

  .journey-panel {
    height: 58%;
    padding: 20px 7% 18px;
    align-content: center;
  }

  .journey-text h2 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .journey-text h2 br {
    display: block;
  }
}
