/* -- Page canvas: symmetric vertical wash (centered top + centered
   bottom glow), unlike other pages' diagonal/horizontal treatments --
   fitting a people-forward page with no strong left/right lean. -- */
body.page-team {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(195,34,31,0.18), transparent 60%),
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(89,28,83,0.18), transparent 60%),
    var(--clr-dark);
}
:root[data-theme="light"] body.page-team {
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, rgba(195,34,31,0.10), transparent 60%),
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(89,28,83,0.10), transparent 60%),
    var(--clr-dark);
}

/* ── TEAM ─────────────────────────────────────────────────── */
#team {
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(195,34,31,0.09), transparent 55%),
    var(--clr-dark-2);
}
:root[data-theme="light"] #team {
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(195,34,31,0.06), transparent 55%),
    var(--clr-dark-2);
}

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

.team-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden; /* clip needed for card shape */
  transition: var(--transition);
  text-align: center;
  position: relative;
  z-index: 1;
}
.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(195,34,31,0.4);
  box-shadow: var(--shadow-glow-red);
}

.team-photo-wrap {
  /* Pull edges flush against card border walls and slightly overlap bottom area to hide gaps */
  margin: -1px -1px -1px -1px;
  width: calc(100% + 2px);
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  /* Match card top-corner radius so image clips cleanly */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}
.team-photo-wrap img {
  position: absolute;
  top: -0.5%;
  left: -0.5%;
  width: 101%;
  height: 101%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition);
  /* Filter removed to prevent potential edge rendering artifacts */
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.08);
}

.team-info {
  background: var(--clr-surface);
  padding: 1.5rem 1.2rem;
  position: relative;
  z-index: 3;
  /* Pull the info area up by 1px to physically cover the bottom edge of the photo wrap */
  margin-top: -1px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.team-info h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}
.team-info .role {
  font-size: 0.8rem;
  color: var(--clr-red-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.team-info .bio {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 0.6rem;
  line-height: 1.6;
}

