.home-testimonials[hidden] {
    display: none !important;
}

.home-testimonials {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 22%, rgb(82 69 190 / .32), transparent 26rem),
        radial-gradient(circle at 88% 75%, rgb(164 119 53 / .18), transparent 24rem),
        linear-gradient(135deg, #091225 0%, #151a37 58%, #20234d 100%);
    color: #fff;
}

.home-testimonials::before,
.home-testimonials::after {
    position: absolute;
    border: 1px solid rgb(221 190 126 / .22);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-testimonials::before {
    top: -18rem;
    right: -8rem;
    width: 34rem;
    height: 34rem;
}

.home-testimonials::after {
    bottom: -15rem;
    left: -10rem;
    width: 29rem;
    height: 29rem;
}

.home-testimonials__inner {
    position: relative;
    z-index: 1;
}

.home-testimonials__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 6rem);
    margin-bottom: clamp(2rem, 5vw, 3.75rem);
}

.home-testimonials__heading h2 {
    max-width: 12ch;
    margin-bottom: 0;
    color: #fff;
}

.home-testimonials__heading > p {
    max-width: 34rem;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 1px solid rgb(221 190 126 / .55);
    color: #cbd2e4;
    line-height: 1.75;
}

.home-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-testimonial {
    position: relative;
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgb(255 255 255 / .15);
    border-top-color: rgb(221 190 126 / .78);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgb(255 255 255 / .11), rgb(255 255 255 / .055));
    box-shadow: 0 1.3rem 3rem rgb(0 0 0 / .2);
    backdrop-filter: blur(10px);
}

.home-testimonial::before {
    color: #d8b46a;
    content: "“";
    font: 700 5rem/1 Georgia, serif;
    opacity: .8;
}

.home-testimonial blockquote {
    margin: -.8rem 0 2rem;
    color: #f5f3ed;
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.home-testimonial__person {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid rgb(255 255 255 / .13);
}

.home-testimonial__avatar {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    flex: 0 0 3.2rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgb(221 190 126 / .75);
    border-radius: 50%;
    background: #19233f;
    color: #f2d89c;
    font: 700 1.1rem/1 Cinzel, Georgia, serif;
}

.home-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial__person strong,
.home-testimonial__person span {
    display: block;
}

.home-testimonial__person strong {
    color: #fff;
}

.home-testimonial__person span {
    margin-top: .2rem;
    color: #d8b46a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-testimonials__consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin: 2rem 0 0;
    color: #aeb8d1;
    font-size: .78rem;
    text-align: center;
}

.home-testimonials__consent span {
    color: #d8b46a;
}

@media (max-width: 900px) {
    .home-testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-testimonials__heading,
    .home-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .home-testimonials__heading {
        align-items: start;
        gap: 1.5rem;
    }

    .home-testimonials__heading > p {
        padding: 1rem 0 0;
        border-top: 1px solid rgb(221 190 126 / .45);
        border-left: 0;
    }

    .home-testimonial {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-testimonial {
        backdrop-filter: none;
    }
}
