/* ==========================================================================
   Motion policy. One file, loaded after site.css so it is authoritative.

   What was here before: three overlapping systems ([data-reveal],
   [data-fx], [data-motion]) with seven named "choreographies", applied to
   headings, leads, body copy, heroes and bars alike — plus six animations
   looping for ever. Uniform fade-up on everything, staggered, is the reason
   it read as generic.

   The rules now:
     1. The opening screen never animates. Content is readable on arrival.
     2. Text never animates: no headings, no leads, no paragraphs, no forms.
     3. One entrance, for media and cards only. No blur, no scale, no tilt,
        no sideways slide, no stagger.
     4. Nothing loops. An animation with no end has no purpose.
     5. Under 300ms, custom easing, transform and opacity only.
   ========================================================================== */

:root {
  /* Short enough to go unnoticed, far enough to read as arriving. */
  --enter-shift: 10px;
  --enter-duration: 260ms;
  --enter-ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

/* ------------------------------------------------------------ 1. entrance */

/* Only elements the page marked, and only once the script confirms motion is
   on. Without JavaScript nothing here applies and everything is visible. */
.motion-ready [data-reveal],
.motion-ready [data-fx] {
  opacity: 0;
  transform: translate3d(0, var(--enter-shift), 0);
  transition:
    opacity var(--enter-duration) var(--enter-ease),
    transform var(--enter-duration) var(--enter-ease);
  transition-delay: 0s;
  will-change: opacity, transform;
}

.motion-ready [data-reveal].is-revealed,
.motion-ready [data-fx].is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Already on screen when the page loaded: no entrance at all. This is what
   keeps the first screen of every page static. */
.motion-ready [data-reveal].is-immediate,
.motion-ready [data-fx].is-immediate {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

/* The home opens with no entrances whatsoever. */
:root[data-entrances='off'] [data-reveal],
:root[data-entrances='off'] [data-fx] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  clip-path: none !important;
}

/* The seven named choreographies and the three overlapping systems that used
   to produce them were removed from site.css; this file is the only place
   entrances are defined now. */

/* The looping bars (.stories-impact-bar, .proj-stats-bar, .essencia-bar)
   were left exactly as they were. Changing them would have changed the
   layout, and that was not asked for. */

/* ------------------------------------------------------ 4. reduced motion */

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal],
  .motion-ready [data-fx],
  .motion-ready [data-fx] > *,
  [data-reveal],
  [data-fx] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
    animation: none !important;
  }
}
