#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WebGL canvas sits behind everything */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Vignette overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(10, 10, 10, 0.7) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 1.5rem;
  max-width: 900px;
}

/* Logo wrapper (no box/border — just holds the transparent PNG) */
.hero-logo {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  animation: float 6s ease-in-out infinite;
  /* opacity set to 0 only when GSAP is present — see .gsap-ready below */
}
.gsap-ready .hero-logo { opacity: 0; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text);
  overflow: hidden;
}

.hero-tagline .word {
  display: inline-block;
  overflow: hidden;
}

.hero-tagline .char {
  display: inline-block;
}
.gsap-ready .hero-tagline .char {
  transform: translateY(110%);
  opacity: 0;
}

/* Subtext */
.hero-sub {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  /* visible by default; GSAP hides+animates it when ready */
}
.gsap-ready .hero-sub   { opacity: 0; }

/* CTA row */
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gsap-ready .hero-ctas  { opacity: 0; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.gsap-ready .scroll-indicator { opacity: 0; }

.scroll-indicator span {
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  transform-origin: top;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}

@media (max-width: 375px) {
  .hero-tagline {
    font-size: 2.25rem;
  }
}

/* Hero wordmark (replaces the old LOGO_PLACEHOLDER text) */
.hero-wordmark {
  display: inline-block;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f5f5f5;
  text-shadow: 0 2px 40px rgba(74,44,109,0.55);
}
.hero-wordmark sup { font-size: 0.32em; vertical-align: super; opacity: 0.8; }

/* Hero logo image (cosmic nebula version, transparent PNG) */
.hero-logo-img {
  display: block;
  width: clamp(220px, 34vw, 380px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 40px rgba(74,44,109,0.55)) drop-shadow(0 2px 12px rgba(30,58,95,0.4));
}
@media (max-width: 600px) { .hero-logo-img { width: clamp(200px, 62vw, 280px); } }
