/* Layout (safe, no scroll-jumps) */
html, body { height: 100%; margin: 0; }
body { overflow: hidden; }

#splash {
    position: fixed;
    inset: 0;
    min-height: 100svh;      /* stable viewport on mobile */
    height: 100vh;           /* fallback */
    display: flex;
    flex-direction: column;  /* stack logo above illustration */
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 9999;
    transition: opacity 300ms ease;
}
#splash.hide { opacity: 0; }

#splash #logo {
    display: block;
    width: clamp(400px, 90vw, 600px);
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    object-position: center;
    clip-path: inset(20% 30% 20% 30%);
}

#splash #illustration {
    display: block;
    width: clamp(220px, 70vw, 720px);
    height: auto;
    max-height: 32vh;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 480px) {
    #splash #logo {
        width: clamp(400px, 120vw, 820px);
        max-height: 50vh;
    }
    #splash #illustration {
        width: clamp(50px, 80vw, 250px);
        max-height: 50vh;
    }
}