/* Team section: intentionally reuses the FAQ section language and existing assets. */
.bra-ko-team {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: 1920px;
  margin-inline: auto;
  padding: clamp(80px, 6vw, 112px) 39px clamp(72px, 5vw, 96px);
  background: #fff;
  color: #111;
  font-family: "DM Sans", "DM Sans Placeholder", Arial, sans-serif;
  /* kodety-display-restore:%7B%22version%22%3A1%2C%22previousValue%22%3Anull%2C%22previousImportant%22%3Afalse%2C%22fallbackDisplay%22%3A%22block%22%2C%22hiddenImportant%22%3Afalse%7D */
  display: none;
}

.bra-ko-team__header.faq-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  column-gap: clamp(48px, 7vw, 140px);
  max-width: none;
  padding-bottom: clamp(40px, 3vw, 56px);
}

.bra-ko-team__header .faq-section-label {
  grid-column: 1 / -1;
}

.bra-ko-team__title.faq-title {
  grid-column: 1;
  max-width: 14ch;
}

.bra-ko-team__subtitle {
  grid-column: 2;
  align-self: end;
  margin: 28px 0 0;
  color: #858585;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.bra-ko-team__subtitle-line {
  display: block;
}

.bra-ko-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.team-carousel__progress,
.team-carousel__controls {
  display: none;
}

.team-card {
  position: relative;
  min-width: 0;
  min-height: clamp(420px, 34vw, 620px);
  overflow: hidden;
  border-radius: 8px;
  background: #f2f2ef;
  color: #111;
}

.team-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.team-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(1);
}

.team-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(24px, 1.8vw, 32px);
}

.team-card--person .team-card__content,
.team-card--partner .team-card__content {
  justify-content: space-between;
}

.team-card--person .team-card__content {
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 42%);
}

.team-card--partner {
  background: #e8e8e6;
}

.team-card--partner .team-card__image {
  object-position: 50% 50%;
}

.team-card--partner .team-card__content {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    transparent 32%,
    transparent 56%,
    rgba(0, 0, 0, 0.64) 100%
  );
}

.team-card--network {
  background: #f2f2ef;
}

.team-card--cta {
  background: #181818;
  color: #fff;
}

.team-card--cta .team-card__content {
  justify-content: space-between;
}

.team-card__name,
.team-card__statement {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.team-card__name {
  font-size: clamp(32px, 2.5vw, 48px);
}

.team-card--person .team-card__name,
.team-card--partner .team-card__name,
.team-card__role {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.team-card--person .team-card__name,
.team-card--partner .team-card__name {
  font-size: clamp(18px, 1.3vw, 24px);
}

.team-card__role {
  font-size: clamp(14px, 1vw, 18px);
}

.team-card__statement {
  max-width: 12ch;
  font-size: clamp(30px, 2.35vw, 46px);
}

.team-card__hero-button {
  align-self: flex-start;
}

@media (max-width: 1199px) {
  .bra-ko-team {
    width: calc(100% - (var(--responsive-gutter) * 2));
    max-width: 1120px;
    padding-right: 32px;
    padding-left: 32px;
  }

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

  .team-card {
    min-height: min(62vw, 620px);
  }
}

@media (max-width: 899px) {
  .bra-ko-team {
    padding: 72px 24px;
  }

  .bra-ko-team__header.faq-header {
    grid-template-columns: 1fr;
  }

  .bra-ko-team__header .faq-section-label,
  .bra-ko-team__title.faq-title,
  .bra-ko-team__subtitle {
    grid-column: 1;
  }

  .bra-ko-team__subtitle {
    margin-top: 24px;
  }
}

@media (max-width: 809px) {
  html.bra-ko-mobile-layout .bra-ko-team {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding: var(--mobile-section-space) var(--mobile-gutter) 56px !important;
  }

  html.bra-ko-mobile-layout .bra-ko-team .faq-title {
    margin-top: var(--mobile-item-gap);
    max-width: 20ch;
    font-size: 24px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-wrap: balance;
  }

  html.bra-ko-mobile-layout .bra-ko-team .faq-header {
    padding-bottom: 24px !important;
  }

  html.bra-ko-mobile-layout .bra-ko-team__subtitle {
    margin-top: 20px;
    font-size: 18px;
  }
}

@media (max-width: 599px) {
  .bra-ko-team {
    padding: 64px 16px;
  }

  .bra-ko-team__grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .bra-ko-team__grid {
    display: flex;
    width: calc(100% + var(--mobile-gutter, 16px));
    margin-right: calc(var(--mobile-gutter, 16px) * -1);
    padding: 0 calc(32px + var(--mobile-gutter, 16px)) 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0 calc(32px + var(--mobile-gutter, 16px));
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
  }

  .bra-ko-team__grid::-webkit-scrollbar {
    display: none;
  }

  .bra-ko-team__grid:focus-visible {
    outline: 2px solid #111;
    outline-offset: 4px;
  }

  .bra-ko-team__grid .team-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 0.73;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .bra-ko-team__grid .team-card__content {
    height: 100%;
    min-height: 0;
  }

  .team-carousel__progress {
    display: block;
    position: relative;
    width: 100%;
    height: 32px;
    margin-top: 18px;
  }

  .team-carousel__progress::before {
    content: "";
    position: absolute;
    inset: 14px 0 auto;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
  }

  .team-carousel__progress-thumb {
    display: block;
    position: absolute;
    inset: 14px auto auto 0;
    width: 25%;
    height: 4px;
    background: #111;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .team-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding-top: 8px;
    color: rgba(0, 0, 0, 0.58);
    font: 500 12px/1 "DM Sans", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
  }

  .team-carousel__actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
  }

  .team-carousel__button {
    display: grid;
    place-items: center;
    width: 52px;
    height: 42px;
    padding: 10px 14px;
    color: #111;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.32);
    border-radius: 999px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .team-carousel__button svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .team-carousel__button:disabled {
    opacity: 0.28;
    cursor: default;
  }

  .team-carousel__button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
  }
}
