*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100svh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #f7f4ef 0%, #f0ebe3 45%, #e8e4dc 100%);
  color: #1a1a1a;
  overflow-x: hidden;
}

.team-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: 7.5em 0;
}

.team-section__inner {
  flex: 1;
  max-width: 80em;
  padding: 0 3em;
}

.team-section__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  height: 100%;
}

.team-section__cell {
  position: relative;
  width: calc(25% - 1.5em);
}

.team-card__shell {
  position: relative;
  width: 100%;
}

.team-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5em;
  color: #fff;
  will-change: transform;
  box-shadow:
    0 4px 24px rgba(40, 30, 20, 0.06),
    0 12px 40px rgba(40, 30, 20, 0.08);
}

.team-card__ratio {
  pointer-events: none;
  padding-top: 150%;
}

.team-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.team-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5em;
  width: 100%;
  height: 100%;
  padding: 2em;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    transparent 70%
  );
}

.team-card__name-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25em;
}

.team-card__name {
  margin: 0 0 0.0625em;
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1;
}

.team-card__badge-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.team-card__role {
  margin: 0;
  opacity: 0.67;
  font-size: 1em;
  font-weight: 400;
  line-height: 1;
}

@media screen and (max-width: 991px) {
  .team-section__cell {
    width: calc(50% - 1em);
  }
}

@media screen and (max-width: 767px) {
  .team-section {
    padding: 4em 0;
  }

  .team-section__inner {
    padding: 0 1.5em;
  }

  .team-section__cell {
    width: 100%;
  }

  .team-card__content {
    padding: 1.5em;
  }
}
