/*------------------------------------------------------------------*\
    4. COMPONENTS - Smooth Scroll (Scrollbar)
\*------------------------------------------------------------------*/

/* ── Lenis required CSS (https://github.com/darkroomengineering/lenis) ──
   Without these the lib can leave height/scroll-behavior in a weird state
   and amplify any rogue horizontal overflow from reveal animations. */
html.lenis,
html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: clip;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-900);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-600);
    border: 3px solid var(--neutral-900);
    border-radius: 7px;
    min-height: 80px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-600) var(--neutral-900);
}
