/**
 * Front-page featured clients.
 * Left: logo stage. Right: name list. Hover/focus/tap swaps the mark.
 */

.fp-clients {
    min-width: 0;
    padding-block: clamp(40px, 6vw, 72px);
    box-sizing: border-box;
}

.fp-clients__head {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--16);
    width: 100%;
    margin-bottom: clamp(20px, 2.5vw, 32px);
    box-sizing: border-box;
}

.fp-clients__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--base);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--wp--preset--color--text-main);
}

.fp-clients__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    flex-shrink: 0;
}

.fp-clients__rule {
    flex: 1 1 auto;
    height: 1px;
    min-width: var(--wp--preset--spacing--24);
    background: color-mix(in srgb, var(--wp--preset--color--text-main) 8%, transparent);
}

.fp-clients__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(var(--wp--preset--spacing--24), 3vw, var(--wp--preset--spacing--40));
    align-items: stretch;
    min-width: 0;
}

.fp-clients__copy {
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.fp-clients__preview {
    position: relative;
    display: block;
    align-self: center;
    width: 100%;
    max-width: min(22rem, 100%);
    min-width: 0;
    aspect-ratio: 1;
    box-sizing: border-box;
    background: var(--wp--preset--color--surface);
}

.fp-clients__preview-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: inherit;
    text-decoration: none;
}

.fp-clients__preview-link.is-empty {
    pointer-events: none;
}

.fp-clients__preview-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.fp-clients__preview-link:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: 4px;
}

.fp-clients__stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.fp-clients__logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 10%;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--wp--custom--spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.fp-clients__logo.is-active {
    opacity: 1;
}

.fp-clients__logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.fp-clients__wordmark {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-align: center;
    color: var(--wp--preset--color--text-main);
}

.fp-clients__list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.fp-clients__item {
    min-width: 0;
    width: 100%;
}

.fp-clients__name {
    display: grid;
    grid-template-columns: 2.1em minmax(0, 1fr);
    align-items: baseline;
    gap: var(--wp--preset--spacing--8);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(5px, 0.7vw, 9px) 0;
    border: 0;
    background: transparent;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--2xl);
    letter-spacing: -0.035em;
    line-height: 1.06;
    text-align: left;
    text-decoration: none;
    color: color-mix(in srgb, var(--wp--preset--color--text-main) 42%, transparent);
    cursor: pointer;
    transition: color 0.2s ease;
}

.fp-clients__idx {
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: color-mix(in srgb, var(--wp--preset--color--text-main) 38%, transparent);
}

.fp-clients__label {
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.fp-clients__name.is-active,
.fp-clients__name:hover,
.fp-clients__name:focus-visible {
    color: var(--wp--preset--color--text-main);
}

.fp-clients__name:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .fp-clients__layout {
        grid-template-columns: 1fr 1fr;
    }

    .fp-clients__name {
        font-size: var(--wp--preset--font-size--xl);
    }
}

@media (max-width: 720px) {
    .fp-clients__layout {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--24);
    }

    .fp-clients__preview {
        max-width: min(18rem, 100%);
    }

    .fp-clients__copy {
        justify-self: stretch;
        width: 100%;
        padding-inline-start: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-clients__logo,
    .fp-clients__name {
        transition: none;
    }
}
