.mb1009-home-wrap .mb1009-eyebrow::before,
.mb1009-home-wrap .mb1009-section-title::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-inline-end: 6px;
  vertical-align: middle;
  background: center / contain no-repeat;
}

.mb1009-home-wrap .mb1009-eyebrow::before {
  background-image: url("/assets/images/welcome-heart.png");
}

.mb1009-home-wrap .mb1009-section-title::before {
  width: 40px;
  height: 40px;
  background-image: url("/assets/images/welcome-rings.gif");
}

@media (prefers-reduced-motion: reduce) {
  .mb1009-home-wrap .mb1009-section-title::before {
    background-image: url("/assets/images/welcome-rings.png");
  }
}

@keyframes mb-member-icon-pulse {
  0%, 100% {
    scale: 1;
    opacity: 0.72;
  }
  50% {
    scale: 1.18;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mb1009-home-wrap .mb1009-eyebrow::before,
  .mb1009-home-wrap .mb1009-hero::after,
  .mb1009-home-wrap .mb-entry-ico,
  #member-home-overlay .mb35-quality-icon,
  .mb1009-home-wrap .mb1009-feature-ico {
    animation: mb-member-icon-pulse 2.4s ease-in-out infinite;
    transform-origin: center;
  }

  .mb1009-home-wrap .mb-entry-ico {
    display: inline-grid;
    place-items: center;
  }

  .mb1009-home-wrap .mb1009-hero::after {
    transform-origin: top right;
  }
}

/* Shared motion for the public landing page and member screens. */
@keyframes mb-heading-arrive {
  from { opacity: .82; translate: 0 4px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes mb-match-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@media (prefers-reduced-motion: no-preference) {
  :where(.mb-hero-copy h1, .section-head, .panel-title, .mb1009-section-title, .app-title, .mb-ai-title) {
    animation: mb-heading-arrive 180ms ease-out;
  }

  .mb-example .mb-meter {
    animation: mb-match-reveal 320ms ease-out;
  }

  :where(button, .btn, [role="button"]):active:not(:disabled):not([aria-disabled="true"]) {
    scale: .98;
    transition: scale 90ms ease-out;
  }

  details[open] > summary {
    animation: mb-heading-arrive 150ms ease-out;
  }
}

/* Animate the leading artwork independently of its caption. */
@media (prefers-reduced-motion: no-preference) {
  :where(.feature > .icon, .mb-v14039-icon, .mb-dock-icon, .mb1005-ico,
    .mb-entry-ico, .mb35-quality-icon, .mb1009-feature-ico),
  :where(h1, h2, h3, h4, h5, h6, [role="heading"], .section-head,
    .panel-title, .app-title, .mb-ai-title, summary, p, a, button, label)
    > :where(img, svg, picture, .icon, .ico):first-child,
  :where(img, svg, picture):has(+ :is(h1, h2, h3, h4, h5, h6, [role="heading"])) {
    animation: mb-member-icon-pulse 2.4s ease-in-out infinite;
    transform-origin: center;
  }

  :where(span.mb-dock-icon, span.mb1005-ico,
    h1 > span.icon, h2 > span.icon, h3 > span.icon, picture:first-child) {
    display: inline-block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #mb-v29-global-topnav button::before,
  .mb-global-actionbar button::before,
  .mb-fixed-primary-nav button::before,
  #mb1005-sidebar .mb1005-ico {
    display: inline-block;
    animation: mb-member-icon-pulse 2.4s ease-in-out infinite;
    transform-origin: center;
  }
}
