/* =============================================================
   nx-intake.css - homepage "integrate, pull, reconcile" panel
   A full-width strip inside the hero, directly under the split:
   the sentence on one line, the source logos scrolling under it.
   Colours come from existing tokens (main.css / nexus.css). The
   only literals are rgba() shadow/panel values copied from
   .nx-viz so the two panels match, and #000 in the fade mask,
   where it is an alpha stencil and never painted.
   ============================================================= */

.nx-intake {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: clamp(2.5rem, 4vw, 3.5rem) auto 0;
    padding: 0 2rem;
    color: var(--white);
}

.nx-intake-panel {
    background: rgba(9, 20, 38, 0.72);            /* = .nx-viz */
    border: 1px solid var(--nx-amber);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55); /* = .nx-viz */
    padding: 28px 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nx-intake-title {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--white);
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    text-align: center;
    text-wrap: balance;                     /* if a phone must wrap, wrap evenly */
}

/* Only the payoff is gold: #F5A623 via the brand token. */
.nx-intake-em { color: var(--nx-amber); }

/* ---------- the scroller ---------- */
.nx-intake-viewport {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.nx-intake-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: nx-intake-x 58s linear infinite;   /* half the track = 13 tiles x 196px */
}

.nx-intake-viewport:hover .nx-intake-track { animation-play-state: paused; }

.nx-intake-tile {
    flex: 0 0 auto;
    width: 180px;
    height: 64px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--white);
    color: var(--nx-navy);
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    white-space: nowrap;
}

/* Logo artwork. The image is decorative (alt=""): the tile's name lives in
   .nx-intake-name, which screen readers get and sighted users do not see -
   unless the file fails to load, when the tile shows the name instead. */
.nx-intake-tile { --nx-logo-h: 40px; position: relative; }

.nx-intake-tile img {
    display: block;
    height: var(--nx-logo-h);
    width: auto;
    max-width: 80%;
    object-fit: contain;
}

.nx-intake-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.nx-intake-tile.is-missing img { display: none; }
.nx-intake-tile.is-missing .nx-intake-name {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
}

@keyframes nx-intake-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .nx-intake { padding: 0 1rem; }
    .nx-intake-panel { padding: 22px 16px 24px; }
    .nx-intake-tile { width: 150px; height: 56px; font-size: 0.98rem; --nx-logo-h: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-intake-track { animation: none !important; }
    .nx-intake-viewport { overflow: auto; }
}
