/* Precursor Signal — cinematic & immersive layer
   Full-bleed hero with parallax, fade-and-rise reveals on every block,
   a scroll-progress hairline, and a sticky conversion bar.
   Depth and pacing only — no colour, type or layout decisions are changed here.
   The whole layer switches off under prefers-reduced-motion. */

/* ---------- scroll progress: a hairline that tracks how far you've read ---------- */
.cine-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal-dark), var(--signal));
  z-index: 999; pointer-events: none;
  box-shadow: 0 0 8px rgba(124, 217, 107, 0.5);
}

/* ---------- hero: full-bleed with parallax drift and a cinematic vignette ---------- */
.hero-video { will-change: transform; transform: translate3d(0, 0, 0) scale(1.08); }
.atmosphere::after {
  background:
    radial-gradient(120% 90% at 50% -10%, transparent 52%, var(--bone) 100%),
    radial-gradient(80% 60% at 50% 110%, rgba(27, 34, 56, 0.10), transparent 60%);
}

/* ---------- fade-and-rise: the core reveal, applied to every block ---------- */
.cine { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); will-change: opacity, transform; }
.cine.cine-in { opacity: 1; transform: none; }
/* children stagger inside a revealed group */
.cine-group > .cine-item { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out); }
.cine-group.cine-in > .cine-item { opacity: 1; transform: none; }
.cine-group.cine-in > .cine-item:nth-child(1) { transition-delay: 0.040s; }
.cine-group.cine-in > .cine-item:nth-child(2) { transition-delay: 0.095s; }
.cine-group.cine-in > .cine-item:nth-child(3) { transition-delay: 0.150s; }
.cine-group.cine-in > .cine-item:nth-child(4) { transition-delay: 0.205s; }
.cine-group.cine-in > .cine-item:nth-child(5) { transition-delay: 0.260s; }
.cine-group.cine-in > .cine-item:nth-child(6) { transition-delay: 0.315s; }
.cine-group.cine-in > .cine-item:nth-child(7) { transition-delay: 0.370s; }
.cine-group.cine-in > .cine-item:nth-child(8) { transition-delay: 0.425s; }
.cine-group.cine-in > .cine-item:nth-child(9) { transition-delay: 0.480s; }
.cine-group.cine-in > .cine-item:nth-child(10) { transition-delay: 0.535s; }
.cine-group.cine-in > .cine-item:nth-child(11) { transition-delay: 0.590s; }
.cine-group.cine-in > .cine-item:nth-child(12) { transition-delay: 0.645s; }
.cine-group.cine-in > .cine-item:nth-child(13) { transition-delay: 0.700s; }
.cine-group.cine-in > .cine-item:nth-child(14) { transition-delay: 0.755s; }

/* section headings lead, body follows */
.cine-head { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.cine-head.cine-in { opacity: 1; transform: none; }

/* ---------- gentle parallax on band backgrounds ---------- */
.cine-parallax { will-change: transform; }

/* ---------- sticky conversion bar: rises once the hero is behind you ---------- */
.cine-cta {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translate(-50%, 140%);
  z-index: 900; display: flex; align-items: center; gap: 1.1rem;
  padding: 0.7rem 0.75rem 0.7rem 1.25rem;
  background: rgba(27, 34, 56, 0.94);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: 0 24px 50px -20px rgba(27, 34, 56, 0.6), 0 0 0 1px rgba(124, 217, 107, 0.14);
  transition: transform 0.42s var(--ease-out), opacity 0.32s var(--ease-standard);
  opacity: 0; max-width: calc(100vw - 2rem);
}
.cine-cta.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cine-cta-copy { color: var(--bone); font-size: 0.86rem; line-height: 1.35; }
.cine-cta-copy b { font-weight: 700; }
.cine-cta-copy span { display: block; color: #9AA0B4; font-size: 0.76rem; margin-top: 0.1rem; }
.cine-cta .btn { white-space: nowrap; padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.cine-cta-close {
  background: none; border: 0; color: #9AA0B4; cursor: pointer; font-size: 1.1rem;
  line-height: 1; padding: 0.35rem 0.5rem; border-radius: var(--radius-sm);
  transition: color var(--dur-base), background var(--dur-base);
}
.cine-cta-close:hover { color: var(--bone); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 620px) {
  .cine-cta { gap: 0.7rem; padding: 0.6rem 0.6rem 0.6rem 1rem; bottom: 0.7rem; }
  .cine-cta-copy span { display: none; }
  .cine-cta-copy { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cine, .cine-head, .cine-group > .cine-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-video { transform: none; }
  .cine-progress { display: none; }
  .cine-cta { transition: none; }
}
