/* ==========================================================================
   Residential / AI: "AI-Driven. AI-Powered."
   Live: framer-19mbh26 (desktop), framer-14q92j5 (tablet), framer-WAPbk component (phone).
   Sizes, gaps and paddings copied from the Framer CSS.
   ========================================================================== */

/* ---------- Desktop (>= 1440px) ---------- */
.nf-res-ai {
  /* framer-motion spring (duration 0.6, bounce 0.1) as a CSS linear() curve; fitted to live within 0.006 */
  --nf-res-ai-spring: linear(0, 0.0337, 0.1142, 0.2176, 0.3285, 0.4369, 0.5372, 0.6262, 0.703, 0.7677, 0.821, 0.8642, 0.8986, 0.9256, 0.9465, 0.9623, 0.9742, 0.983, 0.9893, 0.9938, 0.9968, 0.9989, 1.0002, 1.0009, 1.0013, 1.0015, 1.0015, 1.0014, 1.0013, 1.0011, 1);

  position: relative; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 40px;
  width: 100%; height: 987px; padding: 80px 60px; overflow: hidden;
  background-color: rgb(15, 15, 15);
}
/* phone wraps everything in the Framer component root (it carries the background there) */
.nf-res-ai__inner { display: contents; }
.nf-res-ai__head {
  position: relative; flex: 0 0 auto; width: 100%; height: min-content;
  display: flex; flex-flow: column; justify-content: center; align-content: flex-start; align-items: flex-start; gap: 40px;
  padding: 0; overflow: hidden;
}
.nf-res-ai__head-inner {
  position: relative; flex: 0 0 auto; width: 100%; height: min-content;
  display: flex; flex-flow: column; justify-content: center; align-content: flex-start; align-items: flex-start; gap: 10px;
  padding: 0; overflow: hidden;
}
.nf-res-ai__reveal { position: relative; flex: 0 0 auto; width: 876px; max-width: 100%; height: auto; }
.nf-res-ai__title, .nf-res-ai__copy {
  font-family: var(--nf-font-sfns-text); font-weight: 400; font-style: normal; letter-spacing: normal;
  text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-ai__title { font-size: 48px; line-height: 67.2px; color: rgb(145, 200, 81); }
.nf-res-ai__copy { font-size: 36px; line-height: 43.2px; color: rgb(255, 255, 255); }

.nf-res-ai__visual {
  position: relative; z-index: 1; flex: 0 0 auto; width: 100%; height: 551px;
  border-radius: 18px; overflow: visible;
}
.nf-res-ai__frame { position: absolute; inset: 0; border-radius: inherit; }
.nf-res-ai__visual img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%; border-radius: inherit;
}

/* Scroll reveal (Framer appear, threshold 0.5, replays): JS adds .is-js, then .is-in per block */
.nf-res-ai.is-js [data-res-ai-reveal] { opacity: 0; transition: opacity 0.6s var(--nf-res-ai-spring); }
.nf-res-ai.is-js [data-res-ai-reveal].is-in { opacity: 1; }

/* ---------- Tablet (810px to 1439.98px) ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-ai { height: min-content; padding: 60px 40px; }
  .nf-res-ai__title { font-size: 38px; line-height: 53.2px; }
  .nf-res-ai__copy { font-size: 38px; line-height: 45.6px; }
  /* Framer sizes the frame from the image ratio (3463 x 1491) */
  .nf-res-ai__visual { height: auto; aspect-ratio: 2.3226 / 1; border-radius: 0; }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-res-ai { height: min-content; padding: 0; gap: 0; background-color: transparent; }
  .nf-res-ai__inner {
    position: relative; display: flex; flex-flow: column; justify-content: center; align-items: flex-start; gap: 0;
    width: 100%; height: min-content; padding: 0; overflow: hidden; background-color: rgb(15, 15, 15);
  }
  .nf-res-ai__head { padding: 32px 16px; }
  .nf-res-ai__reveal { width: 100%; }
  .nf-res-ai__title { font-size: 24px; line-height: 33.6px; }
  .nf-res-ai__copy { font-size: 24px; line-height: 28.8px; }
  .nf-res-ai__visual { height: 300px; border-radius: 0; }
}
