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

/* Heading block : list = 457 : 851 with a 72px gap (457+72+851 = 1380) */
.nm-reasons__inner {
  display: grid;
  grid-template-columns: minmax(0, 457fr) minmax(0, 851fr);
  column-gap: 72px;
  width: min(1380px, 100%);
  margin-inline: auto;
}

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

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

/* Rows stack in normal flow; each row draws its own top divider, so the
   first row has a line above it and the last row has none below. */

.nm-reason {
  display: grid;
  grid-template-columns: 98px minmax(0, 279fr) minmax(0, 397fr);
  column-gap: 22px;
  align-items: start;
  padding: 21px 0;
  border-top: 1px solid rgba(24, 20, 30, 0.3);
}

.nm-reason__number {
  /* Optical correction: an 80px digit carries more built-in space above its
     ink than the 27px title, so nudge it up to align the visible tops. */
  margin-top: -8px;
  color: #3dbf7b;
  font-size: 80px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.nm-reason__badge {
  background: #D0DAD5;
  font-family: Mona Sans;
  font-weight: 500;
  font-style: Medium;
  font-size: 13px;
  letter-spacing: 10%;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.nm-reason__description {
  margin: 0 0 0 44px; /* 66px gap to the title column (22px grid gap + 44) */
  color: rgba(24, 20, 30, 0.6);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0;
}

/* Same breakpoint as the navbar: heading block stacks above the list */
@media (max-width: 1280px) {
  .nm-reasons__inner {
    grid-template-columns: 1fr;
  }

  .nm-reasons__intro-column {
    margin-bottom: 38px;
  }

  /* Stacked heading block spans the section; the desktop-column cap comes off */
  .nm-reasons__intro {
    max-width: none;
  }
}

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

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

  .nm-reasons__intro {
    margin-top: 26px;
    font-size: 14px;
    line-height: 18px;
  }

  /* Rows stack: number, title, description.
     Rhythm: line → 12 → number → 9 → title → 20 → description → 22 → line */
  .nm-reason {
    grid-template-columns: 1fr;
    padding: 12px 0 22px;
  }

  .nm-reason__number {
    margin-top: 0;
    margin-bottom: 9px;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .nm-reason__description {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 18px;
  }
}


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

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

.nm-reasons-reveal .nm-reasons__inner {
  opacity: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .nm-reasons-reveal .nm-reasons__inner {
    opacity: 1;
    animation: none;
  }
}


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

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

.nm-reason--reveal {
  opacity: 0;
}

.nm-reason--reveal.is-revealed {
  animation: nm-reason-reveal 850ms cubic-bezier(0.4, 0, 0.2, 1) 60ms both;
}

@media (prefers-reduced-motion: reduce) {
  .nm-reason--reveal {
    opacity: 1;
    animation: none;
  }
}

/* Waterfall: siblings entering together stagger left-to-right */

/* waterfall-nm-reason */
:host(:nth-child(2)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(2) {
  animation-delay: 160ms;
}
:host(:nth-child(3)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(3) {
  animation-delay: 260ms;
}
:host(:nth-child(4)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(4) {
  animation-delay: 360ms;
}
:host(:nth-child(5)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(5) {
  animation-delay: 460ms;
}
:host(:nth-child(6)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(6) {
  animation-delay: 560ms;
}
:host(:nth-child(7)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(7) {
  animation-delay: 660ms;
}

/* waterfall-ext-nm-reason: items 8+ keep cascading instead of snapping to the base delay */
:host(:nth-child(8)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(8) {
  animation-delay: 760ms;
}
:host(:nth-child(9)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(9) {
  animation-delay: 860ms;
}
:host(:nth-child(n + 10)) .nm-reason--reveal.is-revealed,
.nm-reason--reveal.is-revealed:nth-child(n + 10) {
  animation-delay: 960ms;
}

