:root {
    --font-sans: "Manrope", "IBM Plex Sans", sans-serif;
    --font-display: "Space Grotesk", "Archivo", sans-serif;
    --font-serif: "Newsreader", "Cormorant Garamond", serif;
    --font-poster: "Bebas Neue", "Archivo", sans-serif;
    --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;
    --page-bg: #06080c;
    --page-text: #f0f0f5;
    --muted: rgba(240, 240, 245, 0.68);
    --surface: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.12);
    --shell-bg: rgba(10, 12, 18, 0.72);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--page-text);
    font-family: var(--font-sans);
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.page-root {
    padding: 110px 0 56px;
}

.page-root > section,
.page-root > header,
.page-root > div {
    width: min(1320px, calc(100vw - 36px));
    margin: 0 auto 32px;
}

.shell-bar {
    position: fixed;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--shell-bg);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.shell-bar-home {
    gap: 18px;
}

.shell-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.shell-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.shell-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.shell-link {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.shell-link:hover {
    border-color: var(--line);
    background: var(--surface);
    color: var(--page-text);
}

.shell-link-strong {
    border-color: var(--line);
    background: var(--surface);
    color: var(--page-text);
}

.video-panel {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: color-mix(in oklab, var(--page-bg) 72%, #111 28%);
}

.video-panel-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 16, 22, 0.72);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-video,
.video-fallback {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.site-video {
    background: #04070c;
    object-fit: cover;
    object-position: center;
}

.video-fallback {
    display: grid;
    place-items: center;
    padding: 48px 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.06) 0,
            rgba(255, 255, 255, 0.06) 14px,
            transparent 14px,
            transparent 28px
        );
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

.video-fallback[hidden] {
    display: none;
}

@media (max-width: 860px) {
    .shell-bar-home {
        align-items: flex-start;
        border-radius: 28px;
    }

    .shell-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .shell-bar {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 10px 12px;
    }

    .shell-home {
        font-size: 0.95rem;
    }

    .page-root {
        padding-top: 90px;
    }

    .page-root > section,
    .page-root > header,
    .page-root > div {
        width: min(1220px, calc(100vw - 20px));
    }
}
