.client-stories-banner {
    margin-top: 0;
    padding: 0;
}

.client-stories-banner > .white-banner-hexpattern {
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.client-proof {
    --primary-colour: #28316b;
    --accent-colour: #FFB042;
    --teal-colour: #23a0b1;
    --tertiary-colour: #191e43;
    font-family: univia-pro, sans-serif;
    position: relative;
    z-index: 1;
    padding: 70px 0 90px;
    background: transparent;
    color: var(--primary-colour);
}

.client-proof-heading {
    margin-bottom: 32px;
}

.client-proof-heading>.client-proof-eyebrow {
    display: none;
}

.client-proof-heading h2 {
    margin: 0;
    color: var(--teal-colour);
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.25;
}

.client-story-carousel {
    background: transparent;
}

.client-story {
    display: grid;
    grid-template-columns: minmax(200px, 382px) minmax(0, 2fr);
    align-items: center;
    gap: 48px;
}

.client-story[hidden] {
    display: none;
}

.client-story-brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

/* The industry badge sits with the project on desktop and the portrait on mobile. */
.client-story-brand .client-story-sector {
    display: none;
    margin-bottom: 16px;
    color: #667584;
    font-size: 13px;
}

.client-story-portrait {
    width: 350px;
    max-width: 100%;
    margin: 0 0 2rem;
    filter: drop-shadow(18px 22px var(--teal-colour));
}

.client-story-portrait--author {
    display: none;
}

.client-portrait-image {
    width: 100%;
    aspect-ratio: 1;
    clip-path: url('#service-card-clip');
    background-image: url('/images/client-placeholder-headshots.png');
    background-size: 300% 200%;
    background-position: var(--portrait-x) var(--portrait-y);
}

.client-portrait-photo {
    display: block;
    height: auto;
    object-fit: cover;
    background: none;
}

.client-story-brand h3 {
    margin: 0;
    color: var(--primary-colour);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .client-story-brand h3 {
        order: -1;
        margin-bottom: 24px;
    }
}

.client-story-number {
    display: none;
}

.client-story-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.client-story-project {
    margin-bottom: 22px;
}

.client-story-project .client-proof-eyebrow {
    margin: 0 0 8px;
    color: #667584;
    font-size: 15px;
    font-weight: 700;
}

.client-story-project h3 {
    margin: 0;
    color: var(--primary-colour);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.client-proof .client-story blockquote {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    color: var(--primary-colour);
}

.client-story blockquote p {
    margin: 0 0 22px;
    color: #555;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.client-proof .client-story blockquote footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    background: transparent;
    color: var(--primary-colour);
    font-size: 15px;
    line-height: 1.5;
}

.client-proof .client-story blockquote footer::before {
    content: none;
}

.client-story blockquote footer span {
    color: #667584;
    font-size: 14px;
}

.client-story-author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.client-story-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.client-story-pages {
    display: flex;
    align-items: center;
    gap: 0;
}

.client-story-pages button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 40px;
    border: 0;
    padding: 0 3px;
    background: transparent;
    cursor: pointer;
}

.client-story-pages button span {
    display: block;
    width: 30px;
    height: 3px;
    background: #22afb9;
    opacity: .5;
    transition: opacity .6s ease;
}

.client-story-pages button[aria-pressed="true"] span {
    background: #28316b;
    opacity: 1;
}

.client-story-arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary-colour);
    cursor: pointer;
}

.client-story-arrow[data-client-step="-1"] svg {
    transform: rotate(180deg);
}

.client-story-arrow:hover {
    color: var(--teal-colour);
}

.client-proof :is(a, button):focus-visible {
    outline: 2px solid black;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .client-proof {
        padding: 48px 0 56px;
    }

    .client-proof .container {
        padding-inline: 24px;
    }

    .client-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .client-story-brand {
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px;
        align-content: center;
        padding: 0;
        text-align: left;
    }

    .client-story-portrait {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 70px;
        margin: 0;
        align-self: center;
        filter: drop-shadow(8px 10px var(--teal-colour));
    }

    .client-story-brand > .client-story-portrait {
        display: none;
    }

    .client-story-portrait--author {
        display: block;
        flex: 0 0 70px;
    }

    .client-proof .client-story blockquote footer {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        min-height: 80px;
    }

    .client-story-brand .client-story-sector {
        display: inline-block;
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        justify-self: start;
        max-width: 100%;
        margin: 0;
        padding: 4px 10px;
        color: var(--accent-colour);
        font-size: 12px;
        line-height: 1.25;
        white-space: normal;
    }

    .client-story-brand h3 {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        font-size: 20px !important;
    }

    .client-story-project > .badge {
        display: none;
    }

    .client-story-content {
        grid-column: 1;
        grid-row: 2;
    }

    .client-story-project h3 {
        font-size: 24px !important;
    }

    .client-story blockquote p {
        font-size: 18px;
    }

    .client-story-controls {
        flex-wrap: nowrap;
        gap: 4px 12px;
        margin-top: 24px;
    }

    .client-story-pages {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-story-pages button span {
        transition: none;
    }
}

@media (max-width: 767px) {
    .client-story-pages button {
        width: clamp(20px, 5vw, 36px);
    }

    .client-story-pages button span {
        width: 100%;
    }
}

.client-proof .badge {
    color: var(--primary-colour);
    border: 2px solid var(--accent-colour);
    border-radius: 1.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
    background-color: white;
    text-transform: uppercase;
}

.client-proof .divider {
    height: 3px;
    background-color: #23a0b1;
    width: 60px;
    margin-top: 24px;
}
