/* Native text clipping keeps the trail sharp at every device pixel ratio. */
.hero-word.hero-type-ready {
  --ht-x: 0px;
  --ht-y: 0px;
  --ht-angle: 0deg;
  --ht-scale: 1;
  transform: translate3d(var(--ht-x), var(--ht-y), 0) rotate(var(--ht-angle)) scale(var(--ht-scale));
  transform-origin: 50% 55%;
  pointer-events: none;
}

.hero-word.hero-type-ready[data-hero-type-active="true"] { will-change: transform; }

.hero-word .hero-type__ink {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--ht-pad, .18em));
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  display: block;
  padding: var(--ht-pad, .18em) 0;
  margin: 0;
  border: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: inherit;
  text-align: inherit;
  background-image: none;
  background-repeat: no-repeat;
  background-origin: border-box;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-word .hero-type__ink * {
  color: transparent;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .hero-word.hero-type-ready { transform: none; will-change: auto; }
  .hero-word .hero-type__ink { display: none; }
}

@media (forced-colors: active) {
  .hero-word .hero-type__ink { display: none; }
}
