/* ========================================================
   Team Page Redesign Style overrides
   Covers glass constellation background container, profile grids,
   and clean vector user avatars.
   ======================================================= */

/* Fixed WebGL Background canvas container (similar to home.stage) */
html.fx3d .team-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(120% 92% at 74% 8%, #fbf5ec 0%, #f4ecdc 45%, #eee2cf 100%);
}

/* Override glass section wrappers on team page for WebGL transparency */
html.fx3d body.team .sec-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  box-shadow: none;
}

/* ---------- Team Cards Grid — three across, compact ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px -20px rgba(60, 48, 36, 0.16);
  transition: transform var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 80, 0, 0.4);
  box-shadow: 0 22px 46px -22px rgba(60, 48, 36, 0.26);
}

/* ---------- Portrait: white background studio card ---------- */
.team-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--dur-m) var(--ease);
}
.team-card:hover .team-photo { transform: scale(1.05); }

/* ---------- Individual Photo Scale & Alignment Overrides ---------- */
.team-photo--blend-white {
  mix-blend-mode: multiply;
  filter: contrast(1.04) brightness(1.04);
}

.team-photo--zoom-lg {
  object-fit: cover !important;
  object-position: center 44% !important;
  transform: scale(1.46) !important;
  transform-origin: center center !important;
}
.team-card:hover .team-photo--zoom-lg {
  transform: scale(1.52) !important;
}

/* hairline under the portrait, warmed by the accent */
.team-portrait::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 80, 0, 0.28), transparent);
}

/* ---------- Hover reveal: the full bio fades in over the portrait ---------- */
.team-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg,
    rgba(250, 246, 239, 0) 0%,
    rgba(250, 246, 239, 0.55) 32%,
    rgba(249, 244, 236, 0.95) 68%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-m) var(--ease);
}
.team-card:hover .team-reveal { opacity: 1; }
.team-reveal p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* ---------- Meta: the basics, always in view ---------- */
.team-meta { padding: 18px 22px 22px; }
.team-meta h3 {
  margin: 0 0 3px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.team-meta .role {
  margin: 0 0 10px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-deep);
  font-weight: 600;
}
.team-meta .tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* touch / no-hover: keep the bio visible over the portrait (nothing to hover) */
@media (hover: none) {
  .team-reveal { opacity: 1; }
}
