/* ====================================================================
   Creativelines — Testimonials (frontend) — Phase 8
   Three band variants: cards, spotlight, marquee
   ==================================================================== */

.tt-band {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.tt-band--cards     { background: color-mix(in srgb, var(--cl-yellow) 5%, var(--cl-bg)); }
.tt-band--spotlight { background: var(--cl-black); color: white; }
.tt-band--marquee   {
    background: var(--cl-bg);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    overflow: hidden;
}

.cl-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--cl-yellow);
    margin-bottom: 1rem;
}
.cl-stars svg { width: 18px; height: 18px; }


/* ============================================================
   STARS
   ============================================================ */

.tt-band__quote-mark {
    font-family: var(--font-display);
    color: var(--cl-yellow);
    font-weight: 700;
    line-height: 0;
    margin-right: 0.2em;
    font-size: 1.3em;
    vertical-align: -0.15em;
}


/* ============================================================
   VARIANT 1: CARDS
   ============================================================ */

.tt-band__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tt-band__card {
    background: var(--cl-surface, white);
    border: 1px solid var(--cl-border, rgba(0,0,0,0.06));
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s var(--ease-out);
}
.tt-band__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--cl-yellow) 30%, transparent);
    border-color: color-mix(in srgb, var(--cl-yellow) 40%, transparent);
}

.tt-band__card .cl-stars { margin-bottom: 1rem; }

.tt-band__quote {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--cl-fg);
    margin: 0 0 1.5rem;
    font-style: italic;
    flex: 1;
}

.tt-band__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--cl-border, rgba(0,0,0,0.08));
}

.tt-band__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cl-yellow) 0%, var(--cl-red) 100%);
    overflow: hidden;
    flex-shrink: 0;
}
.tt-band__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tt-band__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
}

.tt-band__author-text { min-width: 0; flex: 1; }
.tt-band__name {
    font-weight: 600;
    color: var(--cl-fg);
    font-size: var(--fs-md);
    line-height: 1.2;
    font-family: var(--font-display);
}
.tt-band__sub {
    font-size: var(--fs-sm);
    color: var(--cl-fg-muted);
    line-height: 1.3;
    margin-top: 2px;
}

.tt-band__project {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: var(--fs-sm);
    color: var(--cl-red);
    text-decoration: none;
    font-weight: 500;
}
.tt-band__project:hover { text-decoration: underline; }


/* ============================================================
   VARIANT 2: SPOTLIGHT
   ============================================================ */

.tt-band__spotlight {
    position: relative;
    min-height: 380px;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.tt-band__spot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out);
}
.tt-band__spot.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
.tt-band__spot .cl-stars {
    color: var(--cl-yellow);
    margin-bottom: 1.5rem;
}

.tt-band__spot-quote {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 2.5rem;
    color: white;
    font-style: italic;
    max-width: 32em;
    text-wrap: balance;
}
.tt-band__spot-quote .tt-band__quote-mark { color: var(--cl-yellow); }

.tt-band__spot-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.tt-band__spot-author .tt-band__avatar { width: 64px; height: 64px; }
.tt-band__spot-author .tt-band__avatar--initials { font-size: 1.5rem; }
.tt-band__spot-author .tt-band__name { color: white; font-size: var(--fs-lg); }
.tt-band__spot-author .tt-band__sub { color: rgba(255,255,255,0.7); }
.tt-band__spot .tt-band__author-text { text-align: left; }

.tt-band__spot .tt-band__project { color: var(--cl-yellow); }

.tt-band__spot-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.tt-band__spot-arrow {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--t-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tt-band__spot-arrow:hover {
    background: var(--cl-yellow);
    color: var(--cl-black);
    border-color: var(--cl-yellow);
}

.tt-band__spot-dots {
    display: inline-flex;
    gap: 8px;
}
.tt-band__spot-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: all var(--t-base);
}
.tt-band__spot-dot:hover { background: rgba(255,255,255,0.5); }
.tt-band__spot-dot.is-active {
    background: var(--cl-yellow);
    width: 28px;
    border-radius: 999px;
}


/* ============================================================
   VARIANT 3: MARQUEE
   ============================================================ */

.tt-band__marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.tt-band__marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: tt-marquee 50s linear infinite;
}
.tt-band__marquee:hover .tt-band__marquee-track {
    animation-play-state: paused;
}

@keyframes tt-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .tt-band__marquee-track { animation: none; }
}

.tt-band__chip {
    flex-shrink: 0;
    width: 380px;
    background: var(--cl-surface, white);
    border: 1px solid var(--cl-border, rgba(0,0,0,0.06));
    border-radius: var(--r-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.tt-band__chip .cl-stars { margin-bottom: 0.85rem; }
.tt-band__chip-quote {
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--cl-fg);
    margin: 0 0 1.25rem;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-band__chip .tt-band__author {
    border-top: 0;
    padding-top: 0;
}


/* ============================================================
   CTA below band
   ============================================================ */

.tt-band__cta {
    margin-top: 2.5rem;
    text-align: center;
}


/* ============================================================
   LISTING PAGE — variant switcher
   ============================================================ */

.tt-page-switcher {
    background: var(--cl-bg);
    border-bottom: 1px solid var(--cl-border, rgba(0,0,0,0.08));
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background-color: color-mix(in srgb, var(--cl-bg) 90%, transparent);
}
.tt-page-switcher__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tt-page-switcher__label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cl-fg-subtle);
    font-weight: 600;
    margin-right: 0.5rem;
}
