/* ==========================================================================
   Business page, Section 10: Customer story (GIZ)
   Framer: framer-17y79tf. One story (no slider). Variants per breakpoint:
   desktop >= 1440 | laptop 1280-1439.98 (eyebrow per-letter blur reveal, photo pinned right)
   tablet 810-1279.98 (photo inside the text column, 400px tall) | phone <= 809.98 (photo between title and text).
   ========================================================================== */

/* Inter 400 for the "reduced to 2 μg/m³" caption (Framer default font). Latin = same file the live site loads;
   Greek subset is needed for the μ (U+03BC). */
@font-face { font-family: Inter; src: url("../../../assets/fonts/inter-400-latin.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url("../../../assets/fonts/inter-400-greek.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 400; unicode-range: U+370-3FF; }

/* ---------- Desktop (>= 1440px), also the base for laptop ---------- */
.nf-biz-story {
  --nf-biz-story-feat: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
  --nf-biz-story-regular: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-biz-story-medium: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 971px;
  padding: 0;
  overflow: clip;
  background-color: var(--nf-black);
}
.nf-biz-story__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 60px;
  flex: 1 0 0px;
  width: 1px;
  max-width: 1380px;
  height: 100%;
  padding: 100px 40px;
}
.nf-biz-story__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  flex: 1 0 0px;
  width: 1px;
  overflow: clip;
}

/* Text defaults shared by every Framer text box in this section */
.nf-biz-story :where(p, h2, h3) {
  font-style: normal;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
}
.nf-biz-story__strong { font-weight: 700; }
/* Card titles and chemical notation (Danny, 2026-10-26, not on live): green "CO2" / "PM2.5" title on each GIZ card;
   CO2 and PM2.5 use a real subscript, m3 a real superscript, without changing the line height. */
.nf-biz-story__metric {
  flex: 0 0 auto; margin: 0; white-space: pre;
  font-family: var(--nf-biz-story-medium); font-weight: 500; font-size: 28px; line-height: 1.2em; color: var(--nf-green, #91c851);
}
.nf-biz-story__sub, .nf-biz-story__sup { position: relative; font-size: 0.62em; line-height: 0; vertical-align: baseline; }
.nf-biz-story__sub { bottom: -0.25em; }
.nf-biz-story__sup { top: -0.5em; }

/* Head: eyebrow + client row */
.nf-biz-story__head {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__eyebrow {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: var(--nf-biz-story-medium);
  font-feature-settings: var(--nf-biz-story-feat);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15em;
  color: rgb(191, 191, 191);
}
.nf-biz-story__eyebrow--letters { display: none; }
.nf-biz-story__word { white-space: nowrap; }
.nf-biz-story__ch { display: inline-block; }

.nf-biz-story__client {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 24px;
  width: min-content;
}
.nf-biz-story__logo {
  position: relative;
  flex: 0 0 auto;
  width: 202px;
  aspect-ratio: 3.61333 / 1;
}
.nf-biz-story__divider {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  width: 4px;
  overflow: clip;
}
.nf-biz-story__line {
  position: absolute;
  bottom: -8px;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 59px;
  image-rendering: pixelated;
  background-size: 100% 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 59"><path d="M 1.5 1 L 1.5 58" fill="transparent" stroke="rgb(255, 255, 255)" stroke-miterlimit="10"/></svg>');
}
.nf-biz-story__name {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  width: 338px;
  aspect-ratio: 5.82759 / 1;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
.nf-biz-story__name-main,
.nf-biz-story__name-sub {
  line-height: 1.2em;
  letter-spacing: 0px;
  color: var(--nf-white);
}
.nf-biz-story__name-main {
  font-family: var(--nf-biz-story-medium);
  font-size: 22px;
  font-weight: 500;
}
.nf-biz-story__name-sub {
  font-family: var(--nf-biz-story-regular);
  font-size: 16px;
  font-weight: 400;
}

/* Body: title, description, stats */
.nf-biz-story__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__title,
.nf-biz-story__desc {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
.nf-biz-story__title {
  font-family: var(--nf-biz-story-medium);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1em;
  color: var(--nf-white);
}
.nf-biz-story__sp { display: none; }
.nf-biz-story__desc {
  font-family: var(--nf-biz-story-regular);
  font-feature-settings: var(--nf-biz-story-feat);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25em;
  color: var(--nf-grey-9e);
}

.nf-biz-story__stats {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__cards {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  flex: 1 0 0px;
  width: 1px;
  padding: 24px;
  overflow: clip;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.nf-biz-story__card--pm { align-self: stretch; }

.nf-biz-story__co2 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  width: min-content;
  overflow: clip;
}
.nf-biz-story__co2-row {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  overflow: clip;
}
.nf-biz-story__num,
.nf-biz-story__ppm,
.nf-biz-story__pct,
.nf-biz-story__lower,
.nf-biz-story__pm-phone {
  flex: 0 0 auto;
  white-space: pre;
  font-family: var(--nf-biz-story-medium);
  font-weight: 500;
  color: var(--nf-white);
}
.nf-biz-story__num { font-size: 45px; line-height: 1.2em; }
.nf-biz-story__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
}
.nf-biz-story__ppm { font-size: 45px; line-height: 1.15em; }
.nf-biz-story__ppm-num { font-size: 67px; line-height: 1.15em; }
.nf-biz-story__ppm-unit { line-height: 1.15em; }

.nf-biz-story__label {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__caption {
  font-family: var(--nf-biz-story-medium);
  font-feature-settings: var(--nf-biz-story-feat);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25em;
  color: rgb(150, 150, 150);
}
.nf-biz-story__caption--wide {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}
.nf-biz-story__caption--phone,
.nf-biz-story__label--pm,
.nf-biz-story__pm-phone { display: none; }

.nf-biz-story__pm {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0px;
  width: 100%;
  overflow: clip;
}
.nf-biz-story__pct { font-size: 75px; line-height: 1.1em; }
.nf-biz-story__lower { font-size: 45px; line-height: 1.15em; }
.nf-biz-story__caption--pm {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: Inter, "Inter Placeholder", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nf-biz-story__pm-key {
  font-family: var(--nf-biz-story-medium);
  font-weight: 500;
}
.nf-biz-story__pm-key .nf-biz-story__strong { font-weight: 700; }

.nf-biz-story__note {
  flex: 0 0 auto;
  white-space: pre;
  font-family: var(--nf-biz-story-medium);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4em;
  text-align: left;
  color: var(--nf-grey-9e);
}

/* Photos: one per layout position (desktop/laptop right column, tablet in the column, phone after the title) */
.nf-biz-story__photo {
  position: relative;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: clip;
}
.nf-biz-story__photo--wide {
  width: 42%;
  height: 100%;
}
.nf-biz-story__photo--tablet,
.nf-biz-story__photo--phone { display: none; }
.nf-biz-story__pic { display: contents; border-radius: inherit; }
.nf-biz-story__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.nf-biz-story__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.nf-biz-story__photo--wide .nf-biz-story__img { object-position: 72% 49.9%; }

/* ---------- Scroll reveals (measured on live; js/55-story.js adds .is-armed / .is-in) ----------
   Default: opacity 0 -> 1 once at 50% visible, 452ms Framer spring.
   Divider (all widths) and, on laptop, logo + name: replay on every re-entry, 192ms.
   Tablet/phone photo: also translateY(30px) -> 0, 400ms ease-in-out.
   Laptop eyebrow: per letter opacity 0.001 -> 1, blur(10px) -> 0, translateY(10px) -> 0, 400ms spring, 50ms stagger. */
.nf-biz-story {
  --nf-biz-story-ease: linear(0 0.00%, 0.0278 3.76%, 0.1746 11.28%, 0.2617 14.82%, 0.3561 18.58%, 0.4369 21.90%, 0.5276 25.88%, 0.6051 29.65%, 0.6662 32.96%, 0.7303 36.95%, 0.7792 40.49%, 0.8234 44.25%, 0.8603 48.01%, 0.8891 51.55%, 0.9129 55.09%, 0.9335 58.85%, 0.9491 62.61%, 0.963 66.37%, 0.9732 70.13%, 0.9802 73.45%, 0.9867 77.43%, 0.991 80.97%, 0.995 85.40%, 0.9971 88.72%, 0.9987 92.26%, 0.9998 95.80%, 1 100.00%);
  --nf-biz-story-ease-fast: linear(0 0.00%, 0.1495 11.98%, 0.483 30.73%, 0.617 38.54%, 0.736 47.92%, 0.824 56.25%, 0.895 65.10%, 0.942 75.52%, 0.977 82.81%, 0.996 92.19%, 1 100.00%);
  --nf-biz-story-ease-letter: linear(0 0%, 0.024 2.564%, 0.0823 5.128%, 0.1594 7.692%, 0.2448 10.256%, 0.3315 12.821%, 0.4152 15.385%, 0.4934 17.949%, 0.5646 20.513%, 0.6282 23.077%, 0.6844 25.641%, 0.7334 28.205%, 0.7758 30.769%, 0.8122 33.333%, 0.8432 35.897%, 0.8694 38.462%, 0.8916 41.026%, 0.9102 43.590%, 0.9258 46.154%, 0.9388 48.718%, 0.9496 51.282%, 0.9586 53.846%, 0.966 56.410%, 0.9722 58.974%, 0.9772 61.538%, 0.9814 64.103%, 0.9848 66.667%, 0.9876 69.231%, 0.9899 71.795%, 0.9918 74.359%, 0.9933 76.923%, 0.9946 79.487%, 0.9956 82.051%, 0.9964 84.615%, 0.9971 87.179%, 0.9977 89.744%, 0.9981 92.308%, 0.9985 94.872%, 0.9988 97.436%, 1 100%);
}
.nf-biz-story.is-armed [data-nf-story-reveal] { opacity: 0; }
.nf-biz-story.is-armed [data-nf-story-reveal].is-in {
  opacity: 1;
  transition: opacity 452ms var(--nf-biz-story-ease);
}
.nf-biz-story.is-armed .nf-biz-story__divider.is-in { transition: opacity 192ms var(--nf-biz-story-ease-fast); }

/* ---------- Laptop (1280px to 1439.98px) ---------- */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .nf-biz-story__container { padding: 100px 60px; }
  .nf-biz-story__eyebrow--plain { display: none; }
  .nf-biz-story__eyebrow--letters { display: block; }
  .nf-biz-story__photo--wide .nf-biz-story__img { object-position: right center; }
  .nf-biz-story.is-armed .nf-biz-story__logo.is-in,
  .nf-biz-story.is-armed .nf-biz-story__name.is-in { transition: opacity 192ms var(--nf-biz-story-ease-fast); }
  .nf-biz-story.is-armed .nf-biz-story__ch {
    opacity: 0.001;
    filter: blur(10px);
    transform: translateY(10px);
  }
  .nf-biz-story.is-armed .nf-biz-story__eyebrow--letters.is-in .nf-biz-story__ch {
    opacity: 1;
    filter: blur(0px);
    transform: none;
    transition: opacity 400ms var(--nf-biz-story-ease-letter) var(--nf-d, 0ms),
                filter 400ms var(--nf-biz-story-ease-letter) var(--nf-d, 0ms),
                transform 400ms var(--nf-biz-story-ease-letter) var(--nf-d, 0ms);
  }
}

/* ---------- Tablet (810px to 1279.98px) ---------- */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-story { height: auto; }
  .nf-biz-story__container { height: auto; }
  .nf-biz-story__photo--wide { display: none; }
  .nf-biz-story__photo--tablet {
    display: block;
    order: 1;
    width: 100%;
    height: 400px;
  }
  .nf-biz-story__photo--tablet .nf-biz-story__img { object-position: 76.9% 35.6%; }
  .nf-biz-story__intro { order: 0; }
  .nf-biz-story__stats { order: 2; }
  .nf-biz-story__title { font-size: 40px; line-height: 1.2em; }
  .nf-biz-story__desc { font-size: 20px; }
  .nf-biz-story.is-armed .nf-biz-story__photo--tablet { transform: translateY(30px); }
  .nf-biz-story.is-armed .nf-biz-story__photo--tablet.is-in {
    transform: none;
    transition: opacity 400ms cubic-bezier(0.44, 0, 0.56, 1), transform 400ms cubic-bezier(0.44, 0, 0.56, 1);
  }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-biz-story {
    flex-direction: column;
    height: auto;
    padding: 40px 16px;
  }
  .nf-biz-story__container {
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0;
  }
  .nf-biz-story__text {
    flex: 0 0 auto;
    gap: 20px;
    width: 100%;
  }
  .nf-biz-story__head { gap: 16px; }
  .nf-biz-story__eyebrow {
    font-size: 16px;
    color: var(--nf-white);
  }
  .nf-biz-story__client {
    align-content: center;
    align-items: center;
    gap: 9px;
  }
  .nf-biz-story__logo { width: 130px; }
  .nf-biz-story__line {
    bottom: 10px;
    left: calc(75% - 1px);
    width: 2px;
    height: 41px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 41"><path d="M 0.5 1 L 0.5 40" fill="transparent" stroke="rgb(255, 255, 255)" stroke-miterlimit="10"/></svg>');
  }
  .nf-biz-story__name-main {
    font-size: 16px;
  }
  .nf-biz-story__name-sub {
    font-family: var(--nf-biz-story-medium);
    font-size: 12px;
    font-weight: 500;
  }
  .nf-biz-story__body { gap: 24px; }
  .nf-biz-story__intro { gap: 20px; }
  .nf-biz-story__title {
    order: 0;
    font-size: 25px;
    line-height: 1.2em;
  }
  .nf-biz-story__br { display: none; }
  .nf-biz-story__sp { display: inline; }
  .nf-biz-story__photo--wide { display: none; }
  .nf-biz-story__photo--phone {
    display: block;
    order: 1;
    width: 100%;
    aspect-ratio: 1.29167 / 1;
  }
  .nf-biz-story__desc {
    order: 2;
    font-feature-settings: normal;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-align: left;
  }
  .nf-biz-story__cards {
    flex-direction: column;
    gap: 15px;
  }
  .nf-biz-story__card--co2 {
    flex: 0 0 auto;
    gap: 0px;
    width: 100%;
    padding: 24px 20px;
  }
  .nf-biz-story__card--pm {
    align-self: auto;
    flex: 0 0 auto;
    gap: 2px;
    width: 100%;
    height: 134px;
    padding: 16px 20px;
  }
  .nf-biz-story__num { font-size: 36px; line-height: 1.15em; }
  .nf-biz-story__ppm { font-size: 37px; }
  .nf-biz-story__ppm-num { font-size: 55px; }
  .nf-biz-story__label {
    flex-direction: row;
    gap: 0px;
  }
  .nf-biz-story__caption--wide,
  .nf-biz-story__wide { display: none; }
  .nf-biz-story__caption--phone { display: block; }
  .nf-biz-story__label--pm { display: flex; }
  .nf-biz-story__caption--key,
  .nf-biz-story__caption--rest {
    font-size: 14px;
    line-height: 1.4em;
    letter-spacing: 0.02em;
  }
  .nf-biz-story__caption--key {
    flex: 0 0 auto;
    white-space: pre;
  }
  .nf-biz-story__caption--rest {
    flex: 1 0 0px;
    align-self: stretch;
    width: 1px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    font-family: var(--nf-biz-story-regular);
    font-weight: 400;
  }
  .nf-biz-story__pm {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 12px;
  }
  .nf-biz-story__pm-phone {
    display: block;
    flex: 1 0 0px;
    width: 1px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 36px;
    line-height: 1em;
  }
  .nf-biz-story__pm-pct { font-size: 60px; line-height: 1em; }
  .nf-biz-story__pm-gap { font-size: 72px; line-height: 1em; }
  .nf-biz-story__note {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
  .nf-biz-story.is-armed .nf-biz-story__photo--phone { transform: translateY(30px); }
  .nf-biz-story.is-armed .nf-biz-story__photo--phone.is-in {
    transform: none;
    transition: opacity 400ms cubic-bezier(0.44, 0, 0.56, 1), transform 400ms cubic-bezier(0.44, 0, 0.56, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-biz-story.is-armed [data-nf-story-reveal],
  .nf-biz-story.is-armed .nf-biz-story__ch { opacity: 1; filter: none; transform: none; transition: none; }
}

/* Card titles on tablet and phone (Danny, 2026-10-26) */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-story__metric { font-size: 24px; }
}
@media (max-width: 809.98px) {
  .nf-biz-story__metric { font-size: 20px; }
  .nf-biz-story__card--co2 .nf-biz-story__metric { margin-bottom: 8px; }
  .nf-biz-story__card--pm { height: auto; gap: 8px; }
}

/* The CO2 / PM2.5 subscripts sit 0.25em low and the label clipped them by ~0.6px (Danny, 2026-10-29: subscripts must not be cut). */
.nf-biz-story__label { overflow: visible; }
