/* Scroll reveal — shared base. Every hidden state is scoped to `.motion`, which site.js adds
   only when JavaScript runs and the visitor has not asked for reduced motion. */

.motion [data-reveal] > * {
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  filter: blur(8px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.15s cubic-bezier(.16, .8, .2, 1), filter .9s ease;
  transition-delay: var(--delay, 0s);
}
.motion [data-reveal].is-in > * { opacity: 1; transform: none; filter: none; }
.motion [data-reveal] > :nth-child(2) { --delay: .12s; }
.motion [data-reveal] > :nth-child(3) { --delay: .24s; }
.motion [data-reveal] > :nth-child(4) { --delay: .36s; }
.motion [data-reveal] > :nth-child(5) { --delay: .48s; }
.motion [data-reveal] > :nth-child(n+6) { --delay: .56s; }

/* Images inside revealed blocks unveil with a wipe rather than a fade. */
.motion [data-reveal] > figure, .motion [data-reveal] > img { filter: none; clip-path: inset(18% 0 18% 0); transform: scale(1.06); transition: clip-path 1.3s cubic-bezier(.16, .8, .2, 1), transform 1.6s cubic-bezier(.16, .8, .2, 1), opacity .8s ease; }
.motion [data-reveal].is-in > figure, .motion [data-reveal].is-in > img { clip-path: inset(0); transform: none; }

/* Words that light up one by one as the passage scrolls into view. */
.motion [data-words] .word { opacity: clamp(.14, calc(var(--enter, 0) * (var(--n, 20) + 8) - var(--i, 0) - 2), 1); transition: opacity .15s linear; }

/* Hero entrance on page load. */
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 70px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.motion .hz-hero-inner > *, .motion .cv-hero-head > *, .motion .atlas-hero-copy > * { animation: hero-rise 1.2s cubic-bezier(.16, .8, .2, 1) both; }
.motion .hz-hero-inner > :nth-child(2), .motion .cv-hero-head > :nth-child(2), .motion .atlas-hero-copy > :nth-child(2) { animation-delay: .15s; }
.motion .hz-hero-inner > :nth-child(3), .motion .atlas-hero-copy > :nth-child(3) { animation-delay: .3s; }
.motion .hz-hero-inner > :nth-child(4), .motion .atlas-hero-copy > :nth-child(4) { animation-delay: .45s; }

@media print {
  .motion [data-reveal] > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .motion [data-reveal-self] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .motion [data-words] .word { opacity: 1 !important; }
}

/* Single text blocks that reveal themselves (added by site.js on the Vision page). */
.motion [data-reveal-self] { opacity: 0; transform: translate3d(0, 48px, 0); filter: blur(6px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.16, .8, .2, 1), filter .9s ease; }
.motion [data-reveal-self].is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .motion [data-reveal-self] { opacity: 1 !important; transform: none !important; filter: none !important; } }
