/* Zero Impulse: call-to-action motion. v1, 16 Nov 2026.
   One rule for every call to action on zeroimpulse.com:
   - the arrow points top-right at rest and turns to point right on hover or keyboard focus
   - buttons and text CTAs grow slightly on hover
   Arrows are drawn as SVG (never typed characters) so they look the same everywhere.
   Portfolio tiles keep their own icon; back-to-top and carousel buttons are left alone. */
:root{--zi-cta-ease:cubic-bezier(.22,.8,.24,1)}

/* 1. Arrow direction */
a:not(.h-project-link) svg:has(> path:is([d^="M5 12h14m"],[d^="M5 12h14M"],[d^="M4 12h15m"])),
button:is(.pill,.h-button,[type="submit"]) svg:has(> path:is([d^="M5 12h14m"],[d^="M5 12h14M"],[d^="M4 12h15m"])),
.zi-cta-ar svg{transform:rotate(-45deg)!important;transition:transform .4s var(--zi-cta-ease)!important}

a:not(.h-project-link):is(:hover,:focus-visible) svg:has(> path:is([d^="M5 12h14m"],[d^="M5 12h14M"],[d^="M4 12h15m"])),
button:is(.pill,.h-button,[type="submit"]):is(:hover,:focus-visible) svg:has(> path:is([d^="M5 12h14m"],[d^="M5 12h14M"],[d^="M4 12h15m"])),
:is(a,button):is(:hover,:focus-visible) .zi-cta-ar svg{transform:rotate(0deg)!important}

/* Arrow holder used wherever a typed arrow used to be */
.zi-cta-ar{display:inline-flex;align-items:center;justify-content:center;margin-left:.4em;vertical-align:-.12em;line-height:1}
.zi-cta-ar svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* 2. Grow on hover */
:is(.pill,.h-button,.w-button,.z-button,.news-btn,.zpc-cta,button[type="submit"]),
:is(.h-text-link,.w-link,.hero-lab,.zi-cta){transition-property:transform,background-color,border-color,color,box-shadow,opacity!important;transition-duration:.28s!important;transition-timing-function:var(--zi-cta-ease)!important}
:is(.pill,.h-button,.w-button,.z-button,.news-btn,.zpc-cta,button[type="submit"]):is(:hover,:focus-visible){transform:scale(1.045)!important}
:is(.h-text-link,.w-link,.zi-cta,.zpc-cta){transform-origin:left center}
:is(.h-text-link,.w-link,.zi-cta){display:inline-flex;align-items:center}
.hero-lab{transform-origin:left center}
:is(.h-text-link,.w-link,.hero-lab,.zi-cta):is(:hover,:focus-visible){transform:scale(1.04)!important}

/* Respect people who switch motion off */
@media (prefers-reduced-motion:reduce){
  :is(.pill,.h-button,.w-button,.z-button,.news-btn,.zpc-cta,button[type="submit"],.h-text-link,.w-link,.hero-lab,.zi-cta):is(:hover,:focus-visible){transform:none!important}
}
