/* =========================================================
   TESTIMONIALS PAGE (testimonial.html), 2026-11-23
   Everything under the hero banner and breadcrumb:
   - the intro: title, lead and a Google review seal whose ring
     turns, whose stars light one by one and whose number counts
     up; under it the reviewed properties drift past on a band;
   - the reviews: a simple grid of review cards on one screen,
     paged with arrows, dots and swipes (turning on their own),
     with service chips, quiet rise and hover effects and a pop-up
     that opens any review in full;
   - the FAQ is the shared one (hm-faq ab-faq, about-sections.css).

   No black: text is deep plum, grounds are white, blush and wine.
   Fonts come from css/typography.css. Without js/testimonials.js
   every review stands in a grid; with reduced motion nothing moves.
   Earlier designs: Version/testimonials-design-1-slider-2026-11-23/
   Version/testimonials-design-2-guestbook-2026-11-23/,
   Version/testimonials-design-3-wall-2026-11-23/ and
   Version/testimonials-design-4-timeline-2026-11-23/.
   ========================================================= */

.ts {
  --ts-ink: #3d1030;
  --ts-ink-72: rgba(61, 16, 48, .72);
  --ts-ink-50: rgba(61, 16, 48, .5);
  --ts-ink-12: rgba(61, 16, 48, .12);
  --ts-ink-06: rgba(61, 16, 48, .06);
  --ts-pink: #c73689;
  --ts-pink-deep: #a32570;
  --ts-rose: #f2a9cf;
  --ts-blush: #fdf1f7;
  --ts-blush-2: #f9e1ee;
  --ts-wine: #5a1440;
  --ts-brass: #c8b18c;
  --ts-brass-light: #efe3cd;
  --ts-star: #f0ad32;
  --ts-ease: cubic-bezier(.19, 1, .22, 1);
  --ts-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ts-space: clamp(56px, 6vw, 96px);
  --ts-radius: clamp(20px, 2.2vw, 30px);
  /* the shared About pieces (button, word reveals) read these */
  --ab-ink: var(--ts-ink);
  --ab-ink-72: var(--ts-ink-72);
  --ab-ink-12: var(--ts-ink-12);
  --ab-pink: var(--ts-pink);
  --ab-pink-deep: var(--ts-pink-deep);
  --ab-brass: var(--ts-brass);
  --ab-ease: var(--ts-ease);
  position: relative;
  font-family: var(--hm-body-font);
  color: var(--ts-ink-72);
}

.ts *,
.ts *::before,
.ts *::after { box-sizing: border-box; }

.ts button { font-family: var(--hm-body-font); }

.ts button:focus-visible,
.ts a:focus-visible {
  outline: 2px solid var(--ts-brass);
  outline-offset: 3px;
}

/* ---------- stars (seal and every card) ---------- */
.ts-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--ts-star);
}

.ts-stars svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
}

/* =========================================================
   INTRO
   ========================================================= */
.ts-intro {
  padding: clamp(40px, 5vw, 80px) 0 0;
  overflow: hidden;
  background: #fff;
}

.ts-aura {
  position: absolute;
  top: -22vw;
  right: -16vw;
  width: 64vw;
  height: 64vw;
  max-width: 980px;
  max-height: 980px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 169, 207, .42), rgba(242, 169, 207, 0));
  pointer-events: none;
}

.ts-intro__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}

.ts .ts-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ts-pink);
}

.ts .ts-kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--ts-brass);
}

.ts .ts-intro__title {
  margin: 0 0 24px;
  font-family: var(--hm-heading-font);
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ts-ink);
  text-wrap: balance;
}

.ts .ts-accent > span {
  font-style: italic;
  color: var(--ts-pink);
}

.ts .ts-intro__lead {
  max-width: 640px;
  margin: 0 0 30px;
  font-family: var(--hm-body-font);
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ts-ink-72);
}

.ts-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
}

.ts .ts-link {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ts-brass);
  font-size: 15px;
  font-weight: 700;
  color: var(--ts-ink);
  transition: color .3s, border-color .3s;
}

.ts .ts-link:hover { border-color: var(--ts-pink); }

/* ---------- the review seal ---------- */
.ts-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 0 34px auto;
}

.ts-seal::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0%, var(--ts-blush) 58%, var(--ts-blush-2) 100%);
  box-shadow: 0 44px 70px -44px rgba(61, 16, 48, .5), inset 0 0 0 1px rgba(200, 177, 140, .7);
}

.ts-seal::after {
  content: "";
  position: absolute;
  inset: 20.5%;
  border: 1px dashed rgba(200, 177, 140, .9);
  border-radius: 50%;
}

.ts-seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ts-seal__ring text {
  font-family: var(--hm-body-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  fill: var(--ts-wine);
}

.ts-seal__core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.ts-seal__num {
  font-family: var(--hm-heading-font);
  font-size: clamp(60px, 6.2vw, 88px);
  font-weight: 600;
  line-height: .9;
  color: var(--ts-ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.ts-seal__label {
  max-width: 150px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ts-ink-72);
}

.ts-seal__years {
  position: absolute;
  bottom: -9%;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--ts-wine);
  box-shadow: 0 16px 28px -16px rgba(90, 20, 64, .9);
}

/* ---------- the reviewed properties, drifting past ---------- */
.ts-names {
  position: relative;
  margin-top: clamp(44px, 5.5vw, 84px);
  padding: clamp(16px, 2vw, 24px) 0;
  overflow: hidden;
  border-top: 1px solid var(--ts-ink-12);
  border-bottom: 1px solid var(--ts-ink-12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 7%, #fff 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #fff 7%, #fff 93%, transparent);
}

.ts .ts-names__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0 16px;
  list-style: none;
}

.ts-names__track li {
  display: flex;
  align-items: center;
  padding: 0;
}

.ts-names__track li::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 clamp(22px, 3vw, 46px);
  background: var(--ts-brass);
  transform: rotate(45deg);
}

.ts .ts-name {
  font-family: var(--hm-heading-font);
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ts-ink);
  transition: color .35s;
}

.ts .ts-name:hover,
.ts .ts-name:focus { color: var(--ts-pink) !important; }

/* =========================================================
   REVIEWS: A SIMPLE GRID
   Clean review cards in a grid that fills one screen under the
   header: three across and two down on a desktop, two across on a
   tablet, one on a phone. Chips above filter by service; arrows,
   dots and swipes turn the page, and the pages turn on their own
   (the active dot fills as the time runs; pause button; a mouse
   on the grid or keyboard focus holds it). A few quiet effects:
   cards rise in one after another, lift and draw a pink line
   along their top on hover, and their stars light up. A long
   review shows its first lines; "Read more" opens it whole.
   Without the script every card shows; with reduced motion
   nothing rises or turns on its own.
   ========================================================= */
.ts-reviews {
  padding: var(--ts-space) 0;
  background: linear-gradient(180deg, #fff 0%, var(--ts-blush) 14%, var(--ts-blush) 86%, #fff 100%);
  overflow: hidden;
  /* the fixed header's height; the script measures the real one */
  scroll-margin-top: var(--ts-head, 105px);
}

.rg {
  --rg-cols: 3;
  --rg-rows: 2;
  --rg-gap: clamp(14px, 1.6vw, 24px);
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- chips ---------- */
.rg-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(14px, 2.4vh, 28px);
}

.ts .rg-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 8px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--ts-ink-12);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ts-ink);
  background: #fff;
  cursor: pointer;
  transition: background .45s var(--ts-ease), color .45s, border-color .45s, transform .45s var(--ts-ease);
}

.rg-chip span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  text-align: center;
  color: var(--ts-pink-deep);
  background: var(--ts-blush-2);
}

.ts .rg-chip:hover { border-color: var(--ts-rose); transform: translateY(-2px); }

.ts .rg-chip.is-on {
  border-color: var(--ts-wine);
  color: #fff;
  background: var(--ts-wine);
}

.rg-chip.is-on span { color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- the grid and its cards ---------- */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--rg-gap);
}

.rg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 1.8vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(61, 16, 48, .07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 40px -34px rgba(61, 16, 48, .5);
  transition: transform .55s var(--ts-ease), box-shadow .55s var(--ts-ease);
}

/* a faint quotation mark in the corner */
.rg-card::after {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 18px;
  font-family: var(--hm-heading-font);
  font-size: 84px;
  line-height: 1;
  color: rgba(199, 54, 137, .12);
  pointer-events: none;
}

/* a pink line drawn along the top on hover */
.rg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ts-pink), var(--ts-wine));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ts-ease);
}

.rg-card:hover {
  box-shadow: 0 34px 50px -30px rgba(61, 16, 48, .5);
  transform: translateY(-6px);
}

.rg-card:hover::before { transform: scaleX(1); }

.rg-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 40px;
}

.rg-card__top .ts-stars svg { width: 15px; height: 15px; }

.rg-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ts-ink-50);
}

.ts .rg-quote {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--hm-heading-font);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ts-ink);
}

.ts .rg-quote p {
  margin: 0 0 .55em;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.ts .rg-quote p:last-child { margin-bottom: 0; }
.ts .rg-quote--s { font-size: 23px; line-height: 1.32; }

/* a long review shows its first lines; "Read more" opens it whole */
.rg-card.is-clamped .rg-quote {
  max-height: calc(1.45em * var(--rg-lines, 6));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #fff 60%, transparent);
  mask-image: linear-gradient(180deg, #fff 60%, transparent);
}

.rg-who {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.rg-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  font-family: var(--hm-heading-font);
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
  color: #fdf1f7;
  background: linear-gradient(160deg, #6a1a4b, #a32570);
}

.rg-card:nth-child(4n+2) span.rg-av { color: #5a1440; background: linear-gradient(160deg, #fdf1f7, #f2a9cf); }
.rg-card:nth-child(4n+3) span.rg-av { color: #fff; background: linear-gradient(160deg, #a32570, #e66fab); }
.rg-card:nth-child(4n+4) span.rg-av { color: #5a1440; background: linear-gradient(160deg, #efe3cd, #f9e1ee); }

.rg-who__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rg-who__name {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ts-ink);
}

.rg-who__where {
  overflow: hidden;
  font-family: var(--hm-heading-font);
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ts-pink);
}

.rg-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(200, 177, 140, .6);
}

.rg-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ts-ink-72);
}

.rg-src .ts-g { flex: none; width: 14px; height: 14px; }

.ts .rg-case,
.ts .rg-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 0 1px;
  border: 0;
  border-bottom: 1px solid var(--ts-brass);
  font-family: var(--hm-body-font);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ts-wine);
  background: none;
  cursor: pointer;
}

.rg-case svg { width: 12px; height: 12px; }
.ts .rg-more { display: none; }
.ts .rg-card.is-clamped .rg-more { display: inline-flex; }

.rg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- arrows, dots, pause ---------- */
.rg-nav { display: none; }

.ts .rg-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ts-ink-12);
  border-radius: 50%;
  color: var(--ts-ink);
  background: #fff;
  cursor: pointer;
  transition: background .45s var(--ts-ease), color .45s, border-color .45s, transform .45s var(--ts-ease);
}

.rg-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rg-play svg { width: 15px; height: 15px; }
.rg-play .rg-play__go { display: none; fill: currentColor; stroke: none; }
.rg.is-paused .rg-play__stop { display: none; }
.rg.is-paused .rg-play__go { display: block; }

.ts .rg-btn:hover,
.ts .rg.is-paused .rg-play {
  border-color: var(--ts-wine);
  color: #fff;
  background: var(--ts-wine);
}

.rg-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: min(60vw, 520px);
}

.ts .rg-dot {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(61, 16, 48, .16);
  cursor: pointer;
  transition: width .5s var(--ts-ease), background-color .4s;
}

.ts .rg-dot:hover { background: rgba(199, 54, 137, .45); }

/* the page on show: a longer dot that fills as its time runs */
.ts .rg-dot.is-on {
  width: 38px;
  background: rgba(199, 54, 137, .22);
}

.rg-dot.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ts-pink), var(--ts-wine));
  transform: scaleX(1);
  transform-origin: left;
}

.rg-motion .rg-dot.is-on.is-timing::after { animation: rg-fill var(--rg-dur, 9s) linear both; }
.rg-motion .rg.is-held .rg-dot.is-on.is-timing::after { animation-play-state: paused; }

/* ---------- the pop-up with the whole review ---------- */
.rg-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
}

.rg-modal[hidden] { display: none; }

.rg-modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(61, 16, 48, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rg-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 60px 90px -40px rgba(61, 16, 48, .6);
  outline: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--ts-rose) transparent;
}

.rg-modal .rg-card {
  gap: 16px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.rg-modal .rg-card::before { display: none; }
.rg-modal .rg-card::after { top: -18px; right: 50px; font-size: 110px; }
.ts .rg-modal .rg-quote { font-size: clamp(18px, 2.2vw, 24px); }
.ts .rg-modal .rg-quote--s { font-size: clamp(24px, 3vw, 34px); }
.rg-modal .rg-card__top { padding-right: 50px; }
.rg-modal .rg-card__top .ts-stars svg { width: 18px; height: 18px; }
.rg-modal .rg-av { width: 50px; height: 50px; font-size: 20px; }
.rg-modal .rg-who__name { font-size: 16px; white-space: normal; }
.rg-modal .rg-who__where { font-size: 20px; white-space: normal; }
.ts .rg-modal .rg-more { display: none; }

.ts .rg-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ts-ink-12);
  border-radius: 50%;
  color: var(--ts-ink);
  background: #fff;
  cursor: pointer;
  transition: background .4s, color .4s, border-color .4s;
}

.rg-modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ts .rg-modal__close:hover { border-color: var(--ts-wine); color: #fff; background: var(--ts-wine); }

/* =========================================================
   THE GRID ON ONE SCREEN (with the script)
   ========================================================= */
.ts-reviews.is-live {
  display: flex;
  flex-direction: column;
  height: max(var(--ts-fold-min, 520px), calc(100vh - var(--ts-head, 105px)));
  height: max(var(--ts-fold-min, 520px), calc(100svh - var(--ts-head, 105px)));
  padding: clamp(14px, 2.6vh, 30px) 0;
}

.ts-reviews.is-live > .container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.ts-reviews.is-live .rg {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* the chips keep to one line, to swipe along where they do not all fit */
.ts-reviews.is-live .rg-chips {
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
}

.ts-reviews.is-live .rg-chips::-webkit-scrollbar { display: none; }

.ts-reviews.is-live .rg-grid {
  flex: 1 1 auto;
  grid-template-columns: repeat(var(--rg-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rg-rows), minmax(0, 1fr));
  min-height: 0;
  touch-action: pan-y;
}

.ts-reviews.is-live .rg-grid .rg-card:not(.is-on) { display: none; }

/* the name and source keep to the foot of every card */
.ts-reviews.is-live .rg-grid .rg-who { margin-top: auto; }

.ts-reviews.is-live .rg-nav {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2.4vh, 26px);
  padding-right: max(0px, calc(70px - (100vw - 100%) / 2));
  padding-left: max(0px, calc(100px - (100vw - 100%) / 2));
}

/* =========================================================
   GRID EFFECTS
   ========================================================= */
/* the cards of a page rise in one after another */
.rg-motion .rg-card.is-entering { animation: rg-rise .8s var(--ts-ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }

/* their stars light up in turn */
.rg-motion .rg-card.is-entering .ts-stars svg { animation: ts-star .55s var(--ts-spring) backwards; }
.rg-motion .rg-card .ts-stars svg:nth-child(2) { animation-delay: calc(var(--i, 0) * 90ms + .34s); }
.rg-motion .rg-card .ts-stars svg:nth-child(1) { animation-delay: calc(var(--i, 0) * 90ms + .28s); }
.rg-motion .rg-card .ts-stars svg:nth-child(3) { animation-delay: calc(var(--i, 0) * 90ms + .40s); }
.rg-motion .rg-card .ts-stars svg:nth-child(4) { animation-delay: calc(var(--i, 0) * 90ms + .46s); }
.rg-motion .rg-card .ts-stars svg:nth-child(5) { animation-delay: calc(var(--i, 0) * 90ms + .52s); }

/* many pages (a phone): a count with the timing bar instead of a dot for each */
.rg-count {
  font-family: var(--hm-heading-font);
  font-size: 18px;
  color: var(--ts-ink-50);
  font-variant-numeric: lining-nums;
}

.rg-count b { font-weight: 700; color: var(--ts-ink); }

.rg-motion .rg-modal:not([hidden]) .rg-modal__veil { animation: rg-fade .35s ease both; }
.rg-motion .rg-modal:not([hidden]) .rg-modal__panel { animation: rg-pop .55s var(--ts-ease) both; }

@keyframes rg-rise {
  from { opacity: 0; transform: translateY(34px) scale(.97); }
}

@keyframes rg-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes rg-fade {
  from { opacity: 0; }
}

@keyframes rg-pop {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
}

/* =========================================================
   THE GRID ON SMALLER SCREENS
   ========================================================= */
@media (max-width: 991.98px) {
  .ts-reviews { --ts-head: 85px; }
  .ts-reviews.is-live > .container { max-width: 100%; }

  /* the controls sit to the right, clear of the chat button's pop-up message */
  .ts-reviews.is-live .rg-nav {
    justify-content: flex-end;
    padding-right: max(0px, calc(60px - (100vw - 100%) / 2));
    padding-left: max(0px, calc(80px - (100vw - 100%) / 2));
  }
}

@media (max-width: 575px) {
  .ts-reviews { --ts-fold-min: 500px; }
  .ts .rg-quote { font-size: 18px; }
  .ts .rg-quote--s { font-size: 21px; }
  .ts .rg-btn { width: 42px; height: 42px; }
  .rg-dots { max-width: 150px; overflow: hidden; flex-wrap: nowrap; }
}

/* =========================================================
   MOTION (only when the script runs and motion is allowed)
   ========================================================= */
.ts-motion .ts-aura { animation: ts-breathe 14s ease-in-out infinite alternate; }
.ts-motion .ts-seal__ring { animation: ts-spin 46s linear infinite; }

.ts-motion .ts-seal { opacity: 0; transform: scale(.86) rotate(-8deg); }
.ts-motion .ts-seal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.2s ease .2s, transform 1.8s var(--ts-ease) .2s;
}

.ts-motion .ts-seal .ts-stars svg { transform: scale(0); }
.ts-motion .ts-seal.is-in .ts-stars svg { animation: ts-star .7s var(--ts-spring) both; }
.ts-motion .ts-seal.is-in .ts-stars svg:nth-child(1) { animation-delay: .7s; }
.ts-motion .ts-seal.is-in .ts-stars svg:nth-child(2) { animation-delay: .82s; }
.ts-motion .ts-seal.is-in .ts-stars svg:nth-child(3) { animation-delay: .94s; }
.ts-motion .ts-seal.is-in .ts-stars svg:nth-child(4) { animation-delay: 1.06s; }
.ts-motion .ts-seal.is-in .ts-stars svg:nth-child(5) { animation-delay: 1.18s; }

/* the names band loops; the script copies the names and sets the distance */
.ts-motion .ts-names.is-live .ts-names__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  animation: ts-marquee var(--ts-marq, 60s) linear infinite;
}

.ts-motion .ts-names.is-live:hover .ts-names__track,
.ts-motion .ts-names.is-live:focus-within .ts-names__track { animation-play-state: paused; }

@keyframes ts-star {
  0% { transform: scale(0) rotate(-40deg); }
  100% { transform: none; }
}

@keyframes ts-progress {
  to { transform: scaleX(1); }
}

@keyframes ts-marquee {
  to { transform: translateX(var(--ts-shift, -50%)); }
}

@keyframes ts-spin {
  to { transform: rotate(360deg); }
}

@keyframes ts-breathe {
  from { transform: scale(.9) translate(0, 0); }
  to { transform: scale(1.08) translate(-4%, 3%); }
}

/* ---------- FAQ title: the same size as the other revamped pages ---------- */
.hm-faq.ab-faq .hm-faq-head h2 { font-size: clamp(34px, 4.2vw, 60px); }

/* =========================================================
   THE INTRO ON SMALLER SCREENS
   ========================================================= */
@media (max-width: 991px) {
  .ts-intro__grid { grid-template-columns: minmax(0, 1fr); }
  .ts-seal { width: min(100%, 300px); margin: 0 auto 34px; }
}

@media (max-width: 767px) {
  .ts .ts-intro__lead { font-size: 16.5px; }
}

@media (max-width: 575px) {
  .ts .ts-intro__title,
  .hm-faq.ab-faq .hm-faq-head h2 { font-size: clamp(28px, 7.8vw, 34px); }
  .ts-seal { width: min(100%, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  .ts *,
  .ts *::before,
  .ts *::after {
    animation: none !important;
    transition: none !important;
  }

  .rg-play { display: none !important; }
}
