.team-page {
  background: var(--cream);
}

.team-page main {
  padding-top: 0;
}

.team-hero {
  position: relative;
  min-height: clamp(520px, 58vw, 690px);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.team-hero-media,
.team-hero-overlay {
  position: absolute;
  inset: 0;
}

.team-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.team-hero-overlay {
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.84) 25%, rgba(20, 20, 20, 0.48) 45%, rgba(20, 20, 20, 0.12) 72%, rgba(20, 20, 20, 0.03) 100%);
}

.team-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: min(1220px, calc(100% - 9vw));
  min-height: clamp(520px, 58vw, 690px);
  margin: 0 auto;
}

.team-hero-copy {
  width: min(520px, 47%);
  padding-top: 54px;
}

.team-hero-copy .eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.team-hero-copy h1,
.team-why h2,
.team-section-heading h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  line-height: 0.9;
  text-transform: uppercase;
}

.team-hero-copy h1 {
  max-width: 520px;
  font-size: clamp(42px, 4.55vw, 68px);
  letter-spacing: -0.045em;
}

.team-hero-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.42;
}

.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.team-hero-actions .button {
  min-height: 50px;
  padding-inline: 22px;
}

.team-hero-actions .secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.team-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: clamp(36px, 7vw, 110px);
  padding-top: clamp(42px, 5.2vw, 68px);
  padding-bottom: clamp(42px, 5.2vw, 66px);
}

.team-why > div,
.team-why > p {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.team-why .eyebrow,
.team-section-heading .eyebrow {
  margin-bottom: 18px;
}

.team-why h2 {
  font-size: clamp(36px, 4vw, 61px);
  letter-spacing: -0.04em;
}

.team-why > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.48;
}

.team-options {
  padding-bottom: clamp(74px, 9vw, 120px);
}

.team-section-heading {
  margin-bottom: 14px;
}

.team-section-heading h2 {
  max-width: 700px;
  font-size: clamp(36px, 4.2vw, 60px);
  letter-spacing: -0.04em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--charcoal);
  color: var(--white);
}

.team-card-image,
.team-card-overlay {
  position: absolute;
  inset: 0;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:nth-child(1) .team-card-image img { object-position: center 38%; }
.team-card:nth-child(2) .team-card-image img { object-position: center 38%; }
.team-card:nth-child(3) .team-card-image img { object-position: center 38%; }
.team-card:nth-child(4) .team-card-image img { object-position: center 42%; }
.team-card:nth-child(5) .team-card-image img { object-position: center 40%; }
.team-card:nth-child(6) .team-card-image img { object-position: center 44%; }

.team-card-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.02) 100%);
}

.team-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 245px;
  padding: 22px;
}

.team-card-copy h3 {
  margin: 0 0 7px;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 0.96;
  text-transform: uppercase;
}

.team-card-copy p {
  max-width: 270px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.team-card-copy a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card-copy a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
}

.team-steps {
  padding-bottom: clamp(80px, 9vw, 128px);
}

.team-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 152px;
  padding: 26px 24px 28px 0;
}

.team-step + .team-step {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.team-step > span {
  color: #d5d0c7;
  font-family: "Bricolage Grotesque", Manrope, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.86;
}

.team-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  text-transform: uppercase;
}

.team-step p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.team-final-cta {
  margin-top: 0;
}

@media (max-width: 900px) {
  .team-hero-inner {
    width: min(100% - 40px, 640px);
  }

  .team-hero-copy {
    width: min(600px, 78%);
  }

  .team-why {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .team-step,
  .team-step + .team-step {
    padding: 22px 0;
    border-left: 0;
  }

  .team-step + .team-step {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .team-hero,
  .team-hero-inner {
    min-height: 650px;
  }

  .team-hero-media img {
    object-position: 62% center;
  }

  .team-hero-overlay {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.86) 58%, rgba(20, 20, 20, 0.24) 100%);
  }

  .team-hero-copy {
    width: 100%;
  }

  .team-hero-copy h1 {
    font-size: clamp(36px, 9.5vw, 49px);
  }

  .team-section-heading h2,
  .team-why h2 {
    font-size: clamp(36px, 10.5vw, 54px);
  }

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

  .team-card,
  .team-card-copy {
    min-height: 230px;
  }
}
