:root {
    --bg: #080a09;
    --panel: #0d100e;
    --panel-2: #121612;
    --text: #e8eee4;
    --muted: #899287;
    --accent: #b9d79a;
    --accent-2: #7fa85f;
    --line: rgba(185, 215, 154, .22);
    --max: 1240px;
}

@font-face {
    font-family: "Gameplay";
    src: url("../fonts/Gameplay.ttf") format("truetype");
    font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Gameplay", monospace;
    letter-spacing: .02em;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image:
        linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: -2;
}
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(255,255,255,.018) 4px
    );
    z-index: 20;
}
a { color: inherit; text-decoration: none; }
.site-header {
    height: 78px;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,10,9,.86);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.brand-mark {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 10px;
}
.nav { display: flex; gap: 30px; font-size: 11px; }
.nav a { color: var(--muted); transition: .2s; }
.nav a:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; color: var(--text); border: 0; font-size: 24px; }

.hero {
    min-height: 720px;
    max-width: var(--max);
    margin: auto;
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    width: 600px; height: 600px;
    right: -160px; top: 80px;
    border: 1px solid var(--line);
    transform: rotate(18deg);
    box-shadow: 0 0 90px rgba(127,168,95,.08);
}
.hero-grid::after {
    content: "NORTHERNATTOM";
    position: absolute;
    right: 30px; bottom: 40px;
    color: var(--line);
    font-size: 12px;
    transform: rotate(-18deg);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .12em; }
h1 { font-size: clamp(48px, 9vw, 120px); line-height: .88; margin: 25px 0; }
h1 span, h2 span { color: var(--accent); }
.hero-copy, .page-hero p { color: var(--muted); max-width: 620px; line-height: 1.8; font-size: 13px; }
.pixel-button {
    display: inline-flex; gap: 35px;
    margin-top: 30px;
    padding: 17px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px;
    transition: .2s;
}
.pixel-button:hover { background: var(--accent); color: #10140e; transform: translateY(-3px); }
.hero-side {
    position: absolute; right: 5vw; bottom: 50px;
    color: var(--muted); font-size: 9px; line-height: 2;
}
.section { max-width: var(--max); margin: auto; padding: 70px 5vw; }
.section-heading {
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px; margin-bottom: 28px;
    color: var(--muted); font-size: 9px;
}
.featured-card {
    display: block; position: relative;
    min-height: 560px; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
}
.featured-card img {
    width: 100%; height: 560px; object-fit: cover;
    image-rendering: auto;
    filter: saturate(.85);
    transition: transform .7s, filter .7s;
}
.featured-card:hover img { transform: scale(1.035); filter: saturate(1.1); }
.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4,6,5,.86), transparent 75%),
                linear-gradient(0deg, rgba(4,6,5,.85), transparent 55%);
}
.featured-info { position: absolute; left: 45px; bottom: 45px; }
.featured-info p, .featured-info span { color: var(--accent); font-size: 9px; }
.featured-info h2 { font-size: clamp(42px, 7vw, 92px); margin: 8px 0 20px; }
.three-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.three-grid article { background: var(--bg); padding: 30px; min-height: 210px; }
.three-grid b { color: var(--accent); font-size: 9px; }
.three-grid h3 { font-size: 22px; }
.three-grid p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.page-hero { max-width: var(--max); margin: auto; padding: 110px 5vw 50px; border-bottom: 1px solid var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.game-card { background: var(--panel); border: 1px solid var(--line); transition: .25s; }
.game-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.cover-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status {
    position: absolute; top: 14px; left: 14px;
    padding: 8px; background: rgba(8,10,9,.9);
    border: 1px solid var(--accent); color: var(--accent); font-size: 8px;
}
.game-card-info { padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.game-card-info h2 { margin: 0; font-size: 22px; }
.game-card-info span { color: var(--accent); font-size: 8px; }
.game-detail {
    max-width: var(--max); margin: auto; padding: 90px 5vw;
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; align-items: center;
}
.game-art img { width: 100%; display: block; border: 1px solid var(--line); }
.game-copy h1 { margin-top: 10px; }
.status-line { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 12px; font-size: 10px; }
.large-copy { color: var(--muted); line-height: 2; font-size: 12px; }
.platforms { display: grid; gap: 10px; margin: 35px 0; }
.platform-button {
    padding: 18px; border: 1px solid var(--line); background: var(--panel);
    font-size: 12px; transition: .2s;
}
.platform-button:hover { border-color: var(--accent); background: var(--panel-2); }
.platform-button[aria-disabled="true"] { opacity: .5; cursor: default; }
.platform-button small { display: block; color: var(--muted); font-size: 7px; margin-bottom: 8px; }
.back-link { color: var(--muted); font-size: 9px; }
.developer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.terminal { border: 1px solid var(--line); background: #050705; }
.terminal-bar { padding: 10px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.terminal-bar span { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--accent); margin-right: 5px; }
.terminal-body { padding: 25px; min-height: 280px; color: var(--accent); font-size: 9px; line-height: 2; }
.cursor { animation: blink 1s infinite; }
.about-copy { max-width: 850px; margin-left: max(5vw, calc((100% - var(--max))/2)); }
.about-copy p { color: var(--muted); line-height: 2; max-width: 700px; font-size: 13px; }
.footer {
    margin-top: 80px; border-top: 1px solid var(--line);
    padding: 25px 5vw; display: flex; justify-content: space-between;
    color: var(--muted); font-size: 8px;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 760px) {
    .site-header { height: 65px; }
    .menu-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 65px; left: 0; right: 0;
        padding: 25px 5vw; background: #080a09; border-bottom: 1px solid var(--line);
        flex-direction: column; gap: 20px;
    }
    .nav.open { display: flex; }
    .hero { min-height: 650px; }
    .hero-grid { width: 400px; height: 400px; right: -230px; }
    .three-grid, .game-grid, .game-detail, .developer-layout { grid-template-columns: 1fr; }
    .featured-card, .featured-card img { min-height: 390px; height: 390px; }
    .featured-info { left: 25px; bottom: 25px; }
    .game-detail { padding-top: 50px; gap: 35px; }
    .footer { flex-direction: column; gap: 12px; }
}
