.team-grid-people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (min-width: 961px) {
  .team-grid-people.team-grid-five-profiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .team-grid-five-profiles > .team-card-person {
    grid-column: span 2;
  }

  .team-grid-five-profiles > .team-card-person:nth-last-child(2) {
    grid-column: 2 / span 2;
  }
}

.team-card-person {
  position: relative;
  border-radius: 22px 22px 22px 7px;
  box-shadow: 0 20px 52px rgba(16, 42, 82, 0.1);
}

.team-card-person .team-portrait {
  height: clamp(245px, 27vw, 330px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 80% 10%, rgba(54, 128, 245, 0.42), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(255, 106, 43, 0.16), transparent 25%),
    linear-gradient(145deg, #0a397d, #061a38 72%);
}

.team-card-person .team-portrait::before {
  content: "";
  width: 245px;
  height: 245px;
  position: absolute;
  z-index: -1;
  border: 32px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.team-photo-frame {
  width: clamp(178px, 18vw, 224px);
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #eef3fa;
  box-shadow:
    0 22px 46px rgba(0, 12, 34, 0.38),
    0 0 0 8px rgba(255, 255, 255, 0.09);
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.team-portrait-sara img {
  object-position: 50% 46%;
  transform: scale(1.3);
}

.team-portrait-ivan img {
  transform: translateY(11px) scale(1.13);
  transform-origin: 63% 34%;
}

.team-portrait-giacomo img {
  object-position: 50% 38%;
  transform: scale(1.06);
}

.team-portrait-roxana img {
  object-position: 50% 0%;
}

.team-portrait-karina img {
  object-position: 50% 17%;
}

.team-portrait-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(4, 23, 53, 0.42));
}

.team-card-person .team-portrait > i {
  width: clamp(178px, 18vw, 224px);
  height: auto;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  border: 6px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 46px rgba(0, 12, 34, 0.38),
    0 0 0 8px rgba(255, 255, 255, 0.09);
  font-family: "Sora WebCar", "Trebuchet MS", Arial, sans-serif;
  font-size: 42px;
}

.team-role-chip {
  min-height: 31px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 37, 85, 0.82);
  backdrop-filter: blur(10px);
  font-family: "Sora WebCar", "Trebuchet MS", Arial, sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1px;
}

.team-card-person .team-card-content {
  min-height: 184px;
  padding: 25px;
}

.team-card-person .team-card-content h2 {
  margin-top: 7px;
  color: var(--blue-deep);
  font-family: "Sora WebCar", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -1px;
}

.team-job {
  margin-bottom: 13px;
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.team-growth-head {
  margin: clamp(60px, 8vw, 92px) 0 28px;
}

.team-growth-head h3 {
  max-width: 700px;
  margin: 0;
  color: var(--blue-deep);
  font-family: "Sora WebCar", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2px;
}

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

@media (max-width: 960px) {
  .team-grid-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .team-grid-people,
  .team-grid-departments {
    grid-template-columns: 1fr;
  }

  .team-card-person .team-portrait {
    height: 310px;
  }

  .team-card-person .team-card-content {
    min-height: 0;
  }
}
