  *, *::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 { max-width: 100%; height: auto; display: block; }
  a { text-decoration: none; }
  button { cursor: pointer; border: none; background: none; }

  /* Scroll reveal — progressive enhancement, only when JS runs and user prefers motion */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
  }
  @media not (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Reduced motion fallback — JS will add .revealed class */
  .reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal-hidden {
      opacity: 1;
      transform: none;
    }
  }

  /* Subtle grain texture on hero */
  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
  }
  #hero > *:not(.absolute) { position: relative; z-index: 2; }

  /* Nav active state */
  #nav.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  }
