/* Fonts are loaded via a parallel <link> in partials/head.php (was an @import
   here, which serialized base.css -> fonts CSS -> font files). */

html,
body {
    overscroll-behavior: none;
    background-color: #000000 !important;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
}

:root {
    --footer-reveal-progress: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas {
    max-width: 100%;
}

img,
video,
canvas {
    height: auto;
}

button,
a {
    touch-action: manipulation;
}

body {
    min-width: 320px;
}

.site-page {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #ffffff;
}

.site-page.is-footer-revealing {
    transform: scaleX(calc(1 - (var(--footer-reveal-progress) * 0.035)));
    transform-origin: bottom center;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, calc(var(--footer-reveal-progress) * 0.22)),
        0 2px 14px rgba(0, 0, 0, calc(var(--footer-reveal-progress) * 0.16));
    will-change: transform;
}

body::-webkit-scrollbar {
    display: none;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--d, 0s);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.line-wrapper {
    overflow: hidden;
    display: block;
}

.line-content {
    display: block;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
