  /* ── Base ── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  img { display: block; max-width: 100%; }

  /* ── Nav scroll state ── */
  #nav.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
  }

  /* ── Nav links underline effect ── */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #166534;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* ── Hero entrance animations ── */
  .hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-anim:nth-child(1) { animation-delay: 0.1s; }
  .hero-anim:nth-child(2) { animation-delay: 0.25s; }
  .hero-anim:nth-child(3) { animation-delay: 0.4s; }
  .hero-anim:nth-child(4) { animation-delay: 0.55s; }

  @keyframes heroIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-img {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    animation: heroImgIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  }

  @keyframes heroImgIn {
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .hero-float {
    opacity: 0;
    transform: translateY(16px);
    animation: heroFloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
  }

  @keyframes heroFloatIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Scroll reveal (below the fold only) ── */
  .reveal {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
      animation: revealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    .reveal:not(.is-visible) {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
  }

  @keyframes revealIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Mobile menu ── */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Custom scrollbar ── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #fdf9ee; }
  ::-webkit-scrollbar-thumb { background: #166534; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #15803d; }

  /* ── Selection ── */
  ::selection { background: #166534; color: #fefdf8; }

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