/* ---------- Abstract animated hero ---------- */
.hero { background: #070a09; isolation: isolate; }

/* Background photo: abstract node network, desaturated and tinted to the brand green */
.hero-bg {
  inset: -4%;
  background: url('images/hero-network.jpg') center / cover no-repeat;
  filter: grayscale(1) brightness(.55) contrast(1.15);
  opacity: 0;
  animation: heroBgIn 2.4s cubic-bezier(.2,.7,.2,1) .1s forwards, heroDrift 30s ease-in-out 2.5s infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, #0d3a24, #0a1f17 45%, #1b5c3a);
  mix-blend-mode: color;
}
@keyframes heroBgIn { from { opacity: 0; transform: scale(1.18); } to { opacity: .55; transform: scale(1.04); } }
@keyframes heroDrift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* Soft glowing blobs drifting behind everything */
.hero-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0;
  animation: auroraIn 2s ease 0.6s forwards, auroraMove 18s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: rgba(47,174,102,.35); }
.hero-aurora span:nth-child(2) { width: 36vw; height: 36vw; right: -8vw; top: 18%; background: rgba(95,211,141,.22); animation-duration: 2s, 22s; animation-delay: .9s, 0s; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 35%; bottom: -14vw; background: rgba(20,120,90,.3); animation-duration: 2s, 26s; animation-delay: 1.2s, 0s; }
@keyframes auroraIn { to { opacity: 1; } }
@keyframes auroraMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vw) scale(1.15); }
  100% { transform: translate(-4vw, 2vw) scale(.95); }
}

/* Interactive node network */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: auroraIn 1.6s ease .8s forwards; }

.hero-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(7,10,9,.15), rgba(7,10,9,.65) 100%),
    linear-gradient(180deg, rgba(7,10,9,.2) 0%, rgba(7,10,9,.1) 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content { z-index: 2; }

/* Intro: eyebrow line, word-by-word headline, staggered content */
.eyebrow-line { display: inline-block; width: 0; height: 1px; margin-right: 0; vertical-align: middle; background: var(--accent); animation: lineGrow .9s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes lineGrow { to { width: 36px; margin-right: 12px; } }

.hero-title .w {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.45em) rotate(2deg);
  animation: wordIn .9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(.45s + var(--i) * .075s);
}
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }

.hero-in { opacity: 0; transform: translateY(18px); animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.scroll-cue.hero-in { transform: translateX(-50%) translateY(18px); animation-name: fadeUpCue; }
@keyframes fadeUpCue { to { opacity: 1; transform: translateX(-50%); } }

/* Rotating word with typing caret */
.rotator-wrap { white-space: nowrap; }
.rotator { display: inline-block; min-width: 1ch; }
.caret { display: inline-block; width: .08em; height: .85em; margin-left: .06em; vertical-align: -.05em; background: var(--accent); animation: blink 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg { opacity: .55; }
  .hero-aurora span, .hero-canvas, .hero-in, .hero-title .w { opacity: 1; filter: none; transform: none; }
  .scroll-cue.hero-in { transform: translateX(-50%); }
  .eyebrow-line { width: 36px; margin-right: 12px; }
}
