:root {
  --team-gold: #f59e0b;
  --team-gold-strong: #c27a00;
  --team-gold-soft: #fff8eb;
  --team-navy: #0f172a;
  --team-navy-strong: #0b1224;
  --team-slate: #334155;
  --team-mist: #e2e8f0;
  --team-bg: #f8fafc;
  --team-surface: #ffffff;
  --team-focus: #0ea5a4;
}

* {
  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-operating-grid {
  display: grid;
  grid-template-columns: repeat(4, 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--spine {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    var(--team-surface);
}

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

.team-profile-grid .team-card p {
  margin: 0 0 0.8rem;
  line-height: 1.7;
  color: #334155;
}

.team-profile-grid .team-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  color: #1e293b;
}

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

.team-profile-grid .team-card ul {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.team-profile-grid .team-card ul li {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.72rem;
  padding: 0.52rem 0.72rem 0.52rem 1.5rem;
  color: #0f172a;
  line-height: 1.45;
}

.team-profile-grid .team-card ul li::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--team-gold);
}

.team-muted {
  margin: 0.2rem 0 0.85rem;
  color: #64748b;
  font-style: italic;
}

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

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

.team-layer-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid #dbe5f0;
  border-radius: 1.15rem;
  padding: 1rem 1rem 1rem 1.2rem;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.05);
}

.team-layer-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 0.32rem;
  border-radius: 0.32rem;
  background: linear-gradient(180deg, #f59e0b 0%, #f7b84d 100%);
}

.team-layer-card + .team-layer-card {
  margin-top: 0.95rem;
}

.team-layer-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

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

.team-layer-title {
  margin: 0;
  color: var(--team-navy);
  font-size: 1.05rem;
  line-height: 1.3;
}

.team-layer-copy {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  max-width: 70ch;
}

.team-layer-departments {
  display: grid;
  gap: 0.75rem;
}

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

.team-department-card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 3.05rem;
  height: 1px;
  background: #eef2f7;
}

.team-department-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.team-department-meta span {
  display: inline-flex;
  border-radius: 999px;
  background: #fff8eb;
  border: 1px solid #f4d9ac;
  color: #946200;
  padding: 0.18rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.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.52rem;
  text-decoration: none;
  color: var(--team-navy);
  background: var(--team-gold-soft);
  border: 1px solid #f4d9ac;
  border-radius: 999px;
  padding: 0.34rem 0.74rem 0.34rem 0.36rem;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.team-lead-pill img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.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(280px, 1fr));
  gap: 0.58rem 0.75rem;
}

.team-member-list li {
  margin: 0;
}

.team-member-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.46rem 0.58rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.78rem;
  background: #ffffff;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.team-member-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #dbe5f0;
  flex: 0 0 auto;
}

.team-member-meta {
  display: grid;
  gap: 0.12rem;
}

.team-member-name {
  color: #0f172a;
  font-weight: 650;
  line-height: 1.2;
}

.team-member-role {
  color: #64748b;
  font-size: 0.79rem;
  line-height: 1.3;
}

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

.team-member-link:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

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

.team-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  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;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.team-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: var(--team-gold);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--team-gold-strong);
  border-radius: 0.78rem;
  padding: 0.72rem 1rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.team-entry:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--team-navy-strong);
  transform: translateY(-1px);
}

.team-primary-cta:hover {
  background: #e08d00;
  border-color: #a76a00;
  color: #0b1224;
  transform: translateY(-1px);
}

.team-entry:focus-visible,
.team-primary-cta:focus-visible,
.team-lead-pill:focus-visible,
.team-member-list a:focus-visible {
  outline: 3px solid var(--team-focus);
  outline-offset: 2px;
}

.team-entry:active,
.team-primary-cta:active,
.team-lead-pill:active {
  transform: translateY(0);
}

.team-lead-pill:hover {
  background: #fff3d6;
  border-color: #eecb8d;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .team-entry,
  .team-primary-cta,
  .team-lead-pill,
  .team-member-list a {
    transition: none;
  }
}

.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-operating-grid,
  .team-contrast-grid,
  .team-entry-grid,
  .team-profile-grid {
    grid-template-columns: 1fr;
  }

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