/* =========================================================================
   Homepage testimonials — dark navy "Proof" band, masonry "wall of love".
   Rebuilt from the old horizontal carousel into a multi-column grid the
   visitor scrolls down through, so the section reads as abundant social proof
   (lots of happy founders) instead of a single peek-through row.
   Self-darkening section (background: var(--color-primary)); drops onto the
   otherwise all-light homepage as one dark band.
   Tokens come from tokens.css (already loaded). Reveal: home.js
   (testimonialsReveal — IntersectionObserver, is-armed / is-in convention).
   This stylesheet is loaded by index.html ONLY.
   ========================================================================= */
.wwd-testi {
  position: relative;
  isolation: isolate;
  background: var(--color-primary);
  padding: 0 0 clamp(84px, 10vw, 124px);
  color: #fff;
}
/* Faint top-down navy depth + a barely-there gold wash at the top so the band
   feels lit rather than flat. Sits behind the content (z-index 0 via isolate). */
.wwd-testi::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(232, 180, 0, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1c44 0%, var(--color-primary) 46%, #081636 100%);
  pointer-events: none;
}
.wwd-testi__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 92px) var(--container-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* ----------------------------------------------------------------- header */
.wwd-testi__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.wwd-testi__heading { max-width: 680px; }
.wwd-testi__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.wwd-testi__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.wwd-testi__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

/* Aggregate rating chip — replaces the old prev/next arrows. A calm, glassy
   pill of social proof: five gold stars + the score + a quiet label. */
.wwd-testi__rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 0, 0.28);
  background:
    linear-gradient(180deg, rgba(232, 180, 0, 0.10), rgba(232, 180, 0, 0.03));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.wwd-testi__rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-accent);
}
.wwd-testi__rating-stars svg { width: 18px; height: 18px; }
.wwd-testi__rating-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: #fff;
}
.wwd-testi__rating-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 14px;
}

/* ------------------------------------------- founder social-proof strip */
/* Overlapping stack of real founder faces + a one-line trust statement. Sits
   between the header and the wall, so the eye meets people before reading. */
.wwd-testi__proof {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  width: fit-content;
  max-width: 100%;
}
.wwd-testi__avatars {
  display: inline-flex;
  flex: none;
  padding-left: 12px;
}
.wwd-testi__avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-left: -12px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.6);
}
.wwd-testi__proof-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}
.wwd-testi__proof-text strong {
  color: #fff;
  font-weight: 700;
}

/* ------------------------------------------------- 3x3 grid "wall of love" */
/* Symmetrical CSS grid: three equal columns, nine equal-size cells. Cards in a
   row stretch to the tallest cell and the author block (margin-top:auto) stays
   flush to the bottom, so varied quote lengths still line up. The gap owns all
   spacing — no per-card margins. Collapses to 2 cols, then 1, on narrow viewports. */
.wwd-testi__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --------------------------------------------------------------- the cards */
.wwd-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: linear-gradient(160deg, #122348 0%, #0d1d40 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(26px, 2.6vw, 34px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition:
    transform 280ms var(--ease-out-soft),
    border-color 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft),
    background 280ms var(--ease-out-soft),
    opacity 560ms var(--ease-out-soft);
}
.wwd-quote:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 180, 0, 0.45);
  background: linear-gradient(160deg, #16294f 0%, #0f2147 100%);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.75);
}
/* Thin gold top-accent that wakes up on hover — no layout shift. */
.wwd-quote::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-hi), var(--color-accent));
  opacity: 0;
  transition: opacity 280ms var(--ease-out-soft);
}
.wwd-quote:hover::after { opacity: 1; }
/* Oversized ghost quotation mark — quiet editorial flourish. */
.wwd-quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 108px;
  line-height: 1;
  color: rgba(232, 180, 0, 0.10);
  transition: color 280ms var(--ease-out-soft);
  pointer-events: none;
}
.wwd-quote:hover::before { color: rgba(232, 180, 0, 0.18); }
.wwd-quote > * { position: relative; z-index: 1; }

.wwd-quote__stars {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 16px;
  color: var(--color-accent);
}
.wwd-quote__stars svg { width: 17px; height: 17px; }
.wwd-quote__text {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: pretty;
}
/* Attribution row — real founder photo + signature line, set off by an editorial
   hairline. The avatar carries a slim gold ring (navy gap + gold halo) so it reads
   as premium and on-brand against the navy card rather than a flat sticker. */
.wwd-quote__person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.wwd-quote__avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #0d1d40;
  box-shadow:
    0 0 0 2px var(--color-primary),
    0 0 0 3.5px rgba(232, 180, 0, 0.85),
    0 6px 16px -6px rgba(232, 180, 0, 0.45);
  transition:
    transform 280ms var(--ease-out-soft),
    box-shadow 280ms var(--ease-out-soft);
}
.wwd-quote:hover .wwd-quote__avatar {
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px var(--color-primary),
    0 0 0 3.5px var(--color-accent-hi),
    0 8px 20px -6px rgba(232, 180, 0, 0.6);
}
.wwd-quote__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: #fff;
}
/* Verified-author cue — small gold check, decorative (label stays in text). */
.wwd-quote__verified {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--color-accent);
}
.wwd-quote__role {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

/* Featured lead card — anchors the eye top-left of the wall. */
.wwd-quote--feature {
  border-color: rgba(232, 180, 0, 0.34);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(232, 180, 0, 0.10), transparent 55%),
    linear-gradient(160deg, #15264e 0%, #0e1f44 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 180, 0, 0.06),
    0 18px 42px -28px rgba(232, 180, 0, 0.45);
}
.wwd-quote--feature .wwd-quote__text {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}
.wwd-quote--feature .wwd-quote__stars svg { width: 19px; height: 19px; }
.wwd-quote--feature::after { opacity: 0.55; }
.wwd-quote--feature:hover::after { opacity: 1; }
.wwd-quote--feature .wwd-quote__person { border-top-color: rgba(232, 180, 0, 0.22); }
.wwd-quote--feature .wwd-quote__avatar { width: 54px; height: 54px; }

/* ----------------------------------------------------- reveal (home.js arms) */
.wwd-testi__grid.is-armed .wwd-quote { opacity: 0; transform: translateY(18px); }
.wwd-testi__grid.is-armed .wwd-quote.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .wwd-testi__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wwd-testi__inner { padding-left: 18px; padding-right: 18px; }
  .wwd-testi__head { flex-direction: column; align-items: flex-start; }
  .wwd-testi__grid { grid-template-columns: 1fr; gap: 18px; }
  .wwd-testi__rating { padding: 10px 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-quote,
  .wwd-quote::after,
  .wwd-quote::before,
  .wwd-quote__avatar { transition: none; }
  .wwd-quote:hover { transform: none; }
  .wwd-quote:hover .wwd-quote__avatar { transform: none; }
  .wwd-testi__grid.is-armed .wwd-quote { opacity: 1; transform: none; }
}
