/* RoboProbe's loader, written by build/loader.py: edit the keyframes there, not here.
   On the site it covers the page on the first visit of a session (html.rp-loading, set in the page head) and fades
   out once the page has loaded and the face has formed (html.rp-done, set by assets/site.js). */
.rp-loader {
  --rp-paper: var(--paper, #faf9f5); --rp-ink: var(--ink, #202126); --rp-ink-2: var(--ink-2, #73726c); --rp-or: #f86b44; --rp-loop: 2.8s;
  display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; background: var(--rp-paper);
  font-family: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
}
html.rp-loading .rp-loader { display: grid; }
/* shown in place on a page (Probie's story), looping, never covering anything */
.rp-loader.inline { display: grid; position: relative; inset: auto; z-index: auto; background: none; padding: 34px 0; }
html.rp-done .rp-loader.inline { opacity: 1; }
html.rp-loading body { overflow: hidden; }
html.rp-done .rp-loader { opacity: 0; transition: opacity .4s ease; pointer-events: none; }
html[data-theme="dark"] .rp-loader { --rp-paper: var(--paper, #171615); --rp-ink: var(--ink, #f3f1ea); --rp-ink-2: var(--ink-2, #8f8c82); }

.rp-loader .rp-in { display: grid; justify-items: center; gap: 26px; }
.rp-loader svg { width: clamp(120px, 22vw, 184px); height: auto; overflow: visible; }
.rp-loader p { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rp-ink-2); }
.rp-loader p i { font-style: normal; animation: rp-dots 1.4s steps(4) infinite; display: inline-block; width: 1.4em; overflow: hidden; vertical-align: bottom; white-space: nowrap; }

.rp-loader .jaw { fill: none; stroke: var(--rp-or); stroke-linecap: round; stroke-linejoin: round; }
.rp-loader .eye { fill: var(--rp-ink); }
.rp-loader .wink { fill: none; stroke: var(--rp-ink); stroke-width: 19.2; stroke-linecap: round; stroke-dasharray: .001 2; stroke-dashoffset: -.4995; }
.rp-loader .pop { fill: none; stroke: var(--rp-ink); stroke-width: 4; stroke-linecap: round; opacity: 0; }

/* every pivot is in the drawing's own units */
.rp-loader svg * { transform-box: view-box; }
.rp-loader .face { transform-origin: 92px 106px; animation: rp-face-jelly var(--rp-loop) infinite, rp-face-tilt var(--rp-loop) infinite; }
.rp-loader .jaw-l { transform-origin: 30px 60px; animation: rp-jaw-l-move var(--rp-loop) infinite, rp-jaw-squash var(--rp-loop) infinite; }
.rp-loader .jaw-r { transform-origin: 154px 60px; animation: rp-jaw-r-move var(--rp-loop) infinite, rp-jaw-squash var(--rp-loop) infinite; }
.rp-loader .pop { transform-origin: 164px 14px; animation: rp-pop-burst var(--rp-loop) infinite, rp-pop-fade var(--rp-loop) infinite; }   /* the gripper's top-right corner */
.rp-loader .ball-l { animation: rp-ball-l-y var(--rp-loop) infinite; }
.rp-loader .eye { transform-origin: 66.6px 69.6px; animation: rp-ball-l-shape var(--rp-loop) infinite; }   /* squashes on its base */
.rp-loader .ball-r { animation: rp-ball-r-y var(--rp-loop) infinite; }
.rp-loader .ball-r-shape { transform-origin: 110.6px 58.6px; animation: rp-ball-r-shape var(--rp-loop) infinite; }
.rp-loader .wink-pop { transform-origin: 110.6px 49px; animation: rp-wink-pop var(--rp-loop) infinite; }
.rp-loader .wink { animation: rp-wink-width var(--rp-loop) infinite, rp-wink-length var(--rp-loop) infinite, rp-wink-start var(--rp-loop) infinite; }

@keyframes rp-jaw-l-move {
  0% { translate: -30px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  8% { translate: -27px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  16% { translate: -30px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  22% { translate: -38px 0; animation-timing-function: cubic-bezier(.7, 0, 1, .6); }
  27% { translate: 4px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  29.5% { translate: -3px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  32% { translate: 1.5px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  34.5% { translate: -.5px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  36% { translate: 0px 0; }
  76% { translate: 0px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  78% { translate: 2.5px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  83% { translate: -35px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  86.5% { translate: -28px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  90% { translate: -31px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  93% { translate: -30px 0; }
  100% { translate: -30px 0; }
}
@keyframes rp-jaw-squash {
  0% { scale: 1 1; }
  26.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  28.5% { scale: .86 1.1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  31% { scale: 1.06 .96; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  33.5% { scale: .98 1.02; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  35.5% { scale: 1 1; }
  82% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  84% { scale: .92 1.06; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  87% { scale: 1 1; }
  100% { scale: 1 1; }
}
@keyframes rp-ball-l-y {
  0% { translate: 0 0px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  5% { translate: 0 -15px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  10% { translate: 0 0px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  13% { translate: 0 -6px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  16% { translate: 0 0px; }
  84% { translate: 0 0px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  89% { translate: 0 -15px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  94% { translate: 0 0px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  97% { translate: 0 -5px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  100% { translate: 0 0px; }
}
@keyframes rp-ball-l-shape {
  0% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  2.5% { scale: .86 1.16; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  7% { scale: 1 1; }
  9.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  10.5% { scale: 1.3 .72; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  12.5% { scale: .94 1.07; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  14% { scale: 1 1; }
  15.5% { scale: 1.14 .86; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  17.5% { scale: 1 1; }
  26.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  28.5% { scale: .58 1.36; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  31.5% { scale: 1.14 .88; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  34% { scale: .96 1.04; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  36% { scale: 1 1; }
  63% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  64.2% { scale: 1.18 .1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  66% { scale: 1 1; }
  67.2% { scale: 1.18 .1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  69.5% { scale: 1 1; }
  82% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  83.5% { scale: 1.18 .82; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  85.5% { scale: .86 1.16; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  89% { scale: 1 1; }
  93.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  94.5% { scale: 1.3 .72; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  96.5% { scale: .94 1.07; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  98% { scale: 1 1; }
  100% { scale: 1 1; }
}
@keyframes rp-ball-r-y {
  0% { translate: 0 11px; }
  3.5% { translate: 0 11px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  8.5% { translate: 0 -4px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  13.5% { translate: 0 11px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  16.5% { translate: 0 5px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  19.5% { translate: 0 11px; }
  39% { translate: 0 11px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  47% { translate: 0 0px; }
  77% { translate: 0 0px; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  83% { translate: 0 11px; }
  86% { translate: 0 11px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  91% { translate: 0 -3px; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  96% { translate: 0 11px; }
  100% { translate: 0 11px; }
}
@keyframes rp-ball-r-shape {
  0% { scale: 1 1; }
  3.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  5.5% { scale: .86 1.16; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  10% { scale: 1 1; }
  13% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  14% { scale: 1.3 .72; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  16% { scale: .94 1.07; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  17.5% { scale: 1 1; }
  19% { scale: 1.14 .86; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  21% { scale: 1 1; }
  26.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  28.5% { scale: .58 1.36; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  31.5% { scale: 1.14 .88; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  34% { scale: .96 1.04; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  36% { scale: 1 1; }
  63% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  64.2% { scale: 1.08 .3; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  66% { scale: 1 1; }
  67.2% { scale: 1.08 .3; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  69.5% { scale: 1 1; }
  84.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  86% { scale: 1.18 .82; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  88% { scale: .86 1.16; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  91% { scale: 1 1; }
  95.5% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  96.5% { scale: 1.3 .72; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  98.5% { scale: 1 1; }
  100% { scale: 1 1; }
}
@keyframes rp-wink-width {
  0% { stroke-width: 19.2px; }
  39% { stroke-width: 19.2px; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  47% { stroke-width: 8.4px; }
  77% { stroke-width: 8.4px; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  83% { stroke-width: 19.2px; }
  100% { stroke-width: 19.2px; }
}
@keyframes rp-wink-length {
  0% { stroke-dasharray: .001 2; }
  39% { stroke-dasharray: .001 2; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  47% { stroke-dasharray: 1 2; }
  77% { stroke-dasharray: 1 2; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  83% { stroke-dasharray: .001 2; }
  100% { stroke-dasharray: .001 2; }
}
@keyframes rp-wink-start {
  0% { stroke-dashoffset: -.4995; }
  39% { stroke-dashoffset: -.4995; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  47% { stroke-dashoffset: 0; }
  77% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  83% { stroke-dashoffset: -.4995; }
  100% { stroke-dashoffset: -.4995; }
}
@keyframes rp-wink-pop {
  0% { scale: 1; }
  42% { scale: 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  46% { scale: 1.3; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  49% { scale: .9; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  51.5% { scale: 1.05; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  54% { scale: 1; }
  100% { scale: 1; }
}
@keyframes rp-pop-burst {
  0% { scale: .6; }
  27% { scale: .6; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  30.5% { scale: 1.12; }
  34% { scale: 1.2; }
  100% { scale: 1.2; }
}
@keyframes rp-pop-fade {
  0% { opacity: 0; }
  27% { opacity: 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  28.2% { opacity: 1; }
  30.5% { opacity: 1; animation-timing-function: ease-in; }
  34% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes rp-face-jelly {
  0% { scale: 1 1; }
  49% { scale: 1 1; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  51% { scale: 1.08 .92; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  54% { scale: .95 1.05; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  57% { scale: 1.025 .975; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  60% { scale: 1 1; }
  100% { scale: 1 1; }
}
@keyframes rp-face-tilt {
  0% { rotate: 0deg; }
  58% { rotate: 0deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  62% { rotate: -6deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  67% { rotate: 5deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  71.5% { rotate: -2deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  75% { rotate: 0deg; }
  100% { rotate: 0deg; }
}
@keyframes rp-jaw-r-move {
  0% { translate: 30px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  8% { translate: 27px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  16% { translate: 30px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  22% { translate: 38px 0; animation-timing-function: cubic-bezier(.7, 0, 1, .6); }
  27% { translate: -4px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  29.5% { translate: 3px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  32% { translate: -1.5px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  34.5% { translate: 0.5px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  36% { translate: -0px 0; }
  76% { translate: -0px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  78% { translate: -2.5px 0; animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  83% { translate: 35px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  86.5% { translate: 28px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  90% { translate: 31px 0; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  93% { translate: 30px 0; }
  100% { translate: 30px 0; }
}
@keyframes rp-dots { from { width: 0; } to { width: 1.4em; } }

@media (prefers-reduced-motion: reduce) {
  .rp-loader svg *, .rp-loader p i { animation: none !important; }
  .rp-loader .pop { display: none; }
  .rp-loader .wink { stroke-width: 8.4; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
}
