/* The seal moves independently of the signature's copy and entrance reveal. */
@media (max-width: 767px) {
  .page-home .values-ico__wrap.craft-signature .craft-signature__seal[data-mobile-seal-motion="running"],
  .page-home .values-ico__wrap.craft-signature .craft-signature__seal[data-mobile-seal-motion="paused"] {
    transform-origin: 50% 50%;
    animation: mobile-seal-orbit 8.8s linear infinite;
    animation-play-state: paused;
  }

  .page-home .values-ico__wrap.craft-signature .craft-signature__seal[data-mobile-seal-motion="running"] {
    animation-play-state: running;
  }

  /* Equal counter-rotation keeps the artwork upright while the tilt axis
     travels left, up, right, down. Both ends resolve to the same matrix. */
  @keyframes mobile-seal-orbit {
    from {
      transform: perspective(560px) rotateZ(0deg) translate3d(-1.8px, 0, 0) rotateY(-5.5deg) rotateZ(0deg);
    }
    to {
      transform: perspective(560px) rotateZ(360deg) translate3d(-1.8px, 0, 0) rotateY(-5.5deg) rotateZ(-360deg);
    }
  }

  html[data-motion="off"] .page-home .values-ico__wrap.craft-signature .craft-signature__seal[data-mobile-seal-motion] {
    animation: none;
    transform: none;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .page-home .values-ico__wrap.craft-signature .craft-signature__seal[data-mobile-seal-motion] {
    animation: none;
    transform: none;
  }
}
