/* Entrance motion is added only after an element reaches the viewport. */
.hero-visual img,
.ticker div { animation: none !important; }
.image-frame:hover img { transform: none; }
.reveal,
.js-motion .reveal,
.js-motion .reveal.pending { opacity: 1; transform: none; }

.motion-stamp {
  display: inline-flex;
  vertical-align: middle;
  width: clamp(46px, 1.5em, 72px);
  height: clamp(46px, 1.5em, 72px);
  margin-left: .2em;
  line-height: 1;
  color: inherit;
  pointer-events: none;
}
.motion-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 60%;
  animation-play-state: paused;
}
.intro h2 .motion-stamp { color: #fff; }
.motion-stamp[data-stamp="spark"] svg { animation: stamp-spark 2.6s ease-in-out infinite; animation-play-state: paused; }
.motion-stamp[data-stamp="shirt"] svg { animation: stamp-shirt 2.8s ease-in-out infinite; animation-play-state: paused; }
.motion-stamp[data-stamp="smile"] svg { animation: stamp-smile 2.7s ease-in-out infinite; animation-play-state: paused; }
.motion-stamp.is-visible svg { animation-play-state: running; }
.page-hidden .motion-stamp svg { animation-play-state: paused; }
@keyframes stamp-spark {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.15) rotate(8deg); }
  55% { transform: scale(.98) rotate(-5deg); }
  78% { transform: scale(1.08) rotate(3deg); }
}
@keyframes stamp-shirt {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  55% { transform: rotate(8deg); }
  78% { transform: rotate(-3deg); }
}
@keyframes stamp-smile {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-4px) rotate(-7deg); }
  55% { transform: translateY(0) rotate(6deg); }
  78% { transform: translateY(-2px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-stamp svg,
  .motion-stamp.is-visible svg { animation: none; transform: none; }
}

.scroll-enter-pending { opacity:0 !important; transform:translateY(64px) !important; }
.mobile-cta { animation:cta-float 3.6s ease-in-out infinite; }
.mobile-cta:hover, .mobile-cta:focus-within, .page-hidden .mobile-cta { animation-play-state:paused; }
@keyframes cta-float {
  0%, 100% { transform:translate(-50%, 0); }
  50% { transform:translate(-50%, -4px); }
}
@media (prefers-reduced-motion:reduce) {
  .scroll-enter-pending { opacity:1 !important; transform:none !important; }
  .mobile-cta { animation:none !important; }
  .page-scroll { scroll-behavior:auto; }
}

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .scroll-enter-pending { transform:translateY(48px) !important; }
}
