@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: none) {
    #cursor {
        display: none;
    }
}

.split-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: word-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes word-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed,
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.glitch-text:hover {
    animation: glitch 0.4s steps(2) forwards;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--accent), -2px 0 var(--green);
    }

    25% {
        text-shadow: -2px 0 var(--accent), 2px 0 var(--green);
        clip-path: inset(20% 0 60% 0);
    }

    50% {
        text-shadow: 2px 2px var(--accent);
    }

    75% {
        clip-path: inset(60% 0 0 0);
    }

    100% {
        text-shadow: none;
        clip-path: none;
    }
}
