.hero #hero-title {
  --hero-name-ready: 1;
}

.hero h1[data-hero-name-typing] {
  position: relative;
  background-image: none;
}

.hero-name-space {
  visibility: hidden;
}

.hero-name-ink {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  background-clip: text;
}

.hero-name-ink:not(:empty)::after {
  content: "";
  position: absolute;
  inset-block-start: .08em;
  inline-size: 1px;
  block-size: .68em;
  margin-inline-start: .035em;
  background: #f1d8ab;
  animation: hero-name-caret 760ms steps(1, end) infinite;
}

.hero-name-ink[data-complete]::after {
  animation: none;
}

@keyframes hero-name-caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion-disabled) .hero #hero-title[data-hero-name-shine] {
    background-image:
      linear-gradient(108deg,
        transparent 43%,
        #e5b97729 46%,
        #edc99880 48%,
        #ffdfa8cc 49.3%,
        #fff8e9f0 50%,
        #fff1d1dd 51%,
        #e8be7a94 53%,
        #e9c69533 55%,
        transparent 57%),
      var(--hero-name-base);
    background-size: 260% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
  }
}
