/* Customer introductions and the editorial customer story template. */
.hero-client {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 2.5rem;
  padding-block: 0.25rem;
  border-radius: var(--radius-card);
  color: var(--navy);
}
.client-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 180ms ease, opacity 180ms ease;
}
.hero-client:hover .client-logo,
.hero-client:focus-visible .client-logo { filter: grayscale(0); opacity: 1; }
.hero-client-copy { display: grid; gap: 0.12rem; }
.hero-client-name { font-size: 1.0625rem; font-weight: 400; line-height: 1.3; }
.hero-client-description { color: color-mix(in srgb, var(--navy) 60%, var(--stone)); font-size: 0.9375rem; line-height: 1.4; }
.hero-client:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

.customer-header .article-title { max-width: 17ch; }
.customer-header .article-dek { max-width: 40rem; }
.customer-cover { max-width: calc(60rem + 2 * var(--page-gutter)); margin-block: clamp(2.75rem, 5vw, 5rem) 0; }
.customer-cover img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.customer-content { padding-top: clamp(3rem, 5vw, 5rem); }
.customer-page .cta-section {
  background-color: #641021;
  background-image:
    linear-gradient(135deg, rgba(13, 27, 42, 0.18), rgba(13, 27, 42, 0.38)),
    url("assets/mqube-cta-gradient.webp");
}
.customer-aside { gap: 0.65rem; letter-spacing: 0; text-transform: none; }
.customer-aside-name { margin-bottom: 0.35rem; font: 500 1.4rem/1.2 var(--font-display); color: var(--notes-text); }
.customer-page .customer-lead { font-size: 1.2rem; }
.customer-setup {
  margin-block: 3.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--notes-line);
  border-radius: var(--radius-card);
  background: var(--panel);
}
.customer-setup-heading { display: flex; align-items: center; gap: 0.75rem; }
.customer-setup-heading img { flex: 0 0 auto; border-radius: 7px; }
.customer-page .customer-setup h2 { margin: 0; font: 500 1.25rem/1.3 var(--font-text); letter-spacing: -0.025em; }
.customer-facts { margin-top: 1rem; }
.customer-facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 0.55rem;
}
.customer-facts > div:last-child { padding-bottom: 0; }
.customer-facts dt { color: var(--notes-muted); font-size: 0.85rem; line-height: 1.5; }
.customer-facts dd { color: var(--notes-text); font-size: 0.95rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.customer-testimonial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin-block: clamp(3rem, 5vw, 5rem) 0;
}
.article-body .customer-testimonial {
  width: 100%;
}
.customer-testimonial figcaption { margin: 0; }
.customer-page .customer-testimonial blockquote { margin: 0; padding: 0; border: 0; }
.customer-testimonial .customer-quote-attribution { color: var(--notes-text); font-size: 0.9rem; line-height: 1.5; }
.customer-page .customer-quote blockquote {
  color: var(--notes-text);
  font: 500 clamp(1.25rem, 1.65vw, 1.65rem)/1.35 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.customer-quote-attribution { margin-top: 1.5rem; color: var(--notes-text); font-size: 0.9rem; }
.customer-quote-attribution span { display: block; margin-top: 0.35rem; color: var(--notes-muted); font-size: 0.75rem; }
.customer-quote-text {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: rgba(221, 220, 214, 0.38);
}
.customer-page .customer-quote-text blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.25rem, 1.65vw, 1.65rem);
}
.customer-quote-text .customer-quote-attribution { margin-top: 1.5rem; color: var(--notes-text); font-size: 0.9rem; }

.customer-stats { max-width: calc(60rem + 2 * var(--page-gutter)); margin-top: clamp(1.5rem, 3vw, 3rem); }
.customer-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.customer-stats-grid > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--notes-line-soft);
  border-radius: var(--radius-card);
  background: rgba(221, 220, 214, 0.38);
}
.customer-stats-grid dt { margin-top: 0.75rem; color: var(--notes-muted); font-size: 1rem; line-height: 1.45; }
.customer-stats-grid dd { order: -1; color: var(--notes-text); font: 400 clamp(2rem, 4vw, 3.5rem)/1.1 var(--font-display); letter-spacing: -0.04em; }
.customer-stats-note { margin-top: 0.75rem; color: var(--notes-muted); font-size: 0.8rem; line-height: 1.5; }

@media (max-width: 760px) {
  .customer-testimonial { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .customer-page .customer-lead { font-size: 1.1rem; }
  .customer-setup { margin-block: 2.5rem; }
}
@media (max-width: 640px) {
  .customer-stats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .customer-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .client-logo { transition: none; }
}
