.chapter-logo-strip,
.chapter-logo-strip * {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

.chapter-logo-strip {
  position: relative;
  z-index: 12;
  display: flex;
  min-height: 104px;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 24px rgba(4, 18, 31, .08);
}

.chapter-strip-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 190px;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  background: #e31d2b;
  color: #fff;
  font: 800 20px/1.05 "Barlow Condensed", sans-serif;
  letter-spacing: 1.4px;
  text-align: center;
}

.chapter-strip-label::after {
  position: absolute;
  top: 0;
  right: -22px;
  width: 23px;
  height: 100%;
  background: #e31d2b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
}

.chapter-logo-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  padding-left: 22px;
}

.chapter-logo-track {
  display: flex;
  width: max-content;
  min-height: 104px;
  animation: gravinciChapterMarquee 55s linear infinite;
  will-change: transform;
}

.chapter-logo-viewport:hover .chapter-logo-track {
  animation-play-state: paused;
}

.chapter-logo-item {
  display: flex;
  width: 150px;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 13px;
  border-right: 1px solid #eef0f2;
  color: #142333;
}

.chapter-logo-item img {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  object-fit: contain;
}

.chapter-logo-item span {
  max-width: 58px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.chapter-logo-strip + .hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.15vw, 72px);
  line-height: .92;
  letter-spacing: -1px;
}

@keyframes gravinciChapterMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 720px) {
  .chapter-logo-strip {
    min-height: 82px;
  }

  .chapter-strip-label {
    flex-basis: 112px;
    padding: 12px 14px;
    font-size: 15px;
    letter-spacing: .8px;
  }

  .chapter-strip-label::after {
    right: -15px;
    width: 16px;
  }

  .chapter-logo-viewport {
    padding-left: 15px;
  }

  .chapter-logo-track {
    min-height: 82px;
    animation-duration: 46s;
  }

  .chapter-logo-item {
    width: 112px;
    flex-basis: 112px;
    gap: 7px;
    padding: 9px;
  }

  .chapter-logo-item img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .chapter-logo-item span {
    max-width: 42px;
    font-size: 9px;
  }

  .chapter-logo-strip + .hero h1 {
    max-width: 510px;
    font-size: clamp(39px, 11.5vw, 54px);
    line-height: .94;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-logo-viewport {
    overflow-x: auto;
  }

  .chapter-logo-track {
    animation: none;
  }
}
