.team-page {
  --team-gutter: clamp(18px, 3.125vw, 60px);
  --team-navy: var(--brand-navy);
  --team-copy: #415774;
  --team-line: #cdd9e8;
  background: #f4f7f9;
  font-family: system-ui, sans-serif;
}

.team-page > .interior-header {
  border: 0;
  border-bottom: 1px solid var(--team-line);
  background: #fff;
}
.team-page .interior-header__inner {
  width: calc(100% - 2 * var(--team-gutter));
  min-height: 66px;
}
.team-page .interior-breadcrumbs li { color: var(--team-navy); font-size: clamp(13px, .83vw, 16px); }
.team-page .interior-breadcrumbs a { color: var(--team-copy); text-decoration: none; }
.team-page .interior-breadcrumbs a:hover { text-decoration: underline; }
.team-page .interior-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  padding: .45em 0;
  color: var(--team-navy);
  background: transparent;
  font-size: clamp(13px, .83vw, 16px);
}
.team-page .interior-header__phone:hover { text-decoration: underline; text-underline-offset: .25em; }
.team-page .interior-header__phone span { font-size: 1.18em; line-height: 1; }

.team-shell { padding: clamp(22px, 1.67vw, 32px) var(--team-gutter) clamp(38px, 4.2vw, 80px); }
.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 42.2fr) minmax(0, 57.8fr);
  min-height: clamp(330px, 24vw, 412px);
  background: var(--team-navy);
}
.team-hero__panel {
  position: relative;
  display: flex;
  container-type: inline-size;
  flex-direction: column;
  align-items: flex-start;
  isolation: isolate;
  padding: clamp(27px, 2.55vw, 49px) clamp(24px, 2.55vw, 49px) clamp(24px, 1.52vw, 30px);
  color: #fff;
}
.team-hero__panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 32%;
  height: 34%;
  background:
    repeating-linear-gradient(145deg, transparent 0 22px, rgb(215 152 0 / 24%) 22px 23px, transparent 23px 31px),
    repeating-linear-gradient(90deg, rgb(215 152 0 / 14%) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(0deg, rgb(215 152 0 / 14%) 0 1px, transparent 1px 27px);
  mask-image: linear-gradient(155deg, transparent, #000 70%);
  content: '';
}
.team-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 clamp(16px, 1.25vw, 24px);
  color: #dce6ee;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 20px;
  text-transform: uppercase;
}
.team-hero__eyebrow::before { width: 28px; height: 2px; background: var(--brand-gold); content: ''; }
.team-hero h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(36px, 14cqi, 76px) / 1.065 system-ui, sans-serif;
  letter-spacing: -.02em;
}
.team-hero__summary {
  max-width: 32ch;
  margin: clamp(15px, 1.65vw, 32px) 0 clamp(22px, 2.1vw, 40px);
  color: #edf2f6;
  font-size: clamp(16px, 1.14vw, 22px);
  line-height: 1.42;
}
.team-hero__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 22px;
  margin-top: auto;
  padding: .7em 1.15em;
  color: var(--team-navy);
  background: #fff;
  font-size: clamp(15px, .84vw, 16px);
  font-weight: 600;
  line-height: 1.2;
}
.team-hero__link:is(:hover, :focus-visible) { color: var(--team-navy); background: var(--brand-gold-soft); text-decoration: none; }
.team-hero__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.team-hero__link span { font-size: 1.28em; line-height: 1; }

.team-hero__photo, .team-card__portrait { position: relative; margin: 0; overflow: hidden; background: #e5edf5; }
.team-hero__photo img, .team-card__portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-section { margin-top: clamp(24px, 1.58vw, 30px); }
.team-section__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.35vw, 26px);
  margin-bottom: clamp(16px, 1.3vw, 25px);
}
.team-section__header::after { grid-area: 1 / 2; height: 1px; background: #c3d0e2; content: ''; }
.team-section__header p {
  grid-area: 1 / 3;
  margin: 0;
  color: var(--team-copy);
  font-size: clamp(13px, .78vw, 15px);
  line-height: 1.35;
}
.team-section h2 {
  margin: 0;
  color: var(--team-navy);
  font-size: clamp(25px, 1.98vw, 38px);
  font-weight: 700;
  line-height: 1.19;
}
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.04vw, 20px); }
.team-card {
  border: 1px solid var(--team-line);
  background: #fff;
}
.team-card__portrait { aspect-ratio: 1.68; }
.team-card__portrait img { object-position: center top; }
.team-card__content { padding: clamp(10px, .85vw, 16px) clamp(10px, 1vw, 19px); border-top: 2px solid var(--team-navy); }
.team-card h3 { margin: 0 0 4px; color: var(--team-navy); font-size: clamp(16px, 1.36vw, 26px); font-weight: 700; line-height: 1.2; }
.team-card p { margin: 0; color: var(--team-copy); font-size: clamp(13px, .83vw, 16px); line-height: 1.35; }

@media (hover: hover) {
  .team-card:hover { border-color: #93add0; background: #fffdf8; box-shadow: 0 10px 22px rgb(0 34 70 / 12%); }
}
@media (prefers-reduced-motion: no-preference) {
  .team-hero__link { transition: background-color .22s ease; }
  .team-hero__link span { transition: transform .22s ease; }
  .team-hero__link:is(:hover, :focus-visible) span { transform: translate(4px, -4px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .team-card { transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
  .team-card:hover { transform: translateY(-3px); }
  .team-hero__photo img, .team-card__portrait img { transition: transform .35s ease; }
  .team-hero__photo:hover img, .team-card:hover img { transform: scale(1.045); }
}
@media (max-width: 1140px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .team-page .interior-header__inner { min-height: 53px; }
  .team-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .team-hero__photo { aspect-ratio: 893 / 412; }
  .team-section__header { grid-template-columns: auto minmax(0, 1fr); row-gap: 5px; }
  .team-section__header p { grid-area: 2 / 1 / 3 / -1; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card__portrait { aspect-ratio: 1.2; }
  .team-card__portrait img { object-position: center 12%; }
}
