/* Gentle, icon-specific movement inspired by the Kippa identity. */
@media (prefers-reduced-motion: no-preference) {
  .icon > use {
    transform-origin: center;
    transform-box: fill-box;
    animation: icon-breathe 4.8s ease-in-out infinite;
  }
  .icon:has(use[href="#i-compass"]) > use,
  .icon:has(use[href="#i-target"]) > use {
    animation-name: icon-scan;
  }
  .icon:has(use[href="#i-report"]) > use,
  .icon:has(use[href="#i-policy"]) > use {
    animation-name: icon-lift;
  }
  .icon:has(use[href="#i-code"]) > use {
    animation-name: icon-code;
  }
  .icon:has(use[href="#i-phone"]) > use {
    animation-name: icon-ring;
  }
  .icon:has(use[href="#i-arrow"]) > use {
    animation: arrow-forward 3.4s ease-in-out infinite;
  }
  .icon:has(use[href="#i-diagonal"]) > use {
    animation: arrow-diagonal 3.4s ease-in-out infinite;
  }
  .service-card:nth-child(2n) .icon > use { animation-delay: -.8s; }
  .service-card:nth-child(3n) .icon > use { animation-delay: -1.6s; }
  a:hover .icon > use,
  a:focus-visible .icon > use,
  button:hover .icon > use,
  button:focus-visible .icon > use,
  .service-card:hover .icon > use { animation-duration: 1.6s; }
  .hero-actions .text-link > span,
  .hero-bottom > a > span { display: inline-block; animation: arrow-down 3.4s ease-in-out infinite; }
  .back-top { animation: arrow-up 3.4s ease-in-out infinite; }
}
@keyframes icon-breathe {
  0%, 65%, 100% { transform: scale(1); }
  35% { transform: scale(1.08); }
}
@keyframes icon-scan {
  0%, 70%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  45% { transform: rotate(8deg); }
}
@keyframes icon-lift {
  0%, 70%, 100% { transform: translateY(0); }
  35% { transform: translateY(-2px); }
}
@keyframes icon-code {
  0%, 70%, 100% { transform: scaleX(1); }
  35% { transform: scaleX(1.12); }
}
@keyframes icon-ring {
  0%, 55%, 100% { transform: rotate(0); }
  20%, 40% { transform: rotate(-8deg); }
  30% { transform: rotate(8deg); }
}
@keyframes arrow-forward {
  0%, 65%, 100% { transform: translateX(0); }
  35% { transform: translateX(3px); }
}
@keyframes arrow-diagonal {
  0%, 65%, 100% { transform: translate(0, 0); }
  35% { transform: translate(2px, -2px); }
}
@keyframes arrow-down {
  0%, 65%, 100% { transform: translateY(0); }
  35% { transform: translateY(3px); }
}
@keyframes arrow-up {
  0%, 65%, 100% { transform: translateY(0); }
  35% { transform: translateY(-3px); }
}
