/* ==========================================
   SANDRA MARS MASTER — COLLABORATIONS
   Premium trust strip
========================================== */

.sm-collaborations {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 4vw, 4.8rem) 0 clamp(3.4rem, 4.8vw, 5.8rem);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 82% 100%, rgba(216, 185, 130, 0.08), rgba(216, 185, 130, 0) 34%);
}

.sm-collaborations__inner {
  width: min(calc(100% - 5.6rem), 1380px);
  margin: 0 auto;
}

.sm-collaborations__heading {
  max-width: 64rem;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.sm-collaborations__label {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(216, 185, 130, 0.34);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.52);
  color: #8b536b;
  box-shadow: 0 0.8rem 2rem rgba(58, 36, 39, 0.025);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sm-collaborations__heading h2 {
  margin: 1.15rem 0 0;
  color: #2b1d1d;
  font-family: var(--sm-font-heading, Georgia, serif);
  font-size: clamp(2.9rem, 3vw, 4.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.052em;
}

.sm-collaborations__heading p {
  max-width: 48rem;
  margin: 0.9rem auto 0;
  color: #7b6a66;
  font-size: 1.32rem;
  line-height: 1.62;
}

/* Ticker wrapper */

.sm-collaborations__ticker {
  position: relative;
  overflow: hidden;
  max-width: 112rem;
  margin: 0 auto;
  padding: 1.35rem 0;
  border: 1px solid rgba(216, 185, 130, 0.24);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 48%),
    rgba(255, 253, 249, 0.56);
  box-shadow: 0 1.2rem 3.2rem rgba(58, 36, 39, 0.04);
}

/* Moving track */

.sm-collaborations__track {
  display: flex;
  width: max-content;
  animation: sm-collaborations-scroll 46s linear infinite;
  will-change: transform;
}

.sm-collaborations__ticker:hover .sm-collaborations__track {
  animation-play-state: paused;
}

.sm-collaborations__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 2.8vw, 3.8rem);
  padding-right: clamp(2rem, 2.8vw, 3.8rem);
}

/* Logo item */

.sm-collaborations__logo {
  display: flex;
  width: clamp(12.8rem, 11vw, 16.4rem);
  height: 6.8rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.sm-collaborations__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 4.9rem;
  object-fit: contain;
  filter: grayscale(1) contrast(0.88) opacity(0.66);
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.sm-collaborations__logo:hover img {
  filter: grayscale(1) contrast(0.98) opacity(0.9);
  transform: translateY(-0.15rem);
}

/* Soft fade on sides */

.sm-collaborations__fade {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: clamp(3.6rem, 7vw, 10rem);
  pointer-events: none;
}

.sm-collaborations__fade--left {
  left: 0;
  background: linear-gradient(90deg, #fbf6f0 0%, rgba(251, 246, 240, 0) 100%);
}

.sm-collaborations__fade--right {
  right: 0;
  background: linear-gradient(270deg, #fbf6f0 0%, rgba(251, 246, 240, 0) 100%);
}

/* Animation */

@keyframes sm-collaborations-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .sm-collaborations__track {
    animation: none;
  }

  .sm-collaborations__ticker {
    overflow-x: auto;
  }
}

/* Responsive */

@media (max-width: 767px) {
  .sm-collaborations {
    padding: 3.8rem 0 4.4rem;
  }

  .sm-collaborations__inner {
    width: min(calc(100% - 3.2rem), 100%);
  }

  .sm-collaborations__heading {
    margin-bottom: 1.7rem;
  }

  .sm-collaborations__heading h2 {
    font-size: clamp(2.9rem, 9.5vw, 4rem);
  }

  .sm-collaborations__heading p {
    font-size: 1.3rem;
  }

  .sm-collaborations__ticker {
    max-width: 100%;
    padding: 1.15rem 0;
    border-radius: 2rem;
  }

  .sm-collaborations__group {
    gap: 1.9rem;
    padding-right: 1.9rem;
  }

  .sm-collaborations__logo {
    width: 12.2rem;
    height: 6.4rem;
    padding: 0.8rem;
  }

  .sm-collaborations__logo img {
    max-height: 4.4rem;
    filter: grayscale(1) contrast(0.9) opacity(0.7);
  }

  .sm-collaborations__fade {
    width: 4rem;
  }
}