  /* ── Base & Utilities ──────────────────────────────────────────── */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
  }

  body {
    min-height: 100vh;
  }

  /* ── Scroll Reveal (progressive enhancement) ──────────────────── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
  }

  /* When JS is disabled, all content is visible by default (no .reveal class applied) */
  .no-js .reveal {
    opacity: 1;
    transform: none;
  }

  /* ── Navbar scroll state ───────────────────────────────────────── */
  #site-nav.scrolled {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
  }

  /* ── Custom scrollbar ──────────────────────────────────────────── */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #FEFCF0;
  }
  ::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #047857;
  }

  /* ── Selection color ───────────────────────────────────────────── */
  ::selection {
    background: #A7F3D0;
    color: #064E3B;
  }

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