/* ==========================================================================
   Business page, Section 8: "Real-Time Air Intelligence for Buildings"
   Framer: desktop/laptop/tablet = framer-lbcsqp, phone = framer-m789vw (own variant, same content).
   Business breakpoints: desktop >= 1440, laptop 1280-1439.98, tablet 810-1279.98, phone <= 809.98.
   ========================================================================== */

/* ---------- Desktop (>= 1440px), also the base for laptop ---------- */
.nf-biz-intel {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  overflow: clip;
  background-color: var(--nf-white);
}
.nf-biz-intel__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 60px;
  flex: 1 0 0px;
  width: 1px;
  max-width: 1380px;
  padding: 100px 40px;
}
.nf-biz-intel__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  overflow: clip;
}
.nf-biz-intel__title,
.nf-biz-intel__lead {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  text-align: start;
}
.nf-biz-intel__title {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  font-size: 45px;
  line-height: 1.1em;
  color: var(--nf-black);
}
.nf-biz-intel__lead {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
  font-size: 34px;
  line-height: 1.25em;
  color: var(--nf-grey-61);
}
.nf-biz-intel__sp { display: none; }

.nf-biz-intel__media {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  overflow: clip;
}
.nf-biz-intel__stack {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 19px;
  flex: 0 0 auto;
  width: 427px;
  height: 543px;
  overflow: clip;
}
.nf-biz-intel__tile {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 262px;
  border-radius: 16px;
}
.nf-biz-intel__tile--first { overflow: clip; }
.nf-biz-intel__screen {
  position: relative;
  flex: 1 0 0px;
  width: 1px;
  aspect-ratio: 1.57742 / 1;
  overflow: clip;
}
.nf-biz-intel__pic { display: contents; border-radius: inherit; }
.nf-biz-intel__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.nf-biz-intel__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.nf-biz-intel__img--contain { object-fit: contain; }

/* Scroll reveal, measured on live (opacity 0 -> 1, plays once; js/50-intelligence.js adds .is-armed / .is-in).
   Text: starts at 50% visible, 452ms Framer spring. Images (first tile + dashboard): start on entry, 283ms. */
.nf-biz-intel {
  --nf-biz-intel-ease-text: 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-intel-ease-img: linear(0 0.00%, 0.125 11.66%, 0.299 22.26%, 0.431 29.33%, 0.521 34.98%, 0.62 41.34%, 0.702 47.35%, 0.768 52.65%, 0.828 59.01%, 0.874 64.31%, 0.915 70.67%, 0.944 76.33%, 0.971 83.75%, 0.984 87.99%, 0.997 93.99%, 1 100.00%);
}
.nf-biz-intel.is-armed [data-nf-intel-reveal] { opacity: 0; }
.nf-biz-intel.is-armed [data-nf-intel-reveal].is-in {
  opacity: 1;
  transition: opacity 452ms var(--nf-biz-intel-ease-text);
}
.nf-biz-intel.is-armed .nf-biz-intel__tile--first.is-in,
.nf-biz-intel.is-armed .nf-biz-intel__screen.is-in {
  transition: opacity 283ms var(--nf-biz-intel-ease-img);
}

/* ---------- Laptop (1280px to 1439.98px): same as desktop (container keeps 100px 40px padding) ---------- */

/* ---------- Tablet (810px to 1279.98px) ---------- */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-intel__text { gap: 8px; }
  .nf-biz-intel__title { font-size: 36px; }
  .nf-biz-intel__lead { font-size: 26px; }
  .nf-biz-intel__br { display: none; }
  .nf-biz-intel__sp { display: inline; }
  .nf-biz-intel__stack {
    align-items: center;
    width: 237px;
    height: 301px;
  }
  .nf-biz-intel__tile {
    width: 237px;
    height: 141px;
  }
}

/* ---------- Phone (<= 809.98px), Framer variant m789vw ---------- */
@media (max-width: 809.98px) {
  .nf-biz-intel {
    flex-direction: column;
    padding: 40px 16px;
  }
  .nf-biz-intel__container {
    gap: 24px;
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
  }
  .nf-biz-intel__text { gap: 10px; }
  .nf-biz-intel__title {
    font-size: 29px;
    line-height: 1.2em;
  }
  .nf-biz-intel__lead {
    font-feature-settings: normal;
    font-size: 17px;
    line-height: 1.3em;
    letter-spacing: 0.02em;
    text-align: left;
  }
  .nf-biz-intel__br { display: none; }
  .nf-biz-intel__sp { display: inline; }
  .nf-biz-intel__media {
    flex-direction: column;
    gap: 24px;
  }
  .nf-biz-intel__stack {
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 266px;
  }
  /* 358px wide on a 390 screen, narrower on smaller phones: a fixed 358px overflowed the clipped stack below 390, which
     cut off the rounded left and right corners (Danny, 2026-10-28) */
  .nf-biz-intel__tile {
    width: 100%;
    max-width: 358px;
    height: 128px;
  }
  .nf-biz-intel__screen {
    flex: 0 0 auto;
    width: 100%;
  }
}

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

/* Phone: show the AirTest lower in its short 128px tile, its base level with the line under it on the wall, instead
   of the centred crop that left it high in the frame (Danny, 2026-11-03) */
@media (max-width: 809.98px) {
  .nf-biz-intel__tile--first .nf-biz-intel__img { object-position: 50% 30%; }
}
