/* Homepage only; GSAP takes over the old reveal containers
   after successful initialization. */

main.ml-content-motion .v5-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {

    .v5-card-image > img {
        transition: transform .85s cubic-bezier(.22,1,.36,1);
    }

    .v5-card:hover .v5-card-image > img {
        transform: scale(1.045);
    }

    .v5-record-photo {
        overflow: hidden;
    }

    .v5-button {
        transition:
            background-color .3s,
            color .3s,
            border-color .3s,
            transform .35s cubic-bezier(.22,1,.36,1);
    }
}

@media (prefers-reduced-motion: reduce) {
    main .v5-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================================
   STARTUP — SCROLLBAR FADE
   ========================================= */

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

/* Keep the page height and scrollbar intact */

html.ml-startup-lock {
    overscroll-behavior: none;
}

html.ml-startup-lock body {
    touch-action: none;
}

/* Scrollbar width */

html::-webkit-scrollbar {
    width: 4px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background-color: rgba(
        163, 159, 26,
        var(--ml-scrollbar-opacity, 1)
    );
    border-radius: 10px;
}

#ml-startup {
    touch-action: none;
    overscroll-behavior: none;
}