/* A quiet opening: arrive in the city, then unfold the journey's question. */
@media (prefers-reduced-motion: no-preference) {
  .hero--design {
    --hero-motion-duration: 1;
    --hero-motion-delay: 1;
    --hero-motion-rise: 10px;
    --hero-motion-photo-scale: 1.025;
    --hero-motion-easing: cubic-bezier(.22, .61, .36, 1);
  }

  .hero--design .hero-banner-image {
    transform-origin: 60% 50%;
    animation: hero-photo-arrive calc(2000ms * var(--hero-motion-duration))
      var(--hero-motion-easing) 0ms 1 backwards;
  }

  .hero--design .hero-veil {
    animation: hero-veil-open calc(1400ms * var(--hero-motion-duration))
      ease-in-out 0ms 1 backwards;
  }

  .hero--design .hero-pattern {
    animation: hero-pattern-appear calc(1400ms * var(--hero-motion-duration))
      ease-out calc(100ms * var(--hero-motion-delay)) 1 backwards;
  }

  .hero--design .hero-badge {
    animation: hero-badge-appear calc(800ms * var(--hero-motion-duration))
      var(--hero-motion-easing) calc(240ms * var(--hero-motion-delay)) 1 backwards;
  }

  .hero--design .hero-identity,
  .hero--design .hero-pretitle,
  .hero--design .hero-main-line,
  .hero--design .hero-description,
  .hero--design .hero-date,
  .hero--design .hero-actions,
  .hero--design .hero-route {
    animation: hero-copy-unfold calc(680ms * var(--hero-motion-duration))
      var(--hero-motion-easing) calc(var(--hero-copy-delay) * var(--hero-motion-delay))
      1 backwards;
  }

  .hero--design .hero-identity { --hero-copy-delay: 160ms; }
  .hero--design .hero-pretitle { --hero-copy-delay: 300ms; }
  .hero--design .hero-main-line:nth-of-type(2) { --hero-copy-delay: 430ms; }
  .hero--design .hero-main-line:nth-of-type(3) { --hero-copy-delay: 570ms; }
  .hero--design .hero-description { --hero-copy-delay: 760ms; }
  .hero--design .hero-date { --hero-copy-delay: 900ms; }
  .hero--design .hero-actions { --hero-copy-delay: 1030ms; }
  .hero--design .hero-route { --hero-copy-delay: 1150ms; }

  .hero--design .hero-description,
  .hero--design .hero-date,
  .hero--design .hero-actions,
  .hero--design .hero-route {
    animation-duration: calc(560ms * var(--hero-motion-duration));
  }

  .hero--design .hero-actions:focus-within { animation: none; }

  @keyframes hero-photo-arrive {
    from { opacity: .72; scale: var(--hero-motion-photo-scale); }
    to { opacity: 1; scale: 1; }
  }

  @keyframes hero-veil-open {
    from { translate: -8px 0; }
    to { translate: 0 0; }
  }

  @keyframes hero-pattern-appear {
    /* The implicit final value preserves each breakpoint's .85/.4/.25 opacity. */
    from { opacity: 0; }
  }

  @keyframes hero-badge-appear {
    from { opacity: 0; scale: .97; }
    to { opacity: 1; scale: 1; }
  }

  @keyframes hero-copy-unfold {
    from { opacity: 0; translate: 0 var(--hero-motion-rise); }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes hero-mobile-curve-settle {
    from { translate: 0 3px; }
    to { translate: 0 0; }
  }

  @media (max-width: 760px) {
    .hero--design {
      --hero-motion-duration: .8;
      --hero-motion-delay: .65;
      --hero-motion-rise: 7px;
      --hero-motion-photo-scale: 1.015;
    }

    .hero--design .hero-mobile-wave {
      animation: hero-mobile-curve-settle calc(1400ms * var(--hero-motion-duration))
        ease-in-out 0ms 1 backwards;
    }
  }
}
