/* ═══════════════════════════════════════════════
       SECTION: TESTIMONIALS — Wall of Voices / Hero Quote as Architecture
       One dominant oversized quote + editorial masonry of voices + infinite marquee
       Edge language: inset wells / recessed panels — sunken testimonial cards
       ═══════════════════════════════════════════════ */

    .testimonials {
      position: relative;
      padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
      background: var(--bg-dark);
      overflow: hidden;
    }

    /* Warm intimate atmosphere — triple ambient glow, distinct from all previous sections */
    .testimonials::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 55% 45% at 25% 28%, rgba(168,180,192,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 78% 50%, rgba(142,153,164,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 80% 35% at 50% 85%, rgba(168,180,192,0.04) 0%, transparent 55%);
      pointer-events: none;
    }

    /* Layered warm-tint wash */
    .testimonials::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg,
        rgba(168,180,192,0.015) 0%,
        rgba(168,180,192,0.03) 45%,
        rgba(168,180,192,0.01) 100%
      );
      pointer-events: none;
    }

    /* Giant watermark quotation mark */
    .testimonials__watermark {
      position: absolute;
      top: 6%;
      left: 50%;
      transform: translateX(-50%);
      font-family: var(--font-display);
      font-size: clamp(22rem, 42vw, 55rem);
      font-weight: 900;
      line-height: 0.75;
      color: var(--accent);
      opacity: 0.022;
      pointer-events: none;
      z-index: 0;
      user-select: none;
      animation: watermarkDrift 10s ease-in-out infinite;
    }

    /* Decorative vertical accent line — left margin */
    .testimonials__accent-line {
      position: absolute;
      left: calc(var(--container-padding) + 2rem);
      top: 18%;
      bottom: 18%;
      width: 1px;
      background: linear-gradient(180deg, transparent, var(--accent-dim) 25%, var(--accent-dim) 75%, transparent);
      opacity: 0.12;
      pointer-events: none;
      z-index: 1;
    }

    /* ─── Section Header ─── */
    .testimonials__header {
      text-align: center;
      margin-bottom: clamp(2.5rem, 5vw, 4rem);
      position: relative;
      z-index: 2;
      max-width: var(--container-max);
      margin-left: auto;
      margin-right: auto;
      padding: 0 var(--container-padding);
    }

    .testimonials__eyebrow {
      font-family: var(--font-body);
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.5rem;
      display: inline-flex;
      align-items: center;
      gap: 1rem;
    }

    .testimonials__eyebrow::before,
    .testimonials__eyebrow::after {
      content: '';
      display: block;
      width: 30px;
      height: 1px;
      background: var(--accent-dim);
    }

    .testimonials__title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4.5vw, 3.4rem);
      font-weight: 900;
      color: var(--fg-on-dark);
      line-height: 1.15;
    }

    .testimonials__title em {
      font-style: italic;
      font-weight: 400;
      color: var(--accent-light);
    }

    /* ─── Featured Hero Quote — DOMINANT CENTERPIECE ─── */
    .testimonials__hero-wrap {
      position: relative;
      z-index: 2;
      max-width: 1000px;
      margin: 0 auto clamp(3.5rem, 7vw, 5rem);
      padding: 0 var(--container-padding);
      text-align: center;
    }

    .testimonials__hero-quote {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4.8vw, 3.8rem);
      font-weight: 700;
      font-style: normal;
      line-height: 1.18;
      color: var(--fg-on-dark);
      margin: 0 auto 2.5rem;
      position: relative;
    }

    .testimonials__hero-quote em {
      font-style: italic;
      font-weight: 400;
      background: var(--accent-text-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .testimonials__hero-attr {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .testimonials__hero-stars {
      display: flex;
      gap: 0.15rem;
      color: var(--fg-on-dark);
      font-size: 0.8rem;
      letter-spacing: 0.05em;
    }

    .testimonials__hero-name {
      font-family: var(--font-body);
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--fg-light);
    }

    .testimonials__hero-detail {
      font-family: var(--font-accent);
      font-size: 0.85rem;
      font-weight: 300;
      font-style: italic;
      color: var(--fg-muted-on-dark);
    }

    /* Thin separator line after hero quote */
    .testimonials__hero-wrap::after {
      content: '';
      display: block;
      width: 60px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
      margin: 3.5rem auto 0;
    }

    /* ─── Supporting Voices Grid ─── */
    .testimonials__voices {
      position: relative;
      z-index: 2;
      max-width: var(--container-max);
      margin: 0 auto clamp(3.5rem, 7vw, 4.5rem);
      padding: 0 var(--container-padding);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: clamp(1rem, 1.5vw, 1.5rem);
    }

    /* Individual voice — sculpted floating card on dark surface */
    .testimonials__voice {
      position: relative;
      padding: clamp(1.5rem, 2.5vw, 2.2rem);
      background: var(--bg-dark-card);
      border: 1px solid var(--border-dark-medium);
      border-radius: var(--radius-lg);
      box-shadow:
        0 4px 12px rgba(0,0,0,0.2),
        0 12px 32px rgba(0,0,0,0.15);
      transition:
        background 0.5s var(--ease-out-expo),
        box-shadow 0.5s var(--ease-out-expo),
        transform 0.5s var(--ease-out-expo),
        border-color 0.5s var(--ease-out-expo);
    }

    .testimonials__voice:hover {
      background: var(--bg-dark-elevated);
      border-color: rgba(168,180,192,0.2);
      box-shadow:
        0 8px 24px rgba(0,0,0,0.25),
        0 24px 48px rgba(0,0,0,0.2);
      transform: translateY(-3px);
    }

    /* Gold left-border marker — uses warm gold on dark bg */
    .testimonials__voice::before {
      content: '';
      position: absolute;
      left: 0;
      top: 12%;
      bottom: 12%;
      width: 3px;
      background: linear-gradient(180deg, transparent, rgba(168,180,192,0.4) 30%, rgba(168,180,192,0.4) 70%, transparent);
      border-radius: var(--radius-pill);
      transition: opacity 0.5s ease;
    }

    .testimonials__voice:hover::before {
      opacity: 1;
      background: linear-gradient(180deg, transparent, var(--accent-warm) 25%, var(--accent-warm) 75%, transparent);
    }

    /* Asymmetric masonry placement */
    .testimonials__voice--1 { grid-column: 1 / 3; }
    .testimonials__voice--2 { grid-column: 3; }
    .testimonials__voice--3 { grid-column: 1; }
    .testimonials__voice--4 { grid-column: 2 / 4; }

    /* Opening quote mark inside card */
    .testimonials__voice-mark {
      font-family: var(--font-display);
      font-size: 2.8rem;
      font-weight: 900;
      color: var(--accent-light);
      opacity: 0.2;
      line-height: 1;
      margin-bottom: 0.6rem;
      user-select: none;
    }

    .testimonials__voice-quote {
      font-family: var(--font-accent);
      font-size: clamp(0.9rem, 1.1vw, 1.05rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.8;
      color: var(--fg-muted-on-dark);
      margin-bottom: 1.5rem;
    }

    .testimonials__voice-quote em {
      font-style: normal;
      font-weight: 400;
      color: var(--fg-on-dark);
    }

    /* Wider cards get slightly larger text */
    .testimonials__voice--1 .testimonials__voice-quote,
    .testimonials__voice--4 .testimonials__voice-quote {
      font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    }

    .testimonials__voice-meta {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .testimonials__voice-stars {
      color: var(--fg-on-dark);
      font-size: 0.65rem;
      letter-spacing: 0.06em;
    }

    .testimonials__voice-name {
      font-family: var(--font-body);
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--fg-light);
    }

    .testimonials__voice-detail {
      font-family: var(--font-accent);
      font-size: 0.78rem;
      font-weight: 300;
      color: var(--fg-dim);
    }

    /* ─── Infinite Marquee Ticker ─── */
    .testimonials__marquee {
      position: relative;
      z-index: 2;
      overflow: hidden;
      padding: clamp(1.2rem, 2.5vw, 2rem) 0;
      border-top: 1px solid var(--border-dark-medium);
      border-bottom: 1px solid var(--border-dark-medium);
      margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    }

    .testimonials__marquee-track {
      display: flex;
      gap: 0;
      white-space: nowrap;
      width: max-content;
      animation: marqueeScroll 50s linear infinite;
    }

    .testimonials__marquee-track span {
      font-family: var(--font-accent);
      font-size: clamp(0.9rem, 1.3vw, 1.1rem);
      font-weight: 300;
      font-style: italic;
      color: var(--fg-muted-on-dark);
      letter-spacing: 0.06em;
      padding: 0 2.5rem;
      position: relative;
    }

    .testimonials__marquee-track span::after {
      content: '·';
      position: absolute;
      right: 0;
      color: var(--accent-dim);
      font-style: normal;
      font-size: 1em;
    }

    @keyframes marqueeScroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* Marquee speed change handled by JS — smooth acceleration on hover */

    /* ─── Evidence Strip ─── */
    .testimonials__evidence {
      position: relative;
      z-index: 2;
      max-width: var(--container-max);
      margin: 0 auto;
      padding: 0 var(--container-padding);
      display: flex;
      justify-content: center;
      align-items: center;
      gap: clamp(1.5rem, 3vw, 3rem);
      flex-wrap: wrap;
    }

    .testimonials__evidence-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .testimonials__evidence-value {
      font-family: var(--font-display);
      font-size: clamp(1.1rem, 1.8vw, 1.5rem);
      font-weight: 700;
      color: var(--fg-on-dark);
      letter-spacing: 0.03em;
    }

    .testimonials__evidence-label {
      font-family: var(--font-body);
      font-size: 0.55rem;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--fg-muted-on-dark);
      text-align: center;
    }

    .testimonials__evidence-divider {
      width: 1px;
      height: 36px;
      background: linear-gradient(180deg, transparent, var(--border-dark-medium), transparent);
    }


    /* ═══════════════════════════════════════════════
       TESTIMONIALS — IMMERSIVE UPGRADE
       Typewriter · Directional reveals · Star cascade
       Marquee speed · Name fade-ups · Watermark float
       Evidence counters
       creativity 82 · layout_structure 85 · immersivity 92
       ═══════════════════════════════════════════════ */

    /* 6. Watermark float animation — subtle living drift */
    @keyframes watermarkDrift {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(-14px); }
    }

    /* 1. Typewriter cursor — blinking copper bar */
    .testimonials__hero-quote .tw-cursor {
      display: inline-block;
      width: 2.5px;
      height: 0.85em;
      background: var(--accent);
      margin-left: 3px;
      vertical-align: baseline;
      animation: twCursorBlink 0.55s step-end infinite;
    }

    .testimonials__hero-quote .tw-cursor.tw-finished {
      animation: twCursorFade 0.6s ease forwards;
    }

    @keyframes twCursorBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }

    @keyframes twCursorFade {
      to { opacity: 0; }
    }

    /* 1. Typewriter characters — invisible until revealed */
    .testimonials__hero-quote .tw-char { opacity: 0; }
    .testimonials__hero-quote .tw-char.tw-show { opacity: 1; }

    /* 3. Star rating cascade — each star hidden until activated */
    .testimonials__hero-stars .star-unit,
    .testimonials__voice-stars .star-unit {
      display: inline-block;
      opacity: 0;
      transform: scale(0.15) translateY(6px) rotate(-15deg);
      transition: opacity 0.3s var(--ease-out-expo),
                  transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .testimonials__hero-stars.star-active .star-unit,
    .testimonials__voice-stars.star-active .star-unit {
      opacity: 1;
      transform: scale(1) translateY(0) rotate(0deg);
    }

    /* 5. Hero client name & detail — fade up from below */
    .testimonials__hero-attr .testimonials__hero-name,
    .testimonials__hero-attr .testimonials__hero-detail {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.7s var(--ease-out-expo),
                  transform 0.7s var(--ease-out-expo);
    }

    .testimonials__hero-attr.attr-active .testimonials__hero-name {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.1s;
    }

    .testimonials__hero-attr.attr-active .testimonials__hero-detail {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.35s;
    }

    /* 5. Voice card client name & detail — fade up from below */
    .testimonials__voice .testimonials__voice-name,
    .testimonials__voice .testimonials__voice-detail {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.6s var(--ease-out-expo),
                  transform 0.6s var(--ease-out-expo);
    }

    .testimonials__voice.attr-active .testimonials__voice-name {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.25s;
    }

    .testimonials__voice.attr-active .testimonials__voice-detail {
      opacity: 1;
      transform: translateY(0);
      transition-delay: 0.5s;
    }

    /* 7. Evidence counter — hidden until animated */
    .testimonials__evidence-value[data-count-target] {
      opacity: 0;
      transition: opacity 0.4s var(--ease-out-expo);
    }

    .testimonials__evidence-value.count-active {
      opacity: 1;
    }

    /* ─── Reduced Motion ─── */
    @media (prefers-reduced-motion: reduce) {
      .testimonials__hero-quote .tw-char,
      .testimonials__hero-attr .testimonials__hero-name,
      .testimonials__hero-attr .testimonials__hero-detail,
      .testimonials__voice .testimonials__voice-name,
      .testimonials__voice .testimonials__voice-detail {
        opacity: 1 !important;
        transform: none !important;
      }
      .testimonials__hero-stars .star-unit,
      .testimonials__voice-stars .star-unit {
        opacity: 1 !important;
        transform: none !important;
      }
      .testimonials__evidence-value[data-count-target] {
        opacity: 1 !important;
      }
      .testimonials__watermark {
        animation: none !important;
      }
    }
    /* ─── TESTIMONIALS Responsive ─── */
    @media (max-width: 1024px) {
      .testimonials__voices {
        grid-template-columns: 1fr 1fr;
      }
      .testimonials__voice--1 { grid-column: 1 / -1; }
      .testimonials__voice--2 { grid-column: 1; }
      .testimonials__voice--3 { grid-column: 2; }
      .testimonials__voice--4 { grid-column: 1 / -1; }
      .testimonials__watermark { font-size: clamp(16rem, 55vw, 35rem); }
      .testimonials__accent-line { display: none; }
    }

    @media (max-width: 600px) {
      .testimonials {
        padding: clamp(3rem, 8vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
      }
      .testimonials__voices {
        grid-template-columns: 1fr;
      }
      .testimonials__voice--1,
      .testimonials__voice--2,
      .testimonials__voice--3,
      .testimonials__voice--4 {
        grid-column: auto;
      }
      .testimonials__hero-quote {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
      }
      .testimonials__hero-attr {
        flex-direction: column;
        gap: 0.5rem;
      }
      .testimonials__watermark {
        font-size: clamp(12rem, 60vw, 20rem);
        top: 4%;
      }
      .testimonials__evidence {
        gap: 1.2rem;
      }
      .testimonials__evidence-divider {
        display: none;
      }
    }
