.hero-art[src="/assets/jellyfish-hero.png"],
.hero-art.jellyfish-motion {
  right: 0;
  top: clamp(16px, 2vw, 28px);
  height: calc(100% - clamp(16px, 2vw, 28px));
  object-position: 82% top;
  animation: none;
}

.hero-art.jellyfish-source-hidden,
.hero-art.jellyfish-motion:not(.jellyfish-motion-ready) {
  opacity: 0;
}

.jellyfish-motion {
  pointer-events: none;
}

@keyframes jellyfish-breathe {
  0%, 100% { transform: translate(0, 0) scale(1); }
  24% { transform: translate(0.35%, -0.55%) scale(0.976, 1.014); }
  60% { transform: translate(-0.25%, 0.25%) scale(1.013, 0.993); }
  81% { transform: translate(-0.3%, 0.35%) scale(1.006, 0.996); }
}

.hero-art.jellyfish-css-swim {
  transform-origin: 69% 24%;
  animation: jellyfish-breathe 4.8s ease-in-out infinite !important;
}

@media (prefers-reduced-motion: no-preference) {
  .hero:not([data-jellyfish-managed]) .hero-art[src="/assets/jellyfish-hero.png"] {
    transform-origin: 69% 24%;
    animation: jellyfish-breathe 4.8s ease-in-out infinite;
  }
}

.jellyfish-motion-control {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1360px) / 2));
  top: min(calc(100% - 116px), calc(100svh - 72px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #e3f5f0;
  background: #071d23bb;
  border: 1px solid #bfded870;
  border-radius: 50%;
  cursor: pointer;
}
.jellyfish-motion-control:hover,
.jellyfish-motion-control:focus-visible {
  background: #143740;
  border-color: #c0e4db;
}
.jellyfish-motion-control:focus-visible {
  outline: 2px solid #c0e4db;
  outline-offset: 3px;
}
.jellyfish-motion-control span {
  width: 11px;
  height: 13px;
  box-sizing: border-box;
  border-inline: 3px solid currentColor;
}
.jellyfish-motion-control[data-paused] span {
  width: 0;
  height: 0;
  border: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  transform: translateX(1px);
}

@media (max-width: 800px) {
  .hero-art[src="/assets/jellyfish-hero.png"],
  .hero-art.jellyfish-motion {
    width: 102%;
    right: -2%;
    object-position: 76% top;
  }
}
