/* Qerio with a prop (partials.qerio-pose, 2026-11-02). Every movement is quiet and stops with "reduce motion". */
.qk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.qk { display: block; width: 100%; height: auto; overflow: visible; }

@media (prefers-reduced-motion: no-preference) {
    .qk .qk-bob { animation: qk-bob 4s ease-in-out infinite; }
    .qk .qk-shadow { transform-box: fill-box; transform-origin: center; animation: qk-shadow 4s ease-in-out infinite; }
    .qk .qk-eyes { transform-box: fill-box; transform-origin: center; animation: qk-blink 5.6s infinite; }

    /* Phone: ChatGPT is typing on his screen, his thumb taps now and then. */
    .qk-phone .qk-dots circle { animation: qk-dot 1.2s ease-in-out infinite; }
    .qk-phone .qk-dots circle:nth-child(2) { animation-delay: .18s; }
    .qk-phone .qk-dots circle:nth-child(3) { animation-delay: .36s; }
    .qk-phone .qk-thumb { transform-box: fill-box; transform-origin: center; animation: qk-tap 2.4s ease-in-out infinite; }

    /* Cheer: the fist goes up twice when he appears, the sparks twinkle. */
    .qk-cheer .qk-pump { transform-origin: 226px 292px; animation: qk-pump 1.1s ease-in-out 2; }
    .qk-cheer .qk-spark { transform-box: fill-box; transform-origin: center; animation: qk-twinkle 1.8s ease-in-out infinite; }
    .qk-cheer .qk-sparks > :nth-child(2) .qk-spark { animation-delay: .35s; }
    .qk-cheer .qk-sparks > :nth-child(3) .qk-spark { animation-delay: .7s; }
    .qk-cheer .qk-sparks > :nth-child(4) .qk-spark { animation-delay: 1.05s; }

    /* Idea: the bulb in his hand flickers on like a real one, then glows calmly. */
    .qk-idea .qk-light { animation: qk-on 1.1s ease-out 1 both; }
    .qk-idea .qk-halo { transform-box: fill-box; transform-origin: center; animation: qk-glow 2.6s ease-in-out 1.1s infinite; }
    .qk-idea .qk-rays { animation: qk-rays 2.6s ease-in-out 1.1s infinite; }

    /* Rocket: it leaves his hand once, then hovers on its way to the AI systems; the flame flickers, the puffs breathe.
       A still scene (a measurement that ended without every answer) shows the same picture without movement. */
    .qk-rocket .qk-launch { transform-box: fill-box; transform-origin: center; animation: qk-launch 1s cubic-bezier(.2, .8, .3, 1) 1 both; }
    .qk-rocket .qk-hover { animation: qk-hover 2.6s ease-in-out 1s infinite; }
    .qk-rocket .qk-flame { transform-box: fill-box; transform-origin: 50% 0; animation: qk-flame .16s ease-in-out infinite alternate; }
    .qk-rocket .qk-puff { animation: qk-puff 2.4s ease-in-out infinite; }
    .qk-rocket .qk-puff:nth-child(2) { animation-delay: .25s; }
    .qk-rocket .qk-puff:nth-child(3) { animation-delay: .5s; }
    .qk-rocket .qk-puff:nth-child(4) { animation-delay: .75s; }
    .qk.is-still :is(.qk-bob, .qk-shadow, .qk-launch, .qk-hover, .qk-flame, .qk-puff) { animation: none; }

    /* Mail: a paper plane leaves his letter along the dashed trail and fades out, again and again; the trail flows,
       the sparks twinkle. Without movement the plane stays halfway along the trail. */
    .qk-mail .qk-plane { animation: qk-fly 7s ease-in-out infinite; }
    .qk-mail .qk-trailline { animation: qk-dash 1.4s linear infinite; }
    .qk-mail .qk-spark { transform-box: fill-box; transform-origin: center; animation: qk-twinkle 2.2s ease-in-out infinite; }
    .qk-mail .qk-sparks > :nth-child(2) .qk-spark { animation-delay: .6s; }
    .qk-mail .qk-sparks > :nth-child(3) .qk-spark { animation-delay: 1.2s; }
}
.qk-mail .qk-plane { transform-box: fill-box; transform-origin: center; transform: translate(92.9px, -80.4px) rotate(-24deg) scale(1); }

@keyframes qk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes qk-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.94); opacity: .8; } }
@keyframes qk-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes qk-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-1.5px); } }
@keyframes qk-tap { 0%, 70%, 100% { transform: translate(0, 0); } 78% { transform: translate(2px, 2px); } 86% { transform: translate(0, 0); } }
@keyframes qk-pump { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-9deg); } 70% { transform: rotate(4deg); } }
@keyframes qk-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .45; } }
@keyframes qk-on { 0% { opacity: 0; } 14% { opacity: 1; } 24% { opacity: .2; } 38%, 100% { opacity: 1; } }
@keyframes qk-glow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .72; } }
@keyframes qk-rays { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes qk-launch { 0% { transform: translate(-50px, 83px) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes qk-hover { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2.5px, -1.7px); } }
@keyframes qk-flame { to { transform: scale(.88, .76); } }
@keyframes qk-puff { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
/* Points on the trail M338 162 C384 100 452 50 524 78, turned along its direction. */
@keyframes qk-fly {
    0% { transform: translate(0, 0) rotate(-53deg) scale(.45); opacity: 0; }
    10% { transform: translate(8.5px, -11px) rotate(-51deg) scale(.85); opacity: 1; }
    22% { transform: translate(30.1px, -35.2px) rotate(-45deg) scale(1); }
    34% { transform: translate(57.4px, -59.2px) rotate(-37deg) scale(1); }
    46% { transform: translate(87.1px, -77.7px) rotate(-26deg) scale(1); }
    58% { transform: translate(118.7px, -89.1px) rotate(-13deg) scale(1); }
    70% { transform: translate(151.8px, -91.7px) rotate(4deg) scale(1); opacity: 1; }
    78% { transform: translate(175.2px, -87.6px) rotate(16deg) scale(1); opacity: .4; }
    82%, 100% { transform: translate(186px, -84px) rotate(21deg) scale(1); opacity: 0; }
}
@keyframes qk-dash { to { stroke-dashoffset: -26; } }

/* Subpage poses (2026-11-14): calm defaults; the scenes in css/qerio-scenes.css light them up. */
.qk-lens .qk-lens-glow { opacity: .25; }
.qk-scope .qk-scope-glass { opacity: 0; }
