@keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes line-up {
    from { transform: translateY(110%); }
    to { transform: none; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

body {
    animation: page-in 0.6s var(--ease) both;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js [data-reveal="image"] {
    opacity: 1;
    transform: none;
}

.js [data-reveal="image"] img {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.14);
    transition: clip-path 1.3s var(--ease-out), transform 1.8s var(--ease-out);
}

.js [data-reveal="image"].is-visible img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

[data-parallax] {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .js [data-reveal="image"],
    .js [data-reveal="image"] img {
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    [data-parallax] {
        transform: none !important;
    }
}
