/* ============ Polar Pup — hero ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 82px) 0 96px;
  overflow: clip;
  isolation: isolate;
}

.hero-aurora {
  position: absolute;
  inset: -18% -12% auto;
  height: 72%;
  z-index: -1;
  background:
    radial-gradient(42% 60% at 30% 40%, rgba(0, 212, 255, 0.18), transparent 70%),
    radial-gradient(38% 55% at 62% 30%, rgba(120, 255, 214, 0.12), transparent 70%),
    radial-gradient(45% 60% at 80% 55%, rgba(168, 216, 234, 0.15), transparent 72%);
  filter: blur(46px);
  animation: aurora-drift 22s ease-in-out infinite;
  pointer-events: none;
}

/* #snow-canvas is a fixed full-viewport layer — styles in animations.css */

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 0 20px;
}

.hero-chip {
  font: 700 0.8rem var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--icicle-tip);
  background: var(--frost-glass);
  border: 1px solid var(--frost-line);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.96;
}

.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-pup-wrap {
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.hero-pup {
  width: min(320px, 58vw);
  aspect-ratio: 1;
  animation: pup-bob 5.2s ease-in-out infinite;
  filter: drop-shadow(0 24px 44px rgba(0, 120, 190, 0.35));
}

.hero-ambient {
  position: absolute;
  left: 6%;
  bottom: 30px;
  width: clamp(90px, 10vw, 140px);
  aspect-ratio: 1;
  z-index: 2;
  opacity: 0.65;
  pointer-events: none;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-spark {
  position: absolute;
  z-index: 1;
  font-size: 22px;
  color: var(--icicle-tip);
  opacity: 0.5;
  animation: sparkle-twinkle 3.4s ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  pointer-events: none;
}

.hero-berg {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-berg.back {
  height: 170px;
  opacity: 0.5;
  background: linear-gradient(180deg, rgba(168, 216, 234, 0.09), rgba(168, 216, 234, 0.13));
  clip-path: polygon(0 55%, 9% 35%, 18% 52%, 28% 26%, 38% 50%, 47% 32%, 57% 54%, 66% 30%, 77% 52%, 88% 36%, 100% 52%, 100% 100%, 0 100%);
}

.hero-berg.front {
  height: 120px;
  background: linear-gradient(180deg, rgba(168, 216, 234, 0.12), rgba(168, 216, 234, 0.2));
  clip-path: polygon(0 62%, 7% 40%, 14% 58%, 22% 30%, 31% 55%, 40% 38%, 50% 60%, 58% 34%, 67% 56%, 76% 40%, 85% 58%, 93% 44%, 100% 60%, 100% 100%, 0 100%);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  z-index: 5;
  color: var(--icicle-tip);
  opacity: 0.8;
  display: grid;
  justify-items: center;
  gap: 6px;
  font: 600 0.72rem var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue img {
  height: 30px;
  width: auto;
  animation: cue-bounce 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .hero-pup, .hero-spark, .scroll-cue img { animation: none; }
}
