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

/* ── Typography ── */
.font-cormorant { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-inter { font-family: 'Inter', system-ui, sans-serif; }

/* ── Hero animations (above the fold — always visible) ── */
.hero-headline { animation: heroText 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-subtitle { animation: heroFade 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-body { animation: heroFade 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-cta { animation: heroFade 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-stats { animation: heroFade 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-float-card { animation: heroFloat 1.2s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes heroText {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroFloat {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Scroll reveal (below the fold — progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Navbar ── */
#navbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#navbar.scrolled {
    background: rgba(247, 245, 239, 0.92);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu { transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* ── Vertical text helper ── */
.writing-mode-vertical { writing-mode: vertical-rl; text-orientation: mixed; }

/* ── Focus styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* ── Selection ── */
::selection { background: rgba(6, 78, 59, 0.12); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F7F5EF; }
::-webkit-scrollbar-thumb { background: rgba(6, 78, 59, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(6, 78, 59, 0.4); }
