:host {
  display: block;
}

.testimonials-page {
  --testimonials-ink: #14213b;
  --testimonials-muted: #59667b;
  --testimonials-accent: #087cbd;
  --testimonials-line: #dfe5ef;
  --testimonials-surface: #fff;
  --testimonials-soft: #f4f6fb;
  color: var(--testimonials-ink);
  background: var(--testimonials-surface);
  font-family: var(--font-sans, system-ui, 'Segoe UI', Arial, sans-serif);
}

html[data-theme='dark'] .testimonials-page {
  --testimonials-ink: #edf3ff;
  --testimonials-muted: #b6c3d9;
  --testimonials-accent: #79cfff;
  --testimonials-line: #2f3d57;
  --testimonials-surface: #111b2d;
  --testimonials-soft: #17243b;
}

.testimonials-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.testimonials-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 87% 45%, #e7f2ff 0, transparent 37%),
    linear-gradient(120deg, #f8faff, #f1f5fb);
}

html[data-theme='dark'] .testimonials-hero {
  background:
    radial-gradient(ellipse at 87% 45%, #193555 0, transparent 37%),
    linear-gradient(120deg, #101b2c, #191d36);
}

.testimonials-hero-grid {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
  padding-block: 48px;
}

.testimonials-hero-copy {
  max-width: 580px;
}

.testimonials-eyebrow {
  color: var(--testimonials-accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.testimonials-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.testimonials-hero h1 em {
  color: var(--testimonials-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
}

.testimonials-hero-copy > p,
.testimonials-note p,
.testimonials-business-grid p {
  color: var(--testimonials-muted);
  line-height: 1.75;
}

.testimonials-hero-copy > p {
  max-width: 510px;
  margin: 0;
  font-size: 1rem;
}

.testimonials-primary-link,
.testimonials-note a,
.testimonials-business-grid a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--testimonials-accent);
  font-weight: 700;
  text-decoration: none;
}

.testimonials-primary-link {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 19px;
  border-radius: 8px;
  color: #fff;
  background: #087cbd;
}

.testimonials-primary-link:hover {
  background: #08689e;
}

.testimonials-hero-art {
  position: relative;
  display: grid;
  min-height: 265px;
  place-items: center;
  isolation: isolate;
}

.testimonials-hero-art::before {
  position: absolute;
  z-index: -1;
  width: min(280px, 80%);
  aspect-ratio: 1;
  border: 1px solid #087cbd26;
  border-radius: 50%;
  content: '';
}

.testimonials-hero-art img {
  width: min(235px, 76%);
  height: auto;
  object-fit: contain;
}

.testimonials-hero-art > span {
  position: absolute;
  right: 0;
  bottom: 7px;
  padding: 13px 17px;
  border: 1px solid var(--testimonials-line);
  border-radius: 10px;
  color: var(--testimonials-ink);
  background: var(--testimonials-surface);
  box-shadow: 0 12px 36px #152b3212;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.testimonials-content {
  padding-block: clamp(42px, 7vw, 76px);
}

.testimonials-note {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 38px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--testimonials-line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0 0, #eaf5ff 0, transparent 42%),
    var(--testimonials-soft);
}

html[data-theme='dark'] .testimonials-note {
  background:
    radial-gradient(ellipse at 0 0, #203b5a 0, transparent 42%),
    var(--testimonials-soft);
}

.testimonials-quote-mark {
  color: var(--testimonials-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 0.9;
}

.testimonials-note h2,
.testimonials-section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.testimonials-note p {
  max-width: 690px;
  margin: 0;
}

.testimonials-note a {
  margin-top: 20px;
}

.testimonials-businesses {
  padding-block: 48px 80px;
  background: var(--testimonials-soft);
}

.testimonials-section-heading {
  margin-bottom: 24px;
}

.testimonials-section-heading h2 {
  margin-bottom: 0;
}

.testimonials-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonials-business-grid article {
  padding: 27px;
  border: 1px solid var(--testimonials-line);
  border-radius: 14px;
  background: var(--testimonials-surface);
}

.testimonials-business-index {
  color: var(--testimonials-accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonials-business-grid h3 {
  margin: 16px 0 5px;
  font-size: 1.3rem;
}

.testimonials-business-grid p {
  margin: 0 0 18px;
}

.testimonials-page a:focus-visible {
  outline: 3px solid var(--testimonials-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .testimonials-shell {
    width: min(100% - 36px, 560px);
  }

  .testimonials-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 42px 32px;
  }

  .testimonials-hero-art {
    min-height: 190px;
  }

  .testimonials-hero-art img {
    width: 170px;
  }

  .testimonials-hero-art > span {
    right: 2px;
    bottom: 0;
  }

  .testimonials-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .testimonials-quote-mark {
    font-size: 4.5rem;
  }

  .testimonials-business-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-page *,
  .testimonials-page *::before,
  .testimonials-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
