.team-page__container,
.team-header__inner,
.team-footer__inner {
  width: calc(100% - 32px);
}

.team-header__inner {
  min-height: 66px;
}

.site-logo {
  width: 138px;
}

.team-page {
  min-height: calc(100vh - 66px);
}

.team-about {
  padding: 54px 0 44px;
}

.team-about::before {
  top: 24%;
  width: 440px;
  height: 220px;
}

.team-about__eyebrow {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
}

.team-about__title {
  font-size: clamp(36px, 10.8vw, 48px);
  line-height: 1.06;
}

.team-about__text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.62;
}

.team-about__note {
  margin-top: 17px;
  font-size: 15px;
  line-height: 1.55;
}

.team-section-divider {
  width: calc(100% - 64px);
}

.team-hero {
  padding: 56px 0 30px;
}

.team-hero__inner {
  grid-template-columns: 1fr;
  gap: 24px;
}

.team-hero__copy {
  max-width: 100%;
  text-align: center;
}

.team-hero__eyebrow {
  justify-content: center;
  margin-right: auto;
  margin-bottom: 16px;
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.32em;
}

.team-hero__eyebrow span {
  width: 42px;
}

.team-hero__title {
  font-size: clamp(34px, 11vw, 48px);
  font-weight: 740;
  line-height: 0.98;
}

.team-hero__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.58;
}

.team-hero__accent {
  margin-top: 12px;
  font-size: 16px;
}

.team-signal {
  width: 100%;
  max-width: 340px;
  min-height: 112px;
  justify-self: center;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 20px;
}

.team-signal__line {
  font-size: 13px;
}

.team-members {
  padding-top: 6px;
}

.team-carousel {
  --team-carousel-card-width: 88vw;
  width: calc(100% + 32px);
  margin-left: -16px;
}

.team-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: calc((100% - var(--team-carousel-card-width)) / 2);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.team-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--team-carousel-card-width);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 14px calc((100% - var(--team-carousel-card-width)) / 2) 26px;
}

.team-card {
  display: grid;
  min-height: 590px;
  grid-template-rows: 240px minmax(0, 1fr);
  align-self: stretch;
  align-content: stretch;
  justify-content: stretch;
  padding: 18px;
  border-radius: 24px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.team-card::before {
  top: 20px;
  left: 20px;
}

.team-card__media {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}

.team-card__media::after {
  right: -18px;
  bottom: 0;
  left: -18px;
  height: 112px;
}

.team-card__media img {
  width: min(92%, 270px);
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}

.team-card--rilaine .team-card__media img,
.team-card--rilaine:hover .team-card__media img {
  transform: none;
}

.team-card__content {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-self: stretch;
  align-content: stretch;
  margin-top: -20px;
  padding-top: 0;
}

.team-card__role {
  display: flex;
  min-height: 27px;
  align-items: flex-end;
  margin-bottom: 4px;
  font-size: 11px;
}

.team-card__name {
  font-size: clamp(40px, 14vw, 48px);
  letter-spacing: -0.055em;
}

.team-card__name::after {
  bottom: -14px;
  width: 44px;
}

.team-card__text {
  max-width: 100%;
  min-height: 0;
  align-self: start;
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.58;
}

.team-card__tags {
  align-self: end;
  gap: 8px;
  margin-top: 18px;
}

.team-card__tag {
  gap: 6px;
  padding: 7px 10px;
  font-size: 11px;
}

.team-card__tag::before {
  width: 6px;
  height: 6px;
}

.team-carousel__pagination {
  display: flex;
}

.team-values {
  padding: 28px 0 72px;
}

.team-value {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: 22px;
}

.team-value__main {
  align-items: flex-start;
  gap: 14px;
}

.team-value__icon--puzzle {
  width: 64px;
  height: 64px;
}

.team-value__copy h2 {
  font-size: 17px;
}

.team-value__copy p {
  font-size: 14px;
}

.team-value__items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
}

.team-value__item {
  min-height: 94px;
  padding: 14px 8px;
}

.team-value__item + .team-value__item {
  border-left: 0;
}

.team-value__item:nth-child(2n) {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.team-value__item:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-value__item-icon {
  width: 32px;
  height: 32px;
}

.team-footer__inner {
  min-height: 84px;
}

@media (max-width: 420px) {
  .team-page__container,
  .team-header__inner,
  .team-footer__inner {
    width: calc(100% - 24px);
  }

  .site-logo {
    width: 122px;
  }

  .team-carousel {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .team-grid {
    gap: 10px;
  }

  .team-section-divider {
    width: calc(100% - 48px);
  }

  .team-card {
    padding: 16px;
    grid-template-rows: 220px minmax(0, 1fr);
  }

  .team-card__media::after {
    right: -16px;
    left: -16px;
  }

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

  .team-value__item:nth-child(2n) {
    border-left: 0;
  }

  .team-value__item:nth-child(n + 2) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .team-footer__inner {
    min-height: 80px;
    text-align: center;
  }
}
