/* ═══════════════════════════════════════════════════════════
   BASE.CSS — NeuralNerdworks v2
   TOC:
     1. Reset
     2. Variables
     3. Typography
     4. Body & Atmosphere
     5. Footer
     6. Scroll Reveal
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none;           /* Firefox */
}
html::-webkit-scrollbar { display: none; } /* Chrome/Edge/Safari */
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── 2. VARIABLES ─── */
:root {
    --col-a:    #D4A574;
    --col-b:    #9B7DD4;
    --black:    #000000;
    --bg:       #000000;
    --text:     #e8e6e1;
    --text-dim: rgba(232, 230, 225, 0.45);
    --text-muted: rgba(232, 230, 225, 0.25);
    --border:   rgba(255, 255, 255, 0.06);

    --font-industrial: 'Barlow Condensed', Impact, sans-serif;
    --font-body:       'DM Sans', -apple-system, sans-serif;
    --font-mono:       'JetBrains Mono', 'Fira Code', monospace;

    --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 3. TYPOGRAPHY ─── */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── 4. BODY & ATMOSPHERE ─── */
body {
    background: var(--bg);
    overflow-x: hidden;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

/* ─── 5. FOOTER ─── */
.site-footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
}

/* ─── 6. SCROLL REVEAL ─── */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-scroll-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page transition bfcache fix */
body.page-exit { opacity: 0; transition: opacity 0.25s var(--ease); }
