/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; }

/* ── Hero Animations ── */
.hero-lead {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}
.hero-lead h1,
.hero-lead p,
.hero-lead .flex {
    animation: fadeSlideUp 0.8s ease forwards;
}
.hero-lead h1 { animation-delay: 0.35s; opacity: 0; }
.hero-lead p { animation-delay: 0.5s; opacity: 0; }
.hero-lead .flex { animation-delay: 0.65s; opacity: 0; }
.hero-lead .mt-12 { animation-delay: 0.8s; opacity: 0; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Selection ── */
::selection {
    background: #065F46;
    color: #F5F0E8;
}

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

/* ── Smooth image loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Mobile menu transition ── */
#mobile-menu {
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}
