/* A quiet, consistent response: stable type and hit areas, soft light and color. */
:root { --motion-ease: cubic-bezier(.25, .46, .45, .94); }
body :is(a, button, input, textarea, select, summary) {
  transition: color .42s var(--motion-ease), background-color .55s var(--motion-ease),
    border-color .55s var(--motion-ease), box-shadow .65s var(--motion-ease),
    opacity .42s var(--motion-ease), transform .7s var(--motion-ease);
}
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
:where(input, textarea, select):focus-visible { outline-offset: 3px; }
.demo-row:focus-within::before { opacity: 1; }
.project-card:focus-within { box-shadow: 0 20px 55px rgb(0 0 0 / .22); }
.cart-count { transition: background-color .55s var(--motion-ease), color .42s var(--motion-ease); }

/* Animate the artwork and icon, keeping text and the clickable hit area stable. */
.round-link > span, .text-link > span:last-child, .motion-arrow {
  display: inline-block;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
html[data-motion="full"] .round-link:hover > span,
html[data-motion="full"] .round-link:focus-visible > span,
html[data-motion="full"] .demo-open:hover .motion-arrow,
html[data-motion="full"] .demo-open:focus-visible .motion-arrow,
html[data-motion="full"] .text-link:hover > span:last-child,
html[data-motion="full"] .telegram-link:hover .motion-arrow {
  transform: translate(2px, -2px) rotate(4deg);
}
html[data-motion="full"] .project-demos:hover .demos-window,
html[data-motion="full"] .project-demos:focus-within .demos-window {
  transform: translate(-50%, calc(-50% - 5px)) rotate(1deg) scale(1.01);
}
html[data-motion="full"] .project-arch:hover .arch-browser {
  transform: translate(-50%, calc(-50% - 4px)) scale(1.006);
}
html[data-motion="full"] .demo-row:hover::before { opacity: 1; }

.motion-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / .24);
  border-radius: 999px;
  color: #fff;
  background: #292929;
  box-shadow: 0 4px 18px rgb(0 0 0 / .14);
  font: 12px/1.3 Arial, sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
}
.motion-toggle:hover { background-color: #3d3d3d; }
.motion-toggle-icon { position: relative; width: 12px; height: 12px; flex: 0 0 auto; }
.motion-toggle-icon::before, .motion-toggle-icon::after {
  content: ''; position: absolute; top: 1px; bottom: 1px; width: 2px; border-radius: 1px; background: currentColor;
}
.motion-toggle-icon::before { left: 2px; }
.motion-toggle-icon::after { right: 2px; }
.motion-toggle[aria-pressed="false"] .motion-toggle-icon::before { left: 3px; top: 0; bottom: 0; width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 8px solid currentColor; border-radius: 0; background: none; }
.motion-toggle[aria-pressed="false"] .motion-toggle-icon::after { display: none; }
html[data-motion="reduced"] .scan-line { opacity: 0; }
html[data-motion="reduced"] :is(.cursor, .cursor-glow) { display: none; }
html[data-motion="reduced"] [data-parallax] { translate: none !important; }
/* Reduced motion keeps the same soft color feedback without spatial movement. */
/* Explicit site pause mode. */
html[data-motion="reduced"] { scroll-behavior: auto !important; }html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color, box-shadow !important;
    transition-duration: .3s !important;
    transition-delay: 0s !important;
    transition-timing-function: ease-out !important;
  }

