/* Testimonials (r12, 30 Oct 2026). Self-contained: every selector is .tm-
   prefixed and falls back to the site's own tokens, so it works on both the
   style.css (homepage) and geo-page.css (service page) families. */
.tm{
  --tm-gold: var(--gold, #d6ae67);
  --tm-gold-soft: var(--gold-soft, #f0d7a1);
  --tm-text: var(--text, #f8f4ee);
  --tm-muted: var(--text-muted, #c6beb2);
  --tm-dim: rgba(248,244,238,.62);
  --tm-line: rgba(214,174,103,.24);
  --tm-soft: rgba(255,255,255,.09);
  position: relative;
}
.tm-head{max-width:780px;margin:0 0 clamp(30px,4vw,48px)}
.tm-eyebrow{margin:0 0 14px;color:var(--tm-gold)!important;font-size:.76rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.tm-title{margin:0;color:var(--tm-text);font-weight:800;font-size:clamp(2rem,4.4vw,3.35rem);line-height:1.06;letter-spacing:-.035em;text-wrap:balance}
.tm-intro{margin:18px 0 0;max-width:640px;color:var(--tm-muted)!important;font-size:1.05rem;line-height:1.7}

/* Stats: four numbers on a hairline rail. */
.tm-stats{list-style:none;margin:0 0 clamp(34px,5vw,56px);padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid var(--tm-line)}
.tm-stats li{padding:22px 18px 22px 0}
.tm-stats li+li{border-left:1px solid var(--tm-soft);padding-left:20px}
.tm-num{display:block;color:var(--tm-gold-soft);font-weight:800;font-size:clamp(2rem,3.6vw,2.85rem);line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.tm-num small{margin-left:2px;color:var(--tm-muted);font-size:.42em;font-weight:600;letter-spacing:0}
.tm-label{display:block;margin-top:10px;color:var(--tm-muted);font-size:.86rem;line-height:1.45}

/* Featured quote. */
.tm-feature{position:relative;overflow:hidden;margin:0 0 clamp(24px,3.5vw,36px);padding:clamp(28px,4.6vw,58px);border:1px solid var(--tm-line);border-radius:24px;
  background:radial-gradient(120% 140% at 0% 0%,rgba(214,174,103,.15),transparent 55%),linear-gradient(160deg,#121212,#080808)}
.tm-feature::before{content:"\201C";position:absolute;top:-.14em;right:.06em;color:rgba(214,174,103,.15);font:700 clamp(9rem,18vw,15rem)/1 "Playfair Display",Georgia,serif;pointer-events:none}
.tm-feature blockquote{position:relative;margin:0;max-width:920px}
.tm-feature blockquote p{margin:0;color:var(--tm-text)!important;font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:600;font-size:clamp(1.42rem,2.7vw,2.2rem);line-height:1.34;letter-spacing:-.01em;text-wrap:pretty}
:lang(zh) .tm-feature blockquote p{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;font-style:normal;font-weight:500;font-synthesis:none;line-height:1.62;letter-spacing:0}

/* Person line. */
.tm-person{display:flex;align-items:flex-start;gap:14px;margin-top:22px}
.tm-feature .tm-person{margin-top:28px}
.tm-mono{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid rgba(214,174,103,.5);background:rgba(214,174,103,.08);color:var(--tm-gold-soft);font-size:.8rem;font-weight:800;letter-spacing:.04em}
.tm-who{min-width:0}
.tm-name{display:block;color:var(--tm-text);font-weight:700;font-size:.97rem;line-height:1.3}
.tm-role,.tm-company{display:block;color:var(--tm-muted);font-size:.84rem;line-height:1.42}
.tm-company{color:var(--tm-dim)}
.tm-tag{display:inline-block;margin-top:9px;padding:4px 10px;border:1px solid var(--tm-line);border-radius:999px;color:var(--tm-gold);font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;line-height:1.3}
:lang(zh) .tm-tag{letter-spacing:.04em}

/* Cards: masonry columns on desktop and tablet, one column on phones. */
.tm-grid{columns:3 280px;column-gap:20px}
.tm-card{break-inside:avoid;margin:0 0 20px;padding:26px 24px 24px;border:1px solid var(--tm-soft);border-radius:18px;background:linear-gradient(170deg,rgba(255,255,255,.045),rgba(255,255,255,.012));transition:border-color .25s ease,transform .25s ease}
.tm-card:hover{border-color:var(--tm-line);transform:translateY(-2px)}
.tm-card blockquote{margin:0}
.tm-card blockquote p{margin:0;color:var(--tm-text)!important;font-size:1.02rem;line-height:1.62}
.tm-card blockquote p:first-child::before{content:"\201C";color:var(--tm-gold);font-weight:800;margin-right:1px}
.tm-card blockquote p:first-child::after{content:"\201D";color:var(--tm-gold);font-weight:800;margin-left:1px}
.tm-card blockquote p.tm-trans{margin-top:8px;color:var(--tm-muted)!important;font-size:.88rem}
.tm-card blockquote p.tm-trans::before,.tm-card blockquote p.tm-trans::after{content:none}
.tm-grid--3{columns:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tm-grid--3 .tm-card{margin:0;display:flex;flex-direction:column;justify-content:space-between}

.tm-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 28px;margin-top:clamp(18px,3vw,28px)}
.tm-note{margin:0;max-width:820px;color:var(--tm-dim)!important;font-size:.8rem;line-height:1.6}
.tm-link{display:inline-flex;align-items:center;min-height:44px;color:var(--tm-gold-soft);font-weight:700;font-size:.95rem;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}
.tm-link:hover{border-bottom-color:currentColor}
.tm-link:focus-visible{outline:2px solid var(--tm-gold-soft);outline-offset:4px;border-radius:10px}
.tm-strip-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px 24px;margin:0 0 24px}
.tm-strip-head .tm-title{font-size:clamp(1.6rem,3vw,2.3rem)}

@media (max-width: 900px){
  .tm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-stats li:nth-child(3){border-left:0;padding-left:0}
  .tm-stats li:nth-child(n+3){border-top:1px solid var(--tm-soft)}
  .tm-grid{columns:2}
  .tm-grid--3{columns:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-grid--3 .tm-card:nth-child(3){grid-column:1/-1}
}
/* Phones: one vertical column. Nothing scrolls sideways. */
@media (max-width: 640px){
  .tm-grid,.tm-grid--3{columns:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  .tm-grid--3 .tm-card:nth-child(3){grid-column:auto}
  .tm-card{margin:0;padding:20px 18px 18px;border-radius:16px}
  .tm-card:hover{transform:none}
  .tm-card blockquote p{font-size:.98rem;line-height:1.58}
  .tm-person{gap:12px;margin-top:16px}
  .tm-mono{width:38px;height:38px;font-size:.74rem}
  .tm-feature{padding:24px 20px;border-radius:18px}
  .tm-feature::before{font-size:7rem}
  .tm-feature blockquote p{font-size:1.28rem}
  .tm-num{font-size:2rem}
  .tm-stats li{padding:16px 12px 16px 0}
  .tm-stats li+li{padding-left:14px}
  .tm-stats li:nth-child(3){padding-left:0}
  .tm-strip-head{align-items:flex-start;flex-direction:column}
  .tm-foot{flex-direction:column;align-items:flex-start}
}
.tm,.tm *{box-sizing:border-box}
.tm-name,.tm-role,.tm-company,.tm-card blockquote p{overflow-wrap:anywhere}
@media (prefers-reduced-motion: reduce){.tm-card,.tm-link{transition:none}.tm-card:hover{transform:none}}
