/* Keep the final two lines in flow so the intro never moves the hero controls. */
#hero-heading {
  position: relative;
}
.homepage-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.luminous .hero #hero-heading > .headline-sequence {
  display: none;
}
.luminous .hero #hero-heading > .headline-tagline {
  background: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .luminous .hero #hero-heading > .headline-sequence {
    position: absolute;
    inset: 0 0 auto;
    display: grid;
    justify-items: center;
    background: none;
    pointer-events: none;
    user-select: none;
  }
  .headline-sequence > span {
    grid-area: 1 / 1;
    background: linear-gradient(125deg, #e0c9ff 5%, #c194f5 50%, #a874e8 98%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: .9em;
    animation: headline-word-pass var(--word-duration) ease var(--word-delay) both;
  }
  .headline-sequence > span:nth-child(5) {
    font-size: min(.9em, 9vw);
  }
  /* Leave time to read the opening, pick up the pace, then hold the last phrase. */
  .headline-sequence > span:nth-child(1) { --word-delay: -145ms; --word-duration: 590ms; }
  .headline-sequence > span:nth-child(2) { --word-delay: 360ms; --word-duration: 435ms; }
  .headline-sequence > span:nth-child(3) { --word-delay: 735ms; --word-duration: 330ms; }
  .headline-sequence > span:nth-child(4) { --word-delay: 1005ms; --word-duration: 375ms; }
  .headline-sequence > span:nth-child(5) { --word-delay: 1320ms; --word-duration: 440ms; }
  .headline-sequence > span:nth-child(6) { --word-delay: 1700ms; --word-duration: 520ms; }
  .headline-keyword, .headline-tagline > span {
    display: inline-block;
    animation: headline-lock-in 400ms cubic-bezier(.22, .72, .28, 1) 2150ms both;
  }
  .headline-tagline > span:nth-child(1) { animation-delay: 2260ms; }
  .headline-tagline > span:nth-child(2) { animation-delay: 2410ms; }
  .headline-tagline > span:nth-child(3) { animation-delay: 2580ms; }
}

@keyframes headline-word-pass {
  0% { opacity: 0; transform: translateY(.13em); filter: blur(3px); }
  19%, 81% { opacity: 1; transform: translateY(0); filter: none; }
  100% { opacity: 0; transform: translateY(-.09em); filter: blur(2px); }
}
@keyframes headline-lock-in {
  from { opacity: 0; transform: translateY(.09em); }
  to { opacity: 1; transform: translateY(0); }
}
