.home-hero__typeface {
  opacity: 0;
  animation: hero-script-fallback 0s 12s forwards;
}
.home-hero__typeface.is-started {
  opacity: 1;
  animation: none;
}
@keyframes hero-script-fallback {
  to { opacity: 1; }
}

/* Decorative insertion cursor: no extra character in accessible copy. */
.home-hero__copy.is-typing::after {
  content: "_";
}
.home-hero__copy.is-typing[data-completed="true"]::after {
  animation: hero-cursor-blink 1s steps(1, end) infinite;
}
@keyframes hero-cursor-blink {
  0%, 49.99% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .home-hero__copy.is-typing::after,
  .home-hero__copy.is-typing[data-completed]::after {
    animation: none;
    opacity: 1;
  }
  .motion-ready .home-hero__typeface {
    opacity: 1;
  }
  .about-hero__rotator {
    transform: none !important;
    will-change: auto;
  }
  .about-hero__back {
    display: none;
  }
  .portfolio-card__link:hover,
  .portfolio-card__link:focus-visible {
    transform: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  a:not(.portfolio-card__link, .contact-section__action),
  button {
    transition: opacity var(--motion-hover) var(--ease-fluid);
  }
  a:not(.portfolio-card__link, .contact-section__action):hover,
  button:not(:disabled):hover {
    opacity: 0.88;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__typeface {
    transition: none;
  }
}
