/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }
p, li, a, span, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #2d1f14 60%, #712413 85%, #400e06 100%);
}

/* ── Hero Grid Overlay ── */
.hero-grid-overlay {
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.3) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ── Hero Blobs ── */
.hero-blob { animation: blob-float 8s ease-in-out infinite; }
.hero-blob-2 { animation-delay: -4s; animation-duration: 10s; }

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Nav ── */
#site-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#site-header.scrolled {
    background: rgba(253, 251, 245, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.06);
}
.nav-logo-text { transition: color 0.3s ease; }
#site-header.scrolled .nav-logo-text { color: #0f172a; }
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e85a20;
    transition: width 0.2s ease;
    border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }
#site-header.scrolled .nav-link { color: #475569; }
#site-header.scrolled .nav-link:hover { color: #d44312; }

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5e8; }
::-webkit-scrollbar-thumb { background: #d4aa55; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c49444; }

/* ── Focus Visible ── */
:focus-visible { outline: 2px solid #e85a20; outline-offset: 2px; border-radius: 4px; }

/* ── Selection ── */
::selection { background: #e85a20; color: white; }
