/* ── Team grid block ── token-only; cream surface; 4-col on desktop.
   Headerless: section eyebrow / title live in a separate `title` block
   stacked above. Adjacent team blocks collapse their top padding so
   they read as one continuous grid (rules below). */
.block-team {
  background: var(--color-surface);
  padding: clamp(64px, 8vh, 96px) var(--space-section-x);
}

/* When a `title` block sits immediately above, tighten the team's top
   padding so the title visually attaches to the grid. */
.block-title + .block-team {
  padding-top: clamp(24px, 3vh, 40px);
}

/* When team blocks stack directly, drop the gap so they merge into one
   grid. The bottom padding of the previous team and the top of the next
   would otherwise create a visible band. */
.block-team + .block-team {
  padding-top: 0;
}
.block-team:has(+ .block-team) {
  padding-bottom: 0;
}

.block-team .tg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.block-team .tg-card {
  /* Cards reset section-level colour overrides — see comment on
     .pf-card in portfolio/style.css. Keeps card text readable when the
     section bg is repainted via section_inject_color_attrs. */
  --color-fg:        #1a1714;
  --color-fg-muted:  #3f3c35;
  --color-muted:     #8a827c;
  color: var(--color-fg);

  display: flex;
  flex-direction: column;
}

.block-team .tg-photo-wrap {
  aspect-ratio: 4 / 5;
  background: var(--color-bg);
  margin-bottom: 16px;
  overflow: hidden;
}
.block-team .tg-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1);
  transition: filter 0.3s;
}
.block-team .tg-card:hover .tg-photo { filter: grayscale(0); }
.block-team .tg-photo-empty {
  width: 100%; height: 100%;
  background: var(--color-accent-6);
  display: flex; align-items: center; justify-content: center;
}
.block-team .tg-photo-empty::before {
  content: '+';
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--color-accent-3);
}

.block-team .tg-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-fg);
  margin-bottom: 4px;
}
.block-team .tg-role {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.block-team .tg-dept {
  font-family: var(--font-eyebrow);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.block-team .tg-bio {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-fg-muted);
  margin-bottom: 10px;
}
.block-team .tg-email {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-soft);
  align-self: flex-start;
}
.block-team .tg-email:hover { color: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 1100px) {
  .block-team .tg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .block-team { padding: 64px 32px; }
  .block-team .tg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .block-team { padding: 48px 20px; }
  .block-team .tg-grid { grid-template-columns: 1fr; gap: 32px; }
}
