/* Music Coast — Full Build v14 hotfix (20260114v14)
   Goal: MOBILE hero b-roll should look like desktop:
   - Background fills the ENTIRE hero (including behind the title)
   - B-roll is clearly visible (not crushed to black) while still keeping text readable
   - No YouTube hover UI

   This stylesheet must load AFTER /assets/css/styles.css
*/

/* ---------------- About cards (unchanged) ---------------- */
#about .grid.about-split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(18px, 3vw, 34px);
}

#about .grid.about-split > article{
  min-width: 0;
  margin: 0;
  position: relative;
}

#about .grid.about-split > article:first-child{
  justify-self: end;
  width: min(560px, 100%);
}

#about .grid.about-split > article:last-child{
  justify-self: start;
  width: min(560px, 100%);
}

@media (max-width: 900px){
  #about .grid.about-split{ grid-template-columns: 1fr; }
  #about .grid.about-split > article:first-child,
  #about .grid.about-split > article:last-child{
    justify-self: stretch;
    width: 100%;
  }
}


/* Space between About cards and Leadership block (prevents overlap/shadow collision) */
#about .grid.about-split{
  margin-bottom: clamp(28px, 5vw, 84px);
}

#about .card.leadership-card{
  margin-top: clamp(28px, 5vw, 84px);
  margin-bottom: clamp(28px, 5vw, 84px);
}

/* Extra buffer so hover lift never collides */
#about .grid:not(.about-split){
  margin-top: 0;
}


/* LinkedIn icon button in leader cards */
.leader-top .leader-linkedin{
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-strong);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.leader-top .leader-linkedin:hover{
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.leader-top .leader-linkedin svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* ---------------- HERO: force true full-bleed cover ---------------- */
.hero{
  position: relative !important;
  overflow: hidden !important;
}

.hero .hero-video-bg{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  display: block !important;
  opacity: 1 !important;
  z-index: 0 !important;
  background: radial-gradient(80% 90% at 30% 20%, rgba(212,175,55,0.18) 0%, rgba(0,0,0,0.86) 70%),
              linear-gradient(180deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.90) 100%) !important; /* fallback when video is blocked */
}

/* Keep hero content above background */
.hero > *:not(.hero-video-bg){ position: relative; z-index: 2; }

/* Ensure fade layer never clips (some mobile CSS can) */
.hero .hero-video-bg .hero-video-fade{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* Default (desktop/tablet): centered cover */
.hero .hero-video-bg iframe,
.hero .hero-video-bg video{
  pointer-events: none !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 120vw !important;
  height: 67.5vw !important;         /* 120 * 9/16 */
  min-width: 100% !important;
  min-height: 100% !important;

  transform: translate(-50%, -50%) scale(1.14) !important;
  filter: blur(2px) !important;
  opacity: 0.60 !important;          /* a touch brighter than v7 */
}

/* Mobile: anchor and fill 100% of hero height, then scale for edge coverage */
@media (max-width: 900px){
  .hero{ min-height: 100vh !important; }
  .hero .hero-video-bg{ height: 100% !important; }

  /* IMPORTANT: keep the iframe itself in a 16:9 ratio so YouTube doesn't add black bars on tall mobile heroes */
  @supports (aspect-ratio: 16 / 9) {
    .hero .hero-video-bg iframe,
    .hero .hero-video-bg video{
      top: 50% !important;
      left: 50% !important;

      width: auto !important;
      height: 100% !important;
      aspect-ratio: 16 / 9;

      min-width: 100% !important;
      min-height: 100% !important;
      max-width: none !important;
      max-height: none !important;

      transform: translate(-50%, -50%) scale(1.04) !important;
      transform-origin: center !important;

      filter: blur(1.5px) !important;
      opacity: 0.72 !important;
    }
  }

  /* Fallback for very old browsers */
  @supports not (aspect-ratio: 16 / 9) {
    .hero .hero-video-bg iframe,
    .hero .hero-video-bg video{
      top: 50% !important;
      left: 50% !important;

      width: 100vw !important;
      height: 56.25vw !important;          /* 16:9 */
      min-width: 177.78vh !important;      /* 16:9 */
      min-height: 100% !important;

      transform: translate(-50%, -50%) scale(1.04) !important;
      transform-origin: center !important;

      filter: blur(1.5px) !important;
      opacity: 0.72 !important;
    }
  }
}


/* If embedded media is blocked (GDPR/cookies), the iframe src stays empty — hide it so the fallback background shows */
#hero-bg-iframe:not([src]),
#hero-bg-iframe[src=""]{
  display: none !important;
}
/* Wash: keep readability, but DO NOT crush the top to black on mobile */
.hero .hero-video-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(60% 70% at 30% 35%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.70) 55%, rgba(0,0,0,0.86) 100%);
}

@media (max-width: 900px){
  .hero .hero-video-bg::after{
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.50) 55%,
      rgba(0,0,0,0.74) 100%);
  }
}

/* ---------------- Leadership avatars (unchanged) ---------------- */
.leader-avatar img{
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
}
