
/* ==========================================================================
   DSP Global Icon Motion
   Subtle, transform-only, accessibility-safe.
   ========================================================================== */

:root{
  --dsp-icon-ease:cubic-bezier(.2,.7,.2,1);
}

/* Base transitions */
.dsp-cat__icon,
.dsp-slide__icon,
.dsp-svc__icon,
.dsp-band__icon,
.dsp-ins__icon,
.dsp-why__icon,
.dsp-how__icon,
.dsp-feature__icon,
.dsp-org-toolicon,
.dsp-rb3-heroicon,
.dsp-p2-heroicon,
.dsp-p3-heroicon,
.dsp-footc__contact svg,
.dsp-org-note svg,
.dsp-btn svg,
.dsp-btn--glass svg,
.dsp-slide__cta svg,
.dsp-howc__link svg,
.dsp-org-toolcard__open svg,
.dsp-find__submit svg{
  transform-origin:center;
  transition:
    transform .22s var(--dsp-icon-ease),
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    opacity .18s ease;
}

/* Category / homepage cards */
.dsp-cat:hover .dsp-cat__icon,
.dsp-cat:focus-within .dsp-cat__icon,
.dsp-slide:hover .dsp-slide__icon,
.dsp-slide:focus-within .dsp-slide__icon,
.dsp-why__card:hover .dsp-why__icon,
.dsp-why__card:focus-within .dsp-why__icon,
.dsp-howc__step:hover .dsp-how__icon,
.dsp-howc__step:focus-within .dsp-how__icon{
  transform:translateY(-3px) scale(1.07);
}

/* Feature section icons */
.dsp-feature__card:hover .dsp-feature__icon,
.dsp-feature__card:focus-within .dsp-feature__icon,
.dsp-band:hover .dsp-band__icon,
.dsp-band:focus-within .dsp-band__icon,
.dsp-ins__card:hover .dsp-ins__icon,
.dsp-ins__card:focus-within .dsp-ins__icon{
  transform:translateY(-2px) scale(1.08) rotate(-2deg);
}

/* Service cards */
.dsp-svc:hover .dsp-svc__icon,
.dsp-svc:focus-within .dsp-svc__icon,
.dsp-svc[open] .dsp-svc__icon{
  transform:translateY(-2px) scale(1.08);
}
.dsp-svc:hover .dsp-svc__icon svg,
.dsp-svc:focus-within .dsp-svc__icon svg{
  transform:scale(1.04);
}

/* Tools directory */
.dsp-org-toolcard:hover .dsp-org-toolicon,
.dsp-org-toolcard:focus-within .dsp-org-toolicon{
  transform:translateY(-3px) scale(1.06) rotate(-2deg);
}
.dsp-org-toolcard:hover .dsp-org-toolicon img,
.dsp-org-toolcard:focus-within .dsp-org-toolicon img{
  transform:scale(1.04);
}
.dsp-org-toolicon img{
  transition:transform .22s var(--dsp-icon-ease);
}

/* Tool builder hero icons */
.dsp-rb3-hero:hover .dsp-rb3-heroicon,
.dsp-rb3-hero:focus-within .dsp-rb3-heroicon,
.dsp-p2-hero:hover .dsp-p2-heroicon,
.dsp-p2-hero:focus-within .dsp-p2-heroicon,
.dsp-p3-hero:hover .dsp-p3-heroicon,
.dsp-p3-hero:focus-within .dsp-p3-heroicon{
  transform:translateY(-2px) scale(1.045);
}
.dsp-rb3-heroicon img,
.dsp-p2-heroicon img,
.dsp-p3-heroicon img{
  transition:transform .24s var(--dsp-icon-ease);
}
.dsp-rb3-hero:hover .dsp-rb3-heroicon img,
.dsp-rb3-hero:focus-within .dsp-rb3-heroicon img,
.dsp-p2-hero:hover .dsp-p2-heroicon img,
.dsp-p2-hero:focus-within .dsp-p2-heroicon img,
.dsp-p3-hero:hover .dsp-p3-heroicon img,
.dsp-p3-hero:focus-within .dsp-p3-heroicon img{
  transform:scale(1.055) rotate(-1.5deg);
}

/* Directional arrows slide forward; branded, document and search glyphs
   stay centered. The existing liquid-CTA motion engine remains authoritative. */
.dsp-btn:is(:hover,:focus-visible) :is(.dsp-hero-arrow,.dsp-btn__arrow,[data-dsp-motion-icon="arrow"]),
.dsp-btn--glass:is(:hover,:focus-visible) :is(.dsp-hero-arrow,.dsp-btn__arrow,[data-dsp-motion-icon="arrow"]),
.dsp-slide__cta:is(:hover,:focus-visible) [data-dsp-motion-icon="arrow"],
.dsp-howc__link:is(:hover,:focus-visible) [data-dsp-motion-icon="arrow"],
.dsp-org-toolcard__open:is(:hover,:focus-visible) [data-dsp-motion-icon="arrow"]{
  transform:translateX(3px) scale(1.04);
}
@media (hover:hover) and (pointer:fine){
  .dsp-btn:is(:hover,:focus-visible) > svg:not(.dsp-hero-arrow):not(.dsp-btn__arrow):not([data-dsp-motion-icon="arrow"]),
  .dsp-btn--glass:is(:hover,:focus-visible) > svg:not(.dsp-hero-arrow):not(.dsp-btn__arrow):not([data-dsp-motion-icon="arrow"]),
  .dsp-find__submit:is(:hover,:focus-visible) svg{
    transform:scale(1.035);
  }
}

/* Icon-only navigation controls */
.dsp-hero-bg__arrow svg,
.dsp-rail__btn svg,
.dsp-drawer__close svg{
  transition:transform .2s var(--dsp-icon-ease);
}
.dsp-hero-bg__arrow:hover svg,
.dsp-hero-bg__arrow:focus-visible svg,
.dsp-rail__btn:hover svg,
.dsp-rail__btn:focus-visible svg{
  transform:scale(1.12);
}
.dsp-hero-bg__arrow--prev:hover svg,
.dsp-hero-bg__arrow--prev:focus-visible svg{
  transform:translateX(-2px) rotate(180deg) scale(1.12);
}
.dsp-rail__btn--prev:hover svg,
.dsp-rail__btn--prev:focus-visible svg{
  transform:translateX(-2px) scale(1.12);
}
.dsp-hero-bg__arrow:not(.dsp-hero-bg__arrow--prev):hover svg,
.dsp-hero-bg__arrow:not(.dsp-hero-bg__arrow--prev):focus-visible svg,
.dsp-rail__btn:not(.dsp-rail__btn--prev):hover svg,
.dsp-rail__btn:not(.dsp-rail__btn--prev):focus-visible svg{
  transform:translateX(2px) scale(1.12);
}

/* Footer and info icons */
.dsp-footc__contact>a:hover svg,
.dsp-footc__contact>a:focus-visible svg,
.dsp-org-note:hover svg,
.dsp-org-note:focus-within svg{
  transform:translateY(-2px) scale(1.1);
}

/* Search icon reacts to focus, not constant motion */
.dsp-org-search svg,
.dsp-find__icon svg{
  transition:transform .2s var(--dsp-icon-ease),color .18s ease;
}
.dsp-org-search:focus-within svg,
.dsp-find__form:focus-within .dsp-find__icon svg{
  transform:scale(1.08);
  color:var(--dsp-accent);
}

/* Micro builder controls: tactile but restrained */
.dsp-rb3-secactions button:hover svg,
.dsp-rb3-rowactions button:hover svg,
.dsp-p2-rowactions button:hover svg,
.dsp-p3-actions button:hover svg{
  transform:scale(1.08);
}

/* Never animate QR imagery */
.dsp-footc__qr,
.dsp-footc__qr img,
.dsp-footc__qr:hover img,
.dsp-footc__qr:focus-visible img{
  transform:none!important;
  animation:none!important;
  will-change:auto!important;
}

/* Touch devices: avoid sticky hover artifacts */
@media(hover:none){
  .dsp-cat:hover .dsp-cat__icon,
  .dsp-slide:hover .dsp-slide__icon,
  .dsp-why__card:hover .dsp-why__icon,
  .dsp-howc__step:hover .dsp-how__icon,
  .dsp-feature__card:hover .dsp-feature__icon,
  .dsp-svc:hover .dsp-svc__icon,
  .dsp-org-toolcard:hover .dsp-org-toolicon,
  .dsp-rb3-hero:hover .dsp-rb3-heroicon,
  .dsp-p2-hero:hover .dsp-p2-heroicon,
  .dsp-p3-hero:hover .dsp-p3-heroicon{
    transform:none;
  }
}

/* Accessibility */
@media(prefers-reduced-motion:reduce){
  .dsp-cat__icon,
  .dsp-slide__icon,
  .dsp-svc__icon,
  .dsp-band__icon,
  .dsp-ins__icon,
  .dsp-why__icon,
  .dsp-how__icon,
  .dsp-feature__icon,
  .dsp-org-toolicon,
  .dsp-org-toolicon img,
  .dsp-rb3-heroicon,
  .dsp-rb3-heroicon img,
  .dsp-p2-heroicon,
  .dsp-p2-heroicon img,
  .dsp-p3-heroicon,
  .dsp-p3-heroicon img,
  .dsp-footc__contact svg,
  .dsp-org-note svg,
  .dsp-btn svg,
  .dsp-btn--glass svg,
  .dsp-slide__cta svg,
  .dsp-howc__link svg,
  .dsp-org-toolcard__open svg,
  .dsp-find__submit svg,
  .dsp-hero-bg__arrow svg,
  .dsp-rail__btn svg,
  .dsp-org-search svg,
  .dsp-find__icon svg{
    transition:none!important;
    transform:none!important;
    will-change:auto!important;
  }
}
