/* ===== REFERENCES (no-marquee, 5'li set) ===== */

/* Başlık — hero-intro ile birebir */
.references__head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 108px 16px 18px;
  text-align: center;
}
.references__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  border-radius: 20px;
  background: var(--pill);
  color: #19171C;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  user-select: none;
  margin-bottom: 12px;
}
.references__title {
  margin: 0 0 12px;
  color: var(--ink, #111);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.references__desc {
  margin: 6px auto 0;
  max-width: 760px;
  color: var(--sub, #4B5563);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

/* Sahne: 5 slot — yakın aralık, ortada, kenarlarda nefes */
.references__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.9vw, 12px);    /* daha yakın boşluk */
  padding: 22px 12vw 48px;         /* kenarlarda daha fazla nefes */
}

/* Slot: esnek genişlik ve (bir tık küçültülmüş) yükseklik */
.reference-slot {
  position: relative;
  flex: 0 1 calc((100% - 4 * clamp(6px,0.9vw,12px)) / 5);
  height: clamp(56px, 6.6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kartlar üst üste; crossfade */
.reference-slot .ref-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}
.reference-slot .ref-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Logo boyutu: biraz daha küçük ve dengeli */
.ref-card img {
  max-height: 72%;
  max-width: 78%;
  object-fit: contain;
  filter: grayscale(1) opacity(.8);
  transition: filter .28s ease, transform .28s ease, opacity .28s ease;
  will-change: filter, transform, opacity;
}

/* Hover/odak: renklen + hafif büyü */
.ref-card:hover img,
.ref-card:focus-visible img {
  filter: grayscale(0) opacity(1) brightness(1);
  transform: scale(1.05);
}
.ref-card:active img { transform: scale(.96); }

.ref-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 42, 117, .20);
  border-radius: 14px;
}

/* Responsive kırılımlar */
@media (max-width: 980px) {
  .reference-slot { flex-basis: calc((100% - 3 * clamp(6px,0.9vw,12px)) / 4); }
}
@media (max-width: 740px) {
  .reference-slot { flex-basis: calc((100% - 2 * clamp(6px,0.9vw,12px)) / 3); }
}
@media (max-width: 520px) {
  .reference-slot { flex-basis: calc((100% - 1 * clamp(6px,0.9vw,12px)) / 2); }
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  .ref-card, .ref-card img { transition: none; }
}
