/* hero-newsreel.css — Newsreel Projector hero · navy + cyan/purple palette */

.hero-newsreel {
  position: relative;
  min-height: clamp(720px, 96vh, 1000px);
  background: radial-gradient(ellipse 100% 70% at 50% 30%, #0e1d3d 0%, #06112a 50%, #03081a 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem 0 0;   /* top clears the fixed header; rails sit at top + bottom */
}

/* Backdrop: soft cyan/violet ambient glow ONLY (no centered dark vignette here — that lives
   behind the copy block now so it doesn't bleed onto the strip frames). */
.hero-newsreel::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(800px circle at 25% 10%, rgba(103, 232, 249, 0.08), transparent 60%),
    radial-gradient(700px circle at 80% 90%, rgba(167, 139, 250, 0.10), transparent 60%);
}

/* Top + bottom logo rails — subtle bands, no film-reel sprockets/glow */
.hero-newsreel__strip {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding: 0.5rem 0;
  background: rgba(13, 25, 52, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero-newsreel__strip--bot { border-bottom: none; }

.hero-newsreel__track {
  display: inline-flex;
  gap: 0.85rem;
  /* Marquee loop math:
     7 unique frames duplicated once = 14 frames + 13 inter-item gaps. The right padding
     adds exactly one extra gap-width (0.85rem), so the total track is (7 frames + 7 gaps) × 2 wide.
     Left padding MUST be 0 — any non-zero left padding offsets translateX(-50%) by that amount
     and creates a visible seam gap where the duplicate set lands short of frame 1's original
     position. Vertical padding is fine (doesn't affect horizontal translate maths). */
  padding: 1rem 0.85rem 1rem 0;
  animation: newsreel-slide 30s linear infinite;
  will-change: transform;
}
@keyframes newsreel-slide {
  /* 5 sets of 7 frames in markup. Translate by exactly one set's worth = 1/5 of total = 20%.
     Loop reset puts duplicate-set's frame 1 exactly where original frame 1 was. The remaining
     4 sets' worth of track always extends past the strip's right edge on viewports up to ~3840px,
     so the empty navy-strip gap that appeared on the previous 2-set design no longer occurs. */
  from { transform: translateX(0); }
  to   { transform: translateX(-20%); }
}
.hero-newsreel__strip--bot .hero-newsreel__track { animation-direction: reverse; }

.hero-newsreel__frame {
  width: 158px;
  height: 76px;
  flex-shrink: 0;
  /* Soft off-cream rather than pure white — softens the contrast against the dark navy strip
     so the white-on-navy doesn't feel so sandwich-y */
  background: #f3eee2;
  border-radius: 4px;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.hero-newsreel__frame img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
  /* Slight desaturation so the bright brand reds/blues don't clash against the dark strip */
  filter: saturate(0.78);
  transition: filter 0.3s ease;
}
.hero-newsreel__frame:hover img { filter: saturate(1); }
.hero-newsreel__frame-num {
  display: none;
}

/* Headline block fills the space between the two rails and centres the copy */
.hero-newsreel__copy {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.hero-newsreel__copy > * { position: relative; z-index: 1; }
.hero-newsreel__copy * { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28); }

.hero-newsreel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.32);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-newsreel__eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}

.hero-newsreel__h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-newsreel__h1 em {
  font-style: normal;
  color: #67e8f9;
}

.hero-newsreel__sub {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 1.5rem;
  max-width: 480px;
}

.hero-newsreel__cta {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-newsreel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.hero-newsreel__btn--primary {
  background: #fff;
  color: #06112a;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}
.hero-newsreel__btn--primary:hover {
  background: #0a2540;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
}
.hero-newsreel__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.hero-newsreel__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.40);
}

.hero-newsreel__guarantees {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-newsreel__guarantees li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.hero-newsreel__guarantees li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2367e8f9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Clean dark→cream break (no fade overlay — the fade was bleeding over the bottom strip
   and making it look white). The strip stays fully navy, then the cream section starts immediately below. */

@media (prefers-reduced-motion: reduce) {
  .hero-newsreel__track { animation: none !important; }
}

@media (max-width: 768px) {
  .hero-newsreel { min-height: 92vh; padding-top: 5rem; }
  .hero-newsreel__copy { padding: 2rem 1.25rem; max-width: 95%; }
  .hero-newsreel__frame { width: 122px; height: 58px; padding: 0.5rem; }
  .hero-newsreel__guarantees { gap: 0.9rem 1.1rem; }
}

/* ============================================================
   Home-only header: transparent over the hero, fading to a
   translucent navy bar on scroll. Lets the dark hero run
   edge-to-edge from the very top (no white header seam), matching
   the seamless feel of the reference sites. Scoped to body.home
   and this home-only stylesheet so every other page is untouched.
   ============================================================ */
body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 0.25s ease, border-color 0.25s ease, -webkit-backdrop-filter 0.25s ease, backdrop-filter 0.25s ease;
}
body.home .site-header.is-scrolled {
  background: rgba(6, 17, 42, 0.82);
  border-bottom-color: rgba(103, 232, 249, 0.18);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

/* Home: white wordmark over the dark hero (sizing + visibility handled globally) */
body.home .site-header__wordmark-home { color: #fff; }

/* Light nav and CTA over the dark hero (header only — not the mobile drawer) */
body.home .site-header__nav a { color: rgba(255, 255, 255, 0.80); }
body.home .site-header__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.10); }
body.home .site-header__cta .btn--primary {
  background: #fff;
  color: #06112a;
  border-color: transparent;
}
body.home .site-header__cta .btn--primary:hover {
  background: #67e8f9;
  color: #06112a;
}
body.home .mobile-toggle {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* (hero vertical spacing is handled by .hero-newsreel__copy padding) */
