/* Canonical moorkyz-site .site-footer: fading hairline, single glint, mono voice, interactive hover glow. */
.site-footer {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(0.6rem, 1.8vmin, 1rem) clamp(1rem, 3vmin, 1.75rem);
  background: linear-gradient(0deg, rgba(3, 6, 14, 0.72) 0%, rgba(3, 6, 14, 0) 100%);
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  user-select: none;
  animation: site-footer-fade-in 900ms ease-out 400ms both;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(165, 205, 255, 0) 0%,
    rgba(165, 205, 255, 0.34) 50%,
    rgba(165, 205, 255, 0) 100%
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(
      90deg,
      rgba(225, 240, 255, 0) 0%,
      rgba(210, 232, 255, 0.62) 26%,
      rgba(255, 255, 255, 1) 50%,
      rgba(210, 232, 255, 0.62) 74%,
      rgba(225, 240, 255, 0) 100%
    )
    130% 0 / 26% 100% no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  filter: drop-shadow(0 0 4px rgba(195, 224, 255, 0.9)) drop-shadow(0 0 10px rgba(140, 188, 255, 0.55));
  pointer-events: none;
  animation: site-footer-glint 1.44s ease-in-out 0.9s both;
}

.site-footer__note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(190, 208, 236, 0.76);
  text-shadow: 0 0 14px rgba(120, 165, 255, 0.35);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: color 180ms ease, text-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

.site-footer__link--name:hover,
.site-footer__link--name:focus-visible {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(190, 218, 255, 0.85),
    0 0 22px rgba(130, 178, 255, 0.65);
}

.site-footer__link--logo {
  position: relative;
}

.site-footer__logo {
  display: block;
  width: 1.3em;
  height: 1.3em;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(150, 190, 255, 0.55));
  transform: translateY(-0.015em);
  transition: filter 180ms ease, transform 180ms ease;
}

.site-footer__link--logo:hover .site-footer__logo,
.site-footer__link--logo:focus-visible .site-footer__logo {
  filter:
    drop-shadow(0 0 8px rgba(215, 232, 255, 0.95))
    drop-shadow(0 0 18px rgba(140, 185, 255, 0.75));
  transform: translateY(-0.015em) scale(1.07);
}

/* 3-second hover subtle two-beat RGB double twitch */
@media (prefers-reduced-motion: no-preference) {
  .site-footer__link--logo:hover:not(.js-glitch-bound) .site-footer__logo {
    animation: site-footer-rgb-twitch 260ms steps(1, end) 3s 1;
  }

  .site-footer__link--logo.is-glitching .site-footer__logo {
    animation: site-footer-rgb-twitch 260ms steps(1, end) 1 both;
  }
}

@keyframes site-footer-rgb-twitch {
  0%,
  32%,
  56%,
  100% {
    transform: translateY(-0.015em) scale(1.07);
    filter:
      drop-shadow(0 0 8px rgba(215, 232, 255, 0.95))
      drop-shadow(0 0 18px rgba(140, 185, 255, 0.75));
  }
  14% {
    transform: translate(-1.15px, 0.25px) scale(1.07);
    filter:
      drop-shadow(-1.25px 0 0 rgba(255, 72, 116, 0.72))
      drop-shadow(1.25px 0 0 rgba(72, 218, 255, 0.72));
  }
  72% {
    transform: translate(1.1px, -0.25px) scale(1.07);
    filter:
      drop-shadow(1.2px 0 0 rgba(255, 72, 116, 0.68))
      drop-shadow(-1.2px 0 0 rgba(72, 218, 255, 0.68));
  }
}

@keyframes site-footer-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes site-footer-glint {
  from {
    background-position: -30% 0;
  }
  to {
    background-position: 130% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer::after,
  .site-footer__link,
  .site-footer__logo {
    animation: none;
    transition: none;
  }
  .site-footer__link--logo:hover .site-footer__logo,
  .site-footer__link--logo:focus-visible .site-footer__logo {
    transform: translateY(-0.015em);
  }
}
