/* Deep Navy/Dark Slate Background Container */
.hair-press {
    background-color: #0f2537; 
    padding: 50px 0; /* Cleared side paddings to allow full-width edge overflow masking */
    margin: 80px 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; /* Secures browser edges from scroll breakages */
}

.hair-press__container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Small Subdued Top Label Text */
.hair-press__label {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    padding: 0 20px;
}

/* --- Marquee Layout Frame Wrapper --- */
.hair-press__marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 40px; /* Base spacing setup bridge between item streams */
    width: 100%;
}

/* Linear Infinite Flex Tracks */
.hair-press__logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    min-width: 100%;
    gap: 40px; /* Must remain perfectly identical to marquee gap wrapper properties */
    animation: rodoxiMarqueeLoop 25s linear infinite;
}

/* Optional: Pauses logo crawl animation loops instantly on item cursors hover */
.hair-press__marquee:hover .hair-press__logos {
    animation-play-state: paused;
}

/* Individual Logo Wrapper & Sizing Constraints */
.hair-press__logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; /* Solid fixed width limits ensure tracking synchronization stays smooth */
    height: 35px;
    flex-shrink: 0;
}

.hair-press__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1);
    opacity: 0.85;
    transition: opacity 0.2s ease-in-out;
}

.hair-press__img:hover {
    opacity: 1;
}

/* ==========================================================================
   Hardware-Accelerated Marquee Loops Keys
   ========================================================================== */
@keyframes rodoxiMarqueeLoop {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Translates precisely negative 100% minus parent gaps for a seamless reset point */
        transform: translateX(calc(-100% - 40px));
    }
}
