/* The section remains in its original bm-wrap; these rules deliberately
   neutralize the legacy hero skin only inside this replacement. */
.bm-hero.nudj-reference-hero {
  position: relative !important;
  isolation: isolate;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: min(calc(100svh - 76px), 900px) !important;
  padding: 16px 28px 38px !important;
  text-align: center;
  overflow: visible;
  background: transparent !important;
  color: #321c2c;
}

.bm-hero.nudj-reference-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -1px;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    radial-gradient(circle at 50% 38%, transparent 0 10.5%, rgba(153, 87, 68, .075) 10.62% 10.75%, transparent 10.87% 20%, rgba(153, 87, 68, .065) 20.12% 20.25%, transparent 20.37% 29.5%, rgba(153, 87, 68, .06) 29.62% 29.75%, transparent 29.87% 39%, rgba(153, 87, 68, .055) 39.12% 39.25%, transparent 39.37% 48.5%, rgba(153, 87, 68, .05) 48.62% 48.75%, transparent 48.87% 58%, rgba(153, 87, 68, .045) 58.12% 58.25%, transparent 58.37%),
    radial-gradient(ellipse at 50% 41%, #f8d8c8 0%, #f7e0d3 40%, #f6eee5 100%);
}

.bm-hero.nudj-reference-hero::after {
  content: none !important;
  display: none !important;
}

.bm-hero.nudj-reference-hero .nj-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 930px);
  margin: auto;
}

.bm-hero.nudj-reference-hero .nj-hero__eyebrow {
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 34px;
  padding: 0 20px;
  border-radius: 999px;
  background: #48233a;
  color: #f8f1e9;
  box-shadow: 0 5px 0 rgba(72, 35, 58, .12);
  font: 700 12px/1.2 "Space Mono", monospace;
  letter-spacing: -.035em;
}

.bm-hero.nudj-reference-hero .nj-hero__signal {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f7a47d;
  box-shadow: 0 0 0 4px rgba(247, 164, 125, .18);
}

.bm-hero.nudj-reference-hero .nj-hero__accent {
  color: #f4a17b;
}

.bm-hero.nudj-reference-hero .nj-hero__title {
  margin: 0 auto 38px !important;
  max-width: none !important;
  color: #321c2c !important;
  font: 800 clamp(36px, 5.5vw, 64px)/1.12 "Plus Jakarta Sans", sans-serif !important;
  letter-spacing: -.065em !important;
  text-transform: none !important;
}

.bm-hero.nudj-reference-hero .nj-hero__line {
  display: block;
  white-space: normal;
  text-wrap: balance;
}

.bm-hero.nudj-reference-hero .nj-hero__line--accent {
  color: #bd3e2b;
}

.bm-hero.nudj-reference-hero .nj-hero__intro {
  max-width: 860px;
  margin: 0 auto 38px !important;
  color: #6f6269 !important;
  font: 400 19px/1.9 "Plus Jakarta Sans", sans-serif !important;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

.bm-hero.nudj-reference-hero .nj-hero__actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.bm-hero.nudj-reference-hero .nj-hero__button {
  min-height: 64px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 28px;
  border: 1px solid #48233a;
  border-radius: 6px;
  color: #321c2c;
  background: rgba(255, 248, 241, .35);
  font: 700 15px/1.2 "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bm-hero.nudj-reference-hero .nj-hero__button:hover {
  transform: translateY(-2px);
}

.bm-hero.nudj-reference-hero .nj-hero__button:active {
  transform: translateY(0);
}

.bm-hero.nudj-reference-hero .nj-hero__button:focus-visible {
  outline: 3px solid #7b382f;
  outline-offset: 4px;
}

.bm-hero.nudj-reference-hero .nj-hero__button--primary {
  border-color: #b93b28;
  background: #bd3e2b;
  color: #fff8f1;
  box-shadow: 4px 5px 0 #48233a;
}

.bm-hero.nudj-reference-hero .nj-hero__button--primary:hover {
  background: #a93425;
  box-shadow: 5px 7px 0 #48233a;
}

.bm-hero.nudj-reference-hero .nj-hero__button--primary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bm-hero.nudj-reference-hero .nj-hero__fineprint {
  margin: 30px auto 0;
  color: #6d5964;
  font: 600 12px/1.75 "Plus Jakarta Sans", sans-serif;
}

.bm-hero.nudj-reference-hero .nj-hero__fineprint p {
  margin: 0;
}

.bm-hero.nudj-reference-hero .nj-hero__tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 28px auto 0;
  text-align: left;
}

.bm-hero.nudj-reference-hero .nj-hero__track {
  box-sizing: border-box;
  display: block;
  min-height: 122px;
  padding: 17px 18px 16px;
  border: 1px solid rgba(90, 53, 69, .14);
  border-radius: 6px;
  background: rgba(255, 249, 242, .72);
  color: #6d5964;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.bm-hero.nudj-reference-hero .nj-hero__track:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 53, 69, .3);
  background: #fffaf3;
  box-shadow: 0 5px 14px rgba(72, 35, 58, .07);
}

.bm-hero.nudj-reference-hero .nj-hero__track:focus-visible {
  outline: 3px solid #7b382f;
  outline-offset: 4px;
}

.bm-hero.nudj-reference-hero .nj-hero__track-title {
  margin: 0 0 6px;
  color: #48233a;
  font: 700 18px/1.35 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.04em;
}

.bm-hero.nudj-reference-hero .nj-hero__track p {
  margin: 0;
  color: #6d5964;
  font: 400 13px/1.75 "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .bm-hero.nudj-reference-hero {
    min-height: min(calc(100svh - 64px), 820px) !important;
    padding: 24px 22px 30px !important;
  }

  .bm-hero.nudj-reference-hero::before {
    background:
      radial-gradient(circle at 50% 38%, transparent 0 18%, rgba(153, 87, 68, .07) 18.15% 18.35%, transparent 18.5% 34%, rgba(153, 87, 68, .06) 34.15% 34.35%, transparent 34.5% 50%, rgba(153, 87, 68, .05) 50.15% 50.35%, transparent 50.5% 67%, rgba(153, 87, 68, .045) 67.15% 67.35%, transparent 67.5%),
      radial-gradient(ellipse at 50% 41%, #f8d8c8 0%, #f7e0d3 40%, #f6eee5 100%);
  }

  .bm-hero.nudj-reference-hero .nj-hero__eyebrow {
    gap: 10px;
    min-height: 38px;
    margin-bottom: 30px;
    padding: 0 15px;
    font-size: 10px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__title {
    margin-bottom: 27px !important;
    font-size: clamp(32px, 6.6vw, 46px) !important;
  }

  .bm-hero.nudj-reference-hero .nj-hero__intro {
    margin-bottom: 26px !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .bm-hero.nudj-reference-hero .nj-hero__actions {
    gap: 12px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__button {
    width: min(100%, 280px);
    min-height: 58px;
    padding: 0 18px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__fineprint {
    max-width: 330px;
    margin-top: 23px;
    font-size: 11px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__tracks {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__track {
    min-height: 0;
    padding: 15px 16px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__track-title {
    font-size: 17px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__track p {
    font-size: 12px;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .bm-hero.nudj-reference-hero {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .bm-hero.nudj-reference-hero .nj-hero__eyebrow {
    gap: 8px;
    padding: 0 11px;
    font-size: 9px;
  }

  .bm-hero.nudj-reference-hero .nj-hero__title {
    font-size: 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-hero.nudj-reference-hero *,
  .bm-hero.nudj-reference-hero *::before,
  .bm-hero.nudj-reference-hero *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
