/* =========================================================
   BCT Ventures — Team Page Styles
   Flat, typographic, Parallel Loop inspired
   ========================================================= */

/* === TEAM HERO === */
.team-hero {
  background: var(--navy-900);
  padding: 140px 0 72px;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75,172,198,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,172,198,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.team-hero-content { position: relative; z-index: 1; max-width: 720px; }
.team-hero h1 { color: var(--white); margin-bottom: 20px; }
.team-hero .lead { color: rgba(255,255,255,.62); max-width: 600px; }

/* === GROUP PHOTO === */
.team-photo-section {
  background: var(--white);
  padding: 72px 0 0;
}
.team-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.team-group-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.team-photo-caption {
  display: flex;
  justify-content: space-around;
  background: var(--navy-900);
  padding: 14px 24px;
}
.team-photo-caption span {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* === TEAM INTRO === */
.team-intro-section {
  background: var(--white);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--gray-100);
}
.team-intro-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}
.team-intro-grid h2 { margin-bottom: 0; }
.team-intro-body p {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.team-intro-body p:last-child { margin-bottom: 0; }

/* Capability pillars */
.team-caps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.team-cap {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-cap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 1.5rem;
  color: var(--gray-300);
  background: var(--gray-50);
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
}
.team-cap-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy-700);
}
.team-cap-role {
  font-size: .8125rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* === FOUNDER PROFILES (two-column, photo) === */
.founder-profiles {
  background: var(--white);
  padding: 24px 0 96px;
}
.founder-profiles .container { max-width: 1080px; }

.founder-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 68px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--gray-200);
}
.founder-profile:first-child { border-top: none; }
/* alternate sides */
.founder-profile:nth-child(even) { grid-template-columns: 1fr 360px; }
.founder-profile:nth-child(even) .fp-media { order: 2; }
.founder-profile:nth-child(even) .fp-main  { order: 1; }

/* ── Media / photo ── */
.fp-media { position: relative; }
.fp-media-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--gray-100);
  z-index: 1;
}
.fp-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .9s var(--ease);
}
.founder-profile:hover .fp-media img {
  transform: scale(1.04);
}
/* offset accent outline behind photo */
.fp-media::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  z-index: 0;
  transition: var(--transition-slow);
}
.founder-profile:nth-child(even) .fp-media::before {
  left: -20px; right: 20px;
}
.founder-profile:hover .fp-media::before {
  border-color: var(--teal-300);
  top: 14px; bottom: -14px;
}
/* number chip */
.fp-media-num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--navy-700);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* ── Content ── */
.fp-name {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 500;
  color: var(--navy-700);
  margin-bottom: 8px;
  line-height: 1.05;
}
.fp-role {
  font-size: .9rem;
  color: var(--teal-400);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.5;
  margin: 0 0 18px;
}
.fp-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: 26px;
}
.fp-linkedin:hover { background: var(--blue-400); }
.fp-linkedin svg { width: 14px; height: 14px; }

.fp-summary {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--gray-800);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.fp-points {
  list-style: none;
  margin-bottom: 28px;
}
.fp-points li {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--gray-600);
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}
.fp-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 20px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}
.fp-points li:last-child { border-bottom: none; }

.fp-edu {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.fp-edu-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-400);
  white-space: nowrap;
  padding-top: 3px;
}
.fp-edu span:last-child {
  font-size: .8625rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* === CTA === */
.team-cta {
  background: var(--navy-900);
  padding: 80px 0;
}
.team-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.team-cta h2 { color: var(--white); margin-bottom: 10px; }
.team-cta p { color: rgba(255,255,255,.55); margin: 0; }
.team-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .team-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-caps { grid-template-columns: 1fr; }
  .team-cap-divider { display: none; }
  .team-cap { border-bottom: 1px solid var(--gray-200); }
  .team-cap:last-child { border-bottom: none; }

  /* founder rows stack: photo on top */
  .founder-profile,
  .founder-profile:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 36px;
    justify-items: start;
  }
  .founder-profile .fp-media,
  .founder-profile:nth-child(even) .fp-media { order: 1; }
  .founder-profile .fp-main,
  .founder-profile:nth-child(even) .fp-main { order: 2; }
  .fp-media { width: 100%; max-width: 340px; }
}

@media (max-width: 768px) {
  .team-hero { padding: 120px 0 52px; }
  .team-intro-section { padding: 52px 0 48px; }
  .founder-profiles { padding: 8px 0 64px; }
  .founder-profile { padding: 48px 0; }
  .fp-media { max-width: 100%; }
  /* tighten the offset frame on small screens */
  .fp-media::before,
  .founder-profile:nth-child(even) .fp-media::before {
    top: 12px; left: 12px; right: -12px; bottom: -12px;
  }
  .fp-edu { flex-direction: column; gap: 8px; }
  .team-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .team-cta-btns { flex-direction: column; }
  .team-cta-btns .btn { width: 100%; justify-content: center; }
}
