.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  z-index: 100;
  background: var(--purple-500);
  color: var(--graphite-950);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.hero {
  position: relative;
  /* One long sticky scroll section drives the whole scrub. */
  height: 400vh;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video,
.hero-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 9, 12, 0.92) 0%,
    rgba(8, 9, 12, 0.55) 42%,
    rgba(8, 9, 12, 0.15) 68%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-brand {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple-500);
}

.hero-headline {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-size: clamp(2.8rem, 8.5vw, 5.2rem);
  max-width: 15ch;
}

/* Direct-child combinator only — the two line-wrapper spans need
   display:block to stack as separate lines, but a descendant selector here
   would also catch the per-character .char spans the decode reveal injects
   inside them, forcing every letter onto its own block-level row. */
.hero-headline > span {
  display: block;
  color: var(--cream-100);
  /* A soft single shadow for legibility over the moving video background,
     not the old bold-face's offset "ink" duplicate — a thin italic serif
     turns to mush under a heavy double-exposure shadow, so restraint reads
     as more luxurious here than the effect did. */
  text-shadow: 0 2px 18px rgba(8, 9, 12, 0.7);
}

.hero-headline .accent {
  color: var(--purple-500);
}

/* prefers-reduced-motion: no scroll-scrub, static image, no pulse */
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: auto;
  }

  .hero-sticky {
    position: relative;
    height: 100svh;
  }

  .telemetry .glow {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    max-width: 100%;
  }

  /* object-fit: cover forces this landscape video to fill a tall portrait
     viewport, so only a thin center strip stays visible — contain shows
     the whole frame instead, letterboxed against the starfield canvas
     that already shows through behind every section with no opaque fill
     of its own (see main.css's note by .galaxy-bg). */
  .hero-video,
  .hero-fallback-image {
    object-fit: contain;
  }
}
