/* Homepage cinematic pacing: entrance, light sweep, and touch response. */
main > section.cinematic-section {
  --cinematic-progress: 0;
  --touch-x: 50%;
  --touch-y: 50%;
  position: relative;
  isolation: isolate;
}

main > section.cinematic-section::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: auto 0 -1px;
  height: clamp(38px, 5vw, 92px);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--x-navy-950, #071326) 8%, transparent));
  opacity: calc(var(--cinematic-progress) * .55);
  transform: translateY(calc((1 - var(--cinematic-progress)) * 24px));
}

main > section.cinematic-section::before {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 230px at var(--touch-x) var(--touch-y), rgba(255, 255, 255, .30), transparent 68%);
  transition: opacity 500ms ease;
}

main > section.cinematic-section.has-cinematic-touch::before {
  opacity: 1;
  transition-duration: 80ms;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  main > section.cinematic-section > :not(.hero-background):not(.growth-complexity-background):not(.visibility-background):not(.products-showcase-background):not(.mobile-background):not(.sol-hero-bg):not(.sol-ecosystem-bg):not(.sol-cta-bg) {
    opacity: 1;
    transform: none;
    transition: opacity 900ms cubic-bezier(.16, 1, .3, 1), transform 1100ms cubic-bezier(.16, 1, .3, 1);
  }

  main > section.cinematic-section.is-cinematic-visible > :not(.hero-background):not(.growth-complexity-background):not(.visibility-background):not(.products-showcase-background):not(.mobile-background):not(.sol-hero-bg):not(.sol-ecosystem-bg):not(.sol-cta-bg) {
    opacity: 1;
    transform: none;
  }

  main > section.cinematic-section::before {
    background: radial-gradient(circle 360px at var(--touch-x) var(--touch-y), rgba(255, 255, 255, .18), transparent 70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section.cinematic-section::before,
  main > section.cinematic-section::after {
    display: none;
  }
}
