.homepage-testimonials {
  position: relative;
  padding: 6rem 0 5rem;
  background:
    radial-gradient(circle at 26% 8%, rgba(60, 193, 217, 0), transparent 28%),
    linear-gradient(180deg, #090d12 0%, #111322 48%, #090d12 100%);
  overflow: clip;
  overflow-y: visible;
}

.homepage-testimonials::before,
.homepage-testimonials::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  pointer-events: none;
}

.homepage-testimonials::before {
  top: -8rem;
  left: 4rem;
  width: 22rem;
  height: 22rem;
}

.homepage-testimonials::after {
  top: -10rem;
  left: 9rem;
  width: 34rem;
  height: 34rem;
}

.homepage-testimonials__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1728px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 7.65vw, 8.25rem);
}

.homepage-testimonials__header {
  max-width: 860px;
  margin-bottom: 3rem;
}

.homepage-testimonials__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.homepage-testimonials__eyebrow-line {
  width: 35px;
  height: 1px;
  background: #3fc1d9;
}

.homepage-testimonials__eyebrow {
  color: #3fc1d9;
  font-family: "Lora", serif;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 700;
  line-height: 1.1;
}

.homepage-testimonials__title {
  margin: 0;
  color: #fff;
  font-family: "Lora", serif;
  font-size: clamp(3rem, 5vw, 4.625rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.homepage-testimonials__title-base,
.homepage-testimonials__title-emphasis {
  display: block;
}

.homepage-testimonials__title-emphasis {
  color: #3fc1d9;
}

.homepage-testimonials__viewport {
  --testimonial-gap: 1rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: clamp(1rem, 7.65vw, 8.25rem);
  overflow: hidden;
}

.homepage-testimonials__track {
  display: flex;
  align-items: stretch;
  gap: var(--testimonial-gap);
  width: max-content;
  min-width: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: grab;
}

.homepage-testimonials__track.is-dragging {
  transition: none !important;
  cursor: grabbing;
  user-select: none;
}

.homepage-testimonials__card {
  position: relative;
  flex: 0 0 clamp(18rem, 28vw, 25.5rem);
  width: clamp(18rem, 28vw, 25.5rem);
  min-height: 18rem;
  padding: 41px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  outline: 2px solid #a8a8a8;
  outline-offset: -2px;
  backdrop-filter: blur(3px);
  opacity: 0.76;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.homepage-testimonials__card.is-active {
  opacity: 1;
  outline-color: #3fc1d9; /* Slight variation to highlight active if desired, or keep as spec */
}

.homepage-testimonials__card-inner {
  display: flex;
  flex-direction: column;
  gap: 33px;
  height: 100%;
}

.homepage-testimonials__content-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.homepage-testimonials__quote {
  color: white;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 27.2px;
  word-wrap: break-word;
}

.homepage-testimonials__quote p {
  margin: 0;
}

.homepage-testimonials__stars {
  display: flex;
  gap: 0;
}

.homepage-testimonials__stars span {
  width: 20px;
  height: 20px;
  color: #ffdc69;
  font-size: 20px;
}

.homepage-testimonials__person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.homepage-testimonials__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
  color: #3fc1d9;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.homepage-testimonials__person-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.homepage-testimonials__name {
  margin: 0;
  color: #3fc1d9;
  font-family: "Neuzeit Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 27.2px;
}

.homepage-testimonials__role {
  margin: 0;
  color: #a8a8a8;
  font-family: "Neuzeit Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 27.2px;
}

.homepage-testimonials__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.65rem;
}

.homepage-testimonials__progress {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.homepage-testimonials__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #e8744a;
  transition:
    width 0.35s ease,
    transform 0.35s ease;
}

.homepage-testimonials__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.homepage-testimonials__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #3fc1d9;
  font-size: 1rem;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.homepage-testimonials__control:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.homepage-testimonials__control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .homepage-testimonials {
    padding: 4.5rem 0 3rem;
  }

  .homepage-testimonials::before,
  .homepage-testimonials::after {
    display: none;
  }

  .homepage-testimonials__inner {
    padding: 0 1.25rem;
  }

  .homepage-testimonials__header {
    margin-bottom: 2rem;
  }

  .homepage-testimonials__viewport {
    padding-left: 1.25rem;
  }

  .homepage-testimonials__card {
    flex-basis: min(80vw, 21rem);
    width: min(80vw, 21rem);
  }
}

@media (max-width: 640px) {
  .homepage-testimonials {
    padding: 4rem 0 2.5rem;
  }

  .homepage-testimonials__title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .homepage-testimonials__viewport {
    padding-left: 1rem;
  }

  .homepage-testimonials__card {
    flex-basis: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
    min-height: 15.75rem;
  }

  .homepage-testimonials__card-inner {
    padding: 1.3rem 1.15rem 1.2rem;
  }
}
