/* ============== HERO CINEMA — SVG video loop ============== */
.cinema-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.cinema-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.cinema-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(14,26,43,0.55) 0%,
    rgba(14,26,43,0.35) 40%,
    rgba(14,26,43,0.85) 100%
  );
  pointer-events: none;
}
.cinema-readout {
  position: absolute;
  bottom: 22px;
  right: 22px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(74,179,255,0.4);
  padding: 8px 14px;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.cinema-readout-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #4ab3ff;
  margin-bottom: 2px;
}
.cinema-readout-stage {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
}

/* push hero content above the cinema */
.hero > * { position: relative; z-index: 2; }
.hero { position: relative; }

/* ============== SCROLL REVEAL — RETIRED 7/10/2026 ==============
   The old pattern hid every section (opacity 0) until an IntersectionObserver added
   .reveal-in. When the observer missed, whole sections (services grid, coverage map,
   reviews) rendered as BLANK boxes — hit repeatedly on launch night.
   RULE: content is never hidden by default. The classes stay as no-ops so any cached
   cinema.jsx that still adds them can't hide anything. */
.reveal-init { opacity: 1; transform: none; }
.reveal-init.reveal-in { opacity: 1; transform: none; }
.hero.reveal-init { opacity: 1; transform: none; transition: none; }
.services-grid > *,
.areas-grid > *,
.reviews-grid > *,
.vid-grid > * {
  opacity: 1;
  transform: none;
}

/* Headline shimmer on reveal */
.sec-head h2 {
  background: linear-gradient(110deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.4s ease 0.2s;
}
.reveal-in .sec-head h2,
.sec-head.reveal-in h2 {
  background-position: 0 0;
}

/* Magnetic CTAs */
.btn-primary, .phone-pill, .gg-cta, .btn-call {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after, .phone-pill::after, .gg-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::after, .phone-pill:hover::after, .gg-cta:hover::after {
  opacity: 1;
}

/* Pulsing accent on critical CTA */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36,115,196,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(36,115,196,0); }
}
.hero-cta .phone-pill {
  animation: cta-pulse 2.4s ease-out infinite;
}

/* Subtle hero text rise */
.hero h1 {
  animation: hero-rise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero-sub {
  animation: hero-rise 1.2s cubic-bezier(.2,.7,.2,1) 0.15s both;
}
.hero-cta {
  animation: hero-rise 1.2s cubic-bezier(.2,.7,.2,1) 0.3s both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Tasteful background grain on hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init, .services-grid > *, .areas-grid > *, .reviews-grid > *, .vid-grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cinema-svg * { animation: none !important; }
  .hero h1, .hero-sub, .hero-cta { animation: none; }
  .hero-cta .phone-pill { animation: none; }
}
