/* ==========================================================================
   Beatnik illustrations (inline SVG, assets/illus/*.svg) — motion layer.
   Static state = final state, so reduced motion / no JS shows a complete picture.
   JS (pages.js) adds .is-play while the illustration is on screen.
   ========================================================================== */
.btk-il { display: block; width: 100%; height: auto; overflow: visible; }
.btk-il .il-t { font-family: var(--font-heading); }
.btk-il .il-m { font-family: var(--font-mono); letter-spacing: .04em; }
.btk-il :is(.il-fa, .il-fb, .il-fc, .il-spin, .il-pulse, .il-grow, .il-pop, .il-stack, .il-ripple, .il-select, .il-twinkle, .il-dot) { transform-box: fill-box; transform-origin: center; }

.btk-il .il-fa { animation: il-float 6s var(--ease-in-out) infinite alternate; }
.btk-il .il-fb { animation: il-float 7.5s var(--ease-in-out) -2s infinite alternate; }
.btk-il .il-fc { animation: il-float-x 8s var(--ease-in-out) -1s infinite alternate; }
@keyframes il-float { from { transform: translateY(6px); } to { transform: translateY(-8px); } }
@keyframes il-float-x { from { transform: translate(-5px, 4px); } to { transform: translate(6px, -6px); } }

.btk-il .il-spin { animation: il-spin 60s linear infinite; }
.btk-il .il-spin--rev { animation-direction: reverse; animation-duration: 45s; }
@keyframes il-spin { to { transform: rotate(360deg); } }

.btk-il .il-flow { stroke-dasharray: 4 7; animation: il-flow 1.1s linear infinite; }
@keyframes il-flow { to { stroke-dashoffset: -22; } }

.btk-il .il-pulse { animation: il-pulse 2.6s var(--ease-out) var(--d, 0s) infinite; opacity: 0; }
@keyframes il-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.btk-il .il-draw { stroke-dasharray: 1; animation: il-draw 1.8s var(--ease-out) var(--d, 0s) both; }
@keyframes il-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.btk-il .il-grow { transform-origin: 50% 100%; animation: il-grow 1.1s var(--ease-out) var(--d, 0s) both; }
@keyframes il-grow { from { transform: scaleY(.04); } }

.btk-il .il-pop { animation: il-pop .8s var(--ease-out) var(--d, 0s) both; }
@keyframes il-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.btk-il .il-stack { animation: il-stack 5s var(--ease-in-out) var(--d, 0s) infinite alternate; }
@keyframes il-stack { from { transform: translateY(4px); } to { transform: translateY(-10px); } }

.btk-il .il-load { transform-box: fill-box; transform-origin: left; animation: il-load 3.2s var(--ease-in-out) infinite alternate; }
@keyframes il-load { from { transform: scaleX(.35); } }

.btk-il .il-type-line { animation: il-type 4.8s var(--ease-out) var(--d, 0s) infinite; transform-box: fill-box; transform-origin: left; }
@keyframes il-type { 0% { transform: scaleX(0); } 18%, 86% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.btk-il .il-blink { animation: il-blink 1.1s steps(2, jump-none) infinite; }
@keyframes il-blink { 50% { opacity: 0; } }

.btk-il .il-dot { animation: il-dot 1.2s var(--ease-in-out) var(--d, 0s) infinite; }
@keyframes il-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.btk-il .il-twinkle { animation: il-twinkle 3.2s var(--ease-in-out) var(--d, 0s) infinite; }
@keyframes il-twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.btk-il .il-ripple { animation: il-ripple 5s var(--ease-out) infinite; opacity: 0; }
@keyframes il-ripple { 0%, 38% { opacity: 0; transform: scale(.4); } 42% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.8); } }

.btk-il .il-select { animation: il-select 3.6s var(--ease-in-out) infinite; }
@keyframes il-select { 0%, 100% { opacity: 1; } 45% { opacity: .55; } }

.btk-il .il-wave { transform-box: fill-box; transform-origin: left center; animation: il-wave 2.4s var(--ease-in-out) infinite alternate; }
@keyframes il-wave { to { transform: skewY(-6deg) scaleX(.9); } }

/* Offscreen / before entering view: hold still (JS toggles .is-play). */
.js .btk-il:not(.is-play), .js .btk-il:not(.is-play) * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
	.btk-il, .btk-il * { animation: none !important; }
	.btk-il .il-pulse, .btk-il .il-ripple { opacity: 0; }
}
