  /* ── 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 — only active with JS) ── */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Mobile Menu ── */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }
  #mobileMenu:not(.open) {
    opacity: 0;
    pointer-events: none;
  }
  .mobile-link {
    transition: opacity 0.3s ease;
  }

  /* ── Navbar scroll state ── */
  #navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 86, 50, 0.08);
  }
  #navbar.scrolled .font-serif {
    color: #1a5632;
  }

  /* ── Selection ── */
  ::selection {
    background: #aed0af;
    color: #0f331e;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #faf7f2; }
  ::-webkit-scrollbar-thumb { background: #aed0af; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #7db87e; }

  /* ── Focus visible ── */
  :focus-visible {
    outline: 2px solid #529a52;
    outline-offset: 2px;
    border-radius: 4px;
  }
</style>
