/* Base & Utilities */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #2d2d4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #363659; }

/* Selection */
::selection { background: rgba(255, 107, 87, 0.3); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Scroll reveal base — always visible by default, JS adds animated state */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal.hidden-state {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.delay-100 { transition-delay: 0.1s; }
  .reveal.delay-200 { transition-delay: 0.2s; }
  .reveal.delay-300 { transition-delay: 0.3s; }
  .reveal.delay-400 { transition-delay: 0.4s; }
}
