/* ============================================================
   Brands carousel — replaces the old scroll-cinema with a clean
   editorial peek carousel. Three slides visible (center large,
   sides peek), auto-advances with crossfade + slide.
   ============================================================ */
.brands-carousel {
  background: #000000;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.brands-carousel .bc-head {
  margin-bottom: 64px;
}
.brands-carousel .section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.brands-carousel .section-head h2 {
  font-family: 'EB Garamond';
  font-weight: 700;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.brands-carousel .section-head h2 em {
  font-weight: 700;
  font-style: normal;
}

/* Stage */
.bc2-stage {
  position: relative;
  width: 100%;
  height: clamp(440px, 60vh, 680px);
  overflow: hidden;
}
.bc2-track {
  display: flex;
  height: 100%;
  gap: 32px;
  padding: 0 48px;
  /* Anchored accordion: track slides left by one strip-unit per advance so
     the expanded active image always occupies the same on-screen slot. */
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.18, 1);
  will-change: transform;
}
.bc2-slide {
  flex: 0 0 300px;         /* slim strip width */
  min-width: 0;
  height: 100%;
  margin: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: #111 center/cover no-repeat;
  background-image: var(--img);
  opacity: 0.9;
  filter: grayscale(0.12) brightness(0.7);
  transition: flex-basis 0.95s cubic-bezier(0.7, 0, 0.18, 1),
              opacity 0.7s ease,
              filter 0.7s ease;
  cursor: pointer;
  text-decoration: none;
}
.bc2-slide.is-active {
  /* active panel ~1.1:1 (matches reference proportions) */
  flex: 0 0 calc(clamp(440px, 60vh, 680px) * 1.1);
  opacity: 1;
  filter: none;
}

/* Caption sits ON the active image, bottom-left (not off to the side) */
.bc2-cap {
  position: absolute;
  left: 36px; bottom: 32px;
  z-index: 2;
  color: #f5f1ea;
  opacity: 0;
  transform: translateY(10px);
  /* Hide instantly when a slide stops being active (no lingering text on the
     collapsing strip); only fade IN on the active slide. */
  transition: none;
  pointer-events: none;
  max-width: 80%;
}
.bc2-slide.is-active .bc2-cap {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}
.bc2-cap .bc2-cap-name {
  font-family: 'Jost';
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin-bottom: 8px;
  text-wrap: balance;
}
.bc2-cap .bc2-cap-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.82);
}
/* ken-burns removed — active slide no longer scales */
.bc2-slide.is-active::before {
  content: none;
  position: absolute; inset: 0;
  background: inherit;
  animation: bc2KenBurns 12s ease-out forwards;
  pointer-events: none;
}
@keyframes bc2KenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.bc2-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

/* Overlay (name + counter + controls) lives above the stage */
.bc2-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 48px 36px;
  color: #f5f1ea;
  pointer-events: none;
}
.bc2-overlay > * { pointer-events: auto; }
/* During a silent recenter, kill the track AND slide transitions so the
   full-set jump and the active↔strip swap are instantaneous (no flash). */
.bc2-track.bc2-no-anim,
.bc2-track.bc2-no-anim .bc2-slide,
.bc2-track.bc2-no-anim .bc2-cap { transition: none !important; }
.bc2-name {
  font-family: 'EB Garamond';
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  margin-bottom: 8px;
  text-wrap: balance;
}
.bc2-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.78);
}

/* Controls — arrow nav removed */
.bc2-controls { display: none; }
.bc2-controls--unused {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: center;
  align-self: end;
}
.bc2-btn {
  width: 44px; height: 44px;
  border-radius: 100%;
  background: rgba(245,241,234,0.08);
  border: 1px solid rgba(245,241,234,0.25);
  color: #f5f1ea;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.bc2-btn:hover {
  background: rgba(245,241,234,0.16);
  border-color: rgba(245,241,234,0.5);
  transform: scale(1.06);
}
.bc2-progress {
  width: 88px;
  height: 1px;
  background: rgba(245,241,234,0.18);
  position: relative;
  overflow: hidden;
}
.bc2-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  background: #f5f1ea;
  transform-origin: left center;
  transform: scaleX(0);
}
.bc2-progress-fill.is-running {
  animation: bc2Progress 4500ms linear forwards;
}
.bc2-progress-fill.is-paused { animation-play-state: paused; }
@keyframes bc2Progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Counter */
.bc2-counter {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(245,241,234,0.8);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.bc2-counter .bc2-i { color: #f5f1ea; }
.bc2-counter .bc2-sep { opacity: 0.4; margin: 0 2px; }
.bc2-counter .bc2-n { color: rgba(245,241,234,0.55); }

/* See-all link */
.bc2-foot {
  padding-top: 48px;
  text-align: center;
}
.bc2-see-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5f1ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,241,234,0.3);
  padding-bottom: 6px;
  transition: gap 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  gap: 12px;
}
.bc2-see-link:hover {
  border-bottom-color: rgba(245,241,234,0.7);
  gap: 18px;
}

/* Mobile / smaller */
@media (max-width: 1279px) {
  .brands-carousel { padding: 80px 0 60px; }
  .brands-carousel .section-head { grid-template-columns: 1fr; gap: 32px; }
  .bc2-stage { height: 460px; }
  .bc2-slide { flex: 0 0 84%; margin: 0 6px; }
  .bc2-slide:first-child { margin-left: 8%; }
  .bc2-slide:last-child  { margin-right: 8%; }
  .bc2-overlay { padding: 0 24px 24px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 18px; }
  .bc2-meta { grid-column: 1 / -1; grid-row: 1; }
  .bc2-controls { grid-column: 1; grid-row: 2; justify-self: start; }
  .bc2-counter { grid-column: 2; grid-row: 2; }
  .bc2-name { font-size: 32px; }
}
