.team-photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-ph-text {
  width: 100%;
  height: 100%;
}

.team-ph-text img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-ph-icon {
  display: none;
}

#team { background: var(--bg-raised); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--surface);
  overflow: hidden; position: relative;
  transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-6px); }

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay { opacity: 1; }

@media (hover: none) {
  .team-overlay { position: static; opacity: 1; background: none; padding: 0 1.2rem 1.2rem; }
}

.team-photo {
  aspect-ratio: 3/3; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(234,59,21,0.04), rgba(234,59,21,0.04) 10px, var(--bg) 10px, var(--bg) 20px);
}

.team-photo-inner {
  width: 78%; height: 78%; border-radius: 50%;
  border: 1px dashed rgba(234,59,21,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem;
  color: var(--ink-faint);
}

.team-ph-icon { font-size: 2.5rem; opacity: 0.13; }

.team-ph-text { font-family: var(--mono); font-size: 0.62rem; text-align: center; letter-spacing: 0.08em; }

.team-info {
  padding: 1.2rem;
  border-top: 2px solid var(--accent);
}

.team-name {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--heading); margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; color: var(--accent-text);
  text-transform: uppercase; margin-bottom: 0.4rem;
}

.team-affil { font-size: 0.75rem; color: var(--ink-2); }

.team-overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg-sunk) 94%, transparent);
  opacity: 0; transition: opacity 0.3s;
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.team-bio {
  font-size: 0.78rem; color: var(--ink-2);
  line-height: 1.68; margin-bottom: 1rem;
}

.team-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.team-link {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--accent-text); letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(234,59,21,0.35); padding-bottom: 2px;
  transition: border-color 0.2s;
}

.team-link:hover { border-color: var(--accent); }

.team-add {
  background: var(--surface);
  border: 1px dashed rgba(234,59,21,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.8rem; min-height: 280px;
}

.team-add-plus { font-size: 2.5rem; opacity: 0.15; color: var(--accent-text); }

.team-add-text {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--ink-faint);
  text-transform: uppercase; text-align: center;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
