/* Marquee track for ticker & testimonials */
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; gap: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.line-clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

@keyframes featuredScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#featured-track:hover { animation-play-state: paused !important; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease-out, transform .75s ease-out; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

[data-mega] { animation: slideDown .25s ease-out; }
@keyframes slideDown { from { opacity:0; transform:translateY(-6px);} to { opacity:1; transform:translateY(0);} }

.reference-logo-card {
  aspect-ratio: 1.5 / 1;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: 1.25rem;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.reference-logo-card:hover {
  transform: translateY(-2px);
  border-color: #f0c4c4;
  box-shadow: 0 18px 40px rgba(17,17,17,.06);
  background: #fffdfd;
}

.reference-logo-mark {
  color: #111111;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.reference-logo-label {
  color: #a3a3a3;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.history-timeline {
  display: grid;
  gap: 3rem;
}

.history-timeline__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.history-timeline__nav {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid #e7e5e4;
  background: rgba(255, 255, 255, 0.92);
  color: #a3a3a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.history-timeline__nav:hover {
  color: #cc0000;
  border-color: #f0c4c4;
  transform: translateY(-1px);
}

.history-timeline__nav:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.history-timeline__track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1.5rem 0 1.25rem;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.history-timeline__track-wrap::-webkit-scrollbar {
  display: none;
}

.history-timeline__track {
  position: relative;
  display: flex;
  align-items: end;
  gap: 4.5rem;
  width: max-content;
  min-width: 100%;
  padding: 0 2.5rem;
}

.history-timeline__track::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.875rem;
  height: 1px;
  background: #ece7e4;
}

.history-timeline__item {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 128px;
  display: grid;
  justify-items: center;
  gap: 1rem;
  cursor: pointer;
  scroll-snap-align: center;
}

.history-timeline__item-year {
  color: #111111;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-36deg);
  transform-origin: center;
  transition: color .2s ease, transform .2s ease;
}

.history-timeline__item-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #e8b9b9;
  box-shadow: 0 0 0 6px rgba(255,255,255,.92);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.history-timeline__item.is-active .history-timeline__item-year {
  color: #cc0000;
}

.history-timeline__item.is-active .history-timeline__item-dot {
  background: #cc0000;
  border-color: #cc0000;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #f5c7c7;
}

.history-timeline__panel {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.94);
  min-height: 220px;
}

.history-timeline__accent {
  background: #cc0000;
}

.history-timeline__content {
  padding: 3rem;
}

.history-timeline__year {
  color: #cc0000;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.history-timeline__title {
  color: #111111;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.history-timeline__text {
  max-width: 56rem;
  color: #444444;
  font-size: 1.125rem;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .history-timeline {
    gap: 2rem;
  }

  .history-timeline__header {
    gap: .75rem;
  }

  .history-timeline__nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .history-timeline__track {
    gap: 2.25rem;
    padding: 0 1.25rem;
  }

  .history-timeline__track::after {
    left: 1rem;
    right: 1rem;
  }

  .history-timeline__item {
    flex-basis: 116px;
  }

  .history-timeline__item-year {
    font-size: 1.15rem;
  }

  .history-timeline__panel {
    min-height: auto;
  }

  .history-timeline__content {
    padding: 2rem 1.5rem;
  }

  .history-timeline__title {
    font-size: 1.9rem;
  }

  .history-timeline__text {
    font-size: 1rem;
    line-height: 1.7;
  }
}
