/* =============================================================
   page-referanslar.css — Referanslar sayfası (alt sayfa).
   Çözüm ortaklarımız: LOGO DUVARI — bütün markalar aynı anda görünür
   (büyük renkli logolar, beyaz yüzen kartlar). Üzerine gelince o markanın
   showroom fotoğrafı yumuşakça "açar" (bloom: opacity+scale, scrim, logo
   beyazlaşıp yükselir, kategori belirir), kart hafif kalkar. Sert geçiş yok.
   Seçili işler: büyük alternatif editöryel satırlar. Galeri: kayan şerit.
   Hairline ayraç YOK. Her selector .mcy-ref-* kökünden. JS: page-referanslar.js.
   ============================================================= */

:root { --ref-display: "MCY Helvetica", "Helvetica Neue", Arial, sans-serif; }

.mcy-ref-brands__kicker,
.mcy-ref-gal__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* ============================ Çözüm ortaklarımız (logo duvarı + foto bloom) ============================ */
.mcy-ref-brands {
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(38px, 5vh, 64px) 24px clamp(52px, 9vh, 100px);
}
.mcy-ref-brands__inner { width: 100%; max-width: 1320px; }
.mcy-ref-brands__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(26px, 3.5vw, 44px);
}
.mcy-ref-brands__title {
  margin: 0;
  font-family: var(--ref-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.mcy-ref-brands__title b { font-weight: 400; color: var(--primary-color); }
.mcy-ref-brands__intro {
  margin: 0 0 6px;
  max-width: 46ch;
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  line-height: 1.55;
  color: rgba(28, 22, 18, 0.56);
}

.mcy-ref-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.3vw, 18px);
}
.mcy-ref-brand {
  position: relative;
  flex: 0 1 calc(25% - 14px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 22, 18, 0.05), 0 16px 36px -26px rgba(28, 22, 18, 0.2);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcy-ref-brand__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcy-ref-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(12, 8, 5, 0.84), rgba(12, 8, 5, 0.18) 62%);
  transition: opacity 0.5s ease;
}
.mcy-ref-brand__logo {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 66%;
  max-height: 52%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.45s ease, padding 0.45s ease, box-shadow 0.45s ease;
}
.mcy-ref-brand__name { display: none; }
.mcy-ref-brand__cat {
  position: absolute;
  z-index: 3;
  left: clamp(16px, 1.6vw, 22px);
  bottom: clamp(14px, 1.4vw, 20px);
  max-width: calc(100% - 54px);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mcy-ref-brand__arw {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 1.6vw, 22px);
  bottom: clamp(14px, 1.4vw, 20px);
  width: 18px;
  height: 18px;
  color: var(--text-light);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .mcy-ref-brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 1px 2px rgba(28, 22, 18, 0.05), 0 34px 64px -30px rgba(12, 8, 5, 0.5);
  }
  .mcy-ref-brand:hover .mcy-ref-brand__photo { opacity: 1; transform: scale(1); }
  .mcy-ref-brand:hover::after { opacity: 1; }
  .mcy-ref-brand:hover .mcy-ref-brand__logo {
    background: #fff;
    padding: 12px 20px;
    transform: translateY(-12px);
    box-shadow: 0 16px 34px -18px rgba(12, 8, 5, 0.55);
  }
  .mcy-ref-brand:hover .mcy-ref-brand__cat { opacity: 1; transform: translateY(0); }
  .mcy-ref-brand:hover .mcy-ref-brand__arw { opacity: 1; transform: translate(0, 0); }
}

.mcy-ref-brands__note {
  margin: clamp(26px, 3.4vw, 40px) auto 0;
  max-width: 54ch;
  text-align: center;
  font-size: clamp(0.86rem, 1.05vw, 0.96rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(28, 22, 18, 0.45);
}

/* ============================ Seçili işler (büyük editöryel satırlar) ============================ */
.mcy-ref-works {
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(48px, 8vh, 100px) 24px;
}
.mcy-ref-works__inner { width: 100%; max-width: 1280px; }
.mcy-ref-works__head { max-width: 56ch; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.mcy-ref-works__title {
  margin: 0;
  font-family: var(--ref-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text-dark);
}
.mcy-ref-works__title b { font-weight: 400; color: var(--primary-color); }
.mcy-ref-works__intro {
  margin: 12px auto 0;
  max-width: 50ch;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(28, 22, 18, 0.55);
}
.mcy-ref-works__rows { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.mcy-ref-work { display: flex; align-items: center; }
.mcy-ref-work[data-flip] { flex-direction: row-reverse; }
.mcy-ref-work__media {
  flex: 1.45 1 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--tertiary-color);
}
.mcy-ref-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .mcy-ref-work:hover .mcy-ref-work__media img { transform: scale(1.04); }
}
.mcy-ref-work__info {
  flex: 1 1 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  padding: clamp(26px, 3vw, 46px);
  margin-left: clamp(-90px, -5vw, -48px);
  box-shadow: 0 40px 80px -40px rgba(28, 22, 18, 0.34);
}
.mcy-ref-work[data-flip] .mcy-ref-work__info {
  margin-left: 0;
  margin-right: clamp(-90px, -5vw, -48px);
}
.mcy-ref-work__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(234, 29, 38, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.mcy-ref-work__name {
  margin: 0;
  font-family: var(--ref-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}
.mcy-ref-work__desc {
  margin: 12px 0 0;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.6;
  color: rgba(28, 22, 18, 0.6);
}
.mcy-ref-work__meta {
  display: block;
  margin-top: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(28, 22, 18, 0.4);
}

/* ============================ Galeri (kayan şerit) ============================ */
.mcy-ref-gal {
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-color);
  padding: clamp(20px, 3vh, 40px) 0 clamp(56px, 9vh, 110px);
  overflow: hidden;
}
.mcy-ref-gal__head {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto clamp(22px, 3vw, 36px);
  padding: 0 24px;
}
.mcy-ref-gal__title {
  margin: 0;
  font-family: var(--ref-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-dark);
}
.mcy-ref-gal__title b { font-weight: 400; color: var(--primary-color); }
.mcy-ref-gal__viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.mcy-ref-gal__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.mcy-ref-gal__track.is-anim { animation: mcyRefMarquee 52s linear infinite; }
.mcy-ref-gal__viewport:hover .mcy-ref-gal__track.is-anim { animation-play-state: paused; }
@keyframes mcyRefMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mcy-ref-gal__item {
  position: relative;
  flex: 0 0 auto;
  margin: 0 16px 0 0;
  width: clamp(240px, 26vw, 360px);
  height: clamp(300px, 32vw, 440px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--tertiary-color);
}
.mcy-ref-gal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mcy-ref-gal__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-light);
  background: linear-gradient(to top, rgba(18, 12, 8, 0.74), transparent);
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .mcy-ref-brands__head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .mcy-ref-brand { flex-basis: calc(33.333% - 12px); }
}
@media (max-width: 768px) {
  .mcy-ref-work, .mcy-ref-work[data-flip] { flex-direction: column; }
  .mcy-ref-work__media { width: 100%; aspect-ratio: 4 / 3; }
  .mcy-ref-work__info,
  .mcy-ref-work[data-flip] .mcy-ref-work__info {
    margin: -42px 16px 0;
  }
}
@media (max-width: 560px) {
  .mcy-ref-brands__grid { gap: 10px; }
  .mcy-ref-brand { flex-basis: calc(50% - 5px); }
  /* 2 sütunda hücreler genişler; logo biraz daha okunur olsun */
  .mcy-ref-brand__logo { max-width: 72%; max-height: 56%; }
  .mcy-ref-gal__item { width: clamp(220px, 64vw, 300px); height: clamp(280px, 80vw, 380px); }
}

/* ============================ A11y ============================ */
@media (prefers-reduced-motion: reduce) {
  .mcy-ref-brand,
  .mcy-ref-brand__photo,
  .mcy-ref-brand__logo,
  .mcy-ref-brand__cat,
  .mcy-ref-brand__arw,
  .mcy-ref-work__media img { transition: none; }
  .mcy-ref-gal__track.is-anim { animation: none; }
}
