/* =============================================================
     TESTIMONIALS PAGE REDESIGN — Design Audit Pass (inline)
     ============================================================= */

/* ---- HERO: "The Docket" ----
     A case file opening. Architectural grid behind dark surface,
     strong left-edge vertical rule, evidence collage floating right.
     ------------------------------------------------------------ */
.tm-hero {
  background:
    linear-gradient(165deg, #141e28 0%, #1a2a34 50%, #162028 100%);
  padding: clamp(80px, 10vw, 160px) 0 clamp(56px, 7vw, 96px);
}

.tm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 237, 229, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 229, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 75% at 40% 45%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 40% 45%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.tm-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 80px);
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent 0%, var(--forest) 15%, var(--forest) 85%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.tm-hero__inner {
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}

.tm-hero h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.tm-hero__body {
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 50ch;
}

@media (max-width: 720px) {

  /* left-edge decorative rule overlapped the heading on phones (Shaun) */
  .tm-hero::after {
    display: none;
  }
}

.tm-hero__proof {
  grid-template-columns: auto auto;
  gap: clamp(24px, 3vw, 48px);
  justify-content: start;
  border-top: 2px solid rgba(91, 154, 79, 0.30);
  padding-top: 28px;
}

.tm-proof__value {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em;
}

.tm-collage-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 237, 229, 0.08);
  border-left: 2px solid rgba(91, 154, 79, 0.40);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.40);
}


/* ---- FEATURED: "The Exhibit" ----
     Primary evidence exhibit. Light background, white quote card
     with heavy left border. Deal metrics in a formal sidebar.
     ------------------------------------------------------------ */
.tm-featured {
  background: var(--cloud);
  padding: clamp(88px, 10vw, 140px) 0;
}

.tm-featured .section-header {
  text-align: left;
  max-width: 820px;
}

.tm-featured .section-header .eyebrow {
  color: var(--forest);
}

.tm-featured .section-header h2 {
  color: var(--charcoal-deep);
  font-size: clamp(30px, 3.8vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.06;
}

.tm-featured .section-header h2 em {
  color: var(--forest);
}

.tm-featured__card {
  background: var(--white);
  border: none;
  border-left: 5px solid var(--forest);
  border-radius: 0 2px 2px 0;
  box-shadow:
    10px 10px 0 -2px var(--cloud),
    10px 10px 0 0 rgba(91, 154, 79, 0.20),
    0 24px 64px rgba(29, 40, 48, 0.08);
  padding: clamp(36px, 4vw, 56px);
}

.tm-featured__main blockquote {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.tm-featured__quote {
  color: var(--charcoal-20);
  opacity: 0.5;
}

.tm-featured__meta {
  background: var(--charcoal-deep);
  border-radius: 2px;
  border-top: 3px solid var(--forest);
  padding: clamp(24px, 2.6vw, 32px);
}

.tm-featured__meta dl>div {
  border-bottom-color: rgba(232, 237, 229, 0.06);
}

.tm-featured__cta {
  border-top-color: rgba(232, 237, 229, 0.10);
}


/* ---- VIDEOS: "The Screening Room" ----
     Dark room. Video thumbnails presented as film frames with
     heavy borders. Play button is subtle, not a green blob.
     ------------------------------------------------------------ */
.tm-videos {
  background: var(--charcoal-deep);
  padding: clamp(88px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--forest);
}

.tm-videos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(74, 124, 63, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 70%, rgba(0, 76, 151, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.tm-videos .section-header {
  position: relative;
  z-index: 1;
}

.tm-videos .section-header .eyebrow {
  color: var(--forest-light);
}

.tm-videos .section-header h2 {
  color: var(--white);
}

.tm-videos .section-header p {
  color: rgba(232, 237, 229, 0.60);
}

.tm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 4vw, 52px);
}

.tm-video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}

.tm-video-card:hover {
  transform: translateY(-4px);
}

.tm-video-thumb {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid rgba(232, 237, 229, 0.10);
  aspect-ratio: 16/9;
  background: #0a0f14;
}

.tm-video-card:hover .tm-video-thumb {
  border-color: rgba(91, 154, 79, 0.40);
}

.tm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.tm-video-card:hover .tm-video-thumb img {
  opacity: 1;
}

.tm-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.tm-video-play svg {
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(232, 237, 229, 0.30);
  border-radius: 50%;
  padding: 12px;
  transition: background 0.25s, border-color 0.25s;
}

.tm-video-card:hover .tm-video-play svg {
  background: rgba(74, 124, 63, 0.70);
  border-color: var(--forest-light);
}

.tm-video-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--white);
  margin-top: 16px;
  letter-spacing: -0.005em;
}

.tm-video-meta {
  font-size: 12px;
  color: rgba(232, 237, 229, 0.50);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .tm-video-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- WALL: "The Evidence Room" ----
     Sage background. Cards get a charcoal top border and sharp corners.
     Masonry columns with a newspaper-column feel.
     ------------------------------------------------------------ */
.tm-wall {
  background: linear-gradient(180deg, var(--sage) 0%, #dfe6da 100%);
  padding: clamp(88px, 10vw, 140px) 0;
  position: relative;
}

.tm-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(74, 124, 63, 0.04) 79px, rgba(74, 124, 63, 0.04) 80px);
  pointer-events: none;
}

.tm-grid {
  position: relative;
  z-index: 1;
}

.tm-card {
  background: var(--white);
  border: 1px solid var(--charcoal-12);
  border-top: 3px solid var(--charcoal-deep);
  border-radius: 2px;
  padding: clamp(20px, 2.2vw, 28px);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.tm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(29, 40, 48, 0.10);
  border-color: var(--charcoal-12);
  border-top-color: var(--forest);
}

.tm-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
}

.tm-card blockquote strong {
  color: var(--charcoal-deep);
  font-weight: 600;
  font-style: normal;
}

.tm-card__head {
  margin-bottom: 14px;
}

.tm-card__badge {
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
}

.tm-card__meta {
  border-top: 1px solid var(--charcoal-12);
  padding-top: 14px;
}

.tm-card__tag {
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.10em;
}


/* ---- LOGOS: "The Roll Call" ----
     White background. Names displayed as a formal list — not cute tiles
     but typeset entries in a grid, like the appendix of a legal brief.
     ------------------------------------------------------------ */
.tm-logos {
  background: var(--white);
  padding: clamp(88px, 10vw, 140px) 0;
  position: relative;
}

.tm-logos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--charcoal-12) 30%, var(--charcoal-12) 70%, transparent 95%);
}

.tm-logos .section-header h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.015em;
}

.tm-logos__grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--charcoal-deep);
  border-top: 3px solid var(--charcoal-deep);
  border-radius: 2px;
  overflow: hidden;
}

.tm-logo-tile {
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--charcoal-12);
  border-right: 1px solid var(--charcoal-12);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--charcoal);
  padding: 20px 16px;
  letter-spacing: -0.005em;
  transition: background 0.2s, color 0.2s;
}

.tm-logo-tile:nth-child(5n) {
  border-right: none;
}

.tm-logo-tile:nth-last-child(-n+5) {
  border-bottom: none;
}

.tm-logo-tile:hover {
  background: var(--charcoal-deep);
  color: var(--white);
  transform: none;
  border-color: var(--charcoal-deep);
}

@media (max-width: 1024px) {
  .tm-logos__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tm-logo-tile:nth-child(5n) {
    border-right: 1px solid var(--charcoal-12);
  }

  .tm-logo-tile:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 640px) {
  .tm-logos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-logo-tile:nth-child(3n) {
    border-right: 1px solid var(--charcoal-12);
  }

  .tm-logo-tile:nth-child(2n) {
    border-right: none;
  }
}


/* ---- PRESS: "The Seal" ----
     Sage background instead of dark. Press names are engraved
     in charcoal — different room from the dark videos/featured.
     ------------------------------------------------------------ */
.tm-press {
  padding: clamp(52px, 6vw, 72px) 0;
  background: var(--sage);
  color: var(--charcoal-deep);
  position: relative;
}

.tm-press::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(74, 124, 63, 0.15) 30%, rgba(74, 124, 63, 0.15) 70%, transparent 95%);
}

.tm-press__eyebrow {
  color: var(--forest);
  font-size: 10px;
  letter-spacing: 0.28em;
  margin-bottom: 24px;
}

.tm-press__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--charcoal);
  letter-spacing: 0;
  font-style: italic;
}

.tm-press__dot {
  background: rgba(74, 124, 63, 0.30);
}

.tm-press__row {
  gap: clamp(18px, 2vw, 28px);
}


/* ---- CLOSING: "The Invitation" ----
     Already well-designed, add testimonial-specific touches.
     ------------------------------------------------------------ */
.closing {
  border-top: none;
}