/* ── TEAM PAGE HERO ── */
.team-page-hero {
  background: var(--bark);
  padding: 6rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.team-page-hero::before {
  content: '27';
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 22rem;
  font-style: italic;
  color: rgba(200,90,46,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.tph-inner {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.tph-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay2);
  margin-bottom: 1.2rem;
}

.tph-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--sand);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.tph-title em {
  font-style: italic;
  color: var(--clay2);
}

.tph-sub {
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.tph-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.tph-stat {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tph-stat span {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--clay2);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

/* ── LEAD SECTION ── */
.team-lead-section {
  background: var(--clay);
  padding: 4rem 2.5rem;
}

.tl-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tl-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.55);
  margin-bottom: 1.5rem;
}

.team-lead-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  max-width: 560px;
}

.tlc-photo-wrap { flex-shrink: 0; }

.tlc-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255,255,255,0.25);
  display: block;
}

.placeholder-photo {
  background: rgba(255,255,255,0.15) !important;
  border: 3px solid rgba(255,255,255,0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--serif) !important;
  font-size: 1.8rem !important;
  font-style: italic !important;
  color: rgba(250,246,238,0.7) !important;
}

/* when placeholder is inside the team grid */
.tm-photo-wrap .placeholder-photo {
  background: var(--sand2) !important;
  border: 2px solid var(--sand2) !important;
  color: var(--bark2) !important;
  font-size: 1.2rem !important;
}

.tlc-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.tlc-role {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.65);
  margin-bottom: 0.6rem;
}

.tlc-dept {
  font-size: 0.82rem;
  color: rgba(250,246,238,0.6);
  line-height: 1.6;
}

/* ── FULL TEAM GRID ── */
.team-grid-section {
  background: var(--cream);
  padding: 5rem 2.5rem;
}

.tg-inner {
  max-width: 960px;
  margin: 0 auto;
}

.tg-header {
  margin-bottom: 3rem;
}

.tg-header .tl-label {
  color: var(--clay);
}

.tg-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--bark);
  line-height: 1.1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.team-member-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--sand);
  border: 1px solid var(--sand2);
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61,43,26,0.1);
}

.tm-photo-wrap {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.tm-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--sand2);
  display: block;
}

.tm-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--bark);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.tm-role {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .team-lead-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .tph-stats { gap: 1.5rem; }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }
}

/* Cute colored avatar for members without photos */
.avatar-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(245,239,224,0.9);
  font-weight: 400;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Lead card avatar size */
.tlc-photo.avatar-photo {
  width: 100px;
  height: 100px;
  font-size: 2rem;
}
