/* ==========================================================================
   Foundation 50-sensor: "Plant a Sensor by Nafas Foundation"
   Live: desktop + tablet frame framer-l58ash > framer-4tm8vl (inner framer-1ahuw6q), phone frame framer-1p879he.
   Breakpoints (foundation page): desktop >= 1200, tablet 810 to 1199.98, phone <= 809.98.
   ========================================================================== */

/* ---------- shared (all widths) ---------- */
.nf-fd-sensor { padding: 0 12px 12px; }
.nf-fd-sensor__frame {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  width: 100%; padding: 140px; border-radius: 12px; overflow: clip;
}
.nf-fd-sensor__bg { position: absolute; inset: 0; border-radius: 12px; }
.nf-fd-sensor__bg-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; object-position: 0% 0%; }
.nf-fd-sensor__inner { position: relative; overflow: clip; }
.nf-fd-sensor p, .nf-fd-sensor h2, .nf-fd-sensor h3 { margin: 0; font-family: var(--nf-font-regular); font-weight: 400; letter-spacing: normal; }
.nf-fd-sensor__title-text, .nf-fd-sensor__desc-text, .nf-fd-sensor__card-title-text, .nf-fd-sensor__card-desc-text,
.nf-fd-sensor__sponsors-text, .nf-fd-sensor__cta-note-text { text-align: left; }

.nf-fd-sensor__title, .nf-fd-sensor__desc, .nf-fd-sensor__card-title, .nf-fd-sensor__card-desc,
.nf-fd-sensor__sponsors, .nf-fd-sensor__cta-note { display: flex; flex-direction: column; justify-content: flex-start; flex: 0 0 auto; position: relative; width: 100%; }
.nf-fd-sensor__title-text { font-size: 42px; line-height: 50.4px; color: var(--nf-white); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-sensor__desc-text { font-size: 24px; line-height: 28.8px; color: var(--nf-white); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }

/* benefit cards (Framer component: white, 250 tall, title top / text bottom; hover turns green) */
.nf-fd-sensor__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; overflow: clip; }
.nf-fd-sensor__card {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  height: 250px; padding: 24px; border-radius: 12px; overflow: clip; cursor: pointer;
  background-color: var(--nf-white);
  transition: background-color 0.19s cubic-bezier(0.2, 0, 0.4, 1), opacity 0.39s cubic-bezier(0.3, 0.4, 0.3, 1);
}
.nf-fd-sensor__card-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; flex: 0 0 auto; width: 100%; overflow: clip; }
.nf-fd-sensor__card-title-text { font-size: 20px; line-height: 24px; color: var(--nf-black); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-sensor__card-desc-text { font-size: 14px; line-height: 16.8px; color: var(--nf-black); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
@media (hover: hover) {
  .nf-fd-sensor__card:hover { background-color: var(--nf-green); }
}

/* sponsors, ticker, call to action */
.nf-fd-sensor__bottom { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; overflow: clip; }
.nf-fd-sensor__sponsors-text, .nf-fd-sensor__cta-note-text { font-size: 24px; line-height: 28.8px; color: var(--nf-black); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-sensor__ticker { position: relative; flex: 0 0 auto; width: 100%; height: 168px; }
.nf-fd-sensor__clip {
  display: flex; place-items: center; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
}
.nf-fd-sensor__track {
  position: relative; display: flex; flex-direction: row; place-items: center; gap: 10px;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; list-style: none; will-change: transform;
}
.nf-fd-sensor__item { flex: 0 0 auto; }
.nf-fd-sensor__set { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 60px; width: min-content; padding: 40px 0; overflow: clip; }
.nf-fd-sensor__logo { position: relative; flex: 0 0 auto; }
.nf-fd-sensor__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.nf-fd-sensor__logo--dbs-foundation { width: 196px; aspect-ratio: 6.01316 / 1; }
.nf-fd-sensor__logo--mandiri { width: 139px; aspect-ratio: 3.43548 / 1; }
.nf-fd-sensor__logo--narasi { width: 150px; aspect-ratio: 3.41333 / 1; }
.nf-fd-sensor__logo--bibit { width: 140px; aspect-ratio: 4.66225 / 1; }
.nf-fd-sensor__logo--ycab { width: 93px; aspect-ratio: 1.12292 / 1; }
.nf-fd-sensor__logo--bsj { width: 126px; aspect-ratio: 3.73861 / 1; }
.nf-fd-sensor__logo--gjs { width: 167px; aspect-ratio: 2.11419 / 1; }
.nf-fd-sensor__logo--tkr { width: 265px; aspect-ratio: 4.80206 / 1; }
.nf-fd-sensor__logo--desa-laguna { width: 98px; aspect-ratio: 1 / 1; }
.nf-fd-sensor__logo--jlb { width: 103px; aspect-ratio: 2.22 / 1; }
.nf-fd-sensor__logo--gandha-mewangi { width: 90px; aspect-ratio: 1 / 1; }
.nf-fd-sensor__logo--uin-syarif-hidayatullah { width: 91px; aspect-ratio: 1 / 1; }
.nf-fd-sensor__logo--uin-sunan-kalijaga { width: 86px; aspect-ratio: 0.803293 / 1; }
.nf-fd-sensor__logo--purpose-climate-lab { width: 181px; aspect-ratio: 4.87293 / 1; }
.nf-fd-sensor__logo--gbk { width: 102px; aspect-ratio: 2.90698 / 1; }
.nf-fd-sensor__logo--madgrass { width: 124px; aspect-ratio: 1.84817 / 1; }
.nf-fd-sensor__logo--bengkel { width: 243px; aspect-ratio: 5.70342 / 1; }
.nf-fd-sensor__logo-end { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; flex: 0 0 auto; width: min-content; padding: 0 60px 0 0; overflow: clip; }

.nf-fd-sensor__cta-block { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; flex: 0 0 auto; width: 100%; overflow: clip; }
.nf-fd-sensor__cta {
  display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0;
  width: 240px; height: 54px; padding: 16px 24px; border-radius: 32px; cursor: pointer;
  background-color: var(--nf-green); opacity: 1;
  transition: background-color 0.2s cubic-bezier(0.44, 0, 0.56, 1), opacity 0.2s cubic-bezier(0.44, 0, 0.56, 1);
}
.nf-fd-sensor__cta-text { flex: 0 0 auto; font-size: 21px; line-height: 25.2px; white-space: pre; color: var(--nf-black); user-select: none; }
.nf-fd-sensor__cta-link { color: var(--nf-black); text-decoration: none; }
.nf-fd-sensor__cta-link:focus-visible { outline: 2px solid var(--nf-black); outline-offset: 4px; }
@media (hover: hover) {
  .nf-fd-sensor__cta:hover { background-color: var(--nf-black); opacity: 0.8; }
  .nf-fd-sensor__cta:hover .nf-fd-sensor__cta-link { color: var(--nf-green); }
}

/* scroll reveal (live: opacity 0 -> 1 in 0.39s once half of the element is in view). Value "" = every width,
   "desktop" = >= 1200 only (second card row), "wide" = >= 810 (call-to-action block), "phone" = <= 809.98 */
.nf-fd-sensor [data-fd-reveal] { transition: opacity 0.39s cubic-bezier(0.3, 0.4, 0.3, 1); }
.nf-fd-sensor .nf-fd-sensor__card[data-fd-reveal] { transition: background-color 0.19s cubic-bezier(0.2, 0, 0.4, 1), opacity 0.39s cubic-bezier(0.3, 0.4, 0.3, 1); }
.nf-fd-sensor [data-fd-reveal=""]:not(.is-in) { opacity: 0; }
@media (min-width: 1200px) { .nf-fd-sensor [data-fd-reveal="desktop"]:not(.is-in) { opacity: 0; } }
@media (min-width: 810px) { .nf-fd-sensor [data-fd-reveal="wide"]:not(.is-in) { opacity: 0; } }
@media (max-width: 809.98px) { .nf-fd-sensor [data-fd-reveal="phone"]:not(.is-in) { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nf-fd-sensor [data-fd-reveal] { opacity: 1 !important; transition: none; } }

/* ---------- desktop (>= 1200): fixed 936 x 1096 box, children absolutely placed (Framer) ---------- */
@media (min-width: 1200px) {
  .nf-fd-sensor__inner { width: 936px; height: 1096px; flex: 0 0 auto; }
  .nf-fd-sensor__title, .nf-fd-sensor__desc, .nf-fd-sensor__cards, .nf-fd-sensor__bottom {
    position: absolute; left: 50%; width: 936px; transform: translateX(-50%);
  }
  .nf-fd-sensor__title { top: 0; }
  .nf-fd-sensor__desc { top: 91px; }
  .nf-fd-sensor__cards { top: 217px; }
  .nf-fd-sensor__bottom { bottom: 1px; }
  /* rows: Expand, Data, Visibility / Community, Impact, Research (DOM order) */
}

/* ---------- tablet (810 to 1199.98): one flex column, two cards per row ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nf-fd-sensor__inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; width: 100%; }
  .nf-fd-sensor__cards, .nf-fd-sensor__bottom { width: 100%; }
  .nf-fd-sensor__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* rows: Expand, Data / Community, Visibility / Impact, Research */
  .nf-fd-sensor__card--expand { order: 1; }
  .nf-fd-sensor__card--data { order: 2; }
  .nf-fd-sensor__card--community { order: 3; }
  .nf-fd-sensor__card--visibility { order: 4; }
  .nf-fd-sensor__card--impact { order: 5; }
  .nf-fd-sensor__card--research { order: 6; }
}

/* ---------- phone (<= 809.98): different Framer tree ---------- */
@media (max-width: 809.98px) {
  .nf-fd-sensor__frame { justify-content: flex-start; align-items: flex-start; padding: 80px 20px; }
  .nf-fd-sensor__bg-img { object-position: 50% 50%; }
  .nf-fd-sensor__inner { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; width: 100%; overflow: visible; }
  .nf-fd-sensor__cards, .nf-fd-sensor__bottom { width: 100%; }
  .nf-fd-sensor__title-text { font-size: 24px; line-height: 28.8px; }
  .nf-fd-sensor__desc-text { font-size: 18px; line-height: 21.6px; }
  .nf-fd-sensor__sponsors-text, .nf-fd-sensor__cta-note-text { font-size: 18px; line-height: 21.6px; }

  /* one column: Expand, Data, Impact, Research, Community, Visibility */
  .nf-fd-sensor__cards { grid-template-columns: minmax(0, 1fr); }
  .nf-fd-sensor__card { height: 181px; }
  .nf-fd-sensor__card--expand { order: 1; height: auto; justify-content: center; gap: 40px; cursor: auto; }
  .nf-fd-sensor__card--data { order: 2; }
  .nf-fd-sensor__card--impact { order: 3; height: 180px; }
  .nf-fd-sensor__card--research { order: 4; }
  .nf-fd-sensor__card--community { order: 5; height: 180px; }
  .nf-fd-sensor__card--visibility { order: 6; }

  .nf-fd-sensor__cta { width: 100%; }
  .nf-fd-sensor__cta-text { font-size: 16px; line-height: 19.2px; }
}
@media (max-width: 809.98px) and (hover: hover) {
  /* the phone "Expand" card is plain markup on live (not the card component): no hover */
  .nf-fd-sensor__card--expand:hover { background-color: var(--nf-white); }
}
