/* The testimonials page (src/app/testimonials/page.tsx). Shared looks come from t1.css; the posts' cards from main.css and t1.css. */


/* Hero: compact, the headline and the faces on one row with the numbers under them */
.t1 > .tp-hero { padding-top: clamp(24px, 3.2vw, 44px); }
.tp-hero__card { display: grid; gap: clamp(20px, 2.6vw, 30px); padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--t1-dark); color: #F2EFEA; }
.tp-hero__title { font-family: var(--font-head); font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); font-weight: var(--head-weight); line-height: 1.04; letter-spacing: -0.035em; }
.tp-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.tp-hero__copy { max-width: 34rem; margin-top: 10px; font-size: 18px; line-height: 1.5; color: rgb(242 239 234 / 0.78); }
.tp-faces { display: grid; gap: 8px; }
.tp-faces__row { display: flex; }
.tp-faces__row > * { flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--t1-dark); }
.tp-faces__row > * + * { margin-left: -10px; }
.tp-faces__row span { display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--signal); color: var(--t1-dark); }
.tp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid rgb(255 255 255 / 0.14); }
.tp-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.tp-stats div + div { padding-left: clamp(14px, 3vw, 40px); border-left: 1px solid rgb(255 255 255 / 0.14); }
.tp-stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: var(--head-weight); line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tp-stats dt { font-size: 14.5px; line-height: 1.3; color: rgb(242 239 234 / 0.72); }

/* Clients: one story told in full beside the others */
.tp-clients__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tp-story { position: sticky; top: 96px; display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tp-story__line { margin: 0; font-family: var(--font-head); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); font-weight: var(--head-weight); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.tp-story__body { display: grid; gap: 10px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.tp-story .post__head { margin-bottom: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tp-story .post__avatar, .tp-clients .tp-card .post__avatar { background: rgb(247 147 26 / 0.16); color: #B86A0B; }
.tp-side { display: grid; gap: 16px; }
.tp-side .post { margin: 0; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tp-side .post:hover { box-shadow: 0 0 0 1px var(--signal); }
.tp-did { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tp-side .tp-did { margin-top: 14px; }
.tp-did li { padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; line-height: 1.3; background: rgb(247 147 26 / 0.12); color: #8F5208; }

/* What people say: rows of three, with whatever is left over centred under them */
.tp-posts { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tp-posts .post { display: flex; flex-direction: column; flex: 0 1 calc((100% - 40px) / 3); margin: 0; }
.tp-posts .post__foot { margin-top: auto; padding-top: 16px; }

/* Cards settle in as they reach the screen */
@keyframes tp-rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tp-card, .tp-story { animation: tp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

@media (max-width: 960px) {
  .tp-clients__grid { grid-template-columns: minmax(0, 1fr); }
  .tp-story { position: static; }
  .tp-posts .post { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .tp-posts .post { flex-basis: 100%; }
  .tp-stats dt { font-size: 13px; }
}
