/* Aeline testimonial layout, scoped to this section only. */
.wh-testimonials {
  --review-inner: min(1440px, calc(100vw - 104px));
  --review-edge: calc((100vw - var(--review-inner)) / 2);
  --review-width: calc((var(--review-inner) - 20px) / 3);
  display: grid;
  grid-template-columns: var(--review-edge) minmax(0, 1fr) var(--review-edge);
  padding: 48px 0;
  background: var(--paper);
  color: #141414;
  scroll-margin-top: 108px;
}
.wh-testimonials-header {
  grid-column: 2;
  grid-row: 1;
  width: var(--review-inner);
  margin: 0 auto;
  padding-right: 116px;
}
.wh-testimonials .wh-eyebrow {
  justify-content: flex-start;
  margin-bottom: 20px !important;
  font: 400 14px/20px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1.4px;
}
.wh-testimonials h2 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -.06em;
  text-wrap: initial;
}
.wh-testimonials-intro {
  margin-top: 20px !important;
  color: #4b4b4b;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -.02em;
}
.wh-testimonials-controls {
  display: flex;
  gap: 16px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: end;
}
.wh-testimonials-controls[hidden] { display: none; }
.wh-review-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f2f2f2;
  color: #141414;
  cursor: pointer;
  transition: background 240ms ease, transform 240ms var(--ease-settle);
}
.wh-review-arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wh-review-arrow:active { transform: scale(.97); }
.wh-reviews-viewport {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 64px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--review-edge);
}
.wh-reviews-viewport::-webkit-scrollbar { display: none; }
.wh-reviews-viewport:focus-visible { outline: 2px solid #258fd5; outline-offset: -2px; }
.wh-reviews-track { display: flex; gap: 10px; padding-inline: var(--review-edge); width: max-content; }
.wh-review {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  flex: 0 0 var(--review-width);
  width: var(--review-width);
  height: 480px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #91958e;
  color: #fff;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.wh-review-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.wh-review-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: auto;
  height: 20px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.wh-review-content { position: relative; width: 100%; padding: 20px; }
.wh-review-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: linear-gradient(rgba(0,0,0,.15) 5%, #000 28%);
}
.wh-review blockquote { margin: 0; }
.wh-review-quote { width: 32px; height: 32px; margin-bottom: 8px; fill: currentColor; }
.wh-review blockquote p { font-size: 20px; font-weight: 500; line-height: 28px; letter-spacing: -.04em; }
.wh-review figcaption { margin-top: 20px; text-align: right; font-size: 16px; line-height: 24px; letter-spacing: -.02em; }
.wh-reviews-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wh-reviews-viewport.is-ready {
  overflow-x: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.wh-reviews-viewport.is-recentering { scroll-snap-type: none; scroll-behavior: auto; }
.wh-reviews-viewport.is-wheel-scrolling { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) { .wh-review-arrow:hover { background: #e6e6e6; } }
@media (min-width: 761px) and (max-width: 1199px) {
  .wh-testimonials { --review-inner: calc(100vw - 64px); --review-width: calc((var(--review-inner) - 10px) / 2); }
  .wh-testimonials h2 { font-size: 40px; }
}
@media (max-width: 760px) {
  .wh-testimonials { --review-inner: calc(100vw - 32px); --review-width: var(--review-inner); padding: 36px 0; }
  .wh-testimonials-header { padding-right: 0; }
  .wh-testimonials h2 { font-size: 35px; line-height: 1.17; letter-spacing: -.06em; }
  .wh-testimonials .wh-eyebrow { font-size: 14px; }
  .wh-reviews-viewport { margin-top: 48px; }
  .wh-testimonials-controls { grid-row: 3; justify-self: center; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-review-arrow { transition: none; }
}
