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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: #86efac;
    color: #1e3a5f;
  }

  /* ── Scroll Reveal (progressive enhancement) ── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 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; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
  }

  /* ── Navbar scroll state ── */
  #site-header.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(30, 58, 95, 0.06), 0 4px 24px rgba(30, 58, 95, 0.06);
  }

  #site-header.scrolled .font-display {
    color: #1e3a5f;
  }

  /* ── Hero parallax feel ── */
  #hero {
    scroll-snap-align: start;
  }

  /* ── Button focus styles ── */
  a:focus-visible, button:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #faf5eb;
  }
  ::-webkit-scrollbar-thumb {
    background: #b8cce0;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #8fb3cc;
  }

  /* ── Mobile menu animation ── */
  #mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Subtle image hover lift ── */
  .group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
  }

  /* ── Reduced motion fallback ── */
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
    html {
      scroll-behavior: auto;
    }
  }
