/* Authored \n breaks are desktop-only; below the site's mobile breakpoint
   (navbar switch, 1280px) the text reflows naturally. */
@media (max-width: 1280px) {
  br.multiline-br {
    display: none;
  }
}

.nm-stats-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 40px 30px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
  background-color: #253c33;
  color: #fcfcfc;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;

  /* This context's statistic typography, inherited into the Statistic cards
     across shadow boundaries; the panel keeps Statistics' canonical glass */
  --nm-statistic-title-size: 16px;
  --nm-statistic-title-lh: 20px;
  --nm-statistic-desc-size: 14px;
  --nm-statistic-desc-lh: 18px;
}

/* Light tone (What we believe in): dark text on a light card. Resetting the
   custom props to initial hands typography and panel surface back to the
   inner Statistics presets (light-panel + icons keep their own sizes). */
.nm-stats-section--tone-light {
  background-color: #fcfcfc;
  color: #18141e;
  --nm-statistics-panel-bg: initial;
  --nm-statistic-title-size: initial;
  --nm-statistic-title-lh: initial;
  --nm-statistic-desc-size: initial;
  --nm-statistic-desc-lh: initial;
}

.nm-stats-section--tone-light .nm-stats-section__badge {
  background: #e6ece9;
}

/* Background video/image; absolute is unavoidable for a video background */
.nm-stats-section__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nm-stats-section__inner {
  width: min(1380px, 100%);
  margin-inline: auto;
}

/* Off-white pill (this section's badge is #FCFCFC, not the light green) */
.nm-stats-section__badge {
  display: inline-block;
  margin-bottom: 36px;
  padding: 3.5px 17.5px;
  border-radius: 81.25px;
  background: #fcfcfc;
  color: #18141e;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Title left, optional description right (Health data handled) */
.nm-stats-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

/* Description under the title instead of in the right column */
.nm-stats-section--desc-below .nm-stats-section__header {
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.nm-stats-section__title {
  margin: 0;
  font-size: 60px;
  font-style: normal;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 0;
}

.nm-stats-section__description {
  max-width: 452px;
  margin: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* ---------- Mobile ---------- */

/* Same breakpoint as the navbar's burger switch */
@media (max-width: 1280px) {
  .nm-stats-section {
    padding: 30px 15px;
    --nm-statistic-value-size-mobile: 45px;
  }

  .nm-stats-section__badge {
    margin-bottom: 24px;
  }

  .nm-stats-section__header {
    flex-direction: column;
    gap: 19px;
    margin-bottom: 36px;
  }

  .nm-stats-section__title {
    font-size: 32px;
    line-height: 1.1;
  }

  .nm-stats-section__description {
    max-width: none;
    font-size: 14px;
    line-height: 18px;
  }
}


@keyframes nm-stats-section-reveal {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nm-stats-section-reveal .nm-stats-section__badge,
.nm-stats-section-reveal .nm-stats-section__header {
  opacity: 0;
}

.nm-stats-section-reveal.is-revealed .nm-stats-section__badge,
.nm-stats-section-reveal.is-revealed .nm-stats-section__header {
  animation: nm-stats-section-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

@media (prefers-reduced-motion: reduce) {
  .nm-stats-section-reveal .nm-stats-section__badge,
.nm-stats-section-reveal .nm-stats-section__header {
    opacity: 1;
    animation: none;
  }
}

/* Direction variety: headings/copy arrive from the left */
@keyframes nm-stats-section-reveal-from-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nm-stats-section-reveal.is-revealed .nm-stats-section__badge,
.nm-stats-section-reveal.is-revealed .nm-stats-section__header {
  animation-name: nm-stats-section-reveal-from-left;
}

