@media(prefers-reduced-motion:no-preference) {
    .hero {
        animation: heroDrift 12s ease-in-out infinite alternate
    }

    .line {
        animation: pulse 2.5s ease-in-out infinite
    }

    .page-transition {
        position: fixed;
        z-index: 90;
        inset: 0;
        background: var(--teal);
        transform: scaleX(0);
        transform-origin: right;
        pointer-events: none
    }

    .page-transition.out {
        animation: wipe .42s ease-in-out
    }

    .wave {
        animation: wave 3s linear infinite
    }

    @keyframes heroDrift {
        to {
            background-position: center, center 48%
        }
    }

    @keyframes pulse {
        opacity: .35
    }

    @keyframes wave {
        to {
            background-position: 44px 0
        }
    }

    @keyframes wipe {
        50% {
            transform: scaleX(1);
            transform-origin: right
        }

        51% {
            transform-origin: left
        }

        100% {
            transform: scaleX(0);
            transform-origin: left
        }
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important
    }

    .fade {
        opacity: 1;
        transform: none
    }
}