.team-page {
  background: #fbfcff;
}

.team-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.4rem, 7vw, 6.5rem) 0 clamp(4.8rem, 9vw, 8rem);
  background: #fbfcff;
  color: var(--navy-deep);
  text-align: center;
}

.team-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.team-hero .eyebrow {
  margin-bottom: 0.65rem;
  color: var(--green);
}

.team-hero .eyebrow::before,
.team-hero .eyebrow::after {
  background: var(--gold);
}

.team-hero h1 {
  position: relative;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.team-hero h1 span {
  position: relative;
  display: inline-block;
  font-weight: 800;
}

.team-hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.62rem;
  width: 96px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(17, 32, 61, 0.22), var(--gold), rgba(17, 32, 61, 0.22));
  transform: translateX(-50%);
}

.team-hero p:not(.eyebrow) {
  max-width: 54ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.team-section {
  padding: clamp(2rem, 5vw, 4.6rem) 0 5.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 4rem) clamp(2rem, 6vw, 5rem);
}

.team-area-title {
  grid-column: 1 / -1;
  margin: clamp(0.8rem, 2vw, 1.4rem) 0 0;
  color: var(--navy-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.team-area-title:first-child {
  margin-top: 0;
}

.team-department {
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: 8px;
  background: transparent;
}

.team-department.is-soft {
  background:
    linear-gradient(180deg, rgba(18, 33, 74, 0.025), rgba(18, 33, 74, 0.01)),
    #f5f7fa;
}

.department-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  color: var(--navy-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.department-icon {
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--green);
}

.department-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.team-department h2 {
  margin: 0;
  color: #242a32;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.28rem, 2vw, 1.68rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.team-department h2 span {
  display: inline-block;
  color: inherit;
  font-weight: 800;
}

.department-copy {
  max-width: 42ch;
  margin: 1rem 0 0;
  color: #6f7885;
  font-size: 1.02rem;
  line-height: 1.45;
}

.team-carousel {
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.carousel-stage {
  position: relative;
  width: min(100%, 360px);
  height: 168px;
  overflow: hidden;
}

.carousel-person {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 118px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(8, 21, 52, 0.12);
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.76);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease,
    box-shadow 0.26s ease,
    filter 0.26s ease;
}

.carousel-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-person-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 114, 52, 0.16), rgba(243, 194, 68, 0.28));
  color: var(--green-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.carousel-person.is-active {
  z-index: 3;
  width: 138px;
  height: 138px;
  opacity: 1;
  box-shadow: 0 16px 32px rgba(8, 21, 52, 0.2);
  transform: translate(-50%, -50%) scale(1);
}

.carousel-person.is-prev,
.carousel-person.is-next {
  z-index: 2;
  opacity: 0.48;
  filter: saturate(0.75);
}

.carousel-person.is-prev {
  transform: translate(calc(-50% - 128px), -50%) scale(0.9);
}

.carousel-person.is-next {
  transform: translate(calc(-50% + 128px), -50%) scale(0.9);
}

.carousel-person:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 18px;
}

.carousel-dot {
  width: 0.34rem;
  height: 0.34rem;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(17, 32, 61, 0.14);
  cursor: pointer;
  transition:
    width 0.22s ease,
    background-color 0.22s ease;
}

.carousel-dot.is-active {
  width: 1.05rem;
  background: rgba(17, 32, 61, 0.52);
}

.carousel-dot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.team-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.35rem);
  align-items: center;
  width: min(100%, 470px);
  margin-top: 0.5rem;
  padding: clamp(0.8rem, 2vw, 1rem);
  border: 1px solid rgba(13, 114, 52, 0.13);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(8, 21, 52, 0.11);
}

.team-profile-card[hidden] {
  display: none;
}

.team-profile-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(17, 32, 61, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.team-profile-close:hover,
.team-profile-close:focus-visible {
  background: var(--green);
  color: #ffffff;
}

.team-profile-close:focus-visible {
  outline: 3px solid rgba(13, 114, 52, 0.2);
  outline-offset: 2px;
}

.team-profile-image {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 15px 28px rgba(8, 21, 52, 0.16);
}

.team-profile-image-placeholder {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(13, 114, 52, 0.16), rgba(243, 194, 68, 0.28));
  color: var(--green-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
}

.team-profile-image-placeholder[hidden] {
  display: none;
}

.team-profile-content {
  min-width: 0;
  padding-right: 1.75rem;
}

.team-profile-label {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-profile-content h3 {
  margin: 0 0 0.85rem;
  color: var(--navy-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.team-profile-content > span {
  display: block;
  margin-bottom: 0.2rem;
  color: #687588;
  font-size: 0.84rem;
  font-weight: 700;
}

.team-profile-email {
  display: inline-flex;
  color: var(--green);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.team-profile-email:hover,
.team-profile-email:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1120px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .team-hero {
    padding: 3rem 0 4.4rem;
  }

  .team-hero .eyebrow {
    display: grid;
    gap: 0.35rem;
  }

  .team-hero .eyebrow::before,
  .team-hero .eyebrow::after {
    display: none;
  }

  .team-section {
    padding-top: 1.8rem;
  }

  .team-department {
    padding: 1.5rem 1rem;
  }

  .team-department.is-soft {
    margin-inline: -0.25rem;
    border-radius: 24px;
  }

  .carousel-stage {
    width: min(100%, 320px);
  }

  .carousel-person.is-prev {
    transform: translate(calc(-50% - 104px), -50%) scale(0.84);
  }

  .carousel-person.is-next {
    transform: translate(calc(-50% + 104px), -50%) scale(0.84);
  }

  .team-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .team-profile-content {
    padding-right: 0;
  }
}
