/* Decorative hover only: the original font owns every letter's advance. */
.landing-page .footer-wordmark .footer-letter {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.landing-page .footer-wordmark .footer-letter__baseline {
  display: inline-block;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  letter-spacing: 0;
}

.landing-page .footer-wordmark .footer-letter__art {
  position: absolute;
  display: block;
  left: var(--letter-left);
  top: var(--letter-top);
  width: var(--letter-width);
  height: var(--letter-height);
  opacity: 0;
  pointer-events: none;
}

.landing-page .footer-wordmark .footer-letter__art img {
  display: block !important;
  position: absolute;
  max-width: none;
  width: var(--image-width);
  height: var(--image-height);
  left: var(--image-left);
  top: var(--image-top);
  filter: var(--letter-filter);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  /* A short residual light clipped to the original pixel glyph. Hidden while
     the textured letter is visible; fades only after the pointer leaves. */
  .landing-page .footer-wordmark .footer-letter::after {
    content: attr(data-glyph);
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: radial-gradient(ellipse at 45% 40%, #99e4c9 0%, #69ba9d 45%, transparent 85%);
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0;
    visibility: visible;
    transition: opacity 175ms ease-out;
  }
  .landing-page .brand-name:not([data-footer-entrance="waiting"]):not([data-footer-entrance="entering"]) .footer-letter[data-ready]:hover::after {
    opacity: .45;
    visibility: hidden;
    transition: none;
  }
  .landing-page .brand-name:not([data-footer-entrance="waiting"]):not([data-footer-entrance="entering"]) .footer-letter[data-ready]:hover .footer-letter__pixel {
    opacity: 0;
  }
  .landing-page .brand-name:not([data-footer-entrance="waiting"]):not([data-footer-entrance="entering"]) .footer-letter[data-ready]:hover .footer-letter__art {
    opacity: 1;
  }
}

/* Only the visual slots move; their widths and the surrounding layout stay put. */
.landing-page [data-footer-entrance="waiting"] .footer-letter {
  opacity: 0;
  translate: 0 75%;
  rotate: -6deg;
}
.landing-page [data-footer-entrance="entering"] .footer-letter {
  animation: footer-letter-arrive 760ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--letter-index) * 85ms);
}
@keyframes footer-letter-arrive {
  from { opacity: 0; translate: 0 75%; rotate: -6deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce), print {
  .landing-page .footer-wordmark .footer-letter::after {
    content: none;
    transition: none;
  }
  .landing-page [data-footer-entrance] .footer-letter {
    opacity: 1;
    translate: none;
    rotate: none;
    animation: none;
  }
}
