/* AAKAAR · motion
 * Purposeful, short animations. Everything is disabled for people who ask
 * their device to reduce motion. Reveal states apply only when JS is running
 * (html.js), so content is never hidden if scripts fail. */

@keyframes ak-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ak-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ak-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ak-pop { 0% { transform: scale(1); } 35% { transform: scale(1.32); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ak-burst { from { opacity: .55; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
@keyframes ak-slide-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ak-slide-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes ak-toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ak-check { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes ak-ring { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ak-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes ak-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ak-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Page entry */

/* Scroll reveal: elements marked by motion.js */
/* Restyle: scroll reveal no longer hides content (playbook: no unnecessary animation). motion.js still adds the classes. */

/* Hero image settles in */

/* Images fade in once loaded */
.js img.ak-fade-img { opacity: 0; transition: opacity .2s ease; }
.js img.ak-fade-img.is-loaded { opacity: 1; }

/* Buttons and taps */
.btn { transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.ak-chip, .ak-pill-option, .ak-option { transition: border-color .2s, background-color .2s; }

/* Save heart */
[data-save]:not(.ak-save) { position: relative; }

/* Multi-step forms slide between steps */
.ak-steps li::before { transition: background-color .2s ease; }

/* Validation feedback */

/* Toasts */
.ak-toast { animation: ak-toast-in .35s var(--ak-ease-out) both; }

/* Success tick */
.ak-success-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--ak-success-bg); display: inline-flex; align-items: center; justify-content: center; animation: ak-ring .45s var(--ak-ease-out) both; }
.ak-success-tick svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: ak-check .5s .25s var(--ak-ease-out) forwards; }

/* Tab bar active pill */

/* Skeleton already shimmers (components.css) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .ak-reveal { opacity: 1; transform: none; }
  .js img.ak-fade-img { opacity: 1; }
}
