.tg-testimonials {
    --tg-bg: var(--green-900);
    --tg-card: var(--green-800);
    --tg-card-border: rgba(168, 221, 184, .16);
    --tg-text: var(--white);
    --tg-muted: var(--green-200);
    --tg-accent: var(--gold-400);
    --tg-speed: 55s;

    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 120px) 0;
    background: var(--tg-bg);
    color: var(--tg-text);
    font-family: inherit;
  }

  /* soft moving glow behind the rows */
  .tg-testimonials::before {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background:
      radial-gradient(40% 35% at 20% 30%, rgba(224, 168, 58, .14), transparent 70%),
      radial-gradient(35% 30% at 80% 70%, rgba(61, 184, 104, .18), transparent 70%);
    animation: tg-drift 18s ease-in-out infinite alternate;
    pointer-events: none;
  }
  @keyframes tg-drift {
    to { transform: translate3d(3%, -3%, 0) scale(1.08); }
  }

  .tg-head {
    position: relative;
    max-width: 720px;
    margin: 0 auto clamp(36px, 5vw, 64px);
    padding: 0 20px;
    text-align: center;
  }
  .tg-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.02em;
  }
  .tg-head p {
    margin: 0;
    color: var(--tg-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.55;
  }

  /* heading reveal: one orchestrated entrance */
  .tg-head > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .tg-head > *:nth-child(2) { transition-delay: .12s; }
  .tg-testimonials.is-visible .tg-head > * { opacity: 1; transform: none; }

  /* marquee rows */
  .tg-rows {
    position: relative;
    display: grid;
    gap: 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .tg-row { overflow: hidden; }
  .tg-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: tg-scroll var(--tg-speed) linear infinite;
  }
  .tg-row:nth-child(2) .tg-track {
    animation-direction: reverse;
    animation-duration: calc(var(--tg-speed) * 1.2);
  }
  .tg-rows:hover .tg-track,
  .tg-rows:focus-within .tg-track { animation-play-state: paused; }
  @keyframes tg-scroll {
    to { transform: translateX(calc(-50% - 10px)); }
  }

  .tg-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(280px, 30vw, 380px);
    padding: 24px;
    border-radius: 20px;
    background: var(--tg-card);
    border: 1px solid var(--tg-card-border);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease;
  }
  .tg-card:hover,
  .tg-card:focus-visible {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--tg-accent) 55%, transparent);
    outline: none;
  }
  .tg-card:focus-visible { outline: 2px solid var(--tg-accent); outline-offset: 3px; }

  .tg-quote-mark {
    display: block;
    height: 28px;
    margin-bottom: 8px;
    font-size: 56px;
    line-height: 1;
    color: var(--tg-accent);
    font-family: Georgia, serif;
  }
  .tg-message {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tg-text);
  }
  .tg-person { display: flex; align-items: center; gap: 12px; }
  .tg-avatar {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--green-900);
    background: var(--tg-accent);
  }
  .tg-name { display: block; font-weight: 600; font-size: .98rem; }
  .tg-meta { display: block; margin-top: 2px; font-size: .85rem; color: var(--tg-muted); }

  /* respect reduced motion: stop animation, let people scroll the rows */
  @media (prefers-reduced-motion: reduce) {
    .tg-testimonials::before { animation: none; }
    .tg-track { animation: none; }
    .tg-row { overflow-x: auto; }
    .tg-head > * { opacity: 1; transform: none; transition: none; }
    .tg-card { transition: none; }
  }