  /* Base & Reset */
  *, *::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%; }

  /* Scroll reveal — progressive enhancement, only applies when JS is active */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      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.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hero animations */
  @media (prefers-reduced-motion: no-preference) {
    .hero-anim {
      opacity: 0;
      transform: translateY(24px);
      animation: heroIn 0.8s 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); }
    }
  }

  /* Navbar scrolled state */
  #navbar.scrolled {
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }

  /* Selection */
  ::selection { background: rgba(20, 184, 166, 0.3); }
</style>
