/* CGstuff Interactive — the whole site's stylesheet.
 *
 * Same family as cgstuff.xyz and actionforge.app, on purpose: the tokens below
 * are theirs (near-black, cyan, the purple/navy pair), Orbitron for display,
 * Rajdhani for reading, monospace for labels, square corners, and the hard
 * offset shadow on hover. Each product card then wears its own accent, so the
 * studio has one look and the products keep theirs.
 *
 * One file, no build. Sections are in page order.
 */

/* ── type ─────────────────────────────────────────────────────────────────
   Self-hosted, copied from ActionForge (licence: /fonts/OFL.txt). Privacy
   extensions block fonts.googleapis.com, and the CSP allows 'self' only. */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/rajdhani-400-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/rajdhani-700-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/orbitron-700-latin.woff2') format('woff2');
}

:root {
    color-scheme: dark;

    --primary-color: #09c5cc;
    --secondary-color: #7d0093;
    --accent-color: #001b87;

    --bg-dark: #0a0a0a;
    --bg-medium: #111;
    --bg-light: #1a1a1a;

    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #999;
    --border-color: #333;
    --border-soft: #222;

    --font-primary: 'Rajdhani', 'Arial', sans-serif;
    --font-heading: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
    --font-display: 'Orbitron', 'Rajdhani', 'Arial', sans-serif;

    --transition-fast: 0.12s ease;

    /* Status lights, game-HUD style. Text on --bg-medium, all above 4.5:1. */
    --status-live: #36e27a;
    --status-alpha: #ffb020;
    --status-soon: #7fb8ff;
    --status-locked: #ff4d8d;

    --bar-h: 60px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 2rem);
}

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

html {
    scroll-behavior: smooth;
    /* Anchors land below the fixed bar, not under it. */
    scroll-padding-top: calc(var(--bar-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--text-primary); }

:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

h1, h2, h3 { color: var(--text-primary); margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
    position: absolute;
    left: 0;
    top: -100px;
    z-index: 100;
    background: var(--primary-color);
    color: #000;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
}
.skip:focus { top: 0; color: #000; }

/* ── the bar ────────────────────────────────────────────────────────────── */
.bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--bar-h);
    z-index: 50;
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.bar__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

/* The wordmark, the way ActionForge does its own: Orbitron, the first word lit. */
.mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
    line-height: 1;
    /* Caps sit high in the box; this centres them optically in the bar. */
    padding-bottom: 0.08em;
}
.mark b { color: var(--primary-color); font-weight: 700; }
.mark:hover { color: var(--text-primary); }

.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a:not(.btn) {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current] { color: var(--primary-color); }

/* A phone has room for the name and one way to reach us. The sections are a
   scroll away anyway. */
@media (max-width: 640px) {
    .nav a:not(.btn) { display: none; }
    .mark { font-size: 0.92rem; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
    --btn: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.95rem 1.4rem;
    border: 1px solid var(--btn);
    background: transparent;
    color: var(--btn);
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
                background var(--transition-fast), color var(--transition-fast);
}
.btn:hover { color: var(--btn); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--btn); }
.btn:active { transform: none; box-shadow: none; }
.btn--fill { background: var(--btn); color: #000; }
.btn--fill:hover { color: #000; box-shadow: 4px 4px 0 var(--secondary-color); }
.btn--sm { padding: 0.6rem 0.95rem; font-size: 0.72rem; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: min(92vh, 860px);
    padding: calc(var(--bar-h) + clamp(2.5rem, 8vh, 5.5rem)) 0 clamp(4rem, 12vh, 7rem);
    /* The portfolio's purple-to-navy, pulled apart into two glows. */
    background:
        radial-gradient(ellipse 60% 55% at 80% 15%, rgba(125, 0, 147, 0.36), transparent 70%),
        radial-gradient(ellipse 65% 60% at 5% 95%, rgba(0, 27, 135, 0.55), transparent 70%),
        var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}
/* The flat grid: the same 1px cyan lines as the cgstuff.xyz hero, faded at the edges. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(9, 197, 204, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 197, 204, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
/* The floor: ActionForge's card has its mannequins on a perspective grid.
   This is that floor, rolling slowly toward you. */
.hero__floor {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: 0;
    height: 46%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(9, 197, 204, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 197, 204, 0.32) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(360px) rotateX(62deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    animation: floor-roll 5s linear infinite;
    pointer-events: none;
}
@keyframes floor-roll { to { background-position: 0 64px, 0 0; } }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
@media (max-width: 920px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Block, not flex: as a flex row, a wrapped line left the cursor stranded at
   the far right. Inline, it follows the last word wherever that lands. */
.kicker {
    margin-bottom: 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    margin-left: 0.4em;
    vertical-align: -0.2em;
    background: currentColor;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}
/* Chromatic split, the cheapest way to say "game" in CSS. */
.hl {
    color: var(--primary-color);
    text-shadow: -3px 0 rgba(255, 0, 170, 0.45), 3px 0 rgba(0, 90, 255, 0.55);
}

.lead {
    max-width: 38rem;
    margin-bottom: 2.2rem;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    color: var(--text-secondary);
}
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Everything in the hero arrives once, in order. */
.hero__copy > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hud { animation: rise 0.6s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── the status panel ───────────────────────────────────────────────────────
   A HUD readout of everything in products.json. Built by main.js, hidden
   until it is, so a page without its script never shows an empty frame. */
.hud {
    position: relative;
    padding: 1.2rem 1.3rem 1rem;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-family: var(--font-heading);
}
/* Corner brackets: a frame drawn in the corners only, like a targeting box. */
.hud::before, .hud::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--primary-color);
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hud__title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed #2a2a2a;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hud__list { list-style: none; margin: 0; padding: 0; }
.hud__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.62rem 0;
    border-bottom: 1px solid #1c1c1c;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.hud__list li:last-child a { border-bottom: 0; }
.hud__list a:hover { color: var(--accent, var(--primary-color)); }
.hud__list a::before {
    content: '>';
    margin-right: -0.4rem;
    color: var(--accent, var(--primary-color));
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.hud__list a:hover::before { opacity: 1; }
.hud__name { flex: 1; }
.hud__foot {
    margin: 0.5rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px dashed #2a2a2a;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hud__foot .cursor { width: 0.5em; height: 0.95em; margin-left: 0.2em; vertical-align: -0.12em; color: var(--primary-color); }

/* ── status light ───────────────────────────────────────────────────────── */
.status {
    --status: var(--status-soon);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--status);
}
.status::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.status--live { --status: var(--status-live); }
.status--live::before { animation: pulse 1.8s ease-in-out infinite; }
.status--alpha { --status: var(--status-alpha); }
.status--soon { --status: var(--status-soon); }
.status--locked { --status: var(--status-locked); }
@keyframes pulse { 50% { opacity: 0.35; box-shadow: none; } }

/* ── engines strip ──────────────────────────────────────────────────────── */
.strip { background: var(--bg-medium); border-bottom: 1px solid var(--border-color); }
.strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.6rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.strip__label { color: var(--primary-color); }
.strip__list { display: contents; list-style: none; }
.strip__list li + li::before { content: '/'; margin-right: 1.6rem; color: #444; }
/* Where the row wraps, a separator would start the next line. Drop them and let the gap do it. */
@media (max-width: 640px) {
    .strip__inner { gap: 0.4rem 1.1rem; }
    .strip__label { width: 100%; }
    .strip__list li + li::before { content: none; }
}

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 10vh, 7rem) 0; }
.section--alt {
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.section__head { margin-bottom: 2.6rem; }

.eyebrow {
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.section h2 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.section__lead { max-width: 40rem; font-size: 1.2rem; }

/* A smaller heading inside a section, with a rule running off to the right. */
.subhead {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
}
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* ── product cards ──────────────────────────────────────────────────────── */
.cards {
    display: grid;
    /* 280px is what lets three products sit in one row from ~1000px wide;
       at 330px a 1024px laptop got two, and the third alone underneath. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}
.cards--featured { grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }

.card {
    --accent: var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    color: var(--text-secondary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.section--alt .card { background: var(--bg-dark); }
a.card:hover {
    color: var(--text-secondary);
    border-color: var(--accent);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 var(--accent);
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-bottom: 1px solid var(--border-color);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a.card:hover .card__media img { transform: scale(1.04); }
/* Scanlines. Faint enough to read as texture, not as a filter. */
.card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

.card__badges {
    position: absolute;
    top: 0.75rem; left: 0.75rem; right: 0.75rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.55rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.2rem; }
.card h3 {
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--accent);
}
.card__tagline { margin-bottom: 0.5rem; font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.card__desc { margin-bottom: 1rem; font-size: 1.04rem; line-height: 1.5; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.tags li {
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.card__cta { font-weight: 700; color: var(--accent); }
.card__host { color: var(--text-muted); letter-spacing: 0.02em; text-transform: none; }

/* The featured card: the whole row, picture left, words right, everything a size up.
   Side by side only where the words fit beside a 16:9 picture; narrower, it
   stacks like the others, just bigger. */
@media (min-width: 1080px) {
    .card--featured { flex-direction: row; }
    /* Keeps its 16:9, which sets the row's height; if the words run taller,
       the row stretches it and the picture crops rather than letterboxes.
       So a featured image carries no text of its own near the edges. */
    .card--featured .card__media {
        flex: 0 0 55%;
        border-bottom: 0;
        border-right: 1px solid var(--border-color);
    }
    .card--featured .card__body { padding: 2rem 2.2rem 1.6rem; justify-content: center; }
}
.card--featured h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.card--featured .card__tagline { font-size: 1.3rem; }
.card--featured .card__desc { font-size: 1.12rem; }

/* The locked slot: what's next, without saying what it is. */
.locked {
    --accent: var(--status-locked);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem 1.8rem;
    border: 1px dashed #444;
    background: repeating-linear-gradient(-45deg, #0d0d0d 0 14px, #121212 14px 28px);
}
.locked__glyph {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1;
    color: var(--accent);
    text-shadow: -3px 0 rgba(0, 200, 255, 0.4), 3px 0 rgba(255, 0, 120, 0.5);
}
.locked h3 {
    margin: 0.35rem 0 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.locked p { margin: 0; color: var(--text-muted); }
.locked .btn { --btn: var(--accent); }
@media (max-width: 700px) {
    .locked { grid-template-columns: minmax(0, 1fr); padding: 1.4rem; }
    .locked .btn { justify-self: start; }
}

/* Without the script, the products are a plain list of links. */
.fallback { margin: 0; padding-left: 1.2rem; }
.fallback li { margin: 0.4rem 0; }

/* ── studio ─────────────────────────────────────────────────────────────── */
.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
@media (max-width: 860px) {
    .studio { grid-template-columns: minmax(0, 1fr); }
}
/* :not(.eyebrow): a bare `p` here outranks the label class and blew "02 // Studio" up to body size. */
.studio__text > p:not(.eyebrow) { font-size: 1.22rem; }
.studio__text strong { color: var(--text-primary); }

/* The spec sheet, as the project pages on cgstuff.xyz lay theirs out. */
.specs { margin: 0; border: 1px solid var(--border-color); background: var(--bg-dark); }
.specs > div {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.specs > div:last-child { border-bottom: 0; }
.specs > div:hover { background: rgba(9, 197, 204, 0.04); }
.specs dt {
    padding-top: 0.2rem;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.specs dd { margin: 0; font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 480px) {
    .specs > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 600px) {
    .tiles { grid-template-columns: minmax(0, 1fr); }
}
.tile {
    display: block;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.tile:hover { border-color: var(--primary-color); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--primary-color); }
.tile__label {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.tile__value { display: block; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.tile:hover .tile__value { color: var(--primary-color); }

/* ── contact ────────────────────────────────────────────────────────────── */
.contact {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
}
.contact__label {
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.4rem; }
.contact__email {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1rem, 4.1vw, 2.2rem);
    letter-spacing: -0.01em;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}
.contact__email:hover { color: var(--primary-color); }
.contact__note { max-width: 40rem; font-size: 1.15rem; }

.socials { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.social {
    --brand: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    font-family: var(--font-heading);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.social svg { width: 18px; height: 18px; flex: 0 0 auto; }
.social:hover { color: var(--brand); border-color: var(--brand); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--brand); }
.social--youtube { --brand: #ff0033; }
.social--discord { --brand: #5865f2; }
.social--github { --brand: #fff; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer {
    padding: 2.5rem 0 2rem;
    background: linear-gradient(to bottom, var(--bg-dark), #000);
    border-top: 1px solid var(--border-color);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.footer .mark { font-size: 0.92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.footer__links a {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.footer__links a:hover,
.footer__links a[aria-current] { color: var(--primary-color); }
.footer__fine {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 1.5rem;
    width: 100%;
    margin: 0.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ── document pages: privacy, terms ─────────────────────────────────────── */
.doc { padding: calc(var(--bar-h) + clamp(2.5rem, 7vh, 4.5rem)) 0 clamp(3.5rem, 9vh, 6rem); }
.doc__inner { max-width: 46rem; }
.doc h1 {
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.9rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.doc__meta {
    margin-bottom: 2.2rem;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.doc h2 {
    margin: 2.6rem 0 0.8rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.doc p:not(.eyebrow):not(.doc__meta), .doc li { font-size: 1.16rem; line-height: 1.6; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin: 0.4rem 0; }
.doc strong { color: var(--text-primary); }
.doc a { border-bottom: 1px dotted currentColor; }
.tldr {
    margin-bottom: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-left: 2px solid var(--primary-color);
}
.tldr p { color: var(--text-primary); }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.lost { min-height: 100vh; min-height: 100svh; padding-bottom: clamp(5rem, 16vh, 9rem); text-align: center; }
.lost .hero__copy { margin: 0 auto; max-width: 42rem; }
.lost__code {
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(5rem, 22vw, 10rem);
    line-height: 1;
    color: var(--text-primary);
    text-shadow: -4px 0 rgba(255, 0, 170, 0.45), 4px 0 rgba(0, 90, 255, 0.55);
}
.lost h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
.lost .lead { margin-left: auto; margin-right: auto; }
.lost .actions { justify-content: center; }

/* ── motion off ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
