    /* ── Reset & Base ───────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 80px; }
    body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
    img { display: block; max-width: 100%; }

    /* ── Scroll Reveal (progressive enhancement) ───── */
    @media (prefers-reduced-motion: no-preference) {
        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 1;
            transform: none;
            transition: opacity 0.7s ease, transform 0.7s ease;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .reveal-up,
        .reveal-left,
        .reveal-right {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
    .reveal-up { transform: translateY(30px); }
    .reveal-left { transform: translateX(-30px); }
    .reveal-right { transform: translateX(30px); }

    /* ── Navbar scroll state ────────────────────────── */
    #nav.scrolled {
        background: rgba(26, 29, 35, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* ── Mobile menu ────────────────────────────────── */
    #mobileMenu.open {
        opacity: 1;
        pointer-events: auto;
    }

    /* ── Custom scrollbar ───────────────────────────── */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #1a1d23; }
    ::-webkit-scrollbar-thumb { background: #3d4450; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #ff5c1f; }

    /* ── Selection ──────────────────────────────────── */
    ::selection { background: rgba(255, 92, 31, 0.3); color: #fff; }
