.testimonials-section {
  position: relative;
  isolation: isolate;
  padding: clamp(42px, 3vw, 48px) var(--frame-gutter) clamp(60px, 5vw, 72px);
  border-top: 1px solid rgba(247, 247, 247, 0.12);
  background: var(--ink);
  color: var(--paper);
}

.testimonials-wave {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.testimonials-wave svg { display: block; width: 100%; height: 100%; }

.testimonials-inner {
  position: relative;
  width: min(100%, var(--section-width));
  margin: 0 auto;
}

.testimonials-header {
  max-width: 1000px;
  margin: 0 auto 14px;
  text-align: center;
}

.testimonials-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0 0 var(--section-overline-gap);
  color: rgba(247, 247, 247, 0.88);
  font-size: clamp(10px, 0.83vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.testimonials-eyebrow-slash { color: #00c7e8; }
.testimonials-eyebrow-line { display: inline-block; width: 54px; height: 2px; margin-left: 1.1em; background: #00c7e8; }

.testimonials-header h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: clamp(70px, 6.5vw, 100px);
  font-weight: 350;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.testimonials-header h2 em {
  margin-top: 0.06em;
  font-size: 1.03em;
}

.testimonials-title-dot { color: #00c7e8; }

.testimonials-intro {
  margin: clamp(16px, 1.5vw, 20px) auto 0;
  color: rgba(247, 247, 247, 0.86);
  font-size: clamp(16px, 1.32vw, 21px);
  line-height: 1.5;
}

.testimonials-gallery {
  width: min(100%, 1340px);
  margin: 0 auto;
}

.testimonials-viewport {
  overflow: hidden;
  padding: 40px 8px 12px;
  touch-action: pan-y;
}

.testimonials-rail {
  --testimonial-gap: 18px;
  display: flex;
  gap: var(--testimonial-gap);
  align-items: flex-end;
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 2 * var(--testimonial-gap)) / 3);
  min-width: 0;
  min-height: 402px;
  padding: 40px;
  border: 1px solid rgba(247, 247, 247, 0.48);
  border-radius: 20px;
  background: linear-gradient(148deg, #202020 0%, #1b1b1b 48%, #151515 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: border-color 320ms ease, background 320ms ease;
}

.testimonial-card.is-active {
  z-index: 1;
  min-height: 416px;
  border-color: rgba(247, 247, 247, 0.86);
  background: linear-gradient(155deg, #092638 0%, #071e2d 51%, #061827 100%);
}

.testimonial-card-top {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  position: absolute;
  top: -33px;
  left: 42px;
  width: 82px;
  height: 82px;
  padding-top: 21px;
  border-radius: 50%;
  background: var(--ink);
  color: #ceced0;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 92px;
  font-weight: 400;
  line-height: 1;
}

.testimonial-card.is-active .testimonial-avatar { color: #00c7e8; }

.testimonial-category {
  position: absolute;
  top: 25px;
  right: 28px;
  color: rgba(247, 247, 247, 0.88);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: right;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  margin: 25px 0 20px;
  color: rgba(247, 247, 247, 0.94);
  font-size: clamp(19px, 1.75vw, 27px);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1.38;
}

.testimonial-card.is-active blockquote { color: var(--paper); }

.testimonial-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 247, 247, 0.34);
}

.testimonial-card-footer span:first-child { display: grid; gap: 5px; }
.testimonial-card-footer strong { font-size: 15px; font-weight: 500; }
.testimonial-card-footer small { color: rgba(247, 247, 247, 0.72); font-size: 14px; }
.testimonial-quote-mark { height: 22px; color: rgba(247, 247, 247, 0.62); font-family: "Times New Roman", Georgia, serif; font-size: 49px; line-height: 0.8; }

.testimonials-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(56px, 6vw, 90px);
  padding-top: 18px;
  border-top: 1px solid rgba(247, 247, 247, 0.42);
}

.testimonials-navigation { display: flex; align-items: center; gap: 9px; flex: none; }
.testimonials-count { margin-right: 18px; color: rgba(247, 247, 247, 0.62); font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.16em; }
.testimonials-navigation button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(247, 247, 247, 0.32); border-radius: 50%; background: transparent; color: var(--paper); font: inherit; font-size: 21px; cursor: pointer; transition: border-color 200ms ease, background 200ms ease; }
.testimonials-navigation button:hover { border-color: var(--paper); background: rgba(247, 247, 247, 0.08); }
.testimonials-navigation button:disabled { border-color: rgba(247, 247, 247, 0.14); color: rgba(247, 247, 247, 0.3); cursor: default; }
.testimonials-navigation button:disabled:hover { background: transparent; }
.testimonials-navigation button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

@media (max-width: 900px) {
  .testimonials-section { padding-right: 0; padding-left: 0; }
  .testimonials-header, .testimonials-bottom { margin-right: var(--frame-gutter); margin-left: var(--frame-gutter); }
  .testimonials-viewport { padding: 50px var(--frame-gutter) 20px; }
  .testimonials-rail { --testimonial-gap: 18px; }
  .testimonial-card, .testimonial-card.is-active { flex-basis: min(68vw, 390px); min-height: 350px; transform: none; }
}

@media (max-width: 600px) {
  .testimonials-section { padding-top: 86px; padding-bottom: 88px; }
  .testimonials-header { margin-bottom: 65px; }
  .testimonials-eyebrow { gap: 0.3em; font-size: 9px; letter-spacing: 0.16em; white-space: nowrap; }
  .testimonials-eyebrow-line { width: 30px; margin-left: 0.3em; }
  .testimonials-header h2 { font-size: clamp(45px, 11vw, 66px); }
  .testimonials-intro { max-width: 360px; font-size: 15px; }
  .testimonial-card, .testimonial-card.is-active { flex-basis: min(82vw, 370px); min-height: 350px; padding: 26px; }
  .testimonial-card blockquote { font-size: 20px; }
  .testimonials-bottom { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .testimonials-navigation button, .testimonials-rail { transition: none; }
}
