/* Progressive enhancement: visibility is managed by WOW only after JS starts. */
:root
{
    --sf-motion-styles: 1;
}

.sf-reveal
{
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-play-state: paused;
}

.sf-reveal.animate__animated
{
    animation-play-state: running;
}

.sf-hero-copy > .sf-eyebrow
{
    display: inline-block;
}

/* Clip lateral entrances without creating a scroll container or clipping menus. */
.sf-main
{
    overflow-x: clip;
}

/* Keep Animate.css fadeInUp, with a gentler travel distance for the hero copy. */
.sf-hero-copy > .animate__fadeInUp
{
    animation-name: sf-hero-fade-up;
}

@keyframes sf-hero-fade-up
{
    from
    {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }

    to
    {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)
{
    .sf-card-image img
    {
        transition: transform 450ms ease, filter 450ms ease;
    }

    .sf-main .sf-product-tile .sf-tile-media
    {
        transition: box-shadow 450ms ease;
    }

    .sf-main .sf-product-tile:hover .sf-card-image img
    {
        transform: scale(1.045) rotate(-1deg);
        filter: drop-shadow(0 8px 10px rgb(37 35 53 / 12%));
    }

    .sf-main .sf-product-tile:hover .sf-tile-media
    {
        box-shadow: 0 12px 24px -12px rgb(37 35 53 / 28%);
    }

    .sf-main .sf-button,
    .sf-hero-showcase .sf-hero-cta,
    .sf-main .sf-tile-action
    {
        transition: transform 220ms ease, box-shadow 220ms ease, background 180ms ease;
    }

    .sf-main .sf-button:hover,
    .sf-hero-showcase .sf-hero-cta:hover,
    .sf-main .sf-tile-action:hover
    {
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce)
{
    .sf-reveal
    {
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .sf-card-image img,
    .sf-main .sf-product-tile .sf-tile-media,
    .sf-main .sf-button,
    .sf-hero-showcase .sf-hero-cta,
    .sf-main .sf-tile-action
    {
        transition: none !important;
    }
}
