/* Large sequence numbers share Training's regular DM Sans style.
   Each component retains its own size, color and animation layout. */
@layer display-number-style {
  body[data-site-page] main :is(
    .solution-text-number,
    .service-text-number,
    .entry-index,
    .wcard .wb,
    #why .why-num
  ),
  body.aitria-panel.page-ai-ux-sprint #about .about-card::before {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: -.06em !important;
    line-height: .9 !important;
  }
  body.page-internalization[data-site-page] main #solutions .service-text-number,
  body.aitria-panel.page-ai-ux-sprint #about .about-card::before {
    font-size: 2rem !important;
    letter-spacing: .015em !important;
  }
}

/* The inner digit's horizontal correction is independent of the row entrance. */
body[data-site-page] main .reason-number-final-digit {
  display: inline-block;
  transform: translateX(.10em);
  /* Fit-content counters must also reserve the visible horizontal offset. */
  margin-inline-end: .10em;
}

/* Opt-in overrides share one mobile entrance across the six service pages. */
@layer mobile-number-motion {
  @media (max-width:767px) and (prefers-reduced-motion:no-preference) {
    .mobile-count-once > :is(.service-count-inner,.ap-count-inner) {
      transform: translate3d(0,-100%,0) !important;
      transition: transform .72s cubic-bezier(.22,1,.36,1) !important;
    }
    .mobile-count-once.mobile-count-visible > :is(.service-count-inner,.ap-count-inner) {
      transform: translate3d(0,0,0) !important;
    }
    .mobile-count-complete > :is(.service-count-inner,.ap-count-inner) { will-change: auto !important; }
  }
  @media (prefers-reduced-motion:reduce) {
    .mobile-count-once > :is(.service-count-inner,.ap-count-inner) {
      transform: none !important;
      transition: none !important;
      will-change: auto !important;
    }
  }
}
