:root {
    color-scheme: dark;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.78);
    --accent: #ffffff;
    --stroke: rgba(255, 255, 255, 0.2);
    --font-body: Arial, sans-serif;
    --nav-height: 100px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1a;
    background: rgba(0, 0, 0, 0.96);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 60px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.nav-brand img:hover {
    opacity: 1;
}

.alpha-logo {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hero-alpha {
    margin: 4px auto 10px;
    display: block;
    height: 122px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-list a,
.nav-list button {
    color: #fff;
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.78;
    cursor: pointer;
    padding: 6px 0;
}

.nav-list a:hover,
.nav-list button:hover,
.nav-list a.active,
.nav-list button.active {
    opacity: 1;
}

.dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: #0c0c0c;
    border: 1px solid #2b2b2b;
    border-radius: 6px;
    padding: 8px;
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

main {
    flex: 1;
    padding: 40px 24px 56px;
}

.video-banner {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - var(--nav-height));
    margin: -40px 0 32px calc(50% - 50vw);
    overflow: hidden;
    background: #050505;
    border-bottom: 1px solid #1a1a1a;
}

.video-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.68)),
        linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.video-banner-frame {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

.video-banner-frame iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: calc(100vh - var(--nav-height));
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

p {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    opacity: 0.9;
}

.stack {
    display: grid;
    gap: 12px;
}

.hero {
    text-align: center;
    padding: 28px 0 8px;
}

.hero p {
    max-width: 860px;
    margin: 0 auto;
}

.eyebrow {
    margin: 6px 0 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.7;
}

.section {
    margin-top: 24px;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    background: #080808;
    padding: 18px;
}

.section h2 {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.25rem;
}

.section h3 {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.section p + p {
    margin-top: 10px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border: 1px solid #222;
    border-radius: 8px;
    background: #050505;
    padding: 14px;
}

.devlog-list {
    display: grid;
    gap: 14px;
}

.devlog-entry {
    border: 1px solid #222;
    border-radius: 8px;
    background: #050505;
    padding: 16px;
}

.entry-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
}

.entry-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.86rem;
    opacity: 0.9;
}

.entry-link:hover,
.entry-link:focus-visible {
    opacity: 1;
}

.bullets {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    opacity: 0.92;
}

.bullets.tight {
    gap: 4px;
}

.bullets li {
    line-height: 1.5;
}

.kbd {
    display: inline-block;
    border: 1px solid #555;
    background: #111;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.82rem;
    font-family: Consolas, "Courier New", monospace;
}

.meta {
    margin-top: 10px;
    opacity: 0.7;
    font-size: 0.92rem;
}

.subtle {
    opacity: 0.82;
}

.hero-tagline {
    text-transform: none;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.2s ease;
}

.sbox-btn img {
    height: 24px;
    width: auto;
    display: block;
}

.tilt-mirror:hover,
.tilt-mirror:focus-visible {
    animation: sboxTiltSimple 850ms ease-in-out infinite alternate;
    outline: none;
}

@keyframes sboxTiltSimple {
    0% {
        transform: perspective(700px) rotateY(-12deg);
    }
    100% {
        transform: perspective(700px) rotateY(12deg);
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 92px;
    }

    .site-nav {
        padding: 16px 14px;
        gap: 12px;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px;
    }

    .nav-list a,
    .nav-list button {
        font-size: 0.82rem;
    }

    .nav-brand img {
        height: 48px;
        width: auto;
    }

    .alpha-logo {
        height: 32px;
    }

    .hero-alpha {
        height: 80px;
    }

    .hero-tagline {
        gap: 8px;
    }

    .sbox-btn img {
        height: 21px;
    }

    main {
        padding: 26px 14px 44px;
    }

    .video-banner {
        margin-top: -26px;
        margin-bottom: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 14px;
    }
}
