.page-home #hero-title .hero-opening { color: inherit; }
.page-home #hero-title > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero {
    --hero-settle: cubic-bezier(.2,.72,.27,1);
    --phone-arrival-x: 52px;
    --phone-arrival-y: 62px;
    --studio-travel: 64px;
  }

  .page-home #hero-title > span {
    animation: qwh-headline 720ms var(--hero-settle) backwards;
  }
  .page-home #hero-title > span:last-child {
    animation-delay: 105ms;
  }
  .page-home .hero-intro {
    animation: qwh-introduction 620ms var(--hero-settle) 150ms backwards;
  }
  .page-home .hero-stage > .hero-shopkeeper {
    animation: qwh-shopkeeper 850ms var(--hero-settle) 70ms backwards;
  }
  .page-home .hero-stage > .hero-device-front.android-capture {
    animation: qwh-handset 1150ms cubic-bezier(.16,.68,.25,1) 80ms backwards;
  }

  /* Different depths in the existing studio scene, driven directly by scroll. */
  @supports (animation-timeline: view()) {
    .page-home .hero { view-timeline: --qws-hero block; }
    .page-home .hero::before,
    .page-home .hero-stage::before {
      animation: qwh-studio-depth 1s linear both;
      animation-timeline: --qws-hero;
      animation-range: exit 0% exit 100%;
    }
  }

  @media (max-width: 850px) {
    .page-home .hero {
      --phone-arrival-x: 29px;
      --phone-arrival-y: 41px;
      --studio-travel: 32px;
    }
  }
}

@keyframes qwh-headline {
  from { opacity: .64; translate: 0 .32em; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes qwh-introduction {
  from { opacity: .78; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes qwh-shopkeeper {
  from { translate: -22px 10px; }
  to { translate: 0 0; }
}
@keyframes qwh-handset {
  from { translate: var(--phone-arrival-x) var(--phone-arrival-y); rotate: 9deg; }
  to { translate: 0 0; rotate: 0deg; }
}
@keyframes qwh-studio-depth {
  from { translate: 0 0; }
  to { translate: 0 var(--studio-travel); }
}
