/* This value is used by the shot itself, never inherited by its picture/caption. */
@property --shot-alpha {
 syntax: "<number>";
 inherits: false;
 initial-value: 1;
}

/* Warm only the opening's moving layers; the controller releases them offscreen. */
@media (prefers-reduced-motion: no-preference) {
 body[data-clipvision-home] .p-opening.is-cosmos.is-transitioning .p-welcome-copy,
 body[data-clipvision-home] .p-opening.is-cosmos.is-transitioning .p-welcome-shot {
  will-change: transform, opacity;
 }
}

/* Pixel ranges and this smoothstep curve reproduce the existing JS choreography.
   One named timeline belongs to the scene, not to its sticky/animated children. */
@supports (view-timeline-name: --cv-opening-scroll) and (animation-timeline: --cv-opening-scroll) and (animation-duration: auto) and (animation-range: exit-crossing 0px exit-crossing 1px) {
 @media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  body[data-clipvision-home] .p-opening.is-cosmos {
   --cv-opening-native: 1;
   view-timeline-name: --cv-opening-scroll;
   view-timeline-axis: block;
   view-timeline-inset: 0;
  }
  body[data-clipvision-home] .p-opening.is-native-scroll .cv-wow-hero,
  body[data-clipvision-home] .p-opening.is-native-scroll .p-welcome-copy,
  body[data-clipvision-home] .p-opening.is-native-scroll .p-welcome-shot {
   animation-duration: auto;
   animation-fill-mode: both;
   animation-iteration-count: 1;
   animation-timing-function: cubic-bezier(.333333333333,0,.666666666667,1);
   animation-timeline: --cv-opening-scroll;
  }
  body[data-clipvision-home] .p-opening.is-native-scroll .cv-wow-hero {
   animation-name: cv-opening-fade;
   animation-range: exit-crossing var(--opening-fade-start) exit-crossing var(--opening-fade-end);
  }
  body[data-clipvision-home] .p-opening.is-native-scroll .p-welcome-copy {
   animation-name: cv-opening-copy;
   animation-range: exit-crossing var(--opening-copy-start) exit-crossing var(--opening-copy-end);
  }
  body[data-clipvision-home] .p-opening.is-native-scroll .p-welcome-shot {
   animation-name: cv-opening-shot;
   animation-range: exit-crossing var(--opening-shot-start) exit-crossing var(--opening-shot-end);
  }
 }
}
@keyframes cv-opening-fade {
 from {opacity: 1;}
 to {opacity: 0;}
}
@keyframes cv-opening-copy {
 from {opacity: 0;transform: translateY(var(--opening-copy-y));}
 to {opacity: 1;transform: translateY(0px);}
}
@keyframes cv-opening-shot {
 from {
  opacity: 0;
  transform: translate(var(--opening-shot-x),var(--opening-shot-y)) rotate(var(--shot-rotate,0deg)) scale(.96);
 }
 to {
  opacity: 1;
  transform: translate(0px,0px) rotate(var(--shot-rotate,0deg)) scale(1);
 }
}
