#testimonial-index {
  color: #b7f5ff;
}

.testimonial-slide {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "portrait quote" "portrait author";
  min-height: clamp(330px, 31vw, 398px);
  margin: 0;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--slide-accent) 10%, transparent), transparent 48%),
    #11131a;
}

.testimonial-portrait {
  position: relative;
  display: grid;
  grid-area: portrait;
  place-items: center;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  padding: clamp(26px, 5vw, 58px);
  border-inline-end: 1px solid #363545;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--slide-accent) 19%, transparent), transparent 67%),
    linear-gradient(141deg, #1a1f2b, #10121b 72%);
}

.testimonial-portrait::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, #a5bafa25 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, #000 26%, transparent 77%);
}

.testimonial-avatar {
  position: relative;
  width: min(100%, 14.5rem);
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid var(--slide-accent);
  border-radius: 50%;
  background: #12141d;
  box-shadow: 0 12px 40px #0009, 0 0 31px color-mix(in srgb, var(--slide-accent) 23%, transparent);
}

.testimonial-avatar::after {
  position: absolute;
  inset: -13px;
  border: 1px solid color-mix(in srgb, var(--slide-accent) 31%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  user-select: none;
}

.testimonial-copy {
  grid-area: quote;
  align-self: end;
  min-width: 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4.2vw, 56px) 0;
}

.testimonial-mark {
  display: block;
  width: fit-content;
  height: .56em;
  color: var(--slide-accent);
  font: 660 clamp(3.4rem, 6vw, 4.7rem)/1 "RC Outfit", Outfit, system-ui, sans-serif;
  margin-inline-start: -.018em;
}

.testimonial-quote {
  max-width: 54ch;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 0 !important;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #f0eff8;
  font-family: inherit;
  font-size: clamp(1.055rem, 1.75vw, 1.25rem);
  font-style: normal;
  font-weight: 520;
  line-height: 1.52;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.testimonial-quote::before { content: none; }
.testimonial-quote p { margin: 0; }

.testimonial-author {
  display: grid;
  grid-area: author;
  gap: .24em;
  min-width: 0;
  margin: clamp(15px, 2.1vw, 22px) clamp(20px, 4.2vw, 56px) clamp(23px, 3.4vw, 36px);
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--slide-accent) 30%, #232632);
  overflow-wrap: anywhere;
}

.testimonial-name {
  color: var(--slide-accent);
  font: 680 clamp(1.1rem, 2.15vw, 1.65rem)/1.14 "RC Outfit", Outfit, system-ui, sans-serif;
}

.testimonial-role {
  color: #c3c7d6;
  font-size: clamp(.77rem, 1.2vw, .94rem);
  line-height: 1.4;
}

.testimonial-slider .slider-thumbs { justify-content: end; }

.testimonial-slider .testimonial-thumb {
  display: grid;
  flex: 0 0 53px;
  place-items: center;
  padding: 4px;
}

.testimonial-thumb img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-position: center 35%;
}

.testimonial-thumb-name { display: none; }

@media (min-width: 1000px) {
  .testimonial-slider .testimonial-thumb {
    flex: 1 1 0;
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 8px;
    justify-items: start;
    min-height: 51px;
    padding: 6px 8px;
    aspect-ratio: auto;
  }

  .testimonial-thumb-name {
    display: block;
    min-width: 0;
    color: #e3e2eb;
    font-size: .7rem;
    font-weight: 760;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-align: start;
  }
}

@media (max-width: 740px) {
  .testimonial-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "portrait" "quote" "author";
    min-height: 0;
  }

  .testimonial-portrait {
    padding: 20px;
    border-inline-end: 0;
    border-block-end: 1px solid #363545;
  }

  .testimonial-avatar { width: clamp(96px, 32vw, 145px); }
  .testimonial-avatar::after { inset: -8px; }
  .testimonial-copy {
    align-self: start;
    padding: 16px clamp(14px, 4.7vw, 26px) 0;
  }
  .testimonial-mark { font-size: 3.25rem; }
  .testimonial-quote { font-size: clamp(.98rem, 2.6vw, 1.17rem); line-height: 1.54; }
  .testimonial-author { margin: 15px clamp(14px, 4.7vw, 26px) 18px; padding-top: 10px; }
}

@media (max-width: 640px) {
  .testimonial-slider .slider-thumbs { justify-content: center; }
  .testimonial-slider .testimonial-thumb { flex-basis: 44px; }
}

@container (width >= 900px) {
  :is(.testimonial-slider.slider-nav-lateral, .testimonial-alternative[data-layout="01"] > .testimonial-slider) .testimonial-thumb {
    flex: 0 0 clamp(8rem, 13.6cqi, 9.4rem);
  }
}
