/* The robot's motion (since 2026-11-22: the sprout robot from the ads). Every state moves a little and the way it moves says
   something: he hovers when idle, hops when excited, tilts his head and pauses when he thinks, jitters while he processes, jolts at an
   alert, powers down when sleepy, and his visor glow pulses while loading. Each new state powers on with a pop and a cyan flash.
   Everything stops under prefers-reduced-motion. */
.zyn { display: block; object-fit: contain; transform-origin: 50% 92%; -webkit-user-drag: none; user-select: none; pointer-events: none;
  --zm: zHover; --zmd: 3.6s; --zme: ease-in-out;
  animation: var(--zm) var(--zmd) var(--zme) infinite; }
/* Motion uses translate/rotate/scale/filter, never transform: a page that places him with transform (centring, a fixed corner) keeps
   that placement while he moves. Animating transform replaced it, so he jumped to the centre whenever his mood changed (2026-10-27). */
@keyframes zHover { 0%, 100% { translate: 0 0; rotate: -0.6deg; } 50% { translate: 0 -3.2%; rotate: 0.6deg; } }
@keyframes zHop { 0%, 100% { translate: 0 0; scale: 1 1; } 22% { translate: 0 0; scale: 1.04 .95; } 42% { translate: 0 -10%; scale: .97 1.04; }
  62% { translate: 0 0; scale: 1.04 .96; } 76% { translate: 0 -2%; scale: 1 1; } }
@keyframes zTilt { 0%, 8% { rotate: 0deg; translate: 0 0; } 18%, 44% { rotate: -5deg; translate: -1% -1.2%; }
  56%, 82% { rotate: 3.5deg; translate: 1% -1.2%; } 94%, 100% { rotate: 0deg; translate: 0 0; } }
@keyframes zBusy { 0%, 100% { translate: 0 0; } 10% { translate: -0.8% -0.6%; } 20% { translate: 0.8% 0; } 30% { translate: -0.5% -0.8%; }
  40% { translate: 0.6% -0.3%; } 50%, 90% { translate: 0 -1.6%; } }
@keyframes zWave { 0%, 100% { rotate: 0deg; } 15% { rotate: 5deg; } 30% { rotate: -2deg; } 45% { rotate: 5deg; } 60% { rotate: -1deg; } 75% { rotate: 0deg; } }
@keyframes zJolt { 0%, 100% { translate: 0 0; scale: 1; } 8% { translate: 0 -6%; scale: 1.05; } 16% { translate: 0 0; scale: .98; }
  24% { translate: 0 -1.5%; scale: 1; } 32% { translate: 0 0; } }
@keyframes zDown { 0%, 100% { translate: 0 0; rotate: -1.4deg; filter: brightness(1); } 50% { translate: 0 2%; rotate: 1.4deg; filter: brightness(.9) saturate(.9); } }
@keyframes zGlow { 0%, 100% { scale: 1; filter: drop-shadow(0 0 0 rgba(77, 214, 255, 0)); }
  50% { scale: 1.03; filter: drop-shadow(0 0 .35em rgba(77, 214, 255, .55)); } }
@keyframes zIn { 0% { scale: .86; translate: 0 4%; opacity: 0; filter: brightness(1.5) drop-shadow(0 0 .5em rgba(77, 214, 255, .7)); }
  55% { scale: 1.04; translate: 0 -1.5%; opacity: 1; } 100% { scale: 1; translate: 0 0; filter: brightness(1) drop-shadow(0 0 0 rgba(77, 214, 255, 0)); } }
.zm-bob { --zm: zHover; --zmd: 3.6s; }
.zm-bounce { --zm: zHop; --zmd: 1.6s; }
.zm-sway { --zm: zTilt; --zmd: 4.4s; }
.zm-busy { --zm: zBusy; --zmd: 1.4s; --zme: linear; }
.zm-wave { --zm: zWave; --zmd: 1.8s; }
.zm-jolt { --zm: zJolt; --zmd: 2.6s; }
.zm-slow { --zm: zDown; --zmd: 5.2s; }
.zm-pulse { --zm: zGlow; --zmd: 1.8s; }
.zd1 { animation-delay: -0.5s; } .zd2 { animation-delay: -1.1s; } .zd3 { animation-delay: -1.7s; } .zd4 { animation-delay: -2.3s; } .zd5 { animation-delay: -2.9s; }
/* power-on when a new state arrives (Zyn.set adds zm-in), then the state's own motion */
.zyn.zm-in { animation: zIn .5s cubic-bezier(.2, .9, .3, 1.2) both, var(--zm) var(--zmd) var(--zme) .5s infinite; }
.zyn.zm-still { animation: none; }
/* THE SPROUT (2026-11-22). He is a <span class="zyn"> holding two pictures: the body, and the sprout on its own (Zyn.img). The span
   moves as above; on top of that the sprout sways by BENDING: a skew whose origin is the bottom of the stem, so the stem's base never
   moves and stays in his head, and the higher a part of the sprout is, the further it sways (Eden: "let the stem sway, not the base").
   A rotation swung the base off the helmet. */
.zyn { position: relative; }
.zyn > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.zyn-s { animation: zLeaf 2.8s ease-in-out infinite; }
@keyframes zLeaf { 0%, 100% { transform: skewX(8deg); } 50% { transform: skewX(-8deg); } }
.zyn.zm-still .zyn-s { animation: none; }
@media (prefers-reduced-motion: reduce) { .zyn, .zyn.zm-in, .zyn-s { animation: none !important; } }
