.team-page,
.team-profile-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.team-hero,
.team-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.team-panel,
.team-member-card,
.team-capability-card,
.team-profile-card,
.team-profile-section {
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 64px rgba(15, 23, 42, .08);
}

.ui-cinematic .team-panel,
.ui-cinematic .team-member-card,
.ui-cinematic .team-capability-card,
.ui-cinematic .team-profile-card,
.ui-cinematic .team-profile-section {
  border-color: rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 90% 0%, rgba(137,107,255,.12), transparent 22rem),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
}

.team-panel,
.team-profile-card,
.team-profile-section { padding: 30px; }

.team-kicker {
  margin: 0 0 12px;
  color: #486ca7;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ui-cinematic .team-kicker { color: #a795ff; }

.team-hero h1,
.team-profile-copy h1 {
  margin: 0 0 18px;
  color: #172033;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.06em;
}
.ui-cinematic .team-hero h1,
.ui-cinematic .team-profile-copy h1 { color: #f7f7fb; }

.team-hero p,
.team-profile-copy p,
.team-member-card p,
.team-capability-card p,
.team-profile-section p,
.team-profile-section li {
  color: #526075;
  line-height: 1.7;
}
.ui-cinematic .team-hero p,
.ui-cinematic .team-profile-copy p,
.ui-cinematic .team-member-card p,
.ui-cinematic .team-capability-card p,
.ui-cinematic .team-profile-section p,
.ui-cinematic .team-profile-section li { color: #aaaab8; }

.team-principles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-principles li {
  padding: 14px 16px;
  border: 1px solid rgba(72,108,167,.15);
  border-radius: 14px;
  color: #334155;
  background: #f7fafc;
  font-weight: 750;
}
.ui-cinematic .team-principles li {
  border-color: rgba(255,255,255,.08);
  color: #d7d7e0;
  background: rgba(255,255,255,.035);
}

.team-section { margin-top: 34px; }
.team-section-head { max-width: 760px; margin-bottom: 22px; }
.team-section-head h2,
.team-profile-section h2 {
  margin: 0 0 10px;
  color: #172033;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.ui-cinematic .team-section-head h2,
.ui-cinematic .team-profile-section h2 { color: #f7f7fb; }

.team-members-grid,
.team-capabilities-grid,
.team-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-members-grid { grid-template-columns: minmax(0, 1fr); }

.team-member-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.team-member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126,95,255,.4);
}
.team-member-photo,
.team-profile-photo {
  overflow: hidden;
  border-radius: 22px;
  background: #dfe6ee;
}
.team-member-photo { aspect-ratio: 4 / 5; }
.team-profile-photo { min-height: 460px; }
.team-member-photo img,
.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.team-member-card h3,
.team-capability-card h3,
.team-profile-section h3 {
  margin: 0 0 10px;
  color: #172033;
}
.ui-cinematic .team-member-card h3,
.ui-cinematic .team-capability-card h3,
.ui-cinematic .team-profile-section h3 { color: #f7f7fb; }

.team-member-meta,
.team-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.team-member-meta span,
.team-profile-tags span,
.team-capability-state {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(72,108,167,.16);
  border-radius: 999px;
  color: #425168;
  background: #eef3f8;
  font-size: .78rem;
  font-weight: 800;
}
.ui-cinematic .team-member-meta span,
.ui-cinematic .team-profile-tags span,
.ui-cinematic .team-capability-state {
  border-color: rgba(167,149,255,.22);
  color: #dcd7ff;
  background: rgba(137,107,255,.1);
}

.team-member-link {
  color: #486ca7;
  font-weight: 850;
  white-space: nowrap;
}
.ui-cinematic .team-member-link { color: #9ed9ff; }

.team-capability-card { padding: 24px; }
.team-capability-card ul,
.team-profile-section ul { margin: 16px 0 0; padding-left: 20px; }

.team-profile-hero { grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); }
.team-profile-copy { padding: 36px; }
.team-profile-role { color: #486ca7 !important; font-weight: 850; }
.ui-cinematic .team-profile-role { color: #a795ff !important; }

.team-profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.team-profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.team-profile-links a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(72,108,167,.18);
  border-radius: 12px;
  color: #334155;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}
.ui-cinematic .team-profile-links a {
  border-color: rgba(255,255,255,.12);
  color: #f7f7fb;
  background: rgba(255,255,255,.04);
}

.team-profile-list { display: grid; gap: 10px; margin-top: 16px; }
.team-profile-list a {
  display: block;
  padding: 14px 15px;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 14px;
  color: #334155;
  background: rgba(255,255,255,.6);
  text-decoration: none;
  font-weight: 750;
}
.ui-cinematic .team-profile-list a {
  border-color: rgba(255,255,255,.08);
  color: #cfd4df;
  background: rgba(255,255,255,.03);
}

@media (max-width: 900px) {
  .team-hero,
  .team-profile-hero,
  .team-profile-grid,
  .team-capabilities-grid { grid-template-columns: 1fr; }
  .team-member-card { grid-template-columns: 150px minmax(0,1fr); }
  .team-member-link { grid-column: 2; }
  .team-profile-photo { min-height: 360px; }
}

@media (max-width: 620px) {
  .team-page,
  .team-profile-page { width: min(100% - 24px, 1180px); padding-top: 42px; }
  .team-member-card { grid-template-columns: 1fr; }
  .team-member-photo { width: 150px; }
  .team-member-link { grid-column: 1; }
  .team-profile-copy,
  .team-panel,
  .team-profile-card,
  .team-profile-section { padding: 22px; }
}
