/* ==========================================================================
   Business / Score: "HEALTHY BUILDING SCORE" (live: Framer "Section 4", framer-mwl9gc)
   Breakpoints (business page): desktop >= 1440, laptop 1280 to 1439.98, tablet 810 to 1279.98, phone <= 809.98.
   Desktop and laptop: text column + absolutely placed office photo with the score card over its corner.
   Tablet: text and score card side by side (card sets the row height). Phone: stacked over a dimmed photo.
   ========================================================================== */

/* ---------- Desktop (>= 1440px) ---------- */
.nf-biz-score {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 0;
  width: 100%; height: min-content; padding: 0; overflow: clip; background-color: rgb(0, 0, 0);
}
.nf-biz-score__container {
  position: relative; z-index: 2; flex: 1 0 0px; display: flex; flex-flow: row; justify-content: flex-start; align-items: center; gap: 80px;
  width: 1px; max-width: 1380px; height: min-content; padding: 100px 40px; overflow: visible;
}
.nf-biz-score__text {
  position: relative; flex: 0 0 auto; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 65px;
  width: 578px; height: 520px; padding: 0; overflow: clip;
}
.nf-biz-score__body {
  position: relative; flex: 1 0 0px; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 98px;
  width: 100%; height: 1px; padding: 0; overflow: clip;
}
.nf-biz-score__wrap { position: relative; flex: 0 0 auto; width: 100%; height: auto; will-change: transform; }
.nf-biz-score__wrap--title { flex: 1 0 0px; max-width: 100%; height: 1px; }

.nf-biz-score__eyebrow, .nf-biz-score__title, .nf-biz-score__copy {
  font-style: normal; text-align: start; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; letter-spacing: normal;
}
.nf-biz-score__eyebrow {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  font-size: 22px; line-height: 1.4em; color: rgb(145, 200, 81);
}
.nf-biz-score__title {
  font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-weight: 500;
  font-size: 63px; line-height: 110%; color: rgb(255, 255, 255);
}
.nf-biz-score__copy {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400;
  font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11";
  font-size: 30px; line-height: 125%; color: rgb(245, 245, 245);
}

/* image frames: Framer puts the picture in an absolute wrapper that inherits the frame radius */
.nf-biz-score__fill { position: absolute; inset: 0; border-radius: inherit; }
.nf-biz-score__fill img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: center; }

.nf-biz-score__card { position: relative; flex: 0 0 auto; overflow: visible; will-change: transform; }
.nf-biz-score__card--wide {
  position: absolute; z-index: 1; top: 50%; left: 655px; width: 635px; height: auto; aspect-ratio: 1.22115 / 1;
  border-radius: 30px; transform: translateY(-50%);
}
.nf-biz-score__card--wide > .nf-biz-score__fill img { object-position: 63.9% 43.3%; }
.nf-biz-score__gauge {
  position: absolute; flex: 0 0 auto; top: -60px; right: -75px; width: 346px; height: auto; aspect-ratio: 0.919598 / 1; overflow: visible;
}
.nf-biz-score__card--tablet, .nf-biz-score__card--phone, .nf-biz-score__bg { display: none; }

/* Scroll reveal (Framer appear, plays once when half of the block is visible).
   Text and the photo card: opacity 0 -> 1, 0.4s ease. Phone card: also rises 30px, 0.4s Framer ease, 0.1s delay. */
.nf-biz-score.is-js [data-biz-score-reveal] { opacity: 0; transition: opacity 0.4s ease; }
.nf-biz-score.is-js [data-biz-score-reveal].is-in { opacity: 1; }

/* ---------- Laptop (1280px to 1439.98px) ---------- */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .nf-biz-score__container { padding: 100px 60px; }
  .nf-biz-score__body { gap: 0; }
  .nf-biz-score__title { font-size: 54px; }
  .nf-biz-score__card--wide { width: 568px; top: 54%; left: 649px; }
  .nf-biz-score__gauge { top: -75px; right: -25px; }
}

/* ---------- Tablet (810px to 1279.98px) ---------- */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-score__container { gap: 50px; }
  .nf-biz-score__text { flex: 1 0 0px; align-self: stretch; width: 1px; height: auto; }
  .nf-biz-score__body { gap: normal; justify-content: space-between; }
  .nf-biz-score__wrap--title { flex: 0 0 auto; height: auto; }
  .nf-biz-score__title { font-size: 40px; }
  .nf-biz-score__copy { font-size: 22px; }
  .nf-biz-score__card--wide { display: none; }
  .nf-biz-score__card--tablet {
    display: block; z-index: 1; flex: 1 0 0px; width: 1px; height: auto; aspect-ratio: 0.9226190476190477; border-radius: 30px;
  }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-biz-score { flex-direction: column; padding: 40px 16px; }
  .nf-biz-score__container { flex-direction: column; flex: 0 0 auto; gap: 24px; width: 100%; padding: 0; }
  .nf-biz-score__text { z-index: 1; gap: 10px; width: 100%; height: min-content; }
  .nf-biz-score__body { flex: 0 0 auto; justify-content: flex-start; gap: 10px; height: min-content; }
  .nf-biz-score__wrap--title { flex: 0 0 auto; height: auto; }
  .nf-biz-score__eyebrow {
    font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif; font-weight: 500;
    font-size: 16px; line-height: 115%;
  }
  .nf-biz-score__title { font-size: 25px; line-height: 120%; }
  .nf-biz-score__copy { font-feature-settings: normal; font-size: 16px; line-height: 130%; letter-spacing: 0.01em; text-align: left; }
  .nf-biz-score__card--wide { display: none; }
  .nf-biz-score__card--phone { display: block; z-index: 1; width: 100%; height: auto; aspect-ratio: 0.919598 / 1; }
  .nf-biz-score__bg {
    display: block; position: absolute; z-index: 0; top: -40px; bottom: -40px; left: -4.46928%; width: 109%; overflow: visible;
  }
  .nf-biz-score.is-js .nf-biz-score__card--phone[data-biz-score-reveal] {
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1) 0.1s, transform 0.4s cubic-bezier(0.44, 0, 0.56, 1) 0.1s;
  }
  .nf-biz-score.is-js .nf-biz-score__card--phone[data-biz-score-reveal].is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-biz-score.is-js [data-biz-score-reveal], .nf-biz-score.is-js .nf-biz-score__card--phone[data-biz-score-reveal] { opacity: 1; transform: none; transition: none; }
  .nf-biz-score.is-js .nf-biz-score__card--wide[data-biz-score-reveal] { transform: translateY(-50%); }
}

/* Launch QA (2026-10-30): on tablets the text column is as tall as the score card and clips what does not fit, so the
   longer Bahasa copy lost the bottom of its last line at 810. The column can now grow past the card when it needs to. */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-score__body { flex: 1 0 auto; height: auto; }
}
