/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

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

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

/* ── Navbar shadow on scroll ── */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(15, 32, 10, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
  background: #c6dfb8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9fc687;
}

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid #78ab56;
  outline-offset: 2px;
}

/* ── Selection ── */
::selection {
  background: #c6dfb8;
  color: #1f3c17;
}
