.team {
  padding: clamp(72px, 8vw, 98px) max(6vw, 24px);
  color: #fff;
  background: #171429;
  scroll-margin-top: 100px;
}

.team-shell {
  width: min(100%, 1250px);
  margin: 0 auto;
}

.team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}

.team-kicker {
  margin: 0 0 15px;
  color: #d8a6ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.team-head h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -.052em;
  line-height: .98;
}

.team-intro {
  max-width: 680px;
  margin: 19px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 15px;
  line-height: 1.6;
}

.team-navigation {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.team-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 78px;
  margin-right: 6px;
  color: rgba(255,255,255,.38);
  font-size: 12px;
  font-weight: 700;
}

.team-counter strong {
  color: #fff;
  font-size: 22px;
}

.team-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.team-arrow:hover {
  border-color: #d8a6ee;
  color: #171429;
  background: #d8a6ee;
  transform: translateY(-2px);
}

.team-arrow:focus-visible,
.team-tab:focus-visible,
.team-link:focus-visible,
.team-viewport:focus-visible {
  outline: 3px solid #36ef74;
  outline-offset: 3px;
}

.team-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 30px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: height .3s ease;
}

.team-viewport::-webkit-scrollbar {
  display: none;
}

.team-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.team-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
  box-sizing: border-box;
  min-width: 100%;
  flex: 0 0 100%;
  padding: clamp(30px, 4.4vw, 56px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 14%, rgba(128,109,221,.18), transparent 34%),
    linear-gradient(132deg, #292135 0%, #1d1927 62%, #171429 100%);
  box-shadow: 0 28px 72px rgba(4,2,10,.28);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  align-self: flex-start;
}

.team-visual {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #30283a;
  box-shadow: 0 22px 52px rgba(0,0,0,.32);
}

.team-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(12,9,24,.68), transparent 36%);
}

.team-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
}

.team-visual--tamara img { object-position: 63% center; }
.team-visual--urge img { object-position: 50% center; }
.team-visual--kiso img { object-position: 50% center; }
.team-visual--klaudia img { object-position: 22% center; }

.team-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: rgba(255,255,255,.72);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.team-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 0;
}

.team-role {
  margin: 0 0 12px;
  color: #d8a6ee;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.team-role span {
  margin: 0 7px;
  color: rgba(255,255,255,.32);
}

.team-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .98;
}

.team-copy h3 small {
  display: inline-block;
  color: rgba(255,255,255,.56);
  font-size: .45em;
  font-weight: 600;
  letter-spacing: -.02em;
}

.team-text {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.68);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.68;
}

.team-quote {
  max-width: 690px;
  margin: 22px 0 0;
  padding: 15px 18px;
  border-left: 2px solid #d8a6ee;
  border-radius: 0 13px 13px 0;
  color: rgba(255,255,255,.9);
  background: rgba(216,166,238,.055);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.56;
}

.team-focus {
  display: grid;
  gap: 7px;
  max-width: 690px;
  margin: 24px 0 0;
  padding: 17px 18px;
  border: 1px solid rgba(216,166,238,.18);
  border-radius: 14px;
  background: rgba(216,166,238,.045);
}

.team-focus span {
  color: #d8a6ee;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.team-focus strong {
  color: rgba(255,255,255,.87);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.team-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.team-link:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.11);
  transform: translateY(-2px);
}

.team-link svg {
  width: 17px;
  height: 17px;
  fill: #0a66c2;
}

.team-link span {
  margin-left: 5px;
  color: #d8a6ee;
}

.team-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.team-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,.48);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.team-tab span {
  color: rgba(216,166,238,.62);
  font-size: 9px;
  letter-spacing: .08em;
}

.team-tab:hover {
  color: #fff;
}

.team-tab.is-active {
  border-color: rgba(216,166,238,.28);
  color: #fff;
  background: rgba(216,166,238,.09);
}

.team-hint {
  margin: 0;
  color: rgba(255,255,255,.34);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .team-head {
    align-items: flex-start;
  }

  .team-navigation {
    padding-top: 30px;
  }

  .team-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-visual {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 560px);
    max-width: 560px;
    aspect-ratio: 3 / 2;
    justify-self: center;
  }

  .team-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .team-visual--urge img { object-position: 50% center; }
  .team-visual--klaudia img { object-position: 18% center; }
  .team-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .team {
    padding: 62px 16px 68px;
  }

  .team-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 22px 12px;
    margin-bottom: 22px;
  }

  .team-head > div:first-child {
    grid-column: 1 / -1;
  }

  .team-navigation {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 0;
  }

  .team-counter {
    margin-right: auto;
  }

  .team-head h2 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .team-slide {
    gap: 22px;
    padding: 18px 18px 26px;
    border-radius: 22px;
  }

  .team-viewport {
    border-radius: 22px;
  }

  .team-visual {
    width: 100%;
    border-radius: 16px;
  }

  .team-copy h3 {
    font-size: clamp(35px, 11vw, 46px);
  }

  .team-role {
    font-size: 9px;
  }

  .team-text {
    margin-top: 18px;
    font-size: 15px;
  }

  .team-quote,
  .team-focus {
    margin-top: 19px;
  }

  .team-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .team-tabs::-webkit-scrollbar { display: none; }

  .team-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .team-slide {
    padding: 14px 14px 23px;
  }

  .team-copy {
    padding: 0 4px;
  }

  .team-visual {
    aspect-ratio: 4 / 3;
  }

  .team-link {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-viewport { scroll-behavior: auto; transition: none; }
  .team-arrow,
  .team-tab,
  .team-link { transition: none; }
}
