/* =====================================================================
   BC Hero (v1.1) — Banyan Courtyard
   Figma: section H-01, frame 2359 × 1066.
   Desktop sizes = Figma px × --bc-u. ≤1024px uses fixed px.
   ===================================================================== */

/* The Elementor container around the hero: no padding, full width. */
.e-con:has(> .elementor-widget-bc-hero),
.e-con:has(> .e-con-inner > .elementor-widget-bc-hero) {
  padding: 0 !important;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
}
.e-con:has(> .e-con-inner > .elementor-widget-bc-hero) > .e-con-inner {
  max-width: none !important;
  padding: 0 !important;
}
.elementor-widget-bc-hero {
  width: 100%;
}

.bc-hero {
  --bc-u: calc(100vw / 2359);
  --bc-h: 100svh;
  --bc-fx: 50%;
  --bc-fy: 50%;
  --bc-shade: 0.5;
  --bc-ink: #fff;
  --bc-cue: #fff;
  --bc-line: rgba(255, 255, 255, 0.3);
  --bc-ls: 0.56em;                         /* heading tracking (Figma 56%) */
  --bc-inset: calc(50 * var(--bc-u));      /* side margin for the heading */
  --bc-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  display: block;
  width: 100%;
  height: var(--bc-h);
  min-height: 480px;
  overflow: hidden;
  overflow: clip;
  margin: 0;
  padding: 0;
  background: #0d0b09;
  color: var(--bc-ink);
  isolation: isolate;
}

/* ---------- Image layers ---------- */
.bc-hero .bc-hero__media,
.bc-hero .bc-hero__scroll,
.bc-hero .bc-hero__intro,
.bc-hero .bc-hero__drift,
.bc-hero .bc-hero__shade,
.bc-hero .bc-hero__dusk,
.bc-hero .bc-hero__veil {
  position: absolute;
  inset: 0;
}
.bc-hero .bc-hero__media {
  overflow: hidden;
  z-index: 0;
}
.bc-hero img.bc-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: var(--bc-fx) var(--bc-fy);
}
.bc-hero .bc-hero__shade {
  background: #000;
  opacity: var(--bc-shade);
}
.bc-hero .bc-hero__dusk {
  background: #000;
  opacity: 0;
}
.bc-hero .bc-hero__veil {
  background: #0d0b09;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Heading ---------- */
.bc-hero .bc-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--bc-inset) + 24px);
  pointer-events: none;
}
.bc-hero .bc-hero__title,
.bc-hero h1.bc-hero__title,
.bc-hero h2.bc-hero__title {
  margin: 0;
  padding: 0;
  font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: max(calc(48 * var(--bc-u)), 26px);
  line-height: 1;
  letter-spacing: var(--bc-ls);
  text-transform: uppercase;
  text-align: center;
  color: var(--bc-ink);
  font-kerning: none;
}
.bc-hero .bc-hero__name {
  display: block;
  word-spacing: var(--bc-ls);
}
.bc-hero .bc-hero__word {
  display: inline-block;
  white-space: nowrap;
}
.bc-hero .bc-hero__ch {
  display: inline-block;
  margin-right: calc(var(--k, 0) * 1em);
}
/* No trailing tracking after a word — keeps the name truly centred. */
.bc-hero .bc-hero__word .bc-hero__ch:last-child {
  margin-right: calc(-1 * var(--bc-ls));
}

/* ---------- Scroll cue ---------- */
.bc-hero .bc-hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(43 * var(--bc-u));
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.bc-hero a.bc-hero__cue,
.bc-hero a.bc-hero__cue:hover,
.bc-hero a.bc-hero__cue:focus,
.bc-hero a.bc-hero__cue:active,
.bc-hero a.bc-hero__cue:visited {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--bc-cue);
  text-decoration: none;
  background: none;
  border: 0;
  box-shadow: none;
  outline: none;
  pointer-events: auto;
  cursor: pointer;
}
.bc-hero a.bc-hero__cue:focus-visible {
  outline: 1px solid var(--bc-line);
  outline-offset: 10px;
}
.bc-hero .bc-hero__cue-text {
  display: block;
  margin-bottom: calc(76.28 * var(--bc-u));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: max(calc(20 * var(--bc-u)), 14px);
  line-height: 1;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14;
  color: var(--bc-cue);
  white-space: nowrap;
}
.bc-hero .bc-hero__cue-icon {
  display: block;
  width: max(calc(29 * var(--bc-u)), 22px);
  aspect-ratio: 29 / 14;
  transition: translate 0.5s var(--bc-ease);
}
.bc-hero .bc-hero__cue-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bc-hero a.bc-hero__cue:hover .bc-hero__cue-icon {
  translate: 0 calc(5 * var(--bc-u));
}


/* =====================================================================
   MOTION — only when the widget's effects are on and the visitor
   hasn't asked for reduced motion. Editor = static (data-anim="0").
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Room for the mouse depth (the photo moves up to 14u). */
  .bc-hero[data-anim="1"] .bc-hero__drift {
    transform: scale(1.03);
  }

  /* ---- Starting state (before hero.js adds .is-in) ---- */
  .bc-hero[data-anim="1"] .bc-hero__veil {
    opacity: 1;
  }
  .bc-hero[data-anim="1"] .bc-hero__intro {
    transform: scale(1.12);
  }
  .bc-hero[data-anim="1"] .bc-hero__ch {
    opacity: 0;
    filter: blur(0.2em);
    transform: translate3d(calc(var(--o) * -0.14em), 0.22em, 0);
  }
  .bc-hero[data-anim="1"] .bc-hero__cue-text {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, calc(12 * var(--bc-u)), 0);
  }
  .bc-hero[data-anim="1"] .bc-hero__cue-icon svg {
    opacity: 0;
    transform: translate3d(0, calc(-10 * var(--bc-u)), 0);
  }

  /* ---- Entrance: the room lights up, the name opens out from its
         centre, then the way in appears ---- */
  .bc-hero[data-anim="1"].is-in .bc-hero__veil {
    opacity: 0;
    transition: opacity 2.4s cubic-bezier(0.45, 0, 0.25, 1);
  }
  .bc-hero[data-anim="1"].is-in .bc-hero__intro {
    transform: scale(1);
    transition: transform 3.4s var(--bc-ease);
  }
  .bc-hero[data-anim="1"].is-in .bc-hero__ch {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition:
      opacity 1.2s ease,
      filter 1.3s ease,
      transform 1.7s var(--bc-ease);
    transition-delay: calc(0.75s + var(--d) * 45ms);
  }
  .bc-hero[data-anim="1"].is-in .bc-hero__cue-text {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition:
      opacity 1s ease 1.9s,
      filter 1s ease 1.9s,
      transform 1.2s var(--bc-ease) 1.9s;
  }
  .bc-hero[data-anim="1"].is-in .bc-hero__cue-icon svg {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.9s ease 2.2s,
      transform 1.1s var(--bc-ease) 2.2s;
    animation: bc-hero-bob 2.8s ease-in-out 3.4s infinite;
  }

  /* ---- Safety net: if hero.js never runs, show everything after 3.5s ---- */
  .bc-hero[data-anim="1"]:not(.is-in) .bc-hero__veil {
    animation: bc-hero-safe-out 0.8s ease 3.5s forwards;
  }
  .bc-hero[data-anim="1"]:not(.is-in) .bc-hero__intro,
  .bc-hero[data-anim="1"]:not(.is-in) .bc-hero__ch,
  .bc-hero[data-anim="1"]:not(.is-in) .bc-hero__cue-text,
  .bc-hero[data-anim="1"]:not(.is-in) .bc-hero__cue-icon svg {
    animation: bc-hero-safe-in 0.8s ease 3.5s forwards;
  }

  /* ---- Idle: the photograph breathes very slowly ---- */
  .bc-hero[data-anim="1"] img.bc-hero__img {
    animation: bc-hero-breathe 26s ease-in-out 3s infinite alternate;
  }

  /* ---- Leaving: the photo sinks slower than the page, the room dims,
         the name lifts away. Driven by the scroll itself where the
         browser supports it (hero.js does the same for the rest). ---- */
  @supports (animation-timeline: view()) {
    .bc-hero[data-anim="1"] {
      view-timeline: --bc-hero block;
    }
    .bc-hero[data-anim="1"] .bc-hero__scroll {
      animation: bc-hero-sink linear both;
      animation-timeline: --bc-hero;
      animation-range: exit 0% exit 100%;
    }
    .bc-hero[data-anim="1"] .bc-hero__dusk {
      animation: bc-hero-dim linear both;
      animation-timeline: --bc-hero;
      animation-range: exit 0% exit 100%;
    }
    .bc-hero[data-anim="1"] .bc-hero__content {
      animation: bc-hero-lift linear both;
      animation-timeline: --bc-hero;
      animation-range: exit 0% exit 65%;
    }
    .bc-hero[data-anim="1"] .bc-hero__foot {
      animation: bc-hero-fade linear both;
      animation-timeline: --bc-hero;
      animation-range: exit 0% exit 18%;
    }
  }
}

@keyframes bc-hero-bob {
  0%, 100% { translate: 0 0; opacity: 1; }
  50%      { translate: 0 calc(7 * var(--bc-u, 1px)); opacity: 0.55; }
}
@keyframes bc-hero-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}
@keyframes bc-hero-safe-out {
  to { opacity: 0; }
}
@keyframes bc-hero-safe-in {
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes bc-hero-sink {
  to { transform: translate3d(0, 32%, 0); }
}
@keyframes bc-hero-dim {
  to { opacity: 0.6; }
}
@keyframes bc-hero-lift {
  to { transform: translate3d(0, -10%, 0); opacity: 0; filter: blur(6px); }
}
@keyframes bc-hero-fade {
  to { opacity: 0; }
}


/* =====================================================================
   TABLETS (601–1024px)
   ===================================================================== */
@media (max-width: 1024px) {
  .bc-hero {
    --bc-inset: 24px;
  }
  .bc-hero .bc-hero__title,
  .bc-hero h1.bc-hero__title,
  .bc-hero h2.bc-hero__title {
    font-size: clamp(22px, calc((100vw - 128px) / 24.84), 30px);
  }
  .bc-hero .bc-hero__foot {
    bottom: 34px;
  }
  .bc-hero .bc-hero__cue-text {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .bc-hero .bc-hero__cue-icon {
    width: 22px;
    height: 11px;
  }
  .bc-hero a.bc-hero__cue:hover .bc-hero__cue-icon {
    translate: none;
  }
  @keyframes bc-hero-bob {
    0%, 100% { translate: 0 0; opacity: 1; }
    50%      { translate: 0 5px; opacity: 0.55; }
  }
}

/* =====================================================================
   PHONES (≤600px) — one word per line
   ===================================================================== */
@media (max-width: 600px) {
  .bc-hero {
    --bc-inset: 14px;
  }
  .bc-hero .bc-hero__content {
    padding: 0 32px;
  }
  .bc-hero .bc-hero__title,
  .bc-hero h1.bc-hero__title,
  .bc-hero h2.bc-hero__title {
    font-size: clamp(20px, calc((100vw - 110px) / 10), 30px);
    line-height: 1.75;
  }
  .bc-hero .bc-hero__word {
    display: block;
  }
  .bc-hero .bc-hero__foot {
    bottom: 26px;
  }
  .bc-hero .bc-hero__cue-text {
    font-size: 13px;
    margin-bottom: 24px;
  }
}