.testimonials-section,
.speakers-section {
  color: var(--rsf-dark);
  background: var(--rsf-white);
}

.testimonials-section {
  padding: 154px 0 0;
}

.speakers-section {
  padding: 0 0 154px;
}

.speakers-testimonials {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.speakers-heading {
  position: relative;
  z-index: 2;
  width: calc(((100vw - min(var(--rsf-max), calc(100vw - 48px))) / 2) + 626px);
  min-height: 514px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding-left: max(24px, calc((100vw - var(--rsf-max)) / 2));
  background: linear-gradient(90deg, var(--rsf-white) 0 72%, rgba(255, 255, 255, 0.7) 88%, rgba(255, 255, 255, 0) 100%);
}

.speakers-heading .rsf-title,
.speakers-heading .rsf-copy {
  color: var(--rsf-dark);
}

.speakers-heading .rsf-title {
  width: 502px;
  background: var(--rsf-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.speakers-heading .rsf-title span,
.speakers-heading .rsf-title strong {
  display: block;
}

.speakers-heading .rsf-title strong {
  font-weight: 700;
}

.speakers-heading .rsf-copy {
  width: 455px;
  max-width: 455px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.speakers-testimonials__viewport {
  position: relative;
  z-index: 1;
  width: min(942px, calc(100vw - 977px));
  height: auto;
  flex: 1 1 auto;
  overflow: hidden;
}

.speakers-testimonials__viewport::before,
.speakers-testimonials__viewport::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 2;
  width: 170px;
  pointer-events: none;
}

.speakers-testimonials__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--rsf-white) 0%, rgba(255, 255, 255, 0) 100%);
}

.speakers-testimonials__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--rsf-white) 0%, rgba(255, 255, 255, 0) 100%);
}

.speakers-testimonials__track {
  --short-gap: 20px;
  display: flex;
  align-items: center;
  gap: var(--short-gap);
  width: max-content;
  animation: speakers-shorts-marquee 34s linear infinite;
}

.speakers-testimonials__track.is-paused {
  animation-play-state: paused;
}

.short-card {
  position: relative;
  width: 303px;
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 10.787px;
  overflow: hidden;
  background: #0d2234;
  cursor: pointer;
}

.short-card img,
.short-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.short-card img {
  border-radius: 10.787px;
}

.short-card iframe {
  border-radius: inherit;
}

.short-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(7, 18, 29, 0.78);
  color: var(--rsf-white);
  transform: translate(-50%, -50%);
}

.short-card__play::before {
  content: "";
  margin-left: 5px;
  border-left: 18px solid currentColor;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.speakers-band {
  width: 424px;
  margin: 286px auto 0;
  color: #567087;
  font-size: 48px;
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.speakers-band strong {
  font-weight: 700;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(6, 206px);
  justify-content: space-between;
  align-items: start;
  row-gap: 82px;
  margin-top: 86px;
}

.speaker-card {
  width: 206px;
  min-width: 206px;
}

.speaker-card[data-clone="true"] {
  display: none;
}

.speaker-card__visual {
  width: 207px;
  height: 300px;
}

.speaker-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.speaker-card h3 {
  width: 200px;
  margin: 22px 0 6px;
  background: var(--rsf-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 700;
  line-height: 26.551px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.speaker-card p {
  margin: 0;
  color: #567087;
  font-size: 18px;
  line-height: 20.961px;
  width: 100%;
}

@media (max-width: 1180px) {
  .speakers-testimonials {
    flex-direction: column;
    gap: 36px;
  }

  .speakers-heading {
    width: min(760px, calc(100% - 40px));
    min-height: auto;
    padding: 0;
    align-items: center;
    text-align: center;
    background: transparent;
  }

  .speakers-testimonials__viewport {
    width: 100vw;
    flex: 0 0 auto;
    margin-inline: calc(50% - 50vw);
  }

  .speakers-grid {
    grid-template-columns: repeat(3, 206px);
    justify-content: center;
    column-gap: 48px;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 78px 0 0;
  }

  .speakers-section {
    padding: 0 0 84px;
  }

  .speakers-testimonials {
    gap: 36px;
    overflow: visible;
  }

  .speakers-heading {
    width: 278px;
    gap: 12px;
  }

  .speakers-heading .rsf-title {
    width: 278px;
    font-size: 20px;
    line-height: 1.2;
    white-space: normal;
  }

  .speakers-heading .rsf-title span,
  .speakers-heading .rsf-title strong {
    display: inline;
  }

  .speakers-heading .rsf-copy {
    width: 278px;
    font-size: 15px;
    line-height: 1.5;
  }

  .speakers-testimonials__viewport {
    width: 100vw;
    height: auto;
    flex-basis: auto;
    margin-inline: calc(50% - 50vw);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .speakers-testimonials__viewport::-webkit-scrollbar {
    display: none;
  }

  .speakers-testimonials__viewport::before,
  .speakers-testimonials__viewport::after {
    content: none;
    display: none;
  }

  .speakers-testimonials__track {
    --short-gap: 12.236px;
    padding: 0 16px;
    animation: none;
  }

  .short-card {
    width: 185.371px;
    border-radius: 6.6px;
  }

  .short-card img {
    border-radius: 6.6px;
  }

  .short-card__play {
    width: 48px;
    height: 48px;
  }

  .short-card__play::before {
    border-left-width: 14px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }

  .speakers-band {
    width: 216px;
    margin: 56px auto 0;
    font-size: 24px;
  }

  .speakers-grid {
    --speaker-card-width: 206px;
    --speaker-card-gap: 14px;
    --speaker-card-pad: max(16px, calc((100vw - var(--speaker-card-width)) / 2));
    display: flex;
    width: 100vw;
    margin: 52px calc(50% - 50vw) 0;
    gap: var(--speaker-card-gap);
    overflow-x: auto;
    overflow-anchor: none;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 var(--speaker-card-pad);
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .speakers-grid::-webkit-scrollbar {
    display: none;
  }

  .speaker-card {
    flex: 0 0 206px;
  }

  .speaker-card[data-clone="true"] {
    display: block;
  }
}

@keyframes speakers-shorts-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - (var(--short-gap) / 2)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .speakers-testimonials__track {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
