/* The homepage stays readable with scripts disabled or reduced motion enabled. */
.hero[data-home-intro] .hero-title-line {
  display: block;
  overflow: hidden;
  height: 1.23em;
  padding-bottom: .18em;
  margin-bottom: -.18em;
}

.hero[data-home-intro] .hero-title-line > span,
.hero[data-home-intro] .hero-title-line > em {
  display: block;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero[data-home-intro] .hero-h1 {
    font-size: clamp(2.5rem, 14vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero[data-home-intro] .hero-video-wrap {
    animation: kbu-hero-backdrop 1.8s cubic-bezier(.2, .65, .25, 1) both;
  }

  .hero[data-home-intro] .hero-tag {
    animation: kbu-hero-arrive .7s cubic-bezier(.2, .75, .25, 1) .06s both;
  }

  .hero[data-home-intro] .hero-title-line > span,
  .hero[data-home-intro] .hero-title-line > em {
    animation: kbu-hero-title .9s cubic-bezier(.16, 1, .3, 1) both;
  }

  .hero[data-home-intro] .hero-title-line:nth-child(1) > span {
    animation-delay: .14s;
  }

  .hero[data-home-intro] .hero-title-line:nth-child(2) > em {
    animation-delay: .3s;
  }

  .hero[data-home-intro] .hero-title-line:nth-child(3) > span {
    animation-delay: .46s;
  }

  .hero[data-home-intro] .hero-sub {
    animation: kbu-hero-arrive .8s cubic-bezier(.2, .75, .25, 1) .56s both;
  }

  .hero[data-home-intro] .hero-actions {
    animation: kbu-hero-arrive .75s cubic-bezier(.2, .75, .25, 1) .74s both;
  }

  .hero[data-home-intro] .hero-right {
    animation: kbu-hero-panel .95s cubic-bezier(.16, 1, .3, 1) .48s both;
  }

  .hero[data-home-intro] .hero-actions:focus-within,
  .hero[data-home-intro] .hero-right:focus-within {
    animation: none;
  }
}

@keyframes kbu-hero-title {
  from { opacity: 0; transform: translate3d(0, 110%, 0); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes kbu-hero-arrive {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes kbu-hero-panel {
  from { opacity: 0; transform: translate3d(28px, 14px, 0) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes kbu-hero-backdrop {
  from { transform: scale(1.035); }
  to { transform: none; }
}
