*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: #fff;
  font-family: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

:root {
  --red:            #C00000;
  --black:          #000;
  --white:          #fff;
  --gray:           #1a1a1a;
  --nav-h:          72px;
  --font-main:      'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

/* ─── SCROLL PROGRESS BAR ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  z-index: 9000;
  transform-origin: left;
  pointer-events: none;
}

/* ─── GLOBAL KEYFRAMES ───────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top:  100%; }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseIcon {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  50%  { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

.loading {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%) !important;
  background-size: 800px 100% !important;
  animation: shimmer 1.4s infinite;
}

/* ─── PAGE LOADER ────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), visibility 0.9s;
}
#page-loader.loader-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-scene {
  width: 280px; height: 280px;
}
.loader-scene svg {
  width: 100%; height: 100%;
}
.loader-ring-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: loaderSpin 20s linear infinite;
}
.loader-aperture-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: loaderSpinR 11s linear infinite;
}
.loader-center-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: loaderPulse 2.4s ease-in-out infinite;
}
.loader-brand {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 28px;
  animation: loaderBrandFade 3s ease-in-out infinite;
}
@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes loaderSpinR {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.5); opacity: 1; }
}
@keyframes loaderBrandFade {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}
