/* 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-text-section {
  width: 100%;
  padding: 65px 30px;
  box-sizing: border-box;
  background: #fcfcfc;
  color: #18141e;
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
}

/* 50/50 split: badge column left, text right */
.nm-text-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1380px, 100%);
  margin-inline: auto;
}

.nm-text-section__badge {
  display: inline-block;
  padding: 3.5px 17.5px;
  border-radius: 81.25px;
  background: #e6ece9;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.25px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.nm-text-section__title {
  margin: 0;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.nm-text-section__description {
  margin: 26px 0 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

/* Same breakpoint as the navbar: stack into a column */
@media (max-width: 1280px) {
  .nm-text-section__inner {
    grid-template-columns: 1fr;
  }

  .nm-text-section__badge-column {
    margin-bottom: 30px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nm-text-section {
    padding: 33px 15px;
  }

  .nm-text-section__title {
    font-size: 25px;
    line-height: 30px;
  }

  .nm-text-section__description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 18px;
  }
}


/* Badge column enters from the left, the text column from the right */
@keyframes nm-text-section-reveal-left {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

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

@keyframes nm-text-section-reveal-right {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

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

.nm-text-section-reveal .nm-text-section__badge-column,
.nm-text-section-reveal .nm-text-section__content {
  opacity: 0;
}

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

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

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

