:root {
  --team-gold: #f59e0b;
  --team-navy: #0f172a;
  --team-slate: #334155;
  --team-mist: #e2e8f0;
  --team-bg: #f8fafc;
  --team-surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--team-bg);
  color: var(--team-navy);
}

.team-page .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.team-hero {
  padding: 5.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.08));
}

.team-hero-compact {
  padding: 4.75rem 0 2.5rem;
}

.team-eyebrow {
  margin: 0 0 0.95rem;
  color: var(--team-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
}

.team-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 3.9rem);
  line-height: 1.06;
}

.team-subline {
  font-size: clamp(1.03rem, 2.6vw, 1.32rem);
  color: var(--team-slate);
  margin: 1rem 0 0;
  max-width: 54ch;
}

.team-intro {
  margin: 1.2rem 0 0;
  max-width: 70ch;
  color: #475569;
  line-height: 1.7;
}

.team-inline-link {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: #b57600;
  text-decoration: none;
  font-weight: 600;
}

.team-highlight {
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--team-navy);
}

.team-chip-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.team-chip {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #f2d4a0;
  color: #946200;
  background: rgba(245, 158, 11, 0.09);
  padding: 0.35rem 0.72rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.team-section {
  padding: 2.5rem 0;
}

.team-section--tight {
  padding-top: 1.25rem;
}

.team-section-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.team-section-copy {
  margin: 0.8rem 0 0;
  max-width: 74ch;
  color: #475569;
}

.team-section-subtitle {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  color: #1e293b;
}

.team-signature-wrap {
  margin-top: 1.35rem;
  background: var(--team-surface);
  border: 1px solid var(--team-mist);
  border-radius: 1.1rem;
  padding: 1rem;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
}

.team-signature-svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.team-card {
  background: var(--team-surface);
  border: 1px solid var(--team-mist);
  border-radius: 1rem;
  padding: 1.15rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.team-card h3,
.team-card h2 {
  margin: 0 0 0.65rem;
}

.team-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
}

.team-card li + li {
  margin-top: 0.35rem;
}

.team-department-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.team-department-card {
  background: var(--team-surface);
  border: 1px solid var(--team-mist);
  border-radius: 1rem;
  padding: 1rem 1rem 0.85rem;
}

.team-department-title {
  margin: 0;
  font-size: 1.08rem;
}

.team-lead-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.team-lead-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--team-navy);
  background: #fff8eb;
  border: 1px solid #f4d9ac;
  border-radius: 999px;
  padding: 0.3rem 0.68rem 0.3rem 0.35rem;
  font-weight: 600;
}

.team-lead-pill img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: cover;
  border-radius: 999px;
}

.team-member-disclosure {
  margin-top: 0.75rem;
  border-top: 1px solid #eef2f7;
  padding-top: 0.7rem;
}

.team-member-disclosure summary {
  cursor: pointer;
  color: #0a7d78;
  font-weight: 700;
}

.team-member-list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.42rem 0.9rem;
}

.team-member-list a {
  color: #334155;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

.team-member-list a:hover {
  border-bottom-color: #94a3b8;
}

.team-entry-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.team-entry {
  display: block;
  text-decoration: none;
  color: var(--team-navy);
  background: var(--team-surface);
  border: 1px solid var(--team-mist);
  border-radius: 0.85rem;
  padding: 0.85rem;
  font-weight: 650;
}

.team-primary-cta {
  display: inline-flex;
  margin-top: 1rem;
  background: var(--team-gold);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.78rem;
  padding: 0.72rem 1rem;
}

.team-profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.team-profile-image-wrap img {
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid #e2e8f0;
  display: block;
}

.team-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-trust-note {
  margin-top: 0.9rem;
  color: #0f172a;
  font-weight: 600;
}

.team-technical-note {
  margin-top: 0.4rem;
  color: #475569;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .team-contrast-grid,
  .team-entry-grid,
  .team-profile-grid {
    grid-template-columns: 1fr;
  }

  .team-profile-layout {
    grid-template-columns: 1fr;
  }
}
