:root {
  --carousel-duration: 750ms;
  --motion-duration: 650ms;
  --motion-distance: 32px;
  --motion-step: 80ms;
  --motion-delay-max: 240ms;
  --motion-easing: cubic-bezier(.22, 1, .36, 1);
}

/* Enhancement only. The original first slide works without JavaScript. */
.carousel-ready { display: grid; }
.carousel-ready .hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.carousel-ready .hero-slide.is-current {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.carousel-ready .hero-slide.is-leaving {
  visibility: visible;
  z-index: 1;
}
.carousel-ready .hero-control,
.carousel-ready .hero-dots { z-index: 3; }

/* Clip at each full-width composition, without changing the document scroller. */
main > .section,
main > .experience,
.subhero,
.article-hero,
.mini-cta { overflow-x: clip; }

/* Reveal effects use independent translate, preserving existing hover transforms.
   Nothing is hidden in CSS: failure or absence of JS leaves all content usable. */
@media (max-width: 750px) {
  :root {
    --motion-distance: 16px;
    --motion-step: 40ms;
    --motion-delay-max: 120ms;
    --motion-duration: 550ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --carousel-duration: 0ms; --motion-duration: 0ms; --motion-step: 0ms; --motion-delay-max: 0ms; }
}
