/* =====================================================================
   BC Speciality (v1) — Banyan Courtyard
   Figma: H-05 → H-06-1 → H-06-2 (2359 × 1066).
   Heading "OUR SPECIALITY?" Inter 400 36, tracking 56%; paragraph Inter
   400 20/22, 892 wide. H-05/06-1: heading baseline 496, paragraph 575/597.
   H-06-2: heading 279, paragraph 343/365; stats at x 560/882/1241/1604:
   value Inter 400 32 (baseline 619), label Inter 400 16 (baseline 673).
   Desktop sizes = Figma px × --bc-u. ≤1024px uses fixed px.

   Motion (when its container comes right after the BC Experience
   container in the hero → intro → gallery → experience chain), all
   following the scroll, both ways (usp.js writes --p):
   1. the Experience screen blurs out (blur + 20% black)
   2. the heading dissolves in, in white, centre letters first; the
      paragraph follows
   3. white blooms out from behind the heading; the text turns black
   4. heading and paragraph glide up to their place; the specialities
      arrive one by one out of blur, a hairline drawing above each, and
      the price counts up
   ===================================================================== */

/* The Elementor container around it: no padding, full width. */
.e-con:has(> .elementor-widget-bc-usp),
.e-con:has(> .e-con-inner > .elementor-widget-bc-usp) {
  padding: 0 !important;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
}
.e-con:has(> .e-con-inner > .elementor-widget-bc-usp) > .e-con-inner {
  max-width: none !important;
  padding: 0 !important;
}
.elementor-widget-bc-usp {
  width: 100%;
}

.bc-usp {
  --bc-u: calc(100vw / 2359);
  --bc-h: 100svh;
  --bc-uhold: 180svh;   /* stage mode: scroll length of the entrance + a short rest */
  --bc-ls: 0.56em;
  /* final state unless the stage drives them */
  --t: 1;               /* text colour: 0 white … 1 black */
  --m: 1;               /* glide: 0 centred (H-05) … 1 final place (H-06-2) */
  --ink: color-mix(in srgb, #000 calc(var(--t) * 100%), #fff);

  position: relative;
  display: block;
  width: 100%;
  height: var(--bc-h);
  min-height: 600px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overflow: clip;
  color: var(--ink);
}

.bc-usp .bc-usp__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow: clip;
}
.bc-usp .bc-usp__haze,
.bc-usp .bc-usp__paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bc-usp .bc-usp__haze {
  display: none;
}
.bc-usp .bc-usp__paper {
  background: #fff;
}

/* ---------- Heading + paragraph ---------- */
.bc-usp .bc-usp__intro {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 68.1 * var(--bc-u));   /* heading box top = Figma 464.9 (H-05) */
  padding: 0 24px;
  text-align: center;
  transform: translate3d(0, calc(var(--m) * -217 * var(--bc-u)), 0);
}
.bc-usp .bc-usp__title,
.bc-usp h2.bc-usp__title,
.bc-usp h3.bc-usp__title {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: max(calc(36 * var(--bc-u)), 18px);
  line-height: 1;
  letter-spacing: var(--bc-ls);
  text-transform: uppercase;
  text-align: center;
  font-variation-settings: "opsz" 14;
  font-kerning: none;
  color: var(--ink);
}
.bc-usp .bc-usp__name {
  display: block;
  word-spacing: var(--bc-ls);
}
.bc-usp .bc-usp__word {
  display: inline-block;
  white-space: nowrap;
}
.bc-usp .bc-usp__ch {
  display: inline-block;
  margin-right: calc(var(--k, 0) * 1em);
}
.bc-usp .bc-usp__word .bc-usp__ch:last-child {
  margin-right: calc(-1 * var(--bc-ls));
}

.bc-usp p.bc-usp__text,
.bc-usp .bc-usp__text {
  max-width: max(calc(892 * var(--bc-u)), 520px);
  margin: calc(55.8 * var(--bc-u)) auto 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: max(calc(20 * var(--bc-u)), 15px);
  line-height: 1.1;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14;
  text-align: center;
  color: var(--ink);
  transform: translate3d(0, calc(var(--m) * -15 * var(--bc-u)), 0);
}

/* ---------- Specialities ---------- */
.bc-usp ul.bc-usp__stats,
.bc-usp .bc-usp__stats {
  position: absolute;
  top: calc(50% + 58.4 * var(--bc-u));     /* value box top = Figma 591.4 */
  left: calc(50% - 619.5 * var(--bc-u));   /* first column at Figma x 560 */
  display: grid;
  grid-template-columns:
    calc(322 * var(--bc-u))
    calc(359 * var(--bc-u))
    calc(363 * var(--bc-u))
    max-content;
  grid-auto-columns: calc(340 * var(--bc-u));
  grid-auto-flow: column;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #000;
}
.bc-usp li.bc-usp__stat,
.bc-usp .bc-usp__stat {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bc-usp .bc-usp__stat::before {
  display: none;
}
/* added: a short hairline above each speciality */
.bc-usp .bc-usp__rule {
  position: absolute;
  left: 0;
  top: calc(-30 * var(--bc-u));
  width: max(calc(40 * var(--bc-u)), 24px);
  height: 1px;
  background: rgba(0, 0, 0, 0.28);
  transform-origin: 0 50%;
}
.bc-usp .bc-usp__value {
  display: block;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: max(calc(32 * var(--bc-u)), 20px);
  line-height: 1;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #000;
}
.bc-usp .bc-usp__label {
  display: block;
  margin-top: calc(35.8 * var(--bc-u));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: max(calc(16 * var(--bc-u)), 13px);
  line-height: 1;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  color: #000;
}


/* =====================================================================
   STAGE MODE — pure CSS layout. Chain: Hero → Intro → Gallery →
   Experience → this.
   - the Experience container stays where it is: sticky, bottom-aligned
     (-130svh = 100svh screen − 230svh tall: Experience's --bc-xhold)
   - this container is pulled up over it; its stage is pinned for
     --bc-uhold of scrolling; usp.js writes --p (0 → 1 over 1.6 screens)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) {
    position: sticky;
    top: -130svh;
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con {
    margin-top: -100svh;
    z-index: 1;
    pointer-events: none;
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .elementor-widget-bc-usp {
    pointer-events: none;
  }

  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp {
    --p: 0;
    /* 3a. text colour: white → black as the white blooms   p 0.52 → 0.60 */
    --t: clamp(0, calc((var(--p) - 0.52) / 0.08), 1);
    /* 4a. glide up                                          p 0.70 → 0.84 */
    --mq: clamp(0, calc((var(--p) - 0.7) / 0.14), 1);
    --m: calc(var(--mq) * var(--mq) * (3 - 2 * var(--mq)));
    height: calc(100svh + var(--bc-uhold));
    min-height: 0;
    overflow: visible;
    pointer-events: none;
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__stage {
    position: sticky;
    top: 0;
    height: 100svh;
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp.is-in .bc-usp__stage {
    pointer-events: auto;
  }

  /* 1. the Experience screen blurs out                     p 0.00 → 0.20 */
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__haze {
    --x: clamp(0, calc(var(--p) / 0.2), 1);
    display: block;
    opacity: var(--x);
    background: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(26px);
    backdrop-filter: blur(26px);
  }

  /* 2. heading dissolves in (white), centre letters first   p 0.16 → 0.46 */
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__ch {
    --lp: clamp(0, calc((var(--p) - 0.16 - var(--d) * 0.1) / 0.2), 1);
    --e: calc(1 - (1 - var(--lp)) * (1 - var(--lp)));
    opacity: var(--lp);
    filter: blur(calc((1 - var(--e)) * 0.45em));
    transform: translate3d(calc(var(--o) * 0.08em * (1 - var(--e))), 0, 0);
  }
  /*    paragraph follows                                    p 0.30 → 0.48 */
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__text {
    --tp: clamp(0, calc((var(--p) - 0.3) / 0.18), 1);
    --te: calc(1 - (1 - var(--tp)) * (1 - var(--tp)));
    opacity: var(--tp);
    filter: blur(calc((1 - var(--te)) * 10px));
    transform: translate3d(0, calc((1 - var(--te)) * 12 * var(--bc-u) - var(--m) * 15 * var(--bc-u)), 0);
  }

  /* 3b. white blooms out from behind the heading           p 0.52 → 0.70 */
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__paper {
    --wq: clamp(0, calc((var(--p) - 0.52) / 0.18), 1);
    --w: calc(var(--wq) * var(--wq) * (3 - 2 * var(--wq)));
    -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 calc(var(--w) * 150vmax - 32vmax), transparent calc(var(--w) * 150vmax));
    mask-image: radial-gradient(circle at 50% 46%, #000 calc(var(--w) * 150vmax - 32vmax), transparent calc(var(--w) * 150vmax));
  }

  /* 4b. the specialities, one by one                        p 0.72 + i·0.045 → +0.145 */
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__stat {
    --q: clamp(0, calc((var(--p) - 0.72 - var(--i) * 0.045) / 0.145), 1);
    --qe: calc(1 - (1 - var(--q)) * (1 - var(--q)));
    opacity: var(--q);
    filter: blur(calc((1 - var(--qe)) * 8px));
    transform: translate3d(0, calc((1 - var(--qe)) * 18 * var(--bc-u)), 0);
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__rule {
    transform: scaleX(var(--qe));
  }
}


/* =====================================================================
   ≤1024px — one column, centred; no glide (the text keeps its place)
   ===================================================================== */
@media (max-width: 1024px) {
  .bc-usp .bc-usp__stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px 96px;
    box-sizing: border-box;
  }
  .bc-usp .bc-usp__intro,
  .bc-usp ul.bc-usp__stats,
  .bc-usp .bc-usp__stats {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }
  .bc-usp .bc-usp__intro {
    padding: 0;
    transform: none;
  }
  .bc-usp .bc-usp__title,
  .bc-usp h2.bc-usp__title,
  .bc-usp h3.bc-usp__title {
    font-size: clamp(16px, calc((100vw - 96px) / 15.5), 26px);
  }
  .bc-usp p.bc-usp__text,
  .bc-usp .bc-usp__text {
    max-width: 560px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.45;
    transform: none;
  }
  .bc-usp ul.bc-usp__stats,
  .bc-usp .bc-usp__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 44px 24px;
    width: 100%;
    max-width: 560px;
    margin: 64px auto 0;
  }
  .bc-usp .bc-usp__rule {
    top: -16px;
  }
  .bc-usp .bc-usp__value {
    font-size: 24px;
  }
  .bc-usp .bc-usp__label {
    margin-top: 12px;
    font-size: 14px;
    white-space: normal;
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__text {
    transform: translate3d(0, calc((1 - var(--te)) * 10px), 0);
  }
  .e-con:has(> .elementor-widget-bc-hero, > .e-con-inner > .elementor-widget-bc-hero):has(+ .e-con .bc-intro[data-anim="1"]) + .e-con:has(+ .e-con .bc-gal[data-anim="1"]) + .e-con:has(+ .e-con .bc-xp[data-anim="1"]) + .e-con:has(+ .e-con .bc-usp[data-anim="1"]) + .e-con .bc-usp .bc-usp__stat {
    transform: translate3d(0, calc((1 - var(--qe)) * 12px), 0);
  }
}
@media (max-width: 600px) {
  .bc-usp .bc-usp__title,
  .bc-usp h2.bc-usp__title,
  .bc-usp h3.bc-usp__title {
    line-height: 1.8;
    text-wrap: balance;
  }
  .bc-usp p.bc-usp__text,
  .bc-usp .bc-usp__text {
    font-size: 15px;
  }
  .bc-usp ul.bc-usp__stats,
  .bc-usp .bc-usp__stats {
    margin-top: 48px;
    gap: 36px 16px;
  }
  .bc-usp .bc-usp__value {
    font-size: 22px;
  }
}