/* ROW homepage testimonials — colorful voices moving across editorial paper. */

@keyframes row-testimonial-marquee { to { transform: translate3d(-50%, 0, 0); } }

body.page-pages-home .row-home-testimonials {
  --row-testimonial-gap: 1rem;
  position: relative;
  padding: clamp(4.75rem, 7vw, 7rem) 0 clamp(4rem, 6vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 201, 79, .16), transparent 24rem),
    #f7f5f0 !important;
  color: #183047;
  scroll-margin-top: 6rem;
}

body.page-pages-home .row-home-testimonials::before,
body.page-pages-home .row-home-testimonials::after {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: clamp(1.25rem, 5vw, 5rem);
  content: "";
  pointer-events: none;
}

body.page-pages-home .row-home-testimonials::before { left: 0; background: linear-gradient(90deg, #f7f5f0, transparent); }
body.page-pages-home .row-home-testimonials::after { right: 0; background: linear-gradient(270deg, #f7f5f0, transparent); }

body.page-pages-home .row-home-testimonials > .row-home-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.page-pages-home .row-home-testimonials__header {
  display: grid;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

body.page-pages-home .row-home-testimonials__header > div:first-child { max-width: 51rem; }

body.page-pages-home .row-home-testimonials__kicker {
  display: flex;
  margin: 0 0 .9rem;
  color: #8f1d4b;
  font: 800 .75rem/1 "Barlow", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  gap: .75rem;
  align-items: center;
}

body.page-pages-home .row-home-testimonials__kicker::before {
  width: 2.25rem;
  height: 2px;
  background: #ef5b2a;
  content: "";
}

body.page-pages-home .row-home .row-home-testimonials__heading {
  max-width: 14ch;
  margin: 0 !important;
  color: #1c3a54 !important;
  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  font-weight: 400 !important;
  letter-spacing: -.055em;
  line-height: .98;
  text-align: left;
  text-wrap: balance;
}

body.page-pages-home .row-home-testimonials__intro {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: #53636c !important;
  font: 400 clamp(1rem, 1.35vw, 1.16rem)/1.55 "Barlow", sans-serif;
}

body.page-pages-home .row-home-testimonials__toggle {
  display: inline-flex;
  min-width: 10rem;
  min-height: 3.25rem;
  padding: .8rem 1.2rem;
  border: 1px solid rgba(28, 58, 84, .3);
  border-radius: .45rem;
  background: transparent;
  color: #1c3a54;
  font: 800 .76rem/1 "Barlow", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  gap: .7rem;
  align-items: center;
  justify-content: center;
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

body.page-pages-home .row-home-testimonials__toggle-icon { font-size: .85rem; letter-spacing: -.18em; }
body.page-pages-home .row-home-testimonials__toggle:focus-visible,
body.page-pages-home .row-home-testimonials__grid:focus-visible { outline: 3px solid #ffc94f; outline-offset: .3rem; }

body.page-pages-home .row-home-testimonials__grid { width: 100%; overflow: hidden; }
body.page-pages-home .row-home-testimonials__track { display: flex; width: max-content; will-change: transform; }
body.page-pages-home .row-home-testimonials__track.is-running { animation: row-testimonial-marquee 76s linear infinite; }
body.page-pages-home .row-home-testimonials__track.is-paused { animation-play-state: paused; }
body.page-pages-home .row-home-testimonials__group { display: flex; padding-right: var(--row-testimonial-gap); gap: var(--row-testimonial-gap); }

body.page-pages-home :is(.row-home-testimonial-card, .row-home-testimonial-clone) {
  --row-card-bg: #ef5b2a;
  --row-card-fg: #fffdfa;
  --row-mark-bg: rgba(10, 24, 33, .25);
  position: relative;
  display: flex;
  width: clamp(18rem, 24vw, 21.5rem);
  min-width: clamp(18rem, 24vw, 21.5rem);
  min-height: clamp(25rem, 30vw, 27.5rem);
  padding: clamp(1.65rem, 2.4vw, 2.15rem);
  overflow: hidden;
  border: 0;
  border-radius: .45rem;
  background: var(--row-card-bg) !important;
  color: var(--row-card-fg);
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1rem 2.25rem rgba(28, 58, 84, .14);
  transition: box-shadow 320ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1);
}

body.page-pages-home :is(.row-home-testimonial-card, .row-home-testimonial-clone)::before {
  position: absolute;
  top: -.8rem;
  right: .7rem;
  color: currentColor;
  content: "“";
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  opacity: .12;
}

body.page-pages-home :is(.row-home-testimonial-card--1, .row-home-testimonial-card--7) { --row-card-bg: #ef5b2a; }
body.page-pages-home :is(.row-home-testimonial-card--2, .row-home-testimonial-card--8) { --row-card-bg: #8f1d4b; }
body.page-pages-home :is(.row-home-testimonial-card--3, .row-home-testimonial-card--9) { --row-card-bg: #294965; }
body.page-pages-home :is(.row-home-testimonial-card--4, .row-home-testimonial-card--10) { --row-card-bg: #4f7357; }
body.page-pages-home .row-home-testimonial-card--5 { --row-card-bg: #5e477f; }
body.page-pages-home .row-home-testimonial-card--6 { --row-card-bg: #ffc94f; --row-card-fg: #183047; --row-mark-bg: rgba(28, 58, 84, .12); }

body.page-pages-home .row-home-testimonial-card__bubble {
  display: block;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
}

body.page-pages-home .row-home-testimonial-card__bubble::before,
body.page-pages-home .row-home-testimonial-card__bubble::after { display: none !important; }

body.page-pages-home .row-home-testimonial-card__quote {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  color: inherit !important;
  font: 600 clamp(1.05rem, 1.28vw, 1.24rem)/1.48 "Barlow", sans-serif !important;
  letter-spacing: -.016em;
  text-wrap: pretty;
}

body.page-pages-home .row-home-testimonial-card__bubble > p {
  margin: -.2rem 0 1.6rem;
  color: inherit !important;
  font: 400 .9rem/1.5 "Barlow", sans-serif;
  opacity: .82;
}

body.page-pages-home .row-home-testimonial-card__attribution { display: flex; margin-top: auto; color: inherit; gap: .85rem; align-items: center; }
body.page-pages-home .row-home-testimonial-card__mark {
  display: grid;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  border: 1px solid currentColor;
  border-radius: .5rem;
  background: var(--row-mark-bg);
  opacity: .85;
  place-items: center;
}
body.page-pages-home .row-home-testimonial-card__mark img { display: block; width: 2rem; height: 2rem; object-fit: contain; }
body.page-pages-home .row-home-testimonial-card__attribution cite { display: block; min-width: 0; color: inherit; font-style: normal; }
body.page-pages-home .row-home-testimonial-card__name,
body.page-pages-home .row-home-testimonial-card__role { display: block; color: inherit !important; font-family: "Barlow", sans-serif; }
body.page-pages-home .row-home-testimonial-card__name { font-size: .88rem; font-weight: 800; letter-spacing: .025em; line-height: 1.2; text-transform: uppercase; }
body.page-pages-home .row-home-testimonial-card__role { margin-top: .2rem; font-size: .74rem; line-height: 1.35; opacity: .8; }

body.page-pages-home .row-home :is(.row-home-testimonial-card, .row-home-testimonial-clone) :is(
  .row-home-testimonial-card__quote, .row-home-testimonial-card__bubble > p,
  .row-home-testimonial-card__name, .row-home-testimonial-card__role
) { color: var(--row-card-fg) !important; }

body.page-pages-home .row-home-testimonials__status {
  display: flex;
  width: min(100% - 2rem, 80rem);
  margin: 1.75rem auto 0;
  color: #53636c;
  font: 700 .7rem/1.4 "Barlow", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  gap: .8rem;
  align-items: center;
}
body.page-pages-home .row-home-testimonials__status span { width: 2.5rem; height: 2px; background: #ef5b2a; }
body.page-pages-home .row-home-testimonials__status p { margin: 0; }
body.page-pages-home .row-home-testimonials__status b { color: #8f1d4b; }

@media (hover: hover) and (pointer: fine) {
  body.page-pages-home .row-home-testimonials__toggle:hover { background: #1c3a54; color: #fffdfa; transform: translateY(-.15rem); }
  body.page-pages-home .row-home-testimonial-card:hover { z-index: 2; box-shadow: 0 1.8rem 3.5rem rgba(28, 58, 84, .24); transform: translateY(-.6rem); }
}

@media (max-width: 699px) {
  body.page-pages-home .row-home-testimonials { --row-testimonial-gap: .8rem; padding: 4rem 0 3.75rem; scroll-margin-top: 9rem; }
  body.page-pages-home .row-home-testimonials__header { grid-template-columns: 1fr; margin-bottom: 2rem; gap: 1.35rem; }
  body.page-pages-home .row-home .row-home-testimonials__heading { font-size: clamp(2.4rem, 11.5vw, 3.35rem); }
  body.page-pages-home .row-home-testimonials__toggle { min-width: 0; justify-self: start; }
  body.page-pages-home :is(.row-home-testimonial-card, .row-home-testimonial-clone) { width: min(82vw, 20rem); min-width: min(82vw, 20rem); min-height: 26rem; padding: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-pages-home .row-home-testimonials::before,
  body.page-pages-home .row-home-testimonials::after,
  body.page-pages-home .row-home-testimonials__toggle,
  body.page-pages-home .row-home-testimonials__status { display: none; }
  body.page-pages-home .row-home-testimonials__grid { padding: 0 1rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
  body.page-pages-home .row-home-testimonials__track { animation: none !important; transform: none !important; }
  body.page-pages-home .row-home-testimonials__group--clone { display: none; }
  body.page-pages-home .row-home-testimonial-card { scroll-snap-align: start; transition: none !important; }
}
