/* Unfold once, then keep the whole hand gently levitating out of phase. */
.hero-fan .fan-card {
  animation: fan-unfold 650ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(var(--fan-i) * 45ms);
  transition: none;
}
.hero-fan .fan-card:hover { translate: none; }
.hero-fan .fan-card:is(:hover,:focus-visible) { z-index: 10; }
.fan-float {
  display: block;
  animation: fan-drift 6s cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: calc(var(--fan-i) * -.95s);
}
.hero-fan .fan-card img {
  display: block;
  transition: transform 280ms cubic-bezier(.2,0,0,1);
}
.hero-fan .fan-card:focus-visible img {
  transform: translateY(-20px) scale(1.06);
}
@media (hover:hover) and (pointer:fine) {
  .hero-fan .fan-card:hover img { transform: translateY(-20px) scale(1.06); }
}
.hero-fan[data-motion-paused="true"] .fan-float,
.hero-fan[data-offscreen="true"] .fan-float { animation-play-state: paused; }
.fan-motion-toggle {
  position: absolute;
  bottom: -10px;
  right: 0;
  z-index: 11;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg, #1c1c20);
  color: var(--muted);
  transition: color 120ms ease-out, border-color 120ms ease-out;
}
.fan-motion-toggle:hover { color: var(--accent); border-color: var(--accent); }
.fan-motion-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; }
@keyframes fan-unfold {
  from { opacity: 0; transform: translate(calc(var(--fan-x) * .65),calc(var(--fan-y) + 32px)) rotate(calc(var(--fan-r) * .6)) scale(.94); }
  to { opacity: 1; transform: translate(var(--fan-x),var(--fan-y)) rotate(var(--fan-r)) scale(1); }
}
@keyframes fan-drift {
  0%, 100% { transform: translateY(2px) rotate(-.5deg); }
  50% { transform: translateY(-10px) rotate(.5deg); }
}
@media(max-width:760px) {
  .fan-motion-toggle { bottom: 0; right: 0; width: 36px; height: 36px; }
  .hero-fan .fan-card:focus-visible img { transform: translateY(-10px) scale(1.03); }
}
@media(prefers-reduced-motion:reduce) {
  .hero-fan .fan-card, .fan-float { animation: none; }
  .hero-fan .fan-card img { transition: none; }
  .hero-fan .fan-card:is(:hover,:focus-visible) img { transform: none; }
  .fan-motion-toggle { display: none; }
}
