.team-page-content section { color: inherit; }
.team-page-content :is(.team-intro, .team-process, .team-philosophy, .team-cta) { padding-block: clamp(2.65rem, 5vw, 4.5rem); }
.team-page-content .team-reading { max-width: 64ch; }
.team-page-content .team-reading > :last-child { margin-bottom: 0; }
.team-intro .arch-split { align-items: center; gap: clamp(1.15rem, 4vw, 3.75rem); }
.team-intro h2 { max-width: 25ch; margin-bottom: 0; text-wrap: balance; }

.team-page-content .team-gallery { padding-block: 0 clamp(2.65rem, 5vw, 4.5rem); }
.team-gallery h2 { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.team-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.team-photo { display: grid; grid-template-rows: auto 1fr; margin: 0; }
.team-photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: .5rem;
  background: linear-gradient(135deg, #e8f0f5, #f2f5f7);
}
.team-photo-slot > .bi { color: var(--blue); font-size: 1.65rem; opacity: .72; }
.team-photo-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--team-photo-position, center);
}
.team-photo figcaption { padding-block-start: 1rem; }
.team-photo h3 { margin-bottom: .45rem; line-height: 1.25; }
.team-photo p { max-width: 42ch; margin: 0; }

.team-page-content .team-process { background: var(--paper); }
.team-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.team-benefit-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: .7rem;
  padding: clamp(1.15rem, 1.8vw, 1.65rem);
  border: 1px solid #34536a;
  border-radius: .45rem;
  background: #12334d;
  color: #e4edf3;
  box-shadow: 0 3px 12px rgb(16 42 66 / 12%);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.team-benefit-detail {
  display: block;
  width: min(100%, 8.75rem);
  height: 2.375rem;
  margin-block-end: .3rem;
  color: #b5d4e8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-detail-accent { stroke: #79b1d1; }
.architecture .team-benefit-card h3 { margin: 0; color: #fff; line-height: 1.25; text-wrap: balance; }
.team-benefit-card p { margin: 0; line-height: 1.6; }
.architecture .team-benefit-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.team-benefit-card:focus-visible {
  border-color: #79b1d1;
  box-shadow: 0 10px 24px rgb(16 42 66 / 20%);
  transform: translateY(-5px) scale(1.025);
}
@media (hover: hover) {
  .team-benefit-card:hover {
    border-color: #79b1d1;
    box-shadow: 0 10px 24px rgb(16 42 66 / 20%);
    transform: translateY(-5px) scale(1.025);
  }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 992px) {
    .team-benefit-card { grid-row: span 3; grid-template-rows: subgrid; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-process-grid .team-benefit-card { transform: none; transition: none; }
}

.team-philosophy-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border-inline-start: 3px solid var(--blue);
  border-radius: .4rem;
  background: #f2f5f7;
}
.team-page-content .team-philosophy h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.25rem); text-wrap: balance; }
.team-philosophy-copy p { margin: 0; }
.team-page-content .team-cta { background: var(--navy); color: #e4edf3; }
.team-cta .arch-split { align-items: center; }
.team-page-content .team-cta h2 { color: #fff; }
.team-cta .arch-actions { justify-self: end; justify-content: flex-end; }
.team-cta .team-quote-button { background: #fff; border-color: #fff; color: var(--navy) !important; }
.team-cta .team-quote-button:hover { background: #eaf2f8; border-color: #eaf2f8; }
.team-cta .team-call-button { background: transparent; border-color: #becfde; }
.team-cta .team-call-button:hover { background: var(--blue); border-color: var(--blue); }

@media (max-width: 991px) {
  .team-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .team-cta .arch-actions { justify-self: start; justify-content: flex-start; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .team-benefit-card h3 { min-block-size: 2.5em; }
}
@media (max-width: 767px) {
  .team-photo-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .team-intro .arch-split, .team-philosophy-copy, .team-cta .arch-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
  .team-process-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .team-cta .arch-actions { width: 100%; }
  .team-cta .arch-button { width: 100%; }
}
