:root {
  --grip-red: #DF0000;
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: #fff;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: var(--grip-red);
  border-radius: 3px;
}

.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  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-repeat: repeat;
  background-size: 256px 256px;
}

.hero-container {
  position: relative;
  height: 600vh;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Loading */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.5s ease;
}

.loading-title {
  font-family: var(--font-bebas);
  font-size: 3rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .loading-title { font-size: 4rem; } }

.loading-bar-container {
  width: 12rem;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  overflow: hidden;
}
@media (min-width: 640px) { .loading-bar-container { width: 16rem; } }

.loading-bar {
  height: 100%;
  background: var(--grip-red);
  width: 0%;
  transition: width 0.3s ease-out;
}

.loading-text {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* Canvas */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.canvas-loaded {
  opacity: 0.4 !important; /* bg */
}
.fg-canvas.canvas-loaded {
  opacity: 1 !important; /* fg */
}

/* Overlays */
.overlays-wrapper {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Brand Intro */
.brand-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  transform: scale(0.85);
  will-change: opacity, transform;
}
.brand-logo {
  height: 3rem;
  width: auto;
  margin: 0 auto 1rem auto;
}
@media (min-width: 640px) { .brand-logo { height: 5rem; margin-bottom: 1.5rem; } }
@media (min-width: 1024px) { .brand-logo { height: 6rem; } }
.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (min-width: 640px) { .brand-subtitle { font-size: 1rem; letter-spacing: 0.3em; } }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  will-change: opacity;
}
.scroll-text {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 1.25rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.375rem;
  animation: float-mouse 1.5s ease-in-out infinite;
}
.scroll-dot {
  width: 0.25rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
}
@keyframes float-mouse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Story Beats */
.story-beat {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  will-change: opacity, transform;
}

@media (max-width: 639px) {
  .story-beat {
    align-items: flex-end;
    padding-bottom: 5rem;
  }
}
.left-beat {
  justify-content: flex-start;
  padding-left: 1.5rem;
}
@media (max-width: 639px) { .left-beat { justify-content: center; padding-left: 1rem; padding-right: 1rem; } }
@media (min-width: 640px) { .left-beat { padding-left: 4rem; } }
@media (min-width: 1024px) { .left-beat { padding-left: 6rem; } }

.right-beat {
  justify-content: flex-end;
  padding-right: 1.5rem;
}
@media (max-width: 639px) { .right-beat { justify-content: center; padding-left: 1rem; padding-right: 1rem; } }
@media (min-width: 640px) { .right-beat { padding-right: 4rem; } }
@media (min-width: 1024px) { .right-beat { padding-right: 6rem; } }

.beat-content {
  max-width: 32rem;
  width: 100%;
}
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 639px) {
  .text-left, .text-right { text-align: center; }
}

.ml-auto { margin-left: auto !important; }
@media (max-width: 639px) {
  .ml-auto { margin-left: auto !important; margin-right: auto !important; }
}

.beat-accent {
  width: 3rem;
  height: 2px;
  background: var(--grip-red);
  margin-bottom: 1rem;
}
@media (max-width: 639px) { .beat-accent { margin-left: auto; margin-right: auto; } }
@media (min-width: 640px) { .beat-accent { margin-bottom: 1.5rem; } }

.beat-content h2 {
  font-family: var(--font-bebas);
  font-size: 2.25rem;
  color: #fff;
  line-height: 0.9;
  letter-spacing: 0.04em;
  font-weight: 400;
}
@media (min-width: 640px) { .beat-content h2 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .beat-content h2 { font-size: 6rem; } }
@media (min-width: 1280px) { .beat-content h2 { font-size: 8rem; } }

.beat-content p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 24rem;
  line-height: 1.625;
}
@media (min-width: 640px) { .beat-content p { margin-top: 1.25rem; font-size: 1.125rem; } }
@media (min-width: 1024px) { .beat-content p { font-size: 1.25rem; } }

.beat-dot {
  margin-top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgba(223,0,0,0.6);
}
@media (max-width: 639px) { .beat-dot { margin-left: auto; margin-right: auto; } }
@media (min-width: 640px) { .beat-dot { margin-top: 1.5rem; } }
