.team-list {
  --team-gap: clamp(1rem, 2.5vw, 2rem);
  --team-card-bg: #ffffff;
  --team-text: #1d2433;
  --team-muted: #5f6b7d;
  --team-border: #e6e9ef;
  --team-accent: #0a66c2;
  --team-accent-soft: #eaf2fb;
  --team-radius: 1rem;
  --team-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --team-shadow-hover: 0 2px 4px rgba(16, 24, 40, .08), 0 16px 40px rgba(16, 24, 40, .12);

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--team-gap);
  margin-block: 2rem;
  padding: 0;
}

/* Card */
.team-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--team-card-bg);
  color: var(--team-text);
  border: 1px solid var(--team-border);
  border-radius: var(--team-radius);
  box-shadow: var(--team-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* colored band at the top of each card */
.team-member::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5.5rem;
  background: linear-gradient(135deg, #f6b59b, #f4f6fa);
  z-index: 0;
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--team-shadow-hover);
}

/* Avatar */
.team-member__avatar {
  position: relative;
  z-index: 1;
  width: 7.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--team-card-bg);
  box-shadow: 0 4px 14px rgba(16, 24, 40, .12);
  background: var(--team-accent);
  margin-bottom: 1.25rem;
}

.team-member__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.team-member:hover .team-member__avatar img {
  transform: scale(1.05);
}

.team-member__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Text */
.team-member__body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.team-member__name {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.team-member__position {
  margin: 0;
  color: var(--team-accent);
  font-size: .9rem;
  font-weight: 600;
}

.team-member__company {
  margin: .15rem 0 0;
  color: var(--team-muted);
  font-size: .9rem;
}

.team-member__address {
  margin: 1rem 0 0;
  color: var(--team-muted);
  font-size: .875rem;
  font-style: normal;
  line-height: 1.5;
}

/* Contact */
.team-member__contact {
  position: relative;
  z-index: 1;
  width: 100%;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--team-border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.team-member__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 100%;
  color: var(--team-text);
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s ease;
}

.team-member__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member__link svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--team-muted);
  transition: color .2s ease;
}

.team-member__link:hover,
.team-member__link:focus-visible {
  color: var(--team-accent);
}

.team-member__link:hover svg,
.team-member__link:focus-visible svg {
  color: var(--team-accent);
}

.team-member__link--linkedin {
  margin-top: .25rem;
  align-self: center;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--team-accent-soft);
  color: var(--team-accent);
  font-weight: 600;
}

.team-member__link--linkedin svg {
  color: var(--team-accent);
}

.team-member__link--linkedin:hover,
.team-member__link--linkedin:focus-visible {
  background: var(--team-accent);
  color: #fff;
}

.team-member__link--linkedin:hover svg,
.team-member__link--linkedin:focus-visible svg {
  color: #fff;
}

.team-member__link:focus-visible {
  outline: 2px solid var(--team-accent);
  outline-offset: 3px;
  border-radius: .25rem;
}

@media (prefers-reduced-motion: reduce) {
  .team-member,
  .team-member__avatar img {
    transition: none;
  }
  .team-member:hover {
    transform: none;
  }
}

/* FILTER NAV - MOLECULE */
.filter-nav {
  --fn-accent: #0a66c2;
  --fn-accent-hover: #08529c;
  --fn-text: #1d2433;
  --fn-muted: #5f6b7d;
  --fn-surface: #f4f6fa;
  --fn-border: #e6e9ef;

  margin: 0 0 2rem;
}

.filter-nav__label {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  color: var(--fn-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-nav__label svg {
  width: 1rem;
  height: 1rem;
}

/* the bar */
.filter-nav__track {
  position: relative;
  padding: .4rem;
  background: var(--filter-surface, var(--fn-surface));
  border: 1px solid var(--fn-border);
  border-radius: 999px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-nav__track::-webkit-scrollbar {
  display: none;
}

.filter-nav__list {
  display: flex;
  gap: .35rem;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-nav__item {
  scroll-snap-align: start;
}

/* the pills */
.filter-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  color: var(--fn-text);
  font-size: .925rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.filter-nav__link:hover {
  background: #fff;
  color: var(--fn-accent);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
}

.filter-nav__link:active {
  transform: scale(.97);
}

.filter-nav__link:focus-visible {
  outline: 2px solid var(--fn-accent);
  outline-offset: 2px;
}

.filter-nav__link.is-active,
.filter-nav__link[aria-current="true"] {
  background: var(--fn-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 102, 194, .3);
}

.filter-nav__link.is-active:hover {
  background: var(--fn-accent-hover);
  color: #fff;
}

.filter-nav__icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* count badge */
.filter-nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--fn-border);
  color: var(--fn-muted);
  font-size: .75rem;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}

.filter-nav__link:hover .filter-nav__count {
  background: rgba(10, 102, 194, .12);
  color: var(--fn-accent);
}

.filter-nav__link.is-active .filter-nav__count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* small screens: fade on the right edge hints that more pills can be scrolled */
@media (max-width: 767px) {
  .filter-nav__track {
    border-radius: 1rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-nav__link,
  .filter-nav__count {
    transition: none;
  }
}