/* Global Nova Technologies: scroll animation styles (used with motion.js)
   Only transform / opacity / clip-path are animated, so everything runs on the GPU. */
.fx-on [data-fx] {
  --fx-d: 0ms;
  --fx-ease: cubic-bezier(.16, 1, .3, 1);       /* expo-out: fast start, silky landing */
  transition:
    opacity .9s var(--fx-ease) var(--fx-d),
    transform 1.1s var(--fx-ease) var(--fx-d),
    clip-path 1.2s var(--fx-ease) var(--fx-d);
}

/* Soft rise */
.fx-on [data-fx="up"]    { opacity: 0; transform: translate3d(0, 56px, 0); }

/* Headings: rise out of a mask */
.fx-on [data-fx="title"] {
  opacity: 0;
  transform: translate3d(0, 70%, 0) skewY(4deg);
  clip-path: inset(0 0 100% 0);
}

/* Small labels and buttons: spring pop */
.fx-on [data-fx="pop"] {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.86);
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

/* Cards: tilt up in 3D */
.fx-on [data-fx="card"] {
  opacity: 0;
  transform: perspective(1100px) translate3d(0, 90px, 0) rotateX(22deg) scale(.94);
  transform-origin: 50% 100%;
}

/* Columns sliding in from either side */
.fx-on [data-fx="left"]  { opacity: 0; transform: translate3d(-110px, 0, 0) rotate(-1.5deg); }
.fx-on [data-fx="right"] { opacity: 0; transform: translate3d(110px, 0, 0) rotate(1.5deg); }

/* Images: curtain wipe from the bottom, image zooms back to rest */
.fx-on [data-fx="img"] {
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 18px);
  transform: translate3d(0, 60px, 0);
}
.fx-on [data-fx="img"] img {
  transform: translate3d(0, var(--fx-py, 0), 0) scale(1.35);
  transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) var(--fx-d);
}

/* Revealed state */
.fx-on [data-fx].fx-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0 round 0);
}
.fx-on [data-fx="img"].fx-in { clip-path: inset(0 0 0 0 round 18px); }
.fx-on [data-fx="img"].fx-in img {
  transform: translate3d(0, var(--fx-py, 0), 0) scale(1.12);
  transition: transform .2s linear;   /* follow parallax tightly once revealed */
}

/* Parallax images keep a little overscan so edges never show */
.fx-par { will-change: transform; }

/* Old reveal class: give it the same feel */
.fx-on .rv { transform: translate3d(0, 50px, 0) scale(.97); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
.fx-on .rv.in { transform: none; }

/* Header progress bar: glide instead of jumping */
#pb { transition: transform .12s linear; will-change: transform; }

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