/* ======================================
   RESET & BASE
   ====================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0a;
  --bg-hero: #0d0d0d;
  --text-primary: #f0ede8;
  --text-secondary: #999;
  --text-muted: #555;
  --accent: #b4f050;
  --accent-dim: #7ba83a;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

html {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background: var(--bg-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ======================================
   LOADER
   ====================================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.loader-brand {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.loader-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s ease;
}

#loader-percent {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3vw;
  mix-blend-mode: difference;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* ======================================
   HERO
   ====================================== */
.hero-standalone {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-content {
  text-align: center;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0.4rem 0 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.hero-heading .word {
  display: inline-block;
  margin-right: 0.25em;
}

.hero-heading .word.italic {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.6;
  margin: 0 auto;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.scroll-indicator {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulse-down 2s ease infinite;
  z-index: 4;
}

@keyframes pulse-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ======================================
   CANVAS
   ====================================== */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: high-quality;
}

/* Cinematic vignette over canvas */
.canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10,10,10,0.5) 100%);
  pointer-events: none;
}

/* ======================================
   DARK OVERLAY
   ====================================== */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ======================================
   MARQUEE
   ====================================== */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.4s ease;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 14vw);
  font-weight: 400;
  font-style: italic;
  color: rgba(180, 240, 80, 0.06);
  white-space: nowrap;
  will-change: transform;
  user-select: none;
}

/* ======================================
   SCROLL CONTAINER
   ====================================== */
#scroll-container {
  position: relative;
  height: 700vh;
  z-index: 5;
}

/* ======================================
   SCROLL SECTIONS
   ====================================== */
.scroll-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
}

.scroll-section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.scroll-section.active .section-inner,
.scroll-section.active .stats-grid {
  pointer-events: auto;
}

/* Side alignment zones */
.align-left {
  padding-left: 5vw;
  padding-right: 55vw;
}

.align-right {
  padding-left: 55vw;
  padding-right: 5vw;
}

.align-left .section-inner,
.align-right .section-inner {
  max-width: 40vw;
}

/* Section inner content */
.section-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-body {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 380px;
}

/* ======================================
   STATS
   ====================================== */
.section-stats {
  justify-content: center;
  z-index: 6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 900px;
  width: 90vw;
  margin: 0 auto;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  margin-top: -0.3rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ======================================
   CTA
   ====================================== */
.cta-button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: #c8ff5e;
  transform: translateY(-2px);
}

/* ======================================
   HOTSPOTS
   ====================================== */
#hotspots {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#hotspots.visible {
  opacity: 1;
  pointer-events: auto;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.hotspot:hover {
  transform: scale(1.05);
}

/* Visible pulsing ring so users see they can click */
.hotspot-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(180, 240, 80, 0.25);
  border-radius: 12px;
  background: rgba(180, 240, 80, 0.03);
  animation: hotspot-pulse 2.5s ease-in-out infinite;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@keyframes hotspot-pulse {
  0%, 100% { border-color: rgba(180, 240, 80, 0.15); box-shadow: 0 0 0 rgba(180, 240, 80, 0); }
  50% { border-color: rgba(180, 240, 80, 0.4); box-shadow: 0 0 16px rgba(180, 240, 80, 0.1); }
}

.hotspot:hover .hotspot-ring {
  border-color: rgba(180, 240, 80, 0.7);
  box-shadow: 0 0 24px rgba(180, 240, 80, 0.2), inset 0 0 20px rgba(180, 240, 80, 0.06);
  background: rgba(180, 240, 80, 0.06);
  animation: none;
}

/* Always-visible tag */
.hotspot-tag {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.8);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  pointer-events: none;
}

.hotspot:hover .hotspot-tag {
  opacity: 1;
  bottom: -30px;
}

.hotspot-hint {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.7);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(180, 240, 80, 0.2);
  animation: hint-fade 3s ease 1s forwards;
  pointer-events: none;
}

@keyframes hint-fade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ======================================
   SCROLL PROGRESS
   ====================================== */
#scroll-progress {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 30vh;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  z-index: 101;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#scroll-progress.visible {
  opacity: 1;
}

#scroll-progress-bar {
  width: 100%;
  height: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: height 0.05s linear;
}

#scroll-progress-thumb {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: top 0.05s linear;
}

#scroll-progress-pct {
  position: absolute;
  right: 14px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#scroll-progress:hover #scroll-progress-pct {
  opacity: 1;
}

#scroll-progress-thumb::after {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(180, 240, 80, 0.4);
}

/* ======================================
   MOBILE
   ====================================== */
@media (max-width: 768px) {
  .hero-standalone {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero-content {
    max-width: 90vw;
  }

  .hero-heading {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }

  #scroll-container {
    height: 500vh;
  }

  .align-left,
  .align-right {
    padding: 0 5vw;
    align-items: flex-end;
    padding-bottom: 12vh;
  }

  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 90vw;
    background: rgba(10, 10, 10, 0.82);
    padding: 1.5rem;
    border-radius: 4px;
  }

  .section-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .nav-links {
    display: none;
  }

  .marquee-text {
    font-size: 18vw;
  }

  #hotspots {
    display: none;
  }

  #scroll-progress {
    right: 10px;
    height: 20vh;
  }
}
