/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--clr-bg);
}

/* ── Video background ── */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle initial scale for Ken Burns feel */
  transform: scale(1.06);
  transition: transform 6s ease-out;
}

/* Flash / crossfade overlay — flashes black then fades out */
.hero__video-transition {
  position: absolute;
  inset: 0;
  background: #08080F;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.hero__video-transition.flash {
  opacity: 1;
}

/* Multi-layer gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(8,8,15,0.92) 30%, rgba(8,8,15,0.45) 70%, rgba(8,8,15,0.25) 100%),
    linear-gradient(to top, rgba(8,8,15,1) 0%, rgba(8,8,15,0.45) 40%, transparent 70%);
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--sp-32) var(--gutter) var(--sp-20);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeIn var(--dur-slow) var(--ease-out-expo) 0.3s forwards;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--clr-text-primary);
  max-width: none;
  margin-bottom: var(--sp-6);
}
.hero__headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
}
.hero__headline .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-slow) var(--ease-out-expo);
}
.hero__headline .word-inner.revealed {
  transform: translateY(0);
  opacity: 1;
}
.hero__headline em {
  font-style: normal;
  background: var(--clr-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--clr-text-secondary);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: var(--sp-10);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out-expo) 0.9s forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out-expo) 1.1s forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-text-muted);
  font-size: var(--size-xs);
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.8s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: float 2s ease-in-out infinite;
}

/* Decorative orb */
.hero__orb {
  position: absolute;
  top: 20%;
  right: 5%;
  width: clamp(200px, 30vw, 500px);
  height: clamp(200px, 30vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(79,142,247,0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__content { padding-top: var(--sp-20); }
  .hero__headline { max-width: 100%; }
  .hero__orb { display: none; }
}
