/* ==========================================================================
   Section: As Seen In — press/partner credibility marquee
   ========================================================================== */

.section-as-seen-in {
    padding: var(--space-10) 0;
    background: var(--color-gray-50);
    border-top: 1px solid rgba(18, 17, 16, 0.06);
    border-bottom: 1px solid rgba(18, 17, 16, 0.06);
}

.as-seen-in-label {
    margin-bottom: var(--space-6);
}

/* Edge fade via solid gradient overlays rather than mask-image: masking an
   element that's also being CSS-transform-animated is a known source of
   compositing glitches on mobile Safari/WebKit (partial/flickering paints
   of whatever crosses the mask boundary mid-animation). Two plain overlays
   with pointer-events: none render identically without that failure mode. */
.press-marquee {
    position: relative;
    overflow: hidden;
}

.press-marquee::before,
.press-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--space-10);
    z-index: 1;
    pointer-events: none;
}

.press-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-gray-50), transparent);
}

.press-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-gray-50), transparent);
}

.press-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: var(--space-12);
    animation: press-scroll 32s linear infinite;
    /* Promote to its own compositing layer up front so mobile Safari doesn't
       glitch when it first has to do so mid-animation. */
    will-change: transform;
    backface-visibility: hidden;
}

.press-marquee:hover .press-track,
.press-marquee:focus-within .press-track {
    animation-play-state: paused;
}

.press-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
}

.press-item img {
    max-height: 100%;
    max-width: 9rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: opacity var(--transition-base), filter var(--transition-base);
}

.press-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.press-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-gray-400);
    white-space: nowrap;
}

@keyframes press-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .press-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .press-track [aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 768px) {
    .press-track {
        gap: var(--space-8);
    }

    .press-item {
        height: 2rem;
    }

    .press-item img {
        max-width: 7rem;
    }
}
