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

/* ─── NAV SCROLL STATE ─── */
#site-header.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
#site-header.scrolled .nav-link { color: rgba(255,255,255,0.85) !important; }

/* ─── REVEAL ANIMATIONS (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── SELECTION ─── */
::selection { background: rgba(26, 138, 120, 0.3); color: #0f172a; }

/* ─── FOCUS VISIBLE ─── */
:focus-visible { outline: 2px solid #5ccfb5; outline-offset: 2px; border-radius: 4px; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1a8a78; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2eb398; }
</style>
