@media (prefers-reduced-motion: no-preference) {
    html:has(:target):not(:has(#main-content:target)) {
        scroll-behavior: smooth;
    }

    .has-enter-motion :where(.hero-copy h1, .hero-lead, .hero-actions, .hero-showcase) {
        animation: hero-enter 480ms cubic-bezier(.2, .7, .3, 1) both;
    }

    .has-enter-motion .hero-lead {
        animation-delay: 70ms;
    }

    .has-enter-motion .hero-actions {
        animation-delay: 140ms;
    }

    .has-enter-motion .hero-showcase {
        animation-delay: 200ms;
        animation-duration: 560ms;
    }

    [data-reveal].is-revealing {
        animation: section-enter 440ms cubic-bezier(.2, .7, .3, 1);
    }

    .has-enter-motion :is(.hero-actions, .hero-showcase):focus-within,
    [data-reveal].is-revealing:focus-within {
        animation: none;
    }

    @keyframes hero-enter {
        from { opacity: .6; translate: 0 .85rem; }
        to { opacity: 1; translate: 0; }
    }

    @keyframes section-enter {
        from { opacity: .77; translate: 0 .68rem; }
        to { opacity: 1; translate: 0; }
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .landing-button {
        transition: translate 160ms ease-out, background-color 150ms ease,
            border-color 150ms ease, box-shadow 150ms ease;
    }

    .landing-button:hover {
        translate: 0 -2px;
    }

    .gallery-image img {
        transition: scale 200ms ease-out;
    }

    .gallery-image:hover img {
        scale: 1.015;
    }
}
