/* ===========================================================================
   hero.css — pinned video, staggered tagline, scroll cue
   =========================================================================== */

.hero-pin {
  position: relative;
  height: 180vh;       /* pin duration — stage is sticky inside this */
  background: var(--bg-primary);
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1.03) brightness(1.08);
}

/* Multi-layer gradient — bottom fades deeper so copy reads cleanly */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.58) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.68) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.36) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.36) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Decorative thin red scan lines to evoke broadcast / terminal feel */
.hero__scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(213, 43, 30, 0.015) 3px, rgba(213, 43, 30, 0.015) 3px);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-inline: var(--container-pad);
  text-align: center;
}

/* Tagline group */
.hero__tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero__line {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 0.88;
  letter-spacing: var(--tr-hero);
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(32px);
  animation: hero-line-in 900ms var(--ease-out) forwards;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  will-change: transform, opacity;
  white-space: nowrap;
  display: block;
}

.hero__line--1 { animation-delay: 400ms; }
.hero__line--2 {
  animation-delay: 560ms;
  color: var(--accent-red-hot);
  text-shadow: 0 0 40px rgba(213, 43, 30, 0.45), 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero__line--3 { animation-delay: 720ms; }

@keyframes hero-line-in {
  0%   { opacity: 0; transform: translateY(40px) skewY(2deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0); }
}

/* Red accent line under tagline */
.hero__accent-line {
  width: 0;
  height: 2px;
  background: var(--accent-red);
  margin-top: var(--space-5);
  animation: hero-line-grow 800ms var(--ease-out) forwards;
  animation-delay: 1000ms;
  box-shadow: 0 0 12px var(--accent-red-hot);
}
@keyframes hero-line-grow {
  to { width: min(420px, 70vw); }
}

/* Subheadline + CTA */
.hero__sub {
  margin-top: var(--space-6);
  max-width: 56ch;
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-line-in 700ms var(--ease-out) forwards;
  animation-delay: 1100ms;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero__cta,
.hero__ctas {
  margin-top: var(--space-6);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-line-in 700ms var(--ease-out) forwards;
  animation-delay: 1260ms;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

/* Side meta — left/right vertical labels */
.hero__side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 6;
  opacity: 0;
  animation: hero-line-in 700ms var(--ease-out) forwards;
  animation-delay: 1400ms;
  white-space: nowrap;
}
.hero__side--left  { left: calc(var(--container-pad) - 10px); }
.hero__side--right { right: calc(var(--container-pad) - 10px); }
.hero__side::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent-red);
}

@media (max-width: 900px) {
  .hero__side { display: none; }
}

/* Hero corners — scanner-style ticks */
.hero__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--text-primary);
  border-style: solid;
  opacity: 0.55;
  z-index: 6;
}
.hero__corner--tl { top: 24px;    left: 24px;    border-width: 1px 0 0 1px; }
.hero__corner--tr { top: 24px;    right: 24px;   border-width: 1px 1px 0 0; }
.hero__corner--bl { bottom: 24px; left: 24px;    border-width: 0 0 1px 1px; }
.hero__corner--br { bottom: 24px; right: 24px;   border-width: 0 1px 1px 0; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 6;
  opacity: 0;
  animation: hero-line-in 700ms var(--ease-out) forwards;
  animation-delay: 1600ms;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-red);
  animation: scroll-indicator 1.6s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Stats ticker — floating readout in hero (optional ambience) */
.hero__ticker {
  position: absolute;
  bottom: 36px;
  right: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  z-index: 6;
  opacity: 0;
  animation: hero-line-in 700ms var(--ease-out) forwards;
  animation-delay: 1600ms;
}
.hero__ticker-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.hero__ticker-value em {
  font-style: normal;
  color: var(--accent-red);
}
.hero__ticker-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero__ticker { display: none; }
  .hero__scroll { bottom: 28px; }
}

/* Progress dot — scroll progress indicator on left edge */
.hero__progress {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 1px;
  height: 180px;
  background: var(--border-subtle);
  z-index: 6;
  display: none;
}
@media (min-width: 1100px) { .hero__progress { display: block; } }

.hero__progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-red);
  transform: translateY(var(--progress, 0)) translateX(-2px);
  box-shadow: 0 0 10px var(--accent-red-hot);
  transition: transform 80ms linear;
}
