/* zfx: base styles for the shared motion kit (see zfx.js). Each site sets --zfx-accent and styles the rest. */
.zfx-word { display: inline-block; white-space: nowrap; }
.zfx-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.zfx-ch { display: inline-block; transform: translateY(105%) rotate(7deg); opacity: 0; transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 26ms + var(--base, 0ms)); }
.in > .zfx-word .zfx-ch, .in > .zfx-mask .zfx-ch, [data-split].in .zfx-ch, [data-split-words].in .zfx-ch { transform: none; opacity: 1; }
.zfx [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1), filter .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.zfx [data-reveal].in { opacity: 1; transform: none; filter: none; }
.zfx [data-blur] { opacity: 0; filter: blur(12px); transform: translateY(8px); transition: opacity 1.1s cubic-bezier(.2,.8,.2,1) var(--d, .4s), filter 1.1s cubic-bezier(.2,.8,.2,1) var(--d, .4s), transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, .4s); }
.zfx [data-blur].in { opacity: 1; filter: none; transform: none; }
[data-draw] path { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) var(--d, .2s); }
[data-draw].in path { stroke-dashoffset: 0; }
[data-rotate] { position: relative; display: inline-flex; vertical-align: top; height: 1.04em; overflow: hidden; transition: width .55s cubic-bezier(.2,.8,.2,1); }
[data-rotate] > span { display: inline-block; white-space: nowrap; }
[data-rotate] .out { position: absolute; left: 0; top: 0; animation: zfx-rot-out .55s cubic-bezier(.2,.8,.2,1) both; }
[data-rotate] .in { animation: zfx-rot-in .6s cubic-bezier(.2,.8,.2,1) both; }
[data-velocity] { overflow: hidden; white-space: nowrap; }
[data-velocity] > * { display: inline-flex; align-items: center; will-change: transform; }
[data-dots] { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
[data-tilt] { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
[data-tilt].tilting { transition: transform .12s linear; }
[data-odometer] { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; }
.zfx-digit { display: flex; flex-direction: column; align-self: flex-start; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.zfx-digit b { flex-shrink: 0; height: 1em; font-weight: inherit; }
.zfx-spark { position: fixed; inset: 0; z-index: 1000; pointer-events: none; width: 100vw; height: 100vh; }
/* Card swap: cards fan back in depth; the leaving one drops forward and fades. */
[data-swap] { position: relative; cursor: pointer; }
[data-swap] > * { position: absolute; inset: 0; transform: translate3d(calc(var(--pos) * 26px), calc(var(--pos) * -22px), calc(var(--pos) * -60px)) rotate(calc(var(--pos) * 1.5deg)); opacity: calc(1 - var(--pos) * .18); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s; }
[data-swap] > .leaving { transform: translate3d(-30px, 90px, 40px) rotate(-6deg); opacity: 0; transition-duration: .42s; }
/* Scroll stack: each pinned card shrinks and dims as the next one covers it. */
[data-stack-card] { position: sticky; transform: scale(calc(1 - var(--stack, 0) * .06)); filter: brightness(calc(1 - var(--stack, 0) * .12)); transform-origin: 50% 0; }
@keyframes zfx-rot-in { from { transform: translateY(100%) rotateX(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zfx-rot-out { to { transform: translateY(-100%) rotateX(70deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .zfx-ch, .zfx [data-reveal], .zfx [data-blur] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  [data-draw] path { stroke-dashoffset: 0; transition: none; }
  [data-swap] > *, [data-stack-card] { transition: none; }
}
