/* Extra spacing under fixed nav */
.team-hero {
  padding-bottom: 44px;
}

.team-hero-content {
  max-width: 820px;
}

/* Mission section layout */
.team-mission {
  padding-top: 18px;
  padding-bottom: 56px;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, #eff6ff 0, #ffffff 55%);
}

.team-mission-grid > div {
  margin: 0 auto;
  max-width: 720px;     /* controls visual center weight */
}

/* Mission points */
.mission-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Tablet */
@media (max-width: 900px) {
  .mission-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .mission-points {
    grid-template-columns: 1fr;
  }
}

.mp-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mp-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Mission image: constrain height so it NEVER blows up */
.mission-media {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 14px;
  padding: 0.9rem;
}

.mission-media img {
  width: 100%;
  height: 320px;          /* key */
  object-fit: cover;      /* key */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Fallback block if image missing */
.mission-fallback {
  border: 1px dashed rgba(17, 24, 39, 0.18);
  border-radius: 12px;
  padding: 1rem;
  background: #ffffff;
}

.fallback-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.fallback-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Founders grid */
.team-founders {
  padding-top: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Founder cards */
.person-card {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.25rem 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.person-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --- Safari-proof avatar (absolute-fill image) --- */
.avatar{
  width: 48px;
  height: 48px;
  flex: 0 0 48px;          /* don’t let flex resize it */
  border-radius: 10px;
  overflow: hidden;

  border: 1px solid rgba(0,0,0,0.10);
  background: #f3f4f6;

  position: relative;      /* key */
}

.avatar .person-photo{
  position: absolute;      /* key */
  inset: 0;                /* key */
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

/* Fallback logo style */
.avatar .person-photo-fallback{
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
}


.person-meta {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
}

.person-role {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.linkedin-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.linkedin-btn svg {
  fill: var(--text-muted);
}

.linkedin-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.linkedin-btn:hover svg {
  fill: var(--accent);
}

.person-bio {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.person-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  background: #fafafa;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 980px) {
  .team-mission-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-media img {
    height: 260px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
