.sab-team {
  --sab-red: #f44145;
  --sab-ink: #4a4a5a;
  --sab-muted: #727786;
  --sab-line: #e7e9ee;
  --sab-soft: #fff7f7;
  --sab-shadow: 0 18rem 42rem rgba(20, 24, 38, 0.08);
  width: 100%;
  max-width: 100%;
  padding-top: calc(var(--sab-pad-top, 0) * 1rem);
  padding-bottom: calc(var(--sab-pad-bottom, 0) * 1rem);
  box-sizing: border-box;
  color: var(--sab-ink);
  font-family: "Gilroy", Arial, sans-serif;
}

.sab-team *,
.sab-team *::before,
.sab-team *::after {
  box-sizing: border-box;
}

/*
 * The theme stays full-width. Every content block owns its own geometry.
 * Team uses the common Selenara content width: 1580px in the 1920px design,
 * expressed as 1580rem in the project's viewport-rem system.
 */
.sab-team__inner {
  width: min(calc(100% - 64rem), 1580rem);
  margin-inline: auto;
}

.sab-team__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 42rem;
  text-align: center;
}

.sab-team .sab-team__title {
  max-width: 100%;
  width: 100%;
  margin: 0;
  color: var(--sab-ink);
  font: inherit;
  font-size: calc(var(--sab-title-size, 54) * 1rem) !important;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.sab-team__title-mark {
  display: block;
  width: 46rem;
  height: 4rem;
  margin-top: 18rem;
  border-radius: 999rem;
  background: var(--sab-red);
}

.sab-team .sab-team__subtitle {
  margin: 16rem 0 0;
  color: #4a4a5a;
  font-size: 36rem !important;
  font-weight: 400;
  line-height: 1.4;
}

.sab-team__layout {
  display: grid;
  grid-template-columns: 336rem minmax(0, 1fr);
  align-items: start;
  gap: 32rem;
  width: 100%;
}

.sab-team__sidebar {
  min-width: 0;
}

.sab-team__tabs {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
  overflow: visible;
}

.sab-team__tab {
  position: relative;
  display: grid;
  grid-template-columns: 68rem minmax(0, 1fr);
  align-items: center;
  gap: 16rem;
  width: 100%;
  min-height: 96rem;
  margin: 0;
  padding: 12rem 16rem;
  border: 1rem solid var(--sab-line);
  border-radius: 12rem;
  background: #fff;
  color: var(--sab-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.sab-team__tab:hover {
  border-color: #d9dce3;
  background: #fcfcfd;
}

.sab-team__tab:focus-visible {
  outline: 3rem solid rgba(244, 65, 69, 0.2);
  outline-offset: 3rem;
}

.sab-team__tab.is-active {
  border-color: rgba(244, 65, 69, 0.46);
  background: var(--sab-soft);
  box-shadow: inset 3rem 0 0 var(--sab-red);
}

.sab-team__avatar-wrap {
  display: block;
  width: 68rem;
  height: 68rem;
  overflow: hidden;
  border-radius: 50%;
  background: #17151b;
}

.sab-team__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sab-team__tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5rem;
}

.sab-team__tab-name {
  color: var(--sab-ink);
  font-size: 17rem;
  font-weight: 700;
  line-height: 1.15;
}

.sab-team__tab-role {
  color: var(--sab-muted);
  font-size: 14rem;
  font-weight: 400;
  line-height: 1.25;
}

.sab-team__tab.is-active .sab-team__tab-name,
.sab-team__tab.is-active .sab-team__tab-role {
  color: var(--sab-red);
}

.sab-team__more {
  margin: 18rem 0 0;
  padding-left: 30rem;
}

.sab-team__more-main,
.sab-team__more-sub {
  margin: 0;
}

.sab-team__more-main {
  color: #4a4a5a;
  font-size: 16rem;
  line-height: 1.3;
}

.sab-team__more-main strong {
  color: var(--sab-red);
  font-size: 27rem;
  font-weight: 800;
}

.sab-team__more-sub {
  margin-top: 6rem;
  color: #7b808d;
  font-size: 13rem;
  line-height: 1.35;
}

.sab-team__panel {
  display: grid;
  grid-template-columns: minmax(330rem, 38%) minmax(0, 1fr);
  gap: 46rem;
  width: 100%;
  min-width: 0;
  padding: 30rem;
  border: 1rem solid #eceef2;
  border-radius: 24rem;
  background: #fff;
  box-shadow: var(--sab-shadow);
  transition: opacity 120ms ease, transform 120ms ease;
}

.sab-team__panel.is-leaving {
  opacity: 0;
  transform: translateY(-5rem);
}

.sab-team__panel.is-entering {
  animation: sab-team-content-in 300ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

@keyframes sab-team-content-in {
  from { opacity: 0; transform: translateY(-7rem); }
  to { opacity: 1; transform: translateY(0); }
}

.sab-team__media {
  min-width: 0;
  overflow: hidden;
  border-radius: 22rem;
  background: #160522;
}

.sab-team__portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 690rem;
  object-fit: cover;
  object-position: center center;
}

.sab-team__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20rem 14rem 18rem 0;
}

.sab-team__intro {
  min-width: 0;
}

.sab-team__person {
  margin: 0;
  color: var(--sab-ink);
  font: inherit;
  font-size: 46rem;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.sab-team__position {
  margin: 10rem 0 0;
  color: var(--sab-red);
  font-size: 19rem;
  font-weight: 500;
  line-height: 1.3;
}

.sab-team__quote {
  max-width: 620rem;
  margin: 34rem 0 0;
  padding: 0 0 0 18rem;
  border-left: 3rem solid var(--sab-red);
  color: #4a4a5a;
  font-size: 19rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.sab-team__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 76rem 0 0;
}

.sab-team__stat {
  position: relative;
  min-width: 0;
  padding: 0 28rem;
}

.sab-team__stat:first-child {
  padding-left: 0;
}

.sab-team__stat:last-child {
  padding-right: 0;
}

.sab-team__stat + .sab-team__stat::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1rem;
  background: #e4e6eb;
}

.sab-team__stat-value {
  display: block;
  color: var(--sab-red);
  font-size: 52rem;
  font-weight: 800;
  line-height: 1;
}

.sab-team__stat-text {
  display: block;
  max-width: 150rem;
  margin-top: 10rem;
  color: #6e7380;
  font-size: 14rem;
  font-weight: 400;
  line-height: 1.45;
}

.sab-team__roles {
  margin-top: 42rem;
  padding-top: 34rem;
  border-top: 1rem solid #e8eaee;
}

.sab-team__roles-title {
  margin: 0 0 20rem;
  color: var(--sab-ink);
  font-size: 18rem;
  font-weight: 700;
  line-height: 1.3;
}

.sab-team__roles-list {
  display: grid;
  gap: 17rem;
}

.sab-team__role-item {
  display: flex;
  align-items: center;
  gap: 12rem;
  color: #4a4a5a;
  font-size: 15rem;
  font-weight: 400;
  line-height: 1.35;
}

.sab-team__role-icon {
  display: grid;
  flex: 0 0 22rem;
  width: 22rem;
  height: 22rem;
  place-items: center;
  color: var(--sab-red);
}

.sab-team__role-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 768px+ keeps the desktop composition; only mobile switches layout. */

@media (max-width: 767px) {
  .sab-team {
    padding-top: calc(var(--sab-pad-top-m, 0) * 1rem);
    padding-bottom: calc(var(--sab-pad-bottom-m, 0) * 1rem);
  }

  .sab-team__inner {
    width: calc(100% - 32rem);
  }

  .sab-team__header {
    margin-bottom: 24rem;
  }

  .sab-team .sab-team__title {
    width: calc(var(--sab-title-width-m, 100) * 1%);
    font-size: calc(var(--sab-title-size-m, 31) * 1rem) !important;
    line-height: 1.08;
  }

  .sab-team__title-mark {
    width: 36rem;
    height: 3rem;
    margin-top: 13rem;
  }

  .sab-team .sab-team__subtitle {
    max-width: 330rem;
    margin-top: 12rem;
    font-size: 14rem !important;
    line-height: 1.4;
  }

  .sab-team__layout {
    display: block;
  }

  .sab-team__sidebar {
    margin-bottom: 18rem;
  }

  .sab-team__tabs {
    flex-direction: row;
    gap: 8rem;
    width: calc(100% + 16rem);
    margin-right: -16rem;
    padding: 2rem 16rem 4rem 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sab-team__tabs::-webkit-scrollbar {
    display: none;
  }

  .sab-team__tab {
    flex: 0 0 188rem;
    grid-template-columns: 52rem minmax(0, 1fr);
    gap: 10rem;
    min-height: 76rem;
    padding: 10rem;
    scroll-snap-align: start;
  }

  .sab-team__avatar-wrap {
    width: 52rem;
    height: 52rem;
  }

  .sab-team__tab-name {
    font-size: 13rem;
  }

  .sab-team__tab-role {
    font-size: 10.5rem;
  }

  .sab-team__more {
    margin-top: 12rem;
    padding-left: 0;
  }

  .sab-team__more-main {
    font-size: 13rem;
  }

  .sab-team__more-main strong {
    font-size: 21rem;
  }

  .sab-team__more-sub {
    font-size: 11rem;
  }

  .sab-team__panel {
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    grid-template-areas:
      "media intro"
      "stats stats"
      "roles roles";
    column-gap: 14rem;
    row-gap: 0;
    padding: 12rem;
    border-radius: 18rem;
  }

  .sab-team__media {
    grid-area: media;
    align-self: start;
    border-radius: 14rem;
  }

  .sab-team__portrait {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
  }

  .sab-team__content {
    display: contents;
    padding: 0;
  }

  .sab-team__intro {
    grid-area: intro;
    align-self: center;
    min-width: 0;
    padding: 6rem 6rem 6rem 0;
  }

  .sab-team__person {
    font-size: 25rem;
  }

  .sab-team__position {
    margin-top: 6rem;
    font-size: 13rem;
  }

  .sab-team__quote {
    margin-top: 15rem;
    padding-left: 10rem;
    border-left-width: 2rem;
    font-size: 13rem;
    line-height: 1.4;
  }

  .sab-team__stats {
    grid-area: stats;
    margin-top: 24rem;
  }

  .sab-team__stat {
    padding: 0 10rem;
  }

  .sab-team__stat-value {
    font-size: 31rem;
  }

  .sab-team__stat-text {
    margin-top: 7rem;
    font-size: 10.5rem;
    line-height: 1.35;
  }

  .sab-team__roles {
    grid-area: roles;
    margin-top: 26rem;
    padding-top: 23rem;
  }

  .sab-team__roles-title {
    margin-bottom: 17rem;
    font-size: 15rem;
  }

  .sab-team__roles-list {
    gap: 14rem;
  }

  .sab-team__role-item {
    gap: 10rem;
    font-size: 12rem;
  }

  .sab-team__role-icon {
    flex-basis: 20rem;
    width: 20rem;
    height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sab-team__panel,
  .sab-team__tab {
    transition: none;
  }

  .sab-team__panel.is-entering {
    animation: none;
  }
}
.sab-team__title span { color: #f44145; }


@media (min-width: 768px) {
  .sab-team .sab-team__title {
    color: #4a4a5a !important;
    font-size: calc(var(--sab-title-size, 46.7) * 1rem) !important;
    font-weight: 700 !important;
    line-height: 1.336 !important;
  }

  .sab-team .sab-team__subtitle {
    font-size: 25.6rem !important;
  }
}
