/* Scrolling treatment from sand-box/index.html, scoped to the network section. */
.icg-net {
    --net-line: #e4e6e7;
    --net-tile: #ffffff;
    --net-tile-hover: #fafbfb;
    --net-radius: 10px;
    padding-top: 40px;
}

.icg-net-head {
    display: flex;
    flex-flow: column;
    align-items: flex-end;
    text-align: right;
    gap: 18px;
    max-width: 760px;
    margin: 0 0 56px auto;
}

.icg-net-head h2 { margin-bottom: 0; text-wrap: balance; }
.icg-net-head p { margin-bottom: 0; }

.icg-net-tile {
    display: grid;
    place-items: center;
    background-color: var(--net-tile);
    padding: 34px 30px;
    min-height: 170px;
    transition: background-color .3s ease;
}

.icg-net-tile img {
    display: block;
    width: 100%;
    max-width: 272px;
    height: auto;
    /* Original logos share an optically matched 480 x 180 canvas. */
    transition: filter .35s ease, opacity .35s ease;
}

.icg-net-tile:hover { background-color: var(--net-tile-hover); }
.icg-net-tile:hover img { filter: grayscale(1); opacity: .72; }

.icg-net-marquee {
    --speed: 48s;
    border: 1px solid var(--net-line);
    border-radius: var(--net-radius);
    overflow: hidden;
    background-color: var(--net-tile);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.icg-net-track {
    display: flex;
    width: max-content;
    animation: icg-net-scroll var(--speed) linear infinite;
}

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

.icg-net-marquee:focus-visible { outline: 2px solid #4f778b; outline-offset: 4px; }

.icg-net-track .icg-net-tile {
    flex: 0 0 clamp(170px, 20vw, 258px);
    border-right: 1px solid var(--net-line);
    min-height: 168px;
    padding: 30px 24px;
}

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

/* Reduced motion keeps the original logos in a manually swipeable row. */
@media (prefers-reduced-motion: reduce) {
    .icg-net-track {
        animation: none;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .icg-net-track .icg-net-tile { scroll-snap-align: center; }
    .icg-net-track [aria-hidden="true"] { display: none; }
}

@media (max-width: 991px) {
    .icg-net-head { margin-bottom: 40px; }
    .icg-net-tile { min-height: 150px; padding: 28px 24px; }
    .icg-net-marquee { --speed: 38s; }
}

@media (max-width: 767px) {
    .icg-net-tile { min-height: 128px; padding: 22px 18px; }
    .icg-net-tile img { max-width: 200px; }
}

@media (max-width: 479px) {
    .icg-net-tile { min-height: 112px; padding: 18px 14px; }
    .icg-net-track .icg-net-tile { flex-basis: 46vw; }
}
