.team-page[data-astro-cid-fefitmao] {
  width: 100%;
  padding-top: var(--section-y);
  background: var(--alles-bg);
}

.team-intro[data-astro-cid-fefitmao] {
  display: flex;
  flex-direction: column;
  gap: var(--section-y);
}

.team-founder[data-astro-cid-fefitmao] {
  min-width: 0;
  padding-bottom: 0;
}

.team-section[data-astro-cid-fefitmao] {
  padding: var(--section-y) var(--gutter) 0;
}

.team-container[data-astro-cid-fefitmao] {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.team-section__intro[data-astro-cid-fefitmao] {
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}

.team-section__title[data-astro-cid-fefitmao] {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--h2-section-size);
  font-weight: var(--h2-section-weight);
  line-height: 1.08;
  letter-spacing: var(--h2-section-tracking);
  color: var(--alles-navy);
  text-wrap: balance;
}

.team-section__lead[data-astro-cid-fefitmao] {
  width: min(100%, 680px);
  margin: clamp(.75rem, 1.3vw, 1rem) auto 0;
  font-family: var(--font-body);
  font-size: clamp(.94rem, 1.1vw, 1.03rem);
  line-height: 1.6;
  color: #0a0a0aad;
}

.team-people__grid[data-astro-cid-fefitmao] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 2.8vw, 2.5rem);
  margin-top: var(--title-y);
}

.team-profile[data-astro-cid-fefitmao] {
  min-width: 0;
  padding-top: clamp(.8rem, 1.4vw, 1rem);
  border-top: 1px solid var(--alles-line);
}

.team-profile__image[data-astro-cid-fefitmao] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.team-profile__copy[data-astro-cid-fefitmao] {
  padding-top: clamp(1rem, 1.7vw, 1.35rem);
}

.team-profile__index[data-astro-cid-fefitmao] {
  display: block;
  margin-bottom: .65rem;
  font-family: var(--font-display);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--alles-primary);
}

.team-profile__name[data-astro-cid-fefitmao] {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--alles-navy);
}

.team-profile__role[data-astro-cid-fefitmao] {
  margin: .45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(.66rem, .75vw, .74rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #0324479e;
}

.team-profile__text[data-astro-cid-fefitmao] {
  margin: .8rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(.89rem, .98vw, .97rem);
  line-height: 1.58;
  color: #0a0a0aad;
}

.team-profile__text[data-astro-cid-fefitmao] span[data-astro-cid-fefitmao] {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-crews__layout[data-astro-cid-fefitmao] {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: stretch;
  padding-top: clamp(1rem, 1.8vw, 1.35rem);
  border-top: 1px solid var(--alles-line);
}

.team-crews__copy[data-astro-cid-fefitmao] {
  align-self: center;
  min-width: 0;
  padding-block: clamp(.5rem, 1.5vw, 1.25rem);
}

.team-crews__title[data-astro-cid-fefitmao] {
  text-align: left;
}

.team-crews__lead[data-astro-cid-fefitmao] {
  margin: clamp(.75rem, 1.4vw, 1rem) 0 0;
  font-family: var(--font-body);
  font-size: clamp(.94rem, 1.05vw, 1rem);
  line-height: 1.58;
  color: #0a0a0aad;
}

.team-crews__list[data-astro-cid-fefitmao] {
  display: grid;
  margin: clamp(1.25rem, 2.3vw, 1.8rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--alles-line);
}

.team-crews__item[data-astro-cid-fefitmao] {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .8rem;
  padding: clamp(.75rem, 1.2vw, .95rem) 0;
  border-bottom: 1px solid var(--alles-line);
}

.team-crews__item-index[data-astro-cid-fefitmao] {
  padding-top: .15rem;
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--alles-primary);
}

.team-crews__item-title[data-astro-cid-fefitmao] {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(.8rem, .9vw, .9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--alles-navy);
}

.team-crews__item-text[data-astro-cid-fefitmao] {
  margin: .3rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(.85rem, .92vw, .92rem);
  line-height: 1.5;
  color: #0a0a0aa3;
}

.team-crews__media[data-astro-cid-fefitmao] {
  min-width: 0;
  overflow: hidden;
}

.team-crews__image[data-astro-cid-fefitmao] {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
}

@media (width <= 1000px) {
  .team-people__grid[data-astro-cid-fefitmao] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 880px) {
  .team-crews__layout[data-astro-cid-fefitmao] {
    grid-template-columns: 1fr;
  }

  .team-crews__copy[data-astro-cid-fefitmao] {
    width: min(100%, 680px);
    margin-inline: auto;
    text-align: center;
  }

  .team-crews__title[data-astro-cid-fefitmao] {
    text-align: center;
  }

  .team-crews__list[data-astro-cid-fefitmao] {
    text-align: left;
  }

  .team-crews__image[data-astro-cid-fefitmao] {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (width <= 700px) {
  .team-people__grid[data-astro-cid-fefitmao] {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 12vw, 3.25rem);
  }

  .team-profile__name[data-astro-cid-fefitmao], .team-profile__role[data-astro-cid-fefitmao], .team-profile__text[data-astro-cid-fefitmao] {
    text-align: center;
  }

  .team-profile__index[data-astro-cid-fefitmao] {
    text-align: center;
  }

  .team-crews__image[data-astro-cid-fefitmao] {
    aspect-ratio: 4 / 3;
  }
}
