.aof-team {
  padding: 48px 0 18px 0;
  background: #f5f5f5;
}

.aof-team__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 24px;
  max-width: 100%;
}

.aof-team__heading {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.aof-team__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aof-team__counter {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  min-width: 48px;
  text-align: right;
}

.aof-team__viewport {
  overflow: hidden;
  padding: 30px 0px;
}

.aof-team__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.aof-team__card {
  flex: 0 0 calc((100% - 60px) / 5);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.aof-team__card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  transform: scale(1.01);
}

.aof-team__card-body {
  padding: 30px;
}

.aof-team__card-name {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.aof-team__card-handle {
  font-size: 17px;
  color: #1d1d1f;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 20px;
  margin-bottom: 20px;
}

.aof-team__card-media {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  overflow: hidden;
  background: #e0e0e0;
  border-radius: 16px;
}

.aof-team__card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aof-team__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .aof-team__card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media screen and (max-width: 749px) {
  .aof-team__card-media {
    padding-bottom: 124%;
  }
  .aof-team__header {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 560px) {
  .aof-team__card {
    flex: 0 0 69%;
  }

  .aof-team__header {
    padding: 0 20px 20px;
  }

  .aof-team__viewport {
    padding: 30px 0px;
  }
}
