/* ==========================================================================
   Residential / Ownership: "You do not own it, so it does not become waste."
   Live: framer-2IAS0 component (85vqdr desktop, zuz3bt tablet, 5qef5v phone).
   Sizes, gaps and paddings copied from the Framer CSS.
   ========================================================================== */

/* Inter 500 (latin), same file the live site serves; used by the phone heading only */
@font-face { font-family: Inter; src: url("../../../assets/fonts/inter-500-latin.woff2") format("woff2"); font-display: swap; font-style: normal; font-weight: 500; unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Desktop (>= 1440px) ---------- */
.nf-res-ownership {
  /* framer-motion spring (duration 0.6, bounce 0.1) as a CSS linear() curve; fitted to live within 0.006 */
  --nf-res-ownership-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: row; justify-content: center; align-items: center; gap: 0;
  width: 100%; height: 657px; padding: 60px; overflow: clip;
  /* Danny (2026-10-23), not like live: live has no stacking context here, so the z-index 2 card passes over the
     z-index 2 desktop nav. isolate keeps the card's z-index inside the section, so the nav stays on top. */
  isolation: isolate;
}
.nf-res-ownership__media { position: absolute; inset: 0; }
.nf-res-ownership__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.nf-res-ownership__shade {
  position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; overflow: clip;
  background-color: rgba(0, 0, 0, 0.5);
}
.nf-res-ownership__card {
  position: relative; z-index: 2; flex: 1 0 0px; width: 1px; max-width: 1440px; height: min-content;
  display: flex; flex-flow: column; justify-content: center; align-content: flex-start; align-items: flex-start; gap: 56px;
  padding: 80px 64px; overflow: hidden; /* will-change computed auto on live */
  background-color: rgba(0, 0, 0, 0.5); border-radius: 18px;
}
.nf-res-ownership__text {
  position: relative; flex: 0 0 auto; width: 100%; height: min-content;
  display: flex; flex-flow: row; justify-content: center; align-items: flex-start; gap: 56px;
  padding: 0; overflow: clip;
}
.nf-res-ownership__reveal { position: relative; flex: 1 0 0px; width: 1px; max-width: 100%; height: auto; }
.nf-res-ownership__title, .nf-res-ownership__copy {
  text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; font-style: normal;
}
.nf-res-ownership__title {
  /* Same font and weight as the other section titles ("A Healthy Home, Intelligently Maintained"), was Medium 500
     (Nathan, 2026-11-19). Size and spacing unchanged. */
  font-family: var(--nf-font-sfns-text);
  font-weight: 400; font-size: 60px; line-height: 66px; letter-spacing: -1.2px; color: rgb(255, 255, 255);
}
.nf-res-ownership__copy {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  font-weight: 400; font-size: 28px; line-height: 40px; letter-spacing: normal; color: rgb(245, 245, 245);
}

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

/* ---------- Tablet (810px to 1439.98px) ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-ownership__card { max-width: 810px; }
  .nf-res-ownership__text { flex-direction: column; gap: 32px; }
  .nf-res-ownership__reveal { flex: 0 0 auto; width: 100%; }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-res-ownership { align-content: flex-start; align-items: flex-start; height: min-content; padding: 56px 16px; }
  .nf-res-ownership__media img { object-position: 50% 0%; }
  .nf-res-ownership__card { max-width: none; padding: 32px; }
  .nf-res-ownership__text { flex-direction: column; gap: 24px; overflow: visible; }
  .nf-res-ownership__title-wrap { flex: 0 0 auto; width: auto; }
  .nf-res-ownership__copy-wrap { flex: 0 0 auto; width: 100%; }
  .nf-res-ownership__title { font-size: 28px; line-height: 30px; letter-spacing: normal; }
  .nf-res-ownership__copy { font-size: 16px; line-height: 20px; }
}
