/*
 * Minty'Lab: a client case beside a quote.
 */
.mpb-pd-case__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--spacing-lg);
}

.mpb-pd-case__card {
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    background-color: var(--color-surface-elevated);
}

.mpb-pd-case__card.has-image {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mpb-pd-case__card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 23.75rem;
    object-fit: cover;
}

.mpb-pd-case__card > div {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    height: 100%;
    padding: var(--spacing-2xl);
}

.mpb-pd-case__card b {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-card);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.mpb-pd-case__card p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.mpb-pd-case__card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-sm);
    margin: auto 0 0;
}

.mpb-pd-case__card dt {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-metric);
    line-height: 1;
}

.mpb-pd-case__card dd {
    margin: 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/*
 * The review: the card of the reviews block (quotes.css), at the size of a
 * column. The agency site's photo behind, a glass layer that blurs it, the
 * swoosh blending with it, and the review on top. Glass, swoosh and review are
 * siblings in DOM order, with no z-index, isolation or opacity on the card:
 * the backdrop filter would isolate the swoosh's blending.
 *
 * The card rises in with the scroll reveal, and a card that moves is a layer of
 * its own: there, an overflow hidden on a rounded box stops rounding what the
 * blur and the blend draw, and the photo shows square corners outside the glass
 * edge. The clip path rounds them whatever is composited. It makes the card an
 * isolated group, which changes nothing here: its gradient fills it, so the
 * swoosh blends with the same photo either way.
 */
.mpb-pd-case__quote {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    clip-path: inset(0 round var(--border-radius-xl));
    background: var(--gradient-testimonials);
    color: var(--color-text-invert);
}

.mpb-pd-case__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
}

.mpb-pd-case__glass {
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-testimonial-role);
    border-radius: inherit;
    background-color: var(--glass-bg-dark);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

/* Out of scale on purpose, as on the reviews block: only a curved edge of the
   shape crosses the card, relative to its width. */
.mpb-pd-case__quote .swoosh {
    position: absolute;
    top: 0;
    left: -105%;
    width: 1300%;
    max-width: none;
    height: auto;
    margin-top: -116%;
    fill: currentcolor;
    color: var(--color-chartreuse-medium);
    mix-blend-mode: overlay;
}

.mpb-pd-case__review {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mpb-pd-case__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mpb-pd-case__author img {
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.mpb-pd-case__author b {
    display: block;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    letter-spacing: var(--letter-spacing-testimonial);
}

.mpb-pd-case__author span {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-testimonial-role);
}

.mpb-pd-case__review blockquote {
    margin: 0;
}

.mpb-pd-case__review blockquote p {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: var(--font-size-testimonial-mobile);
    font-weight: var(--font-weight-semibold);
    line-height: 1.34;
    letter-spacing: var(--letter-spacing-testimonial);
    color: var(--color-text-invert);
}

@media (max-width: 991.98px) {
    .mpb-pd-case__grid,
    .mpb-pd-case__card.has-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .mpb-pd-case__quote {
        padding: var(--spacing-lg);
    }
}
