/* Smooth scroll. The page keeps its own scrollbar and its own scroll position —
   the easing is applied to that position, not to a transformed wrapper — so the
   sticky header, the sticky section nav and every anchor offset still behave.

   The classes below are set by Lenis itself, so none of this applies until the
   script has started. */

html.lenis,
html.lenis body {
	height: auto;
}

/* Two smooth scrolls easing one position reads as a stutter, so the native one
   stands down for as long as this one is running. Only `lenis` lasts that
   long — the rest of its classes describe a scroll in progress. */
html.lenis {
	scroll-behavior: auto !important;
}

/* A panel that scrolls on its own keeps its own scroll. */
html.lenis [data-lenis-prevent] {
	overscroll-behavior: contain;
}

html.lenis-stopped {
	overflow: hidden;
}

/* A frame swallows the wheel and the page stops dead under it — but only while
   the page is actually moving, so an embed is still there to be used once it
   has come to rest. */
html.lenis-scrolling iframe {
	pointer-events: none;
}
