/* ═══════════════════════════════════════════
   Leadership Grid — Team Cards + Modal
   ═══════════════════════════════════════════ */

/* ── Intro Text ── */
.lead-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 20px;
}
.lead-intro__txt {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}

/* ── Card Grid ── */
.lead-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Team Card ── */
.lead-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .04);
  transition: all .5s var(--ease);
  cursor: pointer;
}
.lead-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .06);
  border-color: transparent;
}

.lead-card__photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  background: var(--blue-pale);
}

.lead-card__body {
  padding: 28px 28px 32px;
}

.lead-card__name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.lead-card__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: .01em;
}

.lead-card__bio {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-card__more {
  font-weight: 600;
  font-size: 13px;
  color: var(--teal);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s var(--ease);
}
.lead-card:hover .lead-card__more {
  gap: 10px;
}


/* ═══════════════════════════════════════════
   Leadership Modal
   ═══════════════════════════════════════════ */

.lm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, .5);
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: all .35s var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lm-overlay.on {
  opacity: 1;
  visibility: visible;
}

.lm {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 9001;
  width: min(860px, 94vw);
  /* Compact height: shows ~name + 3 paragraphs, the rest scrolls. Keeps the
     framed portrait balanced instead of stretching down a tall panel. */
  height: min(560px, 90vh);
  max-height: 90vh;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: all .4s var(--ease);
  /* Flex (not grid) so the bio column can scroll independently while the
     photo fills its side — a grid row sizes to content and overflows. */
  display: flex;
}
/* Fade at the bottom of the scrollable bio to signal there's more below. */
.lm::after {
  content: '';
  position: absolute;
  left: 300px;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(transparent, var(--card));
  border-radius: 0 0 24px 0;
  pointer-events: none;
}
.lm.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.lm__x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background .2s;
}
.lm__x:hover {
  background: rgba(0, 0, 0, .1);
}

.lm__left {
  flex: 0 0 300px;
  overflow: hidden;
  /* Soft branded panel; the photo sits in a fixed rounded frame so every
     team member's headshot is the SAME size regardless of bio length. */
  background: linear-gradient(165deg, #eef1fa 0%, #dbe3f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 30px;
}
.lm__pic {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(12, 29, 77, .18);
}

.lm__right {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;          /* let it shrink so overflow-y can scroll */
  padding: 36px 40px 40px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/* Visible, on-brand scrollbar so it's obvious the bio scrolls */
.lm__right { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.22) transparent; }
.lm__right::-webkit-scrollbar { width: 9px; }
.lm__right::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.lm__right::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  border: 2px solid var(--card);
}
.lm__right::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }

.lm__name {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}

.lm__role {
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: .01em;
  margin-bottom: 24px;
}

.lm__bio {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
}
.lm__bio p { margin-bottom: 1em; }
.lm__bio p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════
   Responsive — Leadership
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .lead-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lead-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .lead-card__photo {
    height: 280px;
  }
  .lm {
    flex-direction: column;
    width: 95vw;
    max-height: 90vh;
  }
  .lm__left {
    flex: 0 0 240px;
    height: 240px;
  }
  .lm__right {
    padding: 24px 22px 30px 20px;
  }
  /* Full-width fade at the bottom (single column on mobile) */
  .lm::after { left: 0; border-radius: 0 0 24px 24px; }
}
