/*
 * Signature — initial site splash (home page load)
 */

@keyframes site-splash-logo-in {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.site-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    will-change: opacity;
    transition: opacity 600ms cubic-bezier(0.33, 1, 0.32, 1);
}

.site-splash--exit {
    opacity: 0;
    pointer-events: none;
}

.site-splash__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.site-splash__logo-wrap {
    display: grid;
    place-items: center;
    animation: site-splash-logo-in 0.85s cubic-bezier(0.33, 1, 0.32, 1) forwards;
}

.site-splash__logo {
    width: clamp(88px, 18vw, 112px);
    height: auto;
    display: block;
}

body.site-splash-active {
    overflow: hidden;
}

html.site-splash-pending body {
    overflow: hidden;
    background: #ffffff;
}

html.site-splash-pending .site-navbar,
html.site-splash-pending .site-body-stack,
html.site-splash-pending .contact-fab-stack,
body.site-splash-active .site-navbar,
body.site-splash-active .site-body-stack,
body.site-splash-active .contact-fab-stack {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .site-splash {
        transition-duration: 200ms;
    }

    .site-splash__logo-wrap {
        animation: none !important;
        opacity: 1;
    }
}
