@media (prefers-reduced-motion: no-preference) {
  .global-brand img {
    animation: red-motion-wave 12s 1.3s ease-in-out infinite;
    transform-origin: center 70%;
  }

  :where([data-red-tool="review"] .prepare h1,
         [data-red-tool="analysis"] :is(#intake-title,#report-title),
         [data-red-tool="cpp"] #home h1,
         [data-red-tool="cpp"] .lesson-head h1,
         [data-red-tool="gesp"] .gesp-heading h1) {
    animation: red-motion-enter 420ms ease-out both;
  }

  :where([data-red-tool="cpp"] .lesson-head h1,
         [data-red-tool="cpp"] #home h1,
         [data-red-tool="gesp"] .gesp-heading h1,
         [data-red-tool="gesp"] .gesp-reader-bar h1,
         [data-red-tool="python"] .editor-status) {
    position: relative;
  }

  :where([data-red-tool="review"] .shared-brand-icon,
         [data-red-tool="analysis"] :is(.shared-brand-icon,.brand-mark)) {
    animation: red-motion-wave 10s 1.5s ease-in-out infinite;
  }

  :where([data-red-tool="cpp"] .lesson-head h1,
         [data-red-tool="cpp"] #home h1,
         [data-red-tool="gesp"] .gesp-heading h1,
         [data-red-tool="gesp"] .gesp-reader-bar h1)::after {
    content: "";
    display: inline-block;
    width: .42em;
    height: .12em;
    margin-inline-start: .3em;
    border-radius: 2px;
    background: currentColor;
    vertical-align: baseline;
    opacity: .28;
    animation: red-motion-caret 7s 1s ease-in-out infinite;
  }

  .drill-book-art i {
    animation: red-motion-pages 8s 1.1s ease-in-out infinite;
  }

  .drill-book-art i:nth-child(2) { animation-delay: 1.23s; }
  .drill-book-art i:nth-child(3) { animation-delay: 1.36s; }

  [data-red-tool="python"] .editor-status::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    content: "";
    pointer-events: none;
    animation: red-motion-editor-line 9s 1.5s ease-in-out infinite;
  }

  @keyframes red-motion-enter {
    from { opacity: .68; translate: 0 4px; }
  }
  @keyframes red-motion-wave {
    4% { rotate: -7deg; }
    8% { rotate: 5deg; }
    14%, 100% { rotate: 0deg; }
  }
  @keyframes red-motion-caret {
    7% { opacity: .72; translate: 3px 0; }
    16%, 100% { opacity: .28; translate: 0 0; }
  }
  @keyframes red-motion-pages {
    8% { translate: 0 -3px; }
    19%, 100% { translate: 0 0; }
  }
  @keyframes red-motion-editor-line {
    5% { opacity: .34; }
    15%, 100% { opacity: 0; translate: 80px 0; }
  }
}
