/* ==========================================================================
   Illustrations (js/illus.js) — animated SVG scenes
   ========================================================================== */
.illus { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 520 / 400; }
.illus svg { width: 100%; height: 100%; display: block; overflow: visible; }
.il-layer { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.il-float, .il-layer.il-float > * { animation: il-float 6s ease-in-out infinite; }
.il-layer.il-float { animation: none; }
.il-float.d2, .il-layer.il-float.d2 > * { animation-delay: -2s; }
.il-float.d3 { animation-delay: -4s; }
.il-grow { transform-box: fill-box; transform-origin: bottom; animation: il-grow 1.4s cubic-bezier(.2, .8, .2, 1) both, il-sway 4s 1.4s ease-in-out infinite alternate; }
.il-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: il-draw 2.4s .3s ease forwards; }
.il-ecg { stroke-dasharray: 340; animation: il-ecg 2.6s linear infinite; }
.il-fill { transform-box: fill-box; transform-origin: left; animation: il-fill 2.2s .4s cubic-bezier(.2, .8, .2, 1) both; }
.il-spin-slow { animation: il-spin 40s linear infinite; }
.il-breathe { animation: il-breathe 7s ease-in-out infinite; }
.il-twinkle { animation: il-twinkle 2.6s ease-in-out infinite; }
.il-beat { animation: il-beat 1.8s ease-in-out infinite; }
.il-blink { animation: il-blink 1.4s steps(2) infinite; }
.il-typing { transform-box: fill-box; transform-origin: center; animation: il-typing 1.2s ease-in-out infinite; }
.il-flow { animation: il-flow 1.2s linear infinite; }
.il-coin { transform-box: fill-box; transform-origin: center; animation: il-coin 3.2s ease-in-out infinite; }
.il-coin.d2 { animation-delay: -1.6s; }
.il-rise { animation: il-rise 4.5s ease-in infinite; }
.il-bounce { animation: il-bounce 2.4s ease-in-out infinite; }
.il-wiggle { animation: il-wiggle 3s ease-in-out infinite; }
.il-rocket { animation: il-rocket 3.4s ease-in-out infinite; }
.il-flame { transform-box: fill-box; transform-origin: top; animation: il-flame .25s ease-in-out infinite alternate; }
.il-flame.d2 { animation-duration: .18s; }
.il-drive { animation: il-drive 3s ease-in-out infinite; }
.il-wheel { animation: il-spin 1s linear infinite; }
.il-road { animation: il-road .8s linear infinite; }
.il-cart > * { animation: il-cart 4s ease-in-out infinite; }
@keyframes il-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes il-grow { from { transform: scaleY(0); } }
@keyframes il-sway { to { transform: scaleY(.86); } }
@keyframes il-draw { to { stroke-dashoffset: 0; } }
@keyframes il-ecg { from { stroke-dashoffset: 680; } to { stroke-dashoffset: 0; } }
@keyframes il-fill { from { transform: scaleX(0); } }
@keyframes il-spin { to { transform: rotate(360deg); } }
@keyframes il-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes il-twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes il-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.07); } 30% { transform: scale(.98); } 45% { transform: scale(1.04); } }
@keyframes il-blink { 50% { opacity: .2; } }
@keyframes il-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@keyframes il-flow { to { stroke-dashoffset: -22; } }
@keyframes il-coin { 0%, 100% { transform: translateY(0) scaleX(1); } 25% { transform: translateY(-8px) scaleX(.2); } 50% { transform: translateY(-14px) scaleX(1); } 75% { transform: translateY(-8px) scaleX(.2); } }
@keyframes il-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
@keyframes il-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes il-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes il-rocket { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -16px) rotate(3deg); } }
@keyframes il-flame { to { transform: scaleY(1.35); } }
@keyframes il-drive { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(10px); } }
@keyframes il-road { to { stroke-dashoffset: -40; } }
@keyframes il-cart { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-12px) rotate(-2deg); } }
/* Heroes with an illustration beside the text */
.page-hero-grid .hero-ctas { justify-content: flex-start; }
.page-hero-grid .rotator { justify-items: end; }
@media (max-width: 960px) {
  .page-hero-grid { text-align: center; }
  .page-hero-grid .hero-ctas, .page-hero-grid .breadcrumb { justify-content: center; }
  .page-hero-grid .lead { margin-left: auto; margin-right: auto; }
  .page-hero-grid .illus { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .illus * { animation: none !important; }
  .il-draw { stroke-dashoffset: 0; }
}

/* Extra scene motions */
.il-type { transform-box: fill-box; transform-origin: left; animation: il-type 5s ease-in-out infinite; }
.il-letter { animation: il-letter 4s ease-in-out infinite; }
.il-wave { animation: il-wave 1.6s ease-out infinite; }
@keyframes il-type { 0% { transform: scaleX(0); } 20%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes il-letter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-34px); } }
@keyframes il-wave { 0% { opacity: 0; transform: translateX(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); } }
