/* Testimonials page */

/* Row of oval client photos */
.champion-gallery-section {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.champion-gallery {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
}

.champion-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Masonry-style testimonial columns (cards vary a lot in length) */
.testimonial-grid {
    column-count: 2;
    column-gap: 2rem;
}

.testimonial-grid .testimonial-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
}

.testimonial-quote p { margin-bottom: 0.9rem; }

.testimonial-quote p:last-child { margin-bottom: 0; }

.testimonial-author { margin: 0; }

.testimonial-author::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    margin-right: 0.6rem;
    vertical-align: middle;
    background: var(--red);
}

@media (max-width: 900px) {
    .testimonial-grid { column-count: 1; }
}

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

/* ---- Anthem: song card + music video side by side ---- */
.anthem-grid {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2rem;
    align-items: stretch;
}

.anthem-grid .promise-inner {
    max-width: none;
    margin: 0;
}

.anthem-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anthem-video { padding: 1rem; }

/* Click-to-load YouTube: nothing from YouTube loads until the visitor presses play */
.video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    background: var(--black);
    cursor: pointer;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.75);
}

.video-facade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 9, 0.85) 100%);
}

.video-facade:hover img,
.video-facade:focus-visible img {
    transform: scale(1.04);
    filter: brightness(0.9);
}

.video-facade:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: playPulse 2.4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.video-play svg { width: 34px; height: 34px; margin-left: 5px; }

.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(208, 2, 27, 0.55), var(--glow-gold); }
    50% { box-shadow: 0 0 0 18px rgba(208, 2, 27, 0), var(--glow-gold); }
}

.video-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    z-index: 2;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 4px;
    display: block;
}

@media (max-width: 900px) {
    .anthem-grid { grid-template-columns: 1fr; }
    .anthem-video { padding: 0.6rem; }
}

@media (max-width: 480px) {
    .video-play { width: 64px; height: 64px; }
    .video-play svg { width: 26px; height: 26px; }
    .video-caption { font-size: 0.72rem; letter-spacing: 0.14em; }
}

/* ---- Anthem scroller (text from content/anthem.txt) ---- */
.anthem-video {
    display: flex;
    align-items: center;
}

.anthem-scroller {
    position: relative;
    height: 260px;
    margin-top: 1.75rem;
    overflow: hidden;
    border-top: 1px solid rgba(235, 207, 114, 0.2);
    border-bottom: 1px solid rgba(235, 207, 114, 0.2);
    /* Fade lines in at the bottom and out at the top */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    outline: none;
}

.anthem-track {
    /* ~2.2s per line keeps it readable; two identical passes make the loop seamless */
    animation: anthemScroll calc(var(--line-count, 40) * 2.2s) linear infinite;
}

.anthem-scroller:hover .anthem-track,
.anthem-scroller:focus .anthem-track {
    animation-play-state: paused;
}

.anthem-scroller:focus-visible { box-shadow: 0 0 0 2px var(--gold); }

.anthem-pass { padding: 130px 0; }

.anthem-stanza {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.75;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 1.6rem;
}

/* Every other stanza in gold, for rhythm */
.anthem-stanza:nth-child(even) { color: var(--gold-light); }

@keyframes anthemScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .anthem-scroller { overflow-y: auto; }
    .anthem-track { animation: none; }
    .anthem-pass[aria-hidden] { display: none; }
}

@media (max-width: 480px) {
    .anthem-scroller { height: 220px; }
    .anthem-stanza { font-size: 0.95rem; }
}
