/* ============================================================
   FLITZEN - Testimonials page (extends styles.css)
   Mayfair Editorial · monochrome
   ============================================================ */

/* current-page nav indicator */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Page hero ---------- */
.t-hero {
  padding-top: clamp(128px, 15vw, 200px);
  padding-bottom: clamp(40px, 5vw, 70px);
}
.t-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(36px, 5vw, 96px);
  align-items: end;
}
.t-hero h1.display {
  font-size: clamp(54px, 9vw, 152px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-top: clamp(18px, 2vw, 30px);
}
.t-hero .lead {
  max-width: 44ch;
  margin-top: clamp(24px, 2.4vw, 34px);
  color: var(--gray-1);
  font-size: clamp(17px, 1.25vw, 21px);
}

/* aggregate rating panel */
.rating-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--paper);
}
.rating-panel .rp-top {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.rating-panel .rp-score {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.82;
  letter-spacing: -0.02em;
}
.rating-panel .rp-score em { font-style: italic; }
.rating-panel .rp-out {
  font-size: 15px;
  color: var(--gray-2);
  padding-bottom: 8px;
}
.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--ink);
}
.stars svg { width: 19px; height: 19px; display: block; }
.stars.sm svg { width: 15px; height: 15px; }
/* fractional rating (data-rating): solid overlay clipped over faint base */
.stars.frac { position: relative; }
.stars.frac .stars-base,
.stars.frac .stars-fill {
  display: inline-flex;
  gap: 3px;
}
.stars.frac .stars-base { color: var(--gray-3); }
.stars.frac .stars-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  overflow: hidden;
  color: var(--ink);
}
.stars.frac .stars-fill svg { flex: none; }
.rating-panel .rp-reviews {
  font-size: 14.5px;
  color: var(--gray-1);
}
.rating-panel .rp-divider { height: 1px; background: var(--line); }
.rating-panel .rp-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rating-panel .rp-stat .n {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1;
}
.rating-panel .rp-stat .l {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
}

/* ---------- Featured spotlight (dark) ---------- */
.t-feature { background: var(--ink); color: var(--paper); }
.t-feature .container {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
.t-feature .eyebrow { color: rgba(255,255,255,0.58); }
.t-feature .eyebrow::before { background: var(--paper); }
.t-feature-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  max-width: 460px;
}
.t-feature-media .media {
  width: 100%; height: 100%;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1c1c1c, #262626);
}
.t-feature-media .media::before {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 13px);
}
.t-feature-media .media .ph-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  backdrop-filter: none;
}
.t-feature-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
}
.t-feature-body .stars { color: #fff; margin-bottom: clamp(22px, 2.4vw, 32px); }
.t-feature-quote {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: clamp(26px, 2.9vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.012em;
}
.t-feature-quote em { font-style: italic; }
.t-feature-cite {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 3vw, 42px);
  padding-top: clamp(24px, 2.4vw, 32px);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.t-feature-cite .avatar { width: 58px; height: 58px; }
.t-feature-cite .who .nm {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
}
.t-feature-cite .who .co {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}
.t-feature-cite .who .co a { border-bottom: 1px solid rgba(255,255,255,0.3); transition: border-color 0.3s; }
.t-feature-cite .who .co a:hover { border-color: #fff; }

/* ---------- Avatar (shared) ---------- */
.avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--paper-3);
  display: grid;
  place-items: center;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  color: transparent;
  font-size: 0;
}
.avatar img.failed { display: none; }
.avatar .initials {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.t-feature-cite .avatar { background: rgba(255,255,255,0.12); }
.t-feature-cite .avatar .initials { color: #fff; }

/* ---------- Grid section ---------- */
.t-wall .sec-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}

/* filter bar */
.t-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.t-filter {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.t-filter .cnt {
  font-size: 12px;
  color: var(--gray-2);
  transition: color 0.4s var(--ease);
}
.t-filter:hover { border-color: var(--ink); }
.t-filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-filter.active .cnt { color: rgba(255,255,255,0.6); }

/* masonry columns */
.t-grid {
  columns: 3;
  column-gap: clamp(18px, 1.8vw, 28px);
}
.t-card {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: clamp(18px, 1.8vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: clamp(28px, 2.3vw, 38px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.t-card > * { position: relative; z-index: 1; }
.t-card:hover {
  border-color: var(--line);
  background: var(--paper-2);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -36px rgba(14,14,14,0.4);
}
/* filtering transition */
.t-card.is-hidden { display: none; }

/* stars row - sits just under the person header */
.t-card-top {
  order: -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 1.6vw, 22px);
}
/* big faint quote watermark, decorative */
.t-card .mark {
  position: absolute;
  top: 6px;
  right: 22px;
  z-index: 0;
  font-family: var(--serif);
  font-size: 130px;
  line-height: 1;
  color: var(--paper-2);
  pointer-events: none;
  transition: color 0.45s var(--ease);
}
.t-card:hover .mark { color: var(--paper-3); }
.t-headline {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: clamp(20px, 1.5vw, 25px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.t-body {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--gray-1);
}
.t-body .clip {
  max-height: 9.8em;            /* ~6 lines */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}
.t-body .clip p + p { margin-top: 0.85em; }
.t-card.open .t-body .clip {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.t-more {
  align-self: flex-start;
  margin-top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  position: relative;
}
.t-more::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.t-more:hover::after { transform: scaleX(0); transform-origin: left; }
.t-more .pm {
  width: 14px; height: 14px;
  position: relative;
}
.t-more .pm::before,
.t-more .pm::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.t-more .pm::before { width: 11px; height: 1.5px; transform: translate(-50%,-50%); }
.t-more .pm::after { width: 1.5px; height: 11px; transform: translate(-50%,-50%); }
.t-card.open .t-more .pm::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }

/* person header - leads the card */
.t-author {
  order: -2;
  margin-bottom: clamp(20px, 2vw, 26px);
  display: flex;
  align-items: center;
  gap: 17px;
}
.t-author .avatar {
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 22px -12px rgba(14,14,14,0.4);
}
.t-author .avatar .initials { font-size: 24px; }
.t-author .who { min-width: 0; }
.t-author .nm {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.12;
  color: var(--ink);
}
.t-author .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-1);
  flex-wrap: wrap;
}
.t-author .co {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-weight: 600;
  transition: color 0.3s;
}
.t-author .co svg { width: 11px; height: 11px; opacity: 0.55; transition: opacity 0.3s, transform 0.3s; }
.t-author a.co:hover { color: var(--ink); }
.t-author a.co:hover svg { opacity: 1; transform: translate(1px, -1px); }
.t-author .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-3); flex: none; }
.t-author .loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gray-1);
}
.t-author .loc svg { width: 12px; height: 12px; opacity: 0.6; }

/* empty state (no filter match - shouldn't trigger but safe) */
.t-empty {
  display: none;
  text-align: center;
  padding: clamp(40px, 6vw, 90px) 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gray-2);
}
.t-empty.show { display: block; }

/* ---------- Mid CTA strip ---------- */
.t-strip {
  border-block: 1px solid var(--line);
}
.t-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: clamp(40px, 5vw, 76px);
}
.t-strip .lead { max-width: 30ch; margin: 0; }
.t-strip h2 {
  font-family: var(--serif);
  font-weight: var(--display-weight);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.t-strip h2 em { font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .t-hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .rating-panel { max-width: 520px; }
  .t-grid { columns: 2; }
  .t-feature .container { grid-template-columns: 1fr; gap: 32px; }
  .t-feature-media { max-width: 360px; order: -1; }
}
@media (max-width: 760px) {
  .t-grid { columns: 1; }
  .t-wall .sec-head { grid-template-columns: 1fr; }
  .rating-panel .rp-foot { grid-template-columns: 1fr 1fr; }
  .t-filters { gap: 8px; }
  .t-filter { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 480px) {
  .t-card-top .mark { font-size: 44px; }
}
