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

  body {
    overflow-x: hidden;
  }

  /* ── Navbar ── */
  #navbar {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  }

  #navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
  }

  .nav-brand-text {
    transition: color 0.35s ease;
  }

  #navbar.scrolled .nav-brand-text {
    color: #064e3b;
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.25s ease;
    border-radius: 1px;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  #navbar.scrolled .nav-link {
    color: rgba(6, 78, 59, 0.8);
  }

  #navbar.scrolled .nav-link:hover {
    color: #059669;
  }

  /* ── Mobile menu ── */
  #mobile-menu {
    animation: slideDown 0.25s ease-out;
  }

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

  .mobile-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-link:hover {
    color: #059669;
    padding-left: 8px;
  }

  /* ── Scroll reveal ── */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  /* Hidden by default for JS-enhanced reveal */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .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; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ── Button hover effects ── */
  a {
    text-decoration: none;
  }

  /* ── Form focus styles ── */
  input:focus,
  textarea:focus {
    outline: none;
  }

  /* ── Selection color ── */
  ::selection {
    background: rgba(5, 150, 105, 0.2);
    color: #064e3b;
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf9ee;
  }
  ::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
  }

  /* ── Responsive tweaks ── */
  @media (max-width: 640px) {
    .font-display {
      line-height: 1.15;
    }
  }

  /* ── Print ── */
  @media print {
    #navbar, #mobile-menu { display: none; }
    body { background: white; }
    .reveal { opacity: 1 !important; transform: none !important; }
  }
