/* Aniyab UI — Our team */

.ay-team {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ay-bg-lighter, #FEFEFE);
  font-family: var(--ay-font-family, dana, DanaFaNum, IRANSansfanum, Tahoma, sans-serif);
  color: var(--ay-text-main, #404040);
  padding-block: 32px 90px;
}

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

/* ── Decorative glow ── */
.ay-team__glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: url("/images/contact-us/call-glow.png") center / contain no-repeat;
  opacity: 0.8;
}

.ay-team__glow--start {
  width: 380px;
  height: 380px;
  top: 0;
  left: -40px;
  filter: blur(12px);
}

.ay-team__glow--end {
  width: 460px;
  height: 460px;
  right: -140px;
  top: 52%;
  filter: blur(28px);
  transform: scaleX(-1);
}

.ay-team__inner {
  width: min(1222px, calc(100% - 32px));
  margin-inline: auto;
}

.ay-team__breadcrumb {
  margin-bottom: 24px;
  overflow: hidden;
}

/* ── Page head ── */
.ay-team__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 40px;
}

.ay-team__title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ay-team__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--ay-text-main, #404040);
  border-radius: 8px;
  text-decoration: none;
}

.ay-team__back:hover,
.ay-team__back:focus-visible {
  color: var(--ay-brand-primary-light, #0545A6);
}

.ay-team__back:focus-visible {
  outline: 2px solid var(--ay-brand-primary-light, #0545A6);
  outline-offset: 2px;
}

.ay-team__back svg {
  width: 24px;
  height: 24px;
  display: block;
}

[dir="ltr"] .ay-team__back svg {
  transform: scaleX(-1);
}

.ay-team__title {
  margin: 0;
  font-weight: var(--ay-type-display-md-weight, 500);
  font-size: var(--ay-type-display-md-size, 24px);
  line-height: var(--ay-type-display-md-line, 40px);
  color: var(--ay-text-title, #302E2E);
}

.ay-team__sub {
  margin: 0;
  font-weight: 500;
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-text-secondary, #737373);
}

.ay-team__body {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

/* ── Hero ── */
.ay-team-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content stats"
    "faces   stats";
  align-items: center;
  gap: 32px 48px;
  padding: 48px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: var(--ay-text-contrast, #FFFFFF);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(57, 116, 205, 0.55) 0%, rgba(57, 116, 205, 0) 55%),
    linear-gradient(135deg, var(--ay-brand-primary-dark, #022251) 0%, var(--ay-brand-primary, #002D71) 55%, var(--ay-brand-primary-light, #0545A6) 100%);
  box-shadow: 0 24px 48px -24px rgba(2, 34, 81, 0.55);
}

.ay-team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}

[dir="rtl"] .ay-team-hero::before {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(270deg, transparent 0%, #000 70%);
}

.ay-team-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  inset-inline-end: -120px;
  bottom: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 28, 0.45) 0%, rgba(255, 111, 28, 0) 70%);
}

.ay-team-hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 620px;
}

.ay-team-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 500;
  font-size: var(--ay-type-text-md-size, 12px);
  line-height: var(--ay-type-text-md-line, 24px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ay-team-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ay-brand-secondary, #FF6F1C);
  box-shadow: 0 0 0 3px rgba(255, 111, 28, 0.25);
}

.ay-team-hero__title {
  margin: 0;
  font-weight: var(--ay-type-display-xl-weight, 600);
  font-size: var(--ay-type-display-xl-size, 36px);
  line-height: var(--ay-type-display-xl-line, 48px);
  color: inherit;
}

.ay-team-hero__text {
  margin: 0;
  font-weight: 500;
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: rgba(255, 255, 255, 0.78);
}

.ay-team-hero__stats {
  grid-area: stats;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.ay-team-stat {
  display: flex;
  flex-direction: column-reverse;
  min-width: 200px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ay-team-stat__value {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  font-variant-numeric: tabular-nums;
}

.ay-team-stat__label {
  font-weight: 500;
  font-size: var(--ay-type-text-lg-size, 14px);
  line-height: var(--ay-type-text-lg-line, 28px);
  color: rgba(255, 255, 255, 0.72);
}

.ay-team-hero__faces {
  grid-area: faces;
  display: flex;
  align-items: center;
  padding-inline-start: 10px;
}

.ay-team-hero__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-inline-start: -10px;
  border: 2px solid var(--ay-brand-primary, #002D71);
  border-radius: 50%;
  background: #FFFFFF;
  object-fit: cover;
  object-position: center top;
}

.ay-team-hero__face--more {
  background: var(--ay-brand-secondary, #FF6F1C);
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--ay-type-text-lg-size, 14px);
  direction: ltr;
}

/* ── Section head ── */
.ay-team-leaders,
.ay-team-members {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ay-team-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ay-team-section__title {
  position: relative;
  margin: 0;
  padding-bottom: 12px;
  font-weight: var(--ay-type-display-md-weight, 500);
  font-size: var(--ay-type-display-md-size, 24px);
  line-height: var(--ay-type-display-md-line, 40px);
  color: var(--ay-text-title, #302E2E);
}

.ay-team-section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ay-brand-primary-light, #0545A6), var(--ay-brand-secondary, #FF6F1C));
  transform: translateX(-50%);
}

.ay-team-section__sub {
  margin: 0;
  max-width: 640px;
  font-weight: 500;
  font-size: var(--ay-type-text-lg-size, 14px);
  line-height: var(--ay-type-text-lg-line, 28px);
  color: var(--ay-text-secondary, #737373);
}

/* ── Shared ── */
.ay-team-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ay-brand-secondary-paler, #FFF3EB);
  color: var(--ay-brand-secondary-dark, #ED5904);
  font-weight: 700;
  font-size: var(--ay-type-text-md-size, 12px);
  line-height: var(--ay-type-text-md-line, 24px);
}

.ay-team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(145deg, var(--ay-brand-primary-lighter, #3974CD) 0%, var(--ay-brand-primary, #002D71) 100%);
}

.ay-team-initials::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.5px);
  background-size: 16px 16px;
}

.ay-team-initials--1 {
  background: linear-gradient(145deg, var(--ay-brand-secondary-lighter, #F8A16F) 0%, var(--ay-brand-secondary-dark, #ED5904) 100%);
}

.ay-team-initials--2 {
  background: linear-gradient(145deg, #5B8DD9 0%, var(--ay-brand-primary-light, #0545A6) 100%);
}

.ay-team-initials--3 {
  background: linear-gradient(145deg, #3E4C66 0%, var(--ay-brand-primary-dark, #022251) 100%);
}

/* ── Leaders ── */
.ay-team-leaders__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ay-team-leader {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--ay-bg-white, #FFFFFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ay-team-leader:hover {
  transform: translateY(-4px);
  border-color: var(--ay-brand-primary-pale, #B9D3F9);
  box-shadow: var(--ay-elevation-active, 0px -4px 24px rgba(97, 155, 254, 0.22), 0px 4px 12px rgba(97, 155, 254, 0.12));
}

.ay-team-leader__media {
  position: relative;
  flex: none;
  width: 44%;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: linear-gradient(180deg, #F5F8FD 0%, var(--ay-brand-primary-paler, #EBF1FB) 100%);
}

.ay-team-leader__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ay-team-leader:hover .ay-team-leader__img {
  transform: scale(1.04);
}

.ay-team-leader__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 32px;
}

.ay-team-leader__name {
  margin: 8px 0 0;
  font-weight: var(--ay-type-display-sm-weight, 600);
  font-size: var(--ay-type-display-sm-size, 20px);
  line-height: var(--ay-type-display-sm-line, 36px);
  color: var(--ay-text-title, #302E2E);
}

.ay-team-leader__role {
  margin: 0;
  font-weight: 500;
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-brand-primary-light, #0545A6);
}

/* ── Filter ── */
.ay-team-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ay-team-filter__chip.ay-chip {
  height: 40px;
  min-height: 40px;
  padding: 4px 6px 4px 14px;
  gap: 8px;
}

[dir="rtl"] .ay-team-filter__chip.ay-chip {
  padding: 4px 14px 4px 6px;
}

.ay-team-filter__chip:focus-visible {
  outline: 2px solid var(--ay-brand-primary-light, #0545A6);
  outline-offset: 2px;
}

.ay-team-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ay-bg-dark, #F4F4F5);
  color: var(--ay-text-secondary, #737373);
  font-weight: 700;
  font-size: var(--ay-type-text-md-size, 12px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ay-team-filter__chip[aria-pressed="true"] .ay-team-filter__count {
  background: var(--ay-brand-primary, #002D71);
  color: #FFFFFF;
}

.ay-team-members__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Members grid ── */
.ay-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ay-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ay-bg-white, #FFFFFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: var(--ay-radius-card, 16px);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ay-team-card[hidden] {
  display: none;
}

.ay-team-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ay-brand-primary-light, #0545A6), var(--ay-brand-secondary, #FF6F1C));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.ay-team-card:hover {
  transform: translateY(-6px);
  border-color: var(--ay-brand-primary-pale, #B9D3F9);
  box-shadow: var(--ay-elevation-active, 0px -4px 24px rgba(97, 155, 254, 0.22), 0px 4px 12px rgba(97, 155, 254, 0.12));
}

.ay-team-card:hover::after {
  transform: scaleX(1);
}

.ay-team-card__media {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: linear-gradient(180deg, #F5F8FD 0%, var(--ay-brand-primary-paler, #EBF1FB) 100%);
}

.ay-team-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ay-team-card:hover .ay-team-card__img {
  transform: scale(1.06);
}

.ay-team-card__media::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgba(2, 34, 81, 0) 0%, rgba(2, 34, 81, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.ay-team-card:hover .ay-team-card__media::after {
  opacity: 1;
}

.ay-team-card__dept {
  position: absolute;
  z-index: 1;
  top: 12px;
  inset-inline-start: 12px;
  max-width: calc(100% - 24px);
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ay-brand-primary, #002D71);
  font-weight: 700;
  font-size: var(--ay-type-text-sm-size, 11px);
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--ay-elevation-sm, 0px 1px 8px rgba(163, 163, 163, 0.25));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ay-team-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px 20px;
  text-align: center;
}

.ay-team-card__name {
  margin: 0;
  font-weight: var(--ay-type-text-xl-bold-weight, 700);
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: var(--ay-text-title, #302E2E);
}

.ay-team-card__role {
  margin: 0;
  font-weight: 500;
  font-size: var(--ay-type-text-lg-size, 14px);
  line-height: 24px;
  color: var(--ay-text-secondary, #737373);
}

/* ── Join CTA ── */
.ay-team-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  color: #FFFFFF;
  background: linear-gradient(120deg, var(--ay-brand-primary-dark, #022251) 0%, var(--ay-brand-primary-light, #0545A6) 100%);
}

.ay-team-cta::before,
.ay-team-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.ay-team-cta::before {
  width: 280px;
  height: 280px;
  inset-inline-start: -90px;
  top: -140px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.025);
}

.ay-team-cta::after {
  width: 300px;
  height: 300px;
  inset-inline-end: 10%;
  bottom: -200px;
  background: radial-gradient(circle, rgba(255, 111, 28, 0.5) 0%, rgba(255, 111, 28, 0) 70%);
}

.ay-team-cta__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ay-team-cta__title {
  margin: 0;
  font-weight: var(--ay-type-display-lg-weight, 600);
  font-size: var(--ay-type-display-lg-size, 28px);
  line-height: var(--ay-type-display-lg-line, 44px);
  color: inherit;
}

.ay-team-cta__text {
  margin: 0;
  max-width: 620px;
  font-weight: 500;
  font-size: var(--ay-type-text-xl-size, 16px);
  line-height: var(--ay-type-text-xl-line, 28px);
  color: rgba(255, 255, 255, 0.8);
}

.ay-team-cta__btn.ay-btn {
  flex: none;
  padding-inline: 16px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.15s ease;
}

.ay-team-cta__btn.ay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  color: var(--ay-brand-primary, #002D71);
}

.ay-team-cta__btn.ay-btn:focus-visible {
  outline-color: #FFFFFF;
}

.ay-team-cta__arrow {
  transition: transform 0.2s ease;
}

[dir="rtl"] .ay-team-cta__arrow svg {
  transform: scaleX(-1);
}

.ay-team-cta__btn:hover .ay-team-cta__arrow {
  transform: translateX(4px);
}

[dir="rtl"] .ay-team-cta__btn:hover .ay-team-cta__arrow {
  transform: translateX(-4px);
}

/* ── Reveal on scroll (enabled by team.js) ── */
.ay-team.is-animated [data-ay-team-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--ay-team-i, 0) * 70ms);
}

.ay-team.is-animated [data-ay-team-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.ay-team.is-animated .ay-team-card.is-visible:hover,
.ay-team.is-animated .ay-team-leader.is-visible:hover {
  transition-delay: 0s;
}

.ay-team.is-animated .ay-team-card.is-visible:hover {
  transform: translateY(-6px);
}

.ay-team.is-animated .ay-team-leader.is-visible:hover {
  transform: translateY(-4px);
}

.ay-team-card.is-entering {
  animation: ay-team-pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--ay-team-order, 0) * 40ms);
}

@keyframes ay-team-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ── Tablet ── */
@media (max-width: 1199.98px) {
  .ay-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ay-team-leaders__list {
    gap: 24px;
  }

  .ay-team-leader__body {
    padding: 24px;
  }
}

@media (max-width: 991.98px) {
  .ay-team__body {
    gap: 64px;
  }

  .ay-team-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "content"
      "stats"
      "faces";
    padding: 36px;
  }

  .ay-team-hero__stats {
    flex-direction: row;
  }

  .ay-team-stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .ay-team-hero__title {
    font-size: var(--ay-type-display-lg-size, 28px);
    line-height: var(--ay-type-display-lg-line, 44px);
  }

  .ay-team-leaders__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ay-team-leader__media {
    width: 38%;
  }

  .ay-team-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
  .ay-team {
    padding-block: 16px 48px;
  }

  .ay-team__glow--start {
    width: 220px;
    height: 220px;
    left: -60px;
    opacity: 0.6;
  }

  .ay-team__glow--end {
    width: 260px;
    height: 260px;
    right: -120px;
    opacity: 0.5;
  }

  .ay-team__breadcrumb {
    margin-bottom: 16px;
  }

  .ay-team__head {
    gap: 0;
    margin-bottom: 24px;
  }

  .ay-team__title {
    font-size: var(--ay-type-text-xl-size, 16px);
    line-height: var(--ay-type-text-xl-line, 28px);
  }

  .ay-team__back,
  .ay-team__back svg {
    width: 20px;
    height: 20px;
  }

  .ay-team__sub {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }

  .ay-team__body {
    gap: 48px;
  }

  .ay-team-hero {
    gap: 20px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .ay-team-hero__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-team-hero__text {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }

  .ay-team-hero__stats {
    gap: 12px;
  }

  .ay-team-stat {
    padding: 12px 16px;
    border-radius: 12px;
  }

  .ay-team-stat__value {
    font-size: 28px;
    line-height: 40px;
  }

  .ay-team-stat__label {
    font-size: var(--ay-type-text-md-size, 12px);
    line-height: var(--ay-type-text-md-line, 24px);
  }

  .ay-team-hero__face {
    width: 40px;
    height: 40px;
  }

  .ay-team-leaders,
  .ay-team-members {
    gap: 20px;
  }

  .ay-team-section__head {
    align-items: flex-start;
    text-align: start;
  }

  .ay-team-section__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
    padding-bottom: 8px;
  }

  .ay-team-section__title::after {
    left: 0;
    transform: none;
  }

  [dir="rtl"] .ay-team-section__title::after {
    left: auto;
    right: 0;
  }

  .ay-team-section__sub {
    font-size: var(--ay-type-text-md-size, 12px);
    line-height: var(--ay-type-text-md-line, 24px);
  }

  .ay-team-leaders__list {
    gap: 16px;
  }

  .ay-team-leader {
    border-radius: 16px;
  }

  .ay-team-leader__media {
    width: 40%;
    aspect-ratio: auto;
    min-height: 168px;
  }

  .ay-team-leader__body {
    gap: 4px;
    padding: 16px;
  }

  .ay-team-leader__name {
    margin-top: 4px;
    font-size: var(--ay-type-text-xl-size, 16px);
    line-height: var(--ay-type-text-xl-line, 28px);
  }

  .ay-team-leader__role {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: 24px;
  }

  .ay-team-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .ay-team-filter::-webkit-scrollbar {
    display: none;
  }

  .ay-team-filter__chip.ay-chip {
    flex: none;
    height: 36px;
    min-height: 36px;
    scroll-snap-align: start;
  }

  .ay-team-filter__count {
    min-width: 22px;
    height: 22px;
  }

  .ay-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ay-team-card {
    border-radius: 12px;
  }

  .ay-team-card:hover,
  .ay-team.is-animated .ay-team-card.is-visible:hover {
    transform: none;
  }

  .ay-team-card__dept {
    display: none;
  }

  .ay-team-card__body {
    padding: 10px 8px 12px;
  }

  .ay-team-card__name {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: 24px;
  }

  .ay-team-card__role {
    font-size: var(--ay-type-text-md-size, 12px);
    line-height: 20px;
  }

  .ay-team-initials {
    font-size: 40px;
  }

  .ay-team-cta {
    gap: 20px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .ay-team-cta__title {
    font-size: var(--ay-type-display-sm-size, 20px);
    line-height: var(--ay-type-display-sm-line, 36px);
  }

  .ay-team-cta__text {
    font-size: var(--ay-type-text-lg-size, 14px);
    line-height: var(--ay-type-text-lg-line, 28px);
  }

  .ay-team-cta__btn.ay-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ay-team [data-ay-team-reveal],
  .ay-team-card,
  .ay-team-leader,
  .ay-team-card__img,
  .ay-team-leader__img,
  .ay-team-cta__arrow {
    transition: none !important;
  }

  .ay-team-card.is-entering {
    animation: none;
  }

  .ay-team-card:hover,
  .ay-team-leader:hover {
    transform: none !important;
  }
}
