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

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navbar scroll state ── */
nav.scrolled {
  background: rgba(107, 58, 110, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f0f7; }
::-webkit-scrollbar-thumb { background: #d4becf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b893b2; }

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