.team-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.95)),
    url('/assets/watercolor-classic.webp') center 44% / min(1700px, 100%) auto no-repeat,
    #fbfdfe;
}
.team-section .wrap { position: relative; }
.team-intro { max-width: 790px; margin-bottom: 36px; }
.team-intro > p:last-child,
.team-subhead > p:last-child { max-width: 66ch; color: var(--muted); font-size: 17px; line-height: 1.7; }
.team-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: center;
  margin: 0 0 54px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}
.team-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.team-index a:hover { color: var(--green); }
.team-subsection { padding-top: 16px; margin-top: 58px; scroll-margin-top: 102px; }
.team-subhead { max-width: 780px; margin-bottom: 26px; }
.team-subhead .eyebrow { margin-bottom: 10px; }
.team-subhead h3 { margin-bottom: 12px; font-size: clamp(27px, 3vw, 35px); }
.team-subhead > p:last-child { margin-bottom: 0; }
.team-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
}
.team-profile { min-width: 0; container-type: inline-size; }
.team-gallery figure { container-type: inline-size; }
.team-profile > img,
.team-gallery img {
  display: block;
  width: 100%;
  height: 66.666cqi;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  object-position: center;
  background: rgba(241,247,249,.58);
}
.team-profile > img { object-position: center 20%; }
.team-profile-paulo > img { object-position: center 26%; }
.team-profile-vinicius > img { object-position: center 24%; }
.team-profile-yolanda > img { object-position: 28% 37%; }
.team-profile-copy { padding-top: 13px; }
.team-profile h4,
.team-event-copy h4 {
  margin: 0 0 6px;
  color: var(--blue-ink);
  font: 500 21px/1.25 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.team-profile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.team-profile span { display: block; margin-top: 3px; color: var(--green); font-size: 12px; font-weight: 650; letter-spacing: .045em; }
.team-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 18px;
  align-items: start;
}
.team-gallery figure { min-width: 0; margin: 0; }
.team-gallery-training { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.team-gallery-training figure:nth-child(2) img { object-position: center 35%; }
.team-gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.team-event-feature {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin: 38px 0 48px;
  padding: 30px 0;
  border-block: 1px solid var(--line);
}
.team-event-poster { display: grid; justify-items: center; gap: 10px; max-width: 350px; color: var(--green); font-size: 13px; line-height: 1.45; text-align: center; text-underline-offset: 4px; }
.team-event-poster img { display: block; width: min(100%, 320px); height: auto; }
.team-event-poster:hover { color: var(--blue-ink); }
.team-event-program {
  width: min(100%, 320px);
  gap: 12px;
  color: var(--green);
  text-align: center;
  text-decoration: none;
}
.team-event-program img { width: 100%; height: auto; border: 1px solid rgba(32, 60, 82, .16); box-shadow: 0 10px 28px rgba(32, 60, 82, .10); }
.team-event-program-label { color: var(--green); font-size: 13px; font-weight: 650; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.team-event-copy .eyebrow { margin-bottom: 11px; }
.team-event-copy h4 { max-width: 23ch; margin-bottom: 13px; font-size: clamp(25px, 2.7vw, 34px); }
.team-event-copy p { max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.7; }
.team-event-copy .team-event-meta { color: var(--green); font-size: 14px; font-weight: 650; }
.team-gallery-community { row-gap: 20px; }

@media (max-width: 980px) {
  .team-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-event-feature { grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr); }
}
@media (max-width: 700px) {
  .team-intro { margin-bottom: 28px; }
  .team-intro > p:last-child,
  .team-subhead > p:last-child { font-size: 16px; }
  .team-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 38px; }
  .team-index a { font-size: 13px; line-height: 1.35; }
  .team-subsection { margin-top: 42px; padding-top: 8px; }
  .team-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .team-profile h4 { font-size: 18px; }
  .team-profile p { font-size: 13px; }
  .team-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .team-gallery-training { gap: 22px 14px; }
  .team-gallery figcaption { font-size: 12px; }
  .team-event-feature { grid-template-columns: 1fr; gap: 24px; margin: 30px 0 36px; padding: 25px 0; }
  .team-event-poster { justify-self: center; width: min(100%, 300px); }
  .team-event-poster img { width: min(100%, 270px); }
  .team-event-copy h4 { font-size: 27px; }
}
@media (max-width: 360px) {
  .team-profile-grid { grid-template-columns: 1fr; }
  .team-gallery { grid-template-columns: 1fr; }
  .team-gallery-training { grid-template-columns: 1fr; }
}
