/* ==================================================================
   results.css — styles for #results (case studies) AND .testimonials.
   Owned by the results/testimonials section agent. Consumes tokens
   and shared classes (.card, .glow-card, .pill, .avatar, .eyebrow,
   .h2, .lead, .grad-text, .mono, .muted) from base.css — no redefines.
   ================================================================== */

/* ------------------------------------------------------------------
   1. Results — bento case-study grid
   ------------------------------------------------------------------ */
.results {
  position: relative;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.res-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 36px;
}

.res-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 56px;
}

/* Decorative background flourishes — sit behind content, above glow */
.res-orb {
  position: absolute;
  top: -110px;
  right: -70px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(100px);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}

.res-chart {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  height: auto;
  opacity: .12;
  pointer-events: none;
  z-index: 1;
}

.res-metric-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.res-card--wide .res-metric-wrap {
  flex: 0 0 auto;
  min-width: 300px;
}

.res-metric {
  font: 700 clamp(56px, 8vw, 96px) / .95 var(--font-display);
  letter-spacing: -0.02em;
}

.res-unit {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.res-text-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.res-context {
  font: 600 16px/1.4 var(--font-body);
  color: var(--text);
}

.res-desc {
  font-size: 15px;
  line-height: 1.6;
}

.res-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.res-tag {
  font-size: 11px;
  padding: 6px 12px;
}

.res-tags .pill:nth-child(2) {
  animation-delay: -2s;
}

.res-tags .pill:nth-child(3) {
  animation-delay: -4s;
}

.res-deck-cta {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--muted);
}

.res-deck-cta a {
  color: var(--green);
  text-decoration: none;
}

.res-deck-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .res-grid {
    grid-template-columns: 1fr;
  }

  .res-card,
  .res-card--wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 32px 26px;
  }

  .res-card--wide .res-metric-wrap {
    min-width: 0;
  }

  .res-chart {
    width: 75%;
  }
}

@media (max-width: 600px) {
  .res-metric {
    font-size: clamp(44px, 15vw, 72px);
  }

  .res-card,
  .res-card--wide {
    padding: 28px 22px;
  }

  .res-orb {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -60px;
  }
}

/* ------------------------------------------------------------------
   2. Testimonials
   ------------------------------------------------------------------ */
.testimonials {
  position: relative;
}

.tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tst-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.tst-quote {
  display: block;
  font: 700 64px/1 var(--font-display);
  color: rgba(52, 245, 162, .35);
  margin-bottom: 6px;
}

.tst-text {
  margin: 0 0 24px;
}

.tst-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.tst-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tst-name {
  font: 600 15px var(--font-body);
  color: var(--text);
}

.tst-role {
  font-size: 13px;
}

@media (min-width: 901px) {
  .tst-card:nth-child(2) {
    transform: translateY(16px);
  }

  .tst-card:nth-child(2):hover {
    transform: translateY(12px);
  }
}

@media (max-width: 900px) {
  .tst-grid {
    grid-template-columns: 1fr;
  }
}
