#faces {
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.faces-headline {
  max-width: 820px;
  margin: 0 auto 64px;
  padding: 0 24px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  background: linear-gradient(180deg, #ffffff 0%, #a8b8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faces-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  overflow: hidden !important;
}

.faces-row {
  position: relative;
  overflow: hidden !important;
  width: 100%;
  /* Allow card shadows to breathe */
  padding: 20px 0;
}

.faces-row::before,
.faces-row::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}
.faces-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.faces-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.faces-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: facesScrollLeft 50s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.faces-row--right .faces-track {
  animation: facesScrollRight 50s linear infinite;
}

@keyframes facesScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes facesScrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── FACE CARD: rounded corners, shadow, contained hover ── */
.face-card {
  flex-shrink: 0;
  width: 278px;
  height: 278px;
  /* VISUAL: rounded corners — override inline overflow:visible */
  overflow: hidden !important;
  border-radius: 16px;
  user-select: none;
  display: block;
  position: relative;
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition:
    opacity 0.9s cubic-bezier(0.16,1,0.3,1),
    transform 0.9s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.35s ease !important;
  /* Subtle resting shadow */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 1;
}
.face-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── HOVER: restrained scale (1.05 max), stronger shadow ── */
.face-card:hover {
  /* Override inline !important scale(1.15) → capped at 1.05 */
  transform: scale(1.05) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45) !important;
  z-index: 20;
}

/* ── IMAGE: match card radius ── */
.face-img {
  width: 278px;
  height: 278px;
  object-fit: cover;
  display: block;
  color: transparent;
  background: linear-gradient(135deg, #0f1923 0%, #1a2840 50%, #0d1520 100%);
  /* Radius matches card — overflow:hidden on parent clips it */
  border-radius: 16px;
}

/* ── NAME OVERLAY: smooth fade, no layout shift ── */
.face-card-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  background: rgba(0,0,0,0.55);
  padding: 4px 10px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── VIEWS: fade in on hover, same anchor as name ── */
.face-card-views {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 5px 10px;
  color: #fff;
  font-size: 0.66rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

/* Crossfade on hover — name out, views in */
.face-card:hover .face-card-overlay { opacity: 0; }
.face-card:hover .face-card-views   { opacity: 1; }

/* ── DESCRIPTION ── */
.faces-desc {
  max-width: 680px;
  margin: 64px auto 0;
  padding: 0 24px;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.8;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  #faces { padding: 80px 0; }

  .face-card {
    width: 210px;
    height: 210px;
  }
  .face-img {
    width: 210px;
    height: 210px;
  }
  .faces-row::before,
  .faces-row::after { width: 80px; }
  .faces-headline { font-size: clamp(1.8rem, 5vw, 2.8rem); }
}