/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ========== LOADING ========== */
html:not(.loaded) body { opacity: 0; }
html.loaded body { opacity: 1; transition: opacity 0.4s ease; }

/* ========== MARQUEE ========== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .animate-marquee {
    animation: none;
  }
  .hover\\:scale-105:hover {
    transform: none;
  }
}

/* ========== FORM FOCUS ========== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ========== SELECTION ========== */
::selection {
  background: rgba(196, 151, 59, 0.3);
  color: #E2C9A0;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0E0D0B;
}
::-webkit-scrollbar-thumb {
  background: #2A2520;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C4973B;
}
