/* =========================================================
   WAZ — Hero (home page)
   Layer stack (bottom → top):
     1. .hero__fallback  static <picture>, always present
                         (shown if WebGL is unavailable / reduced motion)
     2. .hero__gl        WebGL canvas: water ripple + logo flicker
     3. .hero__sparks    2D canvas: electric sparks during flicker
     4. .hero__shade     gradients for nav + text legibility
     5. .hero__content   headline + buttons
   The focal point (--hero-focus) must match HERO_CONFIG.focus in hero.js
   ========================================================= */

.hero {
  --hero-focus-x: 50%;
  --hero-focus-y: 45%;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #030504;
  isolation: isolate;
}

.hero__fallback,
.hero__fallback img,
.hero__gl,
.hero__sparks,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__fallback img {
  object-fit: cover;
  object-position: var(--hero-focus-x) var(--hero-focus-y);
}

.hero__gl {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero.is-gl-ready .hero__gl { opacity: 1; }

.hero__sparks { pointer-events: none; mix-blend-mode: screen; }

.hero__shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 4, 0.5) 0%, transparent 14%),
    linear-gradient(0deg, var(--c-bg) 0%, rgba(5, 7, 6, 0.35) 12%, transparent 26%);
}

.hero__content {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 2;
}
.hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__title {
  font-size: clamp(1.5rem, 0.9rem + 1.8vw, 2.5rem);
  max-width: 20ch;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.5);
}
.hero__lead {
  color: rgba(244, 246, 245, 0.75);
  max-width: 46ch;
  margin: 0;
  font-size: var(--fs-sm);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 640px) {
  .hero { min-height: 520px; }
  .hero__lead { font-size: var(--fs-sm); }
  .scroll-cue { display: none; }
}
