/* === Testimonials page === Tokens come from main.css; hero and CTA come from projects.css. */

.ts-index { background: var(--offwhite-dim); padding: 96px 0 120px; }
.ts-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 44px; padding-bottom: 22px; border-bottom: 0.5px solid rgba(26,26,26,0.18); }
.ts-head-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.01em; color: var(--onyx); }
.ts-head-title em { font-style: italic; font-weight: 300; color: var(--crimson); }
.ts-head-note { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }

/* Masonry: CSS columns, so cards of any height pack tightly with no script. */
.ts-grid { list-style: none; column-count: 3; column-gap: 20px; }
.ts-card { display: inline-block; width: 100%; margin: 0 0 20px; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; background: var(--white); border: 0.5px solid rgba(26,26,26,0.14); transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.ts-card:hover, .ts-card:focus-within { border-color: var(--crimson); box-shadow: 0 14px 34px rgba(26,26,26,0.08); }
.ts-fig { margin: 0; padding: 32px 30px 28px; }
.ts-mark { display: block; height: 34px; margin-bottom: 10px; font-family: var(--font-serif); font-style: italic; font-size: 76px; line-height: .8; color: var(--crimson); }
.ts-quote { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--onyx); }
.ts-quote p + p { margin-top: 1em; }
.ts-card--short .ts-quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.35; letter-spacing: -0.005em; }

.ts-by { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 0.5px solid rgba(26,26,26,0.1); }
.ts-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: .9; transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.ts-card:hover .ts-avatar, .ts-card:focus-within .ts-avatar { filter: none; opacity: 1; }
.ts-initials { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--crimson-ghost); font-family: var(--font-serif); font-style: italic; font-size: 20px; letter-spacing: 0; color: var(--crimson); }
.ts-who { min-width: 0; }
.ts-name { display: block; font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: 20px; line-height: 1.15; color: var(--onyx); overflow-wrap: anywhere; }
.ts-role { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: var(--ash); }

.ts-cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }

@media (max-width: 1100px) { .ts-grid { column-count: 2; } }
@media (max-width: 760px) {
  .ts-index { padding: 64px 0 80px; }
  .ts-grid { column-count: 1; }
  .ts-card { margin-bottom: 14px; }
  .ts-fig { padding: 26px 22px 22px; }
  .ts-card--short .ts-quote { font-size: 22px; }
}