.motion-mascot-figure {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.motion-mascot-figure g { transform-box: view-box }
.motion-mascot-figure .head { transform-origin: 627px 637px }
.motion-mascot-figure .arm-l { transform-origin: 486px 682px }
.motion-mascot-figure .arm-r { transform-origin: 768px 682px }
.motion-mascot-figure .forearm-l { transform-origin: 370px 756px }
.motion-mascot-figure .forearm-r { transform-origin: 884px 756px }
.motion-mascot-figure .leg-l { transform-origin: 506px 930px }
.motion-mascot-figure .leg-r { transform-origin: 748px 930px }
.motion-mascot-figure .mouth-open { opacity: 0; transform-origin: 627px 490px }
.motion-mascot-figure .whole { animation: mascot-breathe 3.5s ease-in-out infinite }
.motion-mascot-figure .head { animation: mascot-look 6s ease-in-out infinite }
.motion-mascot-contact[data-state="hello"] .arm-r { animation: mascot-wave 3s ease-in-out infinite }
.motion-mascot-contact[data-state="hello"] .forearm-r { animation: mascot-elbow 3s ease-in-out infinite }
.motion-mascot-contact[data-state="hello"] .arm-l { animation: mascot-rest 3s ease-in-out infinite }
.motion-mascot-contact[data-state="walk"] .whole { animation: mascot-step-bob .75s ease-in-out infinite }
.motion-mascot-contact[data-state="walk"] .leg-l { animation: mascot-step .75s ease-in-out infinite alternate }
.motion-mascot-contact[data-state="walk"] .leg-r { animation: mascot-step .75s ease-in-out infinite alternate-reverse }
.motion-mascot-contact[data-state="walk"] .arm-l { animation: mascot-swing .75s ease-in-out infinite alternate-reverse }
.motion-mascot-contact[data-state="walk"] .arm-r { animation: mascot-swing .75s ease-in-out infinite alternate }
.motion-mascot-contact[data-state="talk"] .mouth-closed { opacity: 0 }
.motion-mascot-contact[data-state="talk"] .mouth-open { opacity: 1; animation: mascot-mouth .32s ease-in-out infinite alternate }
.motion-mascot-contact[data-state="talk"] .arm-l { animation: mascot-gesture 1.8s ease-in-out infinite alternate }
.motion-mascot-contact[data-state="talk"] .forearm-l { animation: mascot-gesture 1.5s ease-in-out infinite alternate-reverse }
.motion-mascot-contact[data-state="fly"] .arm-l { transform: rotate(23deg); }
.motion-mascot-contact[data-state="fly"] .arm-r { transform: rotate(-23deg); }
.motion-mascot-contact[data-state="fly"] .leg-l { transform: rotate(-9deg); }
.motion-mascot-contact[data-state="fly"] .leg-r { transform: rotate(9deg); }
.motion-mascot-contact[data-state="pause"] * { animation: none; }

.motion-mascot-figure .mascot-jetpack { display: none; }
.motion-mascot-contact[data-state="fly"] .mascot-jetpack { display: inline; }
.motion-mascot-contact[data-state="land"] .mascot-jetpack {
  display: inline;
  animation: mascot-power-down 170ms ease-out both;
}

.motion-mascot-figure .mascot-touchdown { display: none; }
.motion-mascot-contact[data-state="land"] .mascot-touchdown { display: inline; }

.motion-mascot-contact[data-state="land"] .whole {
  transform-origin: 627px 1237px;
  animation: mascot-touchdown 390ms ease-out both;
}

.motion-mascot-contact[data-state="land"] .mascot-landing-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-landing-ring 610ms ease-out both;
}

.motion-mascot-contact[data-state="land"] .mascot-landing-dust {
  animation: mascot-landing-dust 580ms ease-out both;
}

.mascot-landing-dust.dust-left { --dust-drift: -112px; }
.mascot-landing-dust.dust-right { --dust-drift: 112px; }

@keyframes mascot-power-down {
  from { opacity: .9; }
  to { opacity: 0; }
}

@keyframes mascot-touchdown {
  0%, 100% { transform: none; }
  24% { transform: scale(1.055, .91); }
  58% { transform: translateY(-19px) scale(.99, 1.015); }
}

@keyframes mascot-landing-ring {
  0% { opacity: .95; transform: scale(.39, .64); }
  35% { opacity: .68; }
  100% { opacity: 0; transform: scale(1.42, 1.14); }
}

@keyframes mascot-landing-dust {
  from { opacity: .68; transform: none; }
  to { opacity: 0; transform: translate(var(--dust-drift), -113px); }
}

.motion-mascot-contact[data-state="fly"] .mascot-exhaust {
  transform-box: fill-box;
  transform-origin: center top;
  animation: mascot-exhaust .24s ease-in-out infinite alternate;
}

@keyframes mascot-exhaust {
  from { transform: scaleY(.86); opacity: .9; }
  to { transform: scaleY(1.12); opacity: 1; }
}

@keyframes mascot-breathe { 50% { transform: translateY(-7px); } }
@keyframes mascot-rest { 50% { transform: rotate(5deg); } }

@keyframes mascot-look {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-2deg); }
  70% { transform: rotate(2deg); }
}

@keyframes mascot-wave {
  0%, 80%, 100% { transform: rotate(-12deg); }
  20%, 65% { transform: rotate(-50deg); }
  35%, 50% { transform: rotate(-64deg); }
}

@keyframes mascot-elbow {
  0%, 80%, 100% { transform: rotate(0); }
  20%, 65% { transform: rotate(-24deg); }
  35%, 50% { transform: rotate(-48deg); }
}

@keyframes mascot-step {
  from { transform: rotate(-11deg); }
  to { transform: rotate(11deg); }
}

@keyframes mascot-swing {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}

@keyframes mascot-step-bob {
  25%, 75% { transform: translateY(-14px); }
  50% { transform: translateY(0); }
}

@keyframes mascot-mouth {
  from { transform: scaleY(.25); }
  to { transform: scaleY(1.15); }
}

@keyframes mascot-gesture {
  from { transform: rotate(0); }
  to { transform: rotate(17deg); }
}

.motion-mascot-contact {
  position: absolute;
  z-index: 2;
  right: -5px;
  bottom: calc(100% + 13px);
  display: grid;
  justify-items: center;
  gap: 15px;
  width: 86px;
  width: clamp(76px, 10vw, 104px);
  padding: 6px 0 0;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.motion-mascot-contact:focus-visible {
  outline: 2px solid #b9ffe8;
  outline-offset: 3px;
}

.motion-mascot-contact[data-state="fly"] {
  --flight-reach: 30vw;
  --flight-lift: 13vh;
  transform-origin: 50% 72%;
  animation: mascot-flight 5.2s ease-in-out;
}

@supports (width: clamp(1px, 2vw, 3px)) {
  .motion-mascot-contact[data-state="fly"] {
    --flight-reach: min(39vw, 430px);
    --flight-lift: clamp(0px, calc(100vh - 340px), 146px);
  }
}

.motion-mascot-contact[data-state="fly"]:focus-visible { animation-play-state: paused; }

@media (hover: hover) {
  .motion-mascot-contact[data-state="fly"]:hover { animation-play-state: paused; }
}

@keyframes mascot-flight {
  0%, 100% { transform: none; }
  14% { transform: translate(calc(-.13 * var(--flight-reach)), calc(-.46 * var(--flight-lift))) rotate(-7deg); }
  43% { transform: translate(calc(-1 * var(--flight-reach)), calc(-1 * var(--flight-lift))) rotate(-4deg); }
  59% { transform: translate(calc(-.9 * var(--flight-reach)), calc(-.57 * var(--flight-lift))) rotate(7deg); }
  81% { transform: translate(calc(-.31 * var(--flight-reach)), calc(-.55 * var(--flight-lift))) rotate(5deg); }
}

.motion-mascot-cloud {
  --cloud: #dffbee;
  position: relative;
  isolation: isolate;
  padding: 7px 12px;
  border-radius: 46% 44% 42% 43% / 60% 58% 52% 52%;
  color: #143c39;
  background: var(--cloud);
  font: 600 12px/1.35 Prompt, system-ui, sans-serif;
  white-space: nowrap;
  animation: mascot-cloud-float 3.4s ease-in-out infinite;
}

.motion-mascot-cloud::before,
.motion-mascot-cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--cloud);
}

.motion-mascot-cloud::before {
  z-index: -1;
  top: -7px;
  left: calc(50% - 16px);
  width: 22px;
  height: 18px;
  box-shadow: 17px 4px 0 -2px var(--cloud), -12px 7px 0 -3px var(--cloud);
}

.motion-mascot-cloud::after {
  bottom: -7px;
  left: 43%;
  width: 7px;
  height: 6px;
  box-shadow: 7px 6px 0 -1.5px var(--cloud);
}

.motion-mascot-contact:is(:hover, :focus-visible) .motion-mascot-cloud {
  --cloud: #b6f5dd;
}

.motion-mascot-contact[data-state="pause"] .motion-mascot-cloud { animation: none; }

@keyframes mascot-cloud-float { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .motion-mascot-contact[data-state="fly"] { animation: none; }
  .motion-mascot-contact[data-state="fly"] .mascot-exhaust { animation: none; }
  .motion-mascot-contact[data-state="land"] .mascot-touchdown,
  .motion-mascot-contact[data-state="land"] .mascot-jetpack { display: none; }
  .motion-mascot-contact[data-state="land"] .whole { animation: none; }
  .motion-mascot-cloud { animation: none; }
}
