  *, *::before, *::after { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    overflow-x: hidden;
  }

  /* Floating card animations */
  .floating-card {
    animation: float 6s ease-in-out infinite;
  }
  .card-1 { animation-delay: 0s; }
  .card-2 { animation-delay: -1.5s; }
  .card-3 { animation-delay: -3s; }
  .card-4 { animation-delay: -4.5s; }

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

  /* Scroll indicator */
  .animate-scroll-indicator {
    animation: scrollDown 1.5s ease-in-out infinite;
  }
  @keyframes scrollDown {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
  }

  /* Reveal animations — progressive enhancement, works without JS */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #FAF8F2; }
  ::-webkit-scrollbar-thumb { background: #bdd8c5; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #8fbfa3; }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid #5fa07c;
    outline-offset: 2px;
  }

  /* Selection */
  ::selection {
    background: #bdd8c5;
    color: #0f2728;
  }
