.technology-partner-carousel {
    position: relative;
    padding: clamp(1rem, 2.2vw, 1.65rem) 0 clamp(1.35rem, 2.4vw, 1.9rem);
    overflow: visible;
    border-block: 1px solid rgba(var(--terracotta-rgb), 0.18);
    background: rgba(14, 10, 8, 0.46);
}

.technology-partner-carousel-title {
    margin: 0;
    padding-inline: 3.25rem;
    color: var(--yump-gold);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.1rem, 1.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.technology-partner-carousel-controls {
    display: flex;
    justify-content: flex-end;
    min-height: 2.1rem;
    padding-inline: 0.25rem;
}

.technology-partner-carousel-title + .technology-partner-carousel-controls {
    margin-top: 0.65rem;
}

.technology-partner-carousel-toggle {
    position: absolute;
    top: -1px;
    right: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(var(--yump-gold-rgb), 0.32);
    border-radius: 999px;
    background: rgba(255, 247, 242, 0.06);
    color: var(--yump-gold);
    transform: translate(50%, -50%);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.technology-partner-carousel-toggle:hover,
.technology-partner-carousel-toggle:focus-visible {
    border-color: rgba(var(--yump-gold-rgb), 0.76);
    background: rgba(var(--yump-gold-rgb), 0.12);
    color: #fff9f6;
    outline: none;
}

.technology-partner-carousel-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--yump-gold-rgb), 0.18);
}

.technology-partner-carousel-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.technology-partner-carousel-marquee::before,
.technology-partner-carousel-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: min(10vw, 110px);
    pointer-events: none;
}

.technology-partner-carousel-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(18, 14, 11, 0.98), rgba(18, 14, 11, 0));
}

.technology-partner-carousel-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(18, 14, 11, 0.98), rgba(18, 14, 11, 0));
}

.technology-partner-carousel-track {
    display: flex;
    width: max-content;
    animation: technology-partner-logo-marquee 105s linear infinite;
    will-change: transform;
}

.technology-partner-carousel.is-paused .technology-partner-carousel-track {
    animation-play-state: paused;
}

.technology-partner-carousel-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(1.2rem, 2.4vw, 2.56rem);
    margin: 0;
    padding: 0 clamp(1.2rem, 2.4vw, 2.56rem) 0 0;
    list-style: none;
}

.technology-partner-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(60px, 6vw, 98px);
}

.technology-partner-carousel-item img {
    display: block;
    width: auto;
    max-width: min(245px, 44vw);
    height: 36px;
    object-fit: contain;
}

@keyframes technology-partner-logo-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 575.98px) {
    .technology-partner-carousel {
        padding-block: 0.85rem 1.25rem;
    }

    .technology-partner-carousel-controls {
        min-height: 1.95rem;
        padding-inline: 0.15rem;
    }

    .technology-partner-carousel-toggle {
        width: 1.95rem;
        height: 1.95rem;
    }

    .technology-partner-carousel-group {
        gap: 0.88rem;
        padding-right: 0.88rem;
    }

    .technology-partner-carousel-item {
        min-width: 51px;
    }

    .technology-partner-carousel-item img {
        height: 25px;
        max-width: 185px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .technology-partner-carousel-track {
        display: block;
        width: 100%;
        transform: none !important;
        will-change: auto;
        animation: none !important;
    }

    .technology-partner-carousel-marquee {
        overflow: visible;
    }

    .technology-partner-carousel-controls {
        display: none;
    }

    .technology-partner-carousel-group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }

    .technology-partner-carousel-group[aria-hidden="true"] {
        display: none;
    }
}
