/* ==========================================================================
   Hero — full-screen cover with blueprint grid + parallax schematic layer
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 87, 217, 0.28), transparent 46%),
    radial-gradient(circle at 12% 82%, rgba(0, 245, 160, 0.14), transparent 50%),
    linear-gradient(180deg, var(--color-navy-950) 0%, var(--color-navy-900) 60%, var(--color-navy-950) 100%);
}

/* Atmospheric video layer — same treatment as the internal page-heroes
   (see .page-hero__video in css/page-hero.css): a moving texture under
   the grid/schematic rather than a video banner. The overlay leans left
   since the headline column sits left-of-center here, so the video can
   read more clearly on the right without competing with the text.
   Populated by initHeroVideo() in js/main.js, which skips it on small
   viewports and under prefers-reduced-motion. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: saturate(0.8) contrast(1.05);
  pointer-events: none;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 34, 0.82) 0%, rgba(6, 15, 34, 0.55) 38%, rgba(6, 15, 34, 0.15) 65%, transparent 85%),
    radial-gradient(circle at 82% 18%, rgba(0, 87, 217, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(6, 15, 34, 0.3) 0%, transparent 30%, rgba(6, 15, 34, 0.45) 100%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -10% -10%;
  background-image: url('../images/blueprint-grid.svg');
  background-size: 96px 96px;
  opacity: 0.35;
  will-change: transform;
}

.hero__schematic {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(58vw, 780px);
  transform: translateY(-50%);
  opacity: 0.9;
  will-change: transform;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--color-navy-950) 96%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-2xl);
}

.hero__eyebrow {
  margin-bottom: var(--space-md);
}

.hero__headline {
  /* Modest ~12% reduction off --text-hero (clamp(2.75rem, 3.4rem + 3vw,
     6rem)), scaled proportionally rather than overridden with an
     unrelated size — same fluid curve, just a touch less dominant. */
  font-size: clamp(2.4rem, 3rem + 2.6vw, 5.25rem);
  line-height: var(--leading-tight);
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.hero__headline em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin-top: var(--space-md);
  max-width: 46ch;
  font-size: var(--text-lead);
  color: var(--text-muted);
  font-weight: 500;
}

.hero__actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--container-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--border-subtle);
  overflow: hidden;
}

.hero__scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: var(--accent);
  animation: scroll-indicator 1.8s var(--ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue-line::after {
    animation: none;
    top: auto;
    bottom: 0;
    height: 100%;
    opacity: 0.6;
  }
}

@media (max-width: 900px) {
  .hero__schematic {
    width: min(90vw, 640px);
    opacity: 0.45;
  }

  .hero__scroll-cue {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero__headline {
    max-width: 13ch;
  }
}
