/**
 * Spiritual / contemplative UI — testimonial cards + shared tokens
 */

.spiritual-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--site-text-muted);
    margin-bottom: 0.5rem;
}

.spiritual-heading {
    font-family: var(--site-font-display);
    font-weight: 500;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
    text-align: center;
    color: var(--site-text);
}

.spiritual-sub {
    font-size: 0.92rem;
    color: var(--site-text-muted);
    text-align: center;
    max-width: 48ch;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
}

.spiritual-sub.text-start,
.spiritual-sub--stack {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.spiritual-sub--stack p {
    margin-bottom: 0.55rem;
}

.spiritual-heading--compact {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    text-align: left;
    letter-spacing: 0.045em;
}

.testimonial-shell {
    width: 100%;
    padding: 2.5rem 1rem 3rem;
    margin-top: auto;
    border-top: 1px solid rgba(198, 170, 255, 0.18);
    background:
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(88, 45, 160, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(6, 7, 16, 0.5), rgba(10, 8, 22, 0.85));
}

.testimonial-shell__inner {
    max-width: min(720px, 100%);
    margin: 0 auto;
}

.testimonial-shell__viewport {
    overflow: visible;
}

/* Manual carousel chrome — arrows + dots */
.testimonial-shell__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.testimonial-shell__arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(198, 170, 255, 0.38);
    background: linear-gradient(165deg, rgba(52, 40, 92, 0.92), rgba(22, 18, 44, 0.96));
    color: rgba(236, 232, 255, 0.95);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.15s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.testimonial-shell__arrow:hover {
    transform: scale(1.06);
    border-color: rgba(212, 184, 255, 0.55);
    color: #fff;
}

.testimonial-shell__arrow:active {
    transform: scale(0.96);
}

.testimonial-shell__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.testimonial-shell__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(198, 170, 255, 0.35);
    background: rgba(24, 20, 48, 0.85);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.testimonial-shell__dot:hover {
    transform: scale(1.15);
    border-color: rgba(212, 184, 255, 0.55);
}

.testimonial-shell__dot.is-active {
    background: linear-gradient(135deg, #9b5cff, #c4a8ff);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 14px rgba(157, 78, 221, 0.55);
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-shell__arrow:hover,
    .testimonial-shell__dot:hover,
    .testimonial-shell__dot.is-active {
        transform: none;
    }
}

.testimonial-shell__slides {
    position: relative;
    min-height: 14.5rem;
}

@media (min-width: 640px) {
    .testimonial-shell__slides {
        min-height: 13rem;
    }
}

/* Slides stack; only active is measurable + visible */
.testimonial-shell__slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.85s linear,
        transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    pointer-events: none;
}

.testimonial-shell__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

/* Card panel */
.testimonial-card {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    padding: 1.35rem 1.35rem 1.45rem;
    border-radius: 28px;
    text-align: left;
    border: 1px solid rgba(198, 170, 255, 0.28);
    background: linear-gradient(
        145deg,
        rgba(18, 14, 40, 0.92) 0%,
        rgba(10, 11, 28, 0.88) 45%,
        rgba(22, 12, 38, 0.9) 100%
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    isolation: isolate;
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.15rem 1.1rem 1.3rem;
    }
}

/* Soft halo behind active card — works everywhere; no fragile mask composites */
.testimonial-shell__slide.is-active .testimonial-card::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 22px;
    z-index: -1;
    background:
        radial-gradient(ellipse 100% 90% at 50% -10%, rgba(180, 140, 255, 0.45), transparent 58%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(90, 200, 210, 0.12), transparent 50%);
    opacity: 0.65;
    filter: blur(10px);
    pointer-events: none;
    animation: testimonialAuraPulse 8s ease-in-out infinite;
}

.testimonial-shell__slide.is-active .testimonial-card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 55%;
    height: 180%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 248, 255, 0.06) 45%,
        transparent 65%
    );
    transform: skewX(-18deg);
    animation: testimonialSheen 11s ease-in-out infinite;
    pointer-events: none;
}

.testimonial-card__mark {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(230, 210, 255, 0.7);
}

.testimonial-card__mark::before {
    content: "✦";
    font-size: 0.72rem;
    opacity: 0.85;
    animation: testimonialSpark 3.8s ease-in-out infinite;
}

.testimonial-shell__slide.is-active .testimonial-card__mark::before {
    animation: testimonialSpark 3.8s ease-in-out infinite;
}

@keyframes testimonialSpark {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
        filter: drop-shadow(0 0 6px rgba(183, 150, 255, 0.35));
    }
    45% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(183, 150, 255, 0.55));
    }
}

@keyframes testimonialAuraPulse {
    0%,
    100% {
        opacity: 0.52;
        transform: scale(0.96);
    }
    40% {
        opacity: 0.88;
        transform: scale(1.03);
    }
    65% {
        opacity: 0.65;
        transform: scale(0.99);
    }
}

@keyframes testimonialSheen {
    0%,
    30% {
        transform: skewX(-18deg) translateX(-120%);
        opacity: 0;
    }
    45% {
        opacity: 0.35;
    }
    60% {
        transform: skewX(-18deg) translateX(220%);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Enter-pop when slide becomes active */
.testimonial-shell__slide.is-active .testimonial-card {
    animation: testimonialCardPop 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes testimonialCardPop {
    0% {
        opacity: 0.35;
        transform: scale(0.97) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.testimonial-shell__quote {
    font-family: var(--site-font-display);
    font-style: italic;
    font-size: clamp(0.93rem, 1.85vw, 1.08rem);
    line-height: 1.62;
    color: rgba(252, 250, 255, 0.94);
    margin: 0;
}

.testimonial-shell__attrib {
    font-size: 0.82rem;
    color: rgba(226, 220, 240, 0.72);
    letter-spacing: 0.045em;
    font-style: normal;
}

.testimonial-footnote-card {
    margin-top: 1.5rem;
    padding: 0.95rem 1.1rem;
    border-radius: 22px;
    background: rgba(8, 9, 20, 0.45);
    border: 1px solid rgba(198, 170, 255, 0.12);
}

.testimonial-shell__note {
    font-size: 0.73rem;
    color: var(--site-text-muted);
    opacity: 0.92;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.testimonial-shell__note + .testimonial-shell__note {
    margin-top: 0.55rem;
}

.testimonial-shell__footnote-title {
    text-align: center;
    margin: 0 0 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-shell__slide {
        transition-duration: 0.01ms;
        transform: none !important;
    }

    .testimonial-shell__slide.is-active .testimonial-card::before,
    .testimonial-shell__slide.is-active .testimonial-card::after {
        animation: none !important;
        opacity: 0.55;
        transform: none;
        filter: none;
    }

    .testimonial-shell__slide.is-active .testimonial-card {
        animation: none !important;
    }

    .testimonial-card__mark::before {
        animation: none !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .testimonial-shell__slide.is-active .testimonial-card {
        animation: mmk-testimonial-card-breathe 5.5s ease-in-out infinite;
    }
}

@keyframes mmk-testimonial-card-breathe {
    0%,
    100% {
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        border-color: rgba(198, 170, 255, 0.28);
    }
    50% {
        box-shadow:
            0 22px 54px rgba(88, 45, 160, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.09);
        border-color: rgba(212, 184, 255, 0.42);
    }
}
