/*==================================================
  TEAM PAGE
==================================================*/
.team-hero {
  padding: clamp(5rem,8vw,8rem) 0;
  background: var(--surface-alt);
}
.team-hero__grid {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.65fr);
  gap:clamp(5rem,9vw,10rem);
  align-items:end;
}
.team-hero h1 {
  max-width:900px;
  margin:.55rem 0 1rem;
  color:var(--ink);
  font-size:clamp(4.7rem,7.4vw,8rem);
  font-weight:500;
  line-height:.9;
  letter-spacing:-.065em;
}
.team-hero__intro {
  max-width:760px;
  margin:1.8rem 0 0;
  color:var(--slate);
  font-size:1.15rem;
  line-height:1.75;
}
.team-hero__visual {
  width:100%;
  max-width:440px;
  justify-self:start;
  align-self:end;
}
.team-hero__image {
  width:100%;
  height:240px;
  overflow:hidden;
  background:var(--stone);
}
.team-hero__image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.team-hero__panel {
  padding:2.6rem;
  background:var(--white);
  color:var(--ink);
  border-top:3px solid var(--gold);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-left:1px solid var(--line);
  box-shadow:var(--shadow-card);
}
.team-hero__panel .eyebrow { color:var(--gold); }
.team-hero__stat {
  display:grid;
  grid-template-columns:90px 1fr;
  align-items:baseline;
  padding:1.4rem 0;
  border-bottom:1px solid var(--line);
}
.team-hero__stat strong {
  color:var(--gold);
  font:500 3.2rem/1 "Manrope",sans-serif;
  letter-spacing:-.05em;
}
.team-hero__stat span { color:var(--slate); font-size:.88rem; }
.team-hero__note { margin:1.5rem 0 0; color:var(--muted); font-size:.76rem; line-height:1.6; }

.team-intro,.team-support { padding:var(--section-space) 0; background:var(--white); }
.team-directory { padding:var(--section-space) 0; background:var(--surface-alt); }

.team-heading {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.48fr);
  gap:clamp(3rem,7vw,7rem);
  align-items:end;
  margin-bottom:3rem;
}
.team-heading h2 {
  max-width:950px;
  margin:.55rem 0 .8rem;
  color:var(--ink);
  font-size:clamp(3.1rem,4.8vw,5.15rem);
  font-weight:500;
  line-height:.98;
  letter-spacing:-.05em;
}
.team-heading>p { max-width:480px; margin:0 0 .5rem; color:var(--slate); line-height:1.7; }

.team-filters { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:2.25rem; }
.team-filters button {
  padding:.75rem 1.2rem;
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--line);
  font:700 .75rem "Manrope",sans-serif;
}
.team-filters button.is-active,.team-filters button:hover { color:var(--white); background:var(--ink); border-color:var(--ink); }

.team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.35rem; }
.team-card {
  min-width:0;
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--line);
  transition:transform var(--transition-standard),box-shadow var(--transition-standard);
}
.team-card[hidden] { display:none; }
.team-card:hover { transform:translateY(-4px); box-shadow:0 18px 42px rgba(5,27,63,.08); }
.team-card__image { aspect-ratio:4/4.5; overflow:hidden; background:var(--stone); }
.team-card__image img { width:100%; height:100%; display:block; object-fit:cover; object-position:center top; transition:transform var(--transition-standard); }
.team-card:hover .team-card__image img { transform:scale(1.025); }
.team-card__body { padding:1.8rem 1.8rem 2rem; }
.team-card__region {
  margin:0 0 .55rem;
  color:var(--gold);
  font:600 .65rem "IBM Plex Mono",monospace;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.team-card h3 { margin:0; color:var(--ink); font-size:1.75rem; font-weight:500; letter-spacing:-.035em; }
.team-card__quals { margin:.3rem 0 0; color:var(--gold); font:.72rem "IBM Plex Mono",monospace; }
.team-card__role { margin:.55rem 0 1rem; color:var(--ink); font-size:.83rem; font-weight:700; }
.team-card__summary { min-height:72px; margin:0; color:var(--muted); font-size:.86rem; line-height:1.65; }
.team-card__toggle {
  width:100%;
  display:flex;
  justify-content:space-between;
  margin-top:1.45rem;
  padding:1rem 0 0;
  color:var(--ink);
  background:none;
  border:0;
  border-top:1px solid var(--line);
  font:700 .82rem "Manrope",sans-serif;
  text-align:left;
}
.team-card__toggle span { color:var(--gold); font-size:1.25rem; }
.team-card__bio p { margin:1rem 0 0; color:var(--slate); font-size:.84rem; line-height:1.72; }

.regional-expertise { padding:var(--section-space) 0; background:var(--ink); color:var(--white); }
.team-heading--light h2 { color:var(--white); }
.team-heading--light>p { color:rgba(255,255,255,.65); }
.region-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(255,255,255,.16); }
.region-grid article { min-height:260px; padding:2.4rem 2.3rem; border-right:1px solid rgba(255,255,255,.16); }
.region-grid article:last-child { border-right:0; }
.region-grid span { color:var(--gold); font:.72rem "IBM Plex Mono",monospace; }
.region-grid h3 { margin:2rem 0 .8rem; color:var(--white); font-size:2rem; font-weight:500; }
.region-grid p { margin:0; color:rgba(255,255,255,.68); font-size:.88rem; line-height:1.7; }

.team-values { padding:var(--section-space) 0; color:var(--slate); background:var(--surface-alt); }
.team-values .buyer-outcomes-heading h2 { color:var(--ink); }

@media(max-width:1199.98px){
  .team-grid { grid-template-columns:repeat(2,1fr); }
  .support-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:991.98px){
  .team-hero__grid,.team-heading { grid-template-columns:1fr; gap:3rem; }
  .team-hero h1 { font-size:clamp(4rem,11vw,6.2rem); }
  .region-grid { grid-template-columns:1fr; }
  .region-grid article { min-height:0; border-right:0; border-bottom:1px solid rgba(255,255,255,.16); }
}
@media(max-width:767.98px){
  .team-hero { padding:2.5rem 0 3.5rem; }
  .team-hero h1 { font-size:clamp(3.35rem,15vw,4.8rem); }
  .team-hero__panel { padding:1.7rem; }
  .team-intro,.team-directory,.team-support,.regional-expertise,.team-values { padding:var(--section-space-mobile) 0; }
  .team-heading { margin-bottom:2rem; }
  .team-heading h2 { font-size:clamp(2.7rem,12vw,3.8rem); }
  .team-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.4rem; }
  .team-filters button { flex:0 0 auto; }
  .team-grid,.support-grid { grid-template-columns:1fr; }
  .team-card__image { aspect-ratio:4/4; }
  .team-card__summary { min-height:0; }
}

/*==================================================
  SUPPORT TEAM — TEXT DIRECTORY
==================================================*/

.support-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.support-directory__item {
  min-height: 170px;
  padding: 2rem 2.1rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-directory__region {
  margin: 0 0 1.3rem;
  color: var(--gold);
  font-family: "IBM Plex Mono", monospace;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.support-directory__item h3 {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.support-directory__role {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .support-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .support-directory {
    grid-template-columns: 1fr;
  }

  .support-directory__item {
    min-height: 0;
    padding: 1.6rem 1.5rem;
  }
}

/*==================================================
  TEAM HERO — PROPORTION REFINEMENT
==================================================*/

/* Reduce overall hero height and bring the two columns together. */
.team-hero {
  padding-top: clamp(4.25rem, 6.5vw, 6.5rem);
  padding-bottom: clamp(4.25rem, 6vw, 6rem);
}

.team-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .72fr);
  gap: clamp(3.5rem, 5vw, 5.75rem);
  align-items: end;
}

/* Keep the editorial scale, but reduce dominance slightly. */
.team-hero h1 {
  max-width: 860px;
  font-size: clamp(4.35rem, 6.75vw, 7.25rem);
  line-height: .91;
}

/* Keep the photograph and statistics as one aligned hero component. */
.team-hero__visual {
  width: 100%;
  max-width: 440px;
  justify-self: start;
}

.team-hero__panel {
  width: 100%;
  max-width: none;
  padding: 2.7rem 2.8rem 2.55rem;
}

/* Numeric and word-based stats need different scale. */
.team-hero__stat {
  grid-template-columns: 108px 1fr;
  gap: 1.1rem;
}

.team-hero__stat strong {
  font-size: 3rem;
}

.team-hero__stat--word strong {
  font-size: 1.7rem;
  letter-spacing: -.035em;
}

.team-hero__stat span {
  line-height: 1.45;
}

/* Slightly reduce unused space below the CTA row. */
.team-hero .service-page-hero__actions {
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .team-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, .7fr);
    gap: 3.5rem;
  }

  .team-hero__visual {
    max-width: 420px;
  }

  .team-hero__panel {
    max-width: none;
  }
}

/* Stack cleanly on smaller screens. */
@media (max-width: 991.98px) {
  .team-hero {
    padding-top: 3.75rem;
    padding-bottom: 4.25rem;
  }

  .team-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .team-hero__visual {
    max-width: 620px;
  }

  .team-hero__image {
    height: 260px;
  }

  .team-hero__panel {
    max-width: none;
  }

  .team-hero h1 {
    font-size: clamp(3.9rem, 10.5vw, 5.8rem);
  }
}

@media (max-width: 767.98px) {
  .team-hero {
    padding-top: 2.35rem;
    padding-bottom: 3.25rem;
  }

  .team-hero h1 {
    font-size: clamp(3.15rem, 14vw, 4.45rem);
  }

  .team-hero__visual {
    max-width: none;
  }

  .team-hero__image {
    height: 210px;
  }

  .team-hero__panel {
    padding: 1.65rem;
  }

  .team-hero__stat {
    grid-template-columns: 82px 1fr;
  }

  .team-hero__stat strong {
    font-size: 2.45rem;
  }

  .team-hero__stat--word strong {
    font-size: 1.35rem;
  }
}

/* Site-wide editorial heading rule spacing */
h2 + .service-page-rule {
  margin-top: var(--heading-rule-gap);
}

/*==================================================
  TEAM HERO — LIGHT STATISTICS PANEL
==================================================*/
.team-hero__panel .team-hero__stat strong {
  color: var(--gold);
}

.team-hero__panel .team-hero__stat span {
  color: var(--slate);
}

.team-hero__panel .team-hero__note {
  color: var(--muted);
}

.team-hero__panel .team-hero__stat:last-of-type {
  border-bottom-color: var(--line);
}

/* TEAM VALUES — LIGHT EDITORIAL SECTION */
.team-values .eyebrow { color:var(--gold); }
.team-values .buyer-outcomes-heading p { color:var(--slate); }
.team-values .buyer-outcomes-grid,
.team-values .buyer-outcomes-list,
.team-values article,
.team-values .buyer-outcome,
.team-values .buyer-outcomes-item { border-color:var(--line); }
.team-values h3 { color:var(--ink); }
.team-values article p,
.team-values .buyer-outcome p,
.team-values .buyer-outcomes-item p { color:var(--muted); }
.team-values span,
.team-values .buyer-outcome__number { color:var(--gold); }

/*==================================================
  TEAM HERO — RESTORE NAVY STATISTICS PANEL
==================================================*/
.team-hero__panel {
  background: var(--ink);
  color: var(--white);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.team-hero__panel .eyebrow,
.team-hero__panel .team-hero__stat strong {
  color: var(--gold);
}

.team-hero__panel .team-hero__stat {
  border-bottom-color: rgba(255,255,255,.14);
}

.team-hero__panel .team-hero__stat span {
  color: rgba(255,255,255,.82);
}

.team-hero__panel .team-hero__note {
  color: rgba(255,255,255,.58);
}

/*==================================================
  TEAM VALUES — CORRECT LIGHT-SECTION TYPOGRAPHY
==================================================*/
.team-values {
  color: var(--slate);
  background: var(--surface-alt);
}

.team-values .buyer-outcomes-heading h2,
.team-values .buyer-outcomes-list h3 {
  color: var(--ink);
}

.team-values .buyer-outcomes-heading .eyebrow {
  color: var(--gold);
}

.team-values .buyer-outcomes-list > li {
  border-color: var(--line);
}

.team-values .buyer-outcomes-list > li > span {
  color: var(--gold);
}

.team-values .buyer-outcomes-list p {
  color: var(--slate);
}
