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

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: #FAFAF5; }
  ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: #047857; }

  /* ─── SELECTION ─── */
  ::selection { background: #047857; color: #FAFAF5; }

  /* ─── SCROLL REVEAL (progressive enhancement) ─── */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
    .reveal:nth-child(5) { transition-delay: 0.32s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
  }

  /* ─── FLOATING CARDS ─── */
  @media (prefers-reduced-motion: no-preference) {
    .floating-card {
      animation: float 4s ease-in-out infinite;
    }
    .floating-card:nth-child(2) { animation-delay: -1.3s; }
    .floating-card:nth-child(3) { animation-delay: -2.6s; }
  }

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

  /* ─── SCROLL LINE ─── */
  @keyframes scroll-line {
    0% { top: -12px; }
    100% { top: 32px; }
  }
  .animate-scroll-line {
    animation: scroll-line 1.4s ease-in-out infinite;
  }

  /* ─── NAVBAR SCROLL STATE ─── */
  #navbar.scrolled {
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  }
