
/* V11 — Smooth Motion System */

/* Neutralize old V9 text reveal */
.joy-v9-reveal {
  opacity: 1 !important;
  filter: none !important;
  translate: none !important;
}

/* One-time text reveal, word timing grouped by line */
.joy-v11-word {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0,18px,0);
  transition:
    opacity 720ms cubic-bezier(.22,1,.36,1),
    transform 820ms cubic-bezier(.22,1,.36,1),
    filter 700ms ease;
  transition-delay: var(--joy-line-delay,0ms);
}

.joy-v11-text-on .joy-v11-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0,0,0);
}

/* Smaller, lightweight cursor */
.joy-v11-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483646;
  pointer-events: none;
  display: none;
}

@media (hover:hover) and (pointer:fine) {
  body.joy-v11-cursor-active,
  body.joy-v11-cursor-active a,
  body.joy-v11-cursor-active button,
  body.joy-v11-cursor-active .thumb-shell {
    cursor: none !important;
  }
}

/* V10 controls video entrances and exits.
   No extra gallery exit or filter animation. */

/* Reduce high-cost blur during video reveals */
@media (prefers-reduced-motion:no-preference) {
  .gallery .card.joy-video-reveal {
    transition-duration: 620ms;
    transition-delay: var(--joy-delay,0ms);
  }
}

@media (hover:none), (pointer:coarse),
       (prefers-reduced-motion:reduce) {
  .joy-v11-canvas {
    display: none !important;
  }

  .joy-v11-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}
