/* Explain: CSS for text shimmer effect with progressively deeper shadow passes. */
/* See-through shadow drift across key homepage headings.

   The letters are painted with a solid-white gradient that is clipped to the
   glyphs, so where the gradient is opaque the text is white, and where the
   gradient is fully transparent the text is fully see-through and the artwork
   shows straight through the letters. The gradient uses hard (binary) stops —
   there is no half-alpha ramp, so the letters never read as gray: at any moment
   a letter is either solid white or completely clear.

   The white band and the transparent band are both wider than the moving
   window, so the shift reads as a clean wipe of clarity crossing the words. */
.text-shimmer {
    background-image: linear-gradient(
        96deg,
        #ffffff 0%,
        #ffffff 45%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0) 61.5%,
        #ffffff 61.5%,
        #ffffff 100%
    );
    background-size: 800% 100%;
    background-repeat: no-repeat;
    background-position: 0% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: nd-text-shadow-sweep 45s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: background-position;
}

@keyframes nd-text-shadow-sweep {
    0% {
        background-position: 0% 0;
    }
    6% {
        background-position: 54% 0;
    }
    30% {
        background-position: 54% 0;
    }
    44% {
        background-position: 100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .text-shimmer {
        animation: none;
        background: none;
        color: var(--text-color);
        -webkit-text-fill-color: currentColor;
    }
}