/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Nav Transitions ── */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}
body.menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
body.menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.18s; }
body.menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.26s; }

/* ── Header Scroll State ── */
#site-header.scrolled {
    background: rgba(4, 23, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

/* ── Selection ── */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #FAF6EE;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #04170f; }
::-webkit-scrollbar-thumb { background: #1f5730; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 3px;
}
