/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.grid .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.grid .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.grid .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Smooth Scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Mobile Menu Transition ── */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
}

/* ── Header scroll state ── */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a365d;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4b95e;
}

/* ── Selection ── */
::selection {
    background: #c9a84c;
    color: #0f1f3d;
}
