/* Zero Labs — fullscreen looping video + centered logo. No JS. */

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

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #111 url("../img/static-1.png") center / cover no-repeat;
    color: #fff;
    font-family: "Open Sans Condensed", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 300;
    overflow: hidden;
}

/* Background video: fills the viewport, crops instead of stretching. */

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    pointer-events: none;
    z-index: 0;
}

/* Logo: perfectly centered at any viewport size, scales with it. */

.logo {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
             max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    pointer-events: none;
}

.logo img {
    width: clamp(180px, 40vw, 420px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Landscape phones: keep the logo from eating the whole screen. */

@media (max-height: 420px) {
    .logo img {
        width: clamp(140px, 90vh, 320px);
    }
}

/* Respect users who ask for less motion — the poster still shows. */

@media (prefers-reduced-motion: reduce) {
    .bg-video {
        display: none;
    }
}
