/* ============================================================================
   BK Hero — "The Loom Speaks First"
   Asymmetric editorial split (desktop) / full-bleed portrait (mobile).
   Consumes the section's .color-{scheme} vars + brand tokens.
   ========================================================================== */

.bk-hero {
  position: relative;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  overflow: clip;
}

.bk-hero__inner {
  position: relative;
  min-height: 100svh;
}

/* ---- Media --------------------------------------------------------------- */
.bk-hero__media {
  position: relative;
  overflow: clip;
  background-color: var(--bk-bg-stone);
}
.bk-hero__poster,
.bk-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bk-hero__video {
  opacity: 0;
  transition: opacity 800ms var(--bk-ease);
}
.bk-hero__video.is-playing { opacity: 1; }

.bk-hero__poster--placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 70% 30%, var(--bk-olive-muted) 0%, var(--bk-olive-deep) 70%);
}
.bk-hero__placeholder-note {
  font-family: var(--bk-font-body);
  font-size: var(--bk-fs-eyebrow);
  letter-spacing: var(--bk-tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(241, 234, 217, 0.55);
}

.bk-hero__credit {
  position: absolute;
  left: var(--bk-space-6);
  bottom: var(--bk-space-6);
  margin: 0;
  color: rgba(241, 234, 217, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.bk-hero__mute {
  position: absolute;
  right: var(--bk-space-4);
  bottom: var(--bk-space-4);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(241, 234, 217, 0.5);
  border-radius: var(--bk-radius-pill);
  background: rgba(42, 42, 34, 0.35);
  color: var(--bk-on-olive);
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: opacity var(--bk-dur-fast) var(--bk-ease);
}
.bk-hero__mute[hidden] { display: none; }

/* ---- The brass warp thread ----------------------------------------------- */
.bk-hero__warp {
  position: absolute;
  top: 0;
  left: 41.6667%;          /* the 5/12 column boundary — word | cloth */
  width: 1px;
  height: 100%;
  background: var(--bk-brass);
  transform-origin: top center;
  z-index: 2;
  display: none;           /* desktop only */
}

/* ---- Text block ---------------------------------------------------------- */
.bk-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--bk-space-6);
}
.bk-hero__eyebrow { color: var(--bk-ink-soft); }
.bk-hero__heading { max-width: 15ch; }
.bk-hero__subhead { max-width: 42ch; }

.bk-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--bk-space-4);
  flex-wrap: wrap;
  margin-top: var(--bk-space-2);
}
.bk-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--bk-radius-pill);
  background: var(--bk-brass);
}

/* CTAs */
.bk-hero__cta {
  font-family: var(--bk-font-body);
  font-size: var(--bk-fs-body);
  font-weight: 500;
  letter-spacing: var(--bk-tracking-button);
  text-decoration: none;
  display: inline-block;
}
.bk-hero__cta--primary {
  padding: 1.125rem 2.25rem;             /* 18px 36px */
  background: var(--bk-olive);
  color: var(--bk-on-olive);             /* explicit — never rely on inherited button colour */
  border: 1px solid var(--bk-brass);
  border-radius: var(--bk-radius-soft);
  transition: background-color var(--bk-dur-fast) var(--bk-ease),
              letter-spacing var(--bk-dur-fast) var(--bk-ease);
}
.bk-hero__cta--primary:hover,
.bk-hero__cta--primary:focus-visible {
  background: var(--bk-olive-deep);
  letter-spacing: calc(var(--bk-tracking-button) + 0.5px);
}
.bk-hero__cta--ghost {
  color: var(--bk-ink);
  padding: 0.25rem 0;
  background-image: linear-gradient(var(--bk-brass), var(--bk-brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--bk-dur-fast) var(--bk-ease);
}
.bk-hero__cta--ghost:hover,
.bk-hero__cta--ghost:focus-visible { background-size: 100% 1px; }

.bk-hero__cta:focus-visible {
  outline: none;
  box-shadow: var(--bk-focus-ring);
  border-radius: var(--bk-radius-soft);
}

/* ---- Breathing scroll cue ------------------------------------------------ */
.bk-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--bk-space-6);
  width: 1px;
  height: 2.5rem;
  background: var(--bk-brass);
  transform: translateX(-50%);
  transform-origin: top center;
  z-index: 2;
  opacity: 0.7;
}
.bk-hero[data-scroll-cue] .bk-hero__scroll { animation: bk-hero-breathe 1.6s var(--bk-ease) infinite; }
.bk-hero.is-scrolled .bk-hero__scroll { opacity: 0; animation: none; }

@keyframes bk-hero-breathe {
  0%, 100% { transform: translateX(-50%) scaleY(0.4); opacity: 0.35; }
  50%      { transform: translateX(-50%) scaleY(1);   opacity: 0.8; }
}

/* ============================================================================
   DESKTOP — asymmetric split
   ========================================================================== */
@media screen and (min-width: 750px) {
  .bk-hero__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: stretch;
  }
  .bk-hero__media {
    grid-column: 6 / -1;
    grid-row: 1;
  }
  .bk-hero__warp { display: block; }
  .bk-hero__content {
    grid-column: 1 / 6;
    grid-row: 1;
    align-self: end;
    justify-content: flex-end;
    padding: 0 var(--bk-space-8) var(--bk-section-pad) max(var(--bk-space-16), 6vw);
  }
}

/* Large screens — a touch more breathing room on the left gutter */
@media screen and (min-width: 1200px) {
  .bk-hero__content { padding-left: max(var(--bk-space-24), 8vw); }
}

/* ============================================================================
   MOBILE — full-bleed portrait, content in the lower third
   ========================================================================== */
@media screen and (max-width: 749px) {
  .bk-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  /* olive-ink scrim so type stays legible without a card */
  .bk-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
      rgba(51, 51, 31, 0) 40%,
      rgba(51, 51, 31, 0.72) 100%);
    z-index: 1;
  }
  .bk-hero__content {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    justify-content: flex-end;
    padding: var(--bk-space-24) var(--bk-space-6) calc(var(--bk-space-12) + env(safe-area-inset-bottom));
    gap: var(--bk-space-4);
  }
  /* over the dark video, the type goes cream */
  .bk-hero__heading,
  .bk-hero__eyebrow { color: var(--bk-on-olive); }
  .bk-hero__subhead { color: rgba(241, 234, 217, 0.82); }
  .bk-hero__cta--ghost { color: var(--bk-on-olive); }
  .bk-hero__actions { flex-direction: column; align-items: stretch; gap: var(--bk-space-3); }
  .bk-hero__dot { display: none; }
  .bk-hero__cta--primary { text-align: center; }
  .bk-hero__credit { display: none; }
  .bk-hero__scroll { display: none; }
}

/* ============================================================================
   REVEAL — progressive enhancement (only with JS; only when ready)
   ========================================================================== */
.bk-reveal-ready .bk-hero__reveal { opacity: 0; transform: translateY(24px); }

.bk-hero.is-ready .bk-hero__reveal {
  animation: bk-hero-rise var(--bk-dur-slow) var(--bk-ease-reveal) both;
}
.bk-hero.is-ready .bk-hero__eyebrow { animation-delay: 0.05s; }
.bk-hero.is-ready .bk-hero__heading { animation-delay: 0.15s; }
.bk-hero.is-ready .bk-hero__subhead { animation-delay: 0.45s; }
.bk-hero.is-ready .bk-hero__actions { animation-delay: 0.60s; }

.bk-hero.is-ready .bk-hero__warp { animation: bk-hero-warp 700ms var(--bk-ease) both; }

@keyframes bk-hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bk-hero-warp {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ---- Reduced motion: show everything, no movement, no video --------------- */
@media (prefers-reduced-motion: reduce) {
  .bk-reveal-ready .bk-hero__reveal { opacity: 1; transform: none; }
  .bk-hero.is-ready .bk-hero__reveal,
  .bk-hero.is-ready .bk-hero__warp { animation: none; }
  .bk-hero__video { transition: none; }
  .bk-hero[data-scroll-cue] .bk-hero__scroll { animation: none; }
}
