  /* ─── Base & Utilities ─── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { margin: 0; }
  a { text-decoration: none; }
  img { display: block; max-width: 100%; }

  /* ─── Navbar scroll state ─── */
  #nav.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
  }

  /* ─── Floating card animation ─── */
  .floating-card {
    animation: float 6s ease-in-out infinite;
  }
  .floating-card:nth-child(2) { animation-delay: -2s; animation-duration: 7s; }
  .floating-card:nth-child(3) { animation-delay: -4s; animation-duration: 5.5s; }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }

  /* ─── Scroll reveal (progressive enhancement) ─── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-up {
      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);
    }
    .reveal-up.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    /* Stagger children */
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.2s; }
    .reveal-up:nth-child(4) { transition-delay: 0.3s; }
    .reveal-up:nth-child(5) { transition-delay: 0.4s; }
    .reveal-up:nth-child(6) { transition-delay: 0.5s; }
  }

  /* ─── Reduced motion: always show content ─── */
  @media (prefers-reduced-motion: reduce) {
    .reveal-up { opacity: 1; transform: none; }
    .floating-card { animation: none; }
    html { scroll-behavior: auto; }
  }

  /* ─── Mobile menu transition ─── */
  #mobile-menu {
    animation: slideDown 0.25s ease-out;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ─── Custom scrollbar ─── */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #FDFBF7; }
  ::-webkit-scrollbar-thumb { background: #a8ccaa; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #7ab37b; }

  /* ─── Selection color ─── */
  ::selection { background: #a8ccaa; color: #0f261c; }
</style>
