/* What we build — figure grid. Homepage only. */

body.landing .fig-grid {
    grid-column: 1 / -1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: var(--hairline) solid var(--color-edge);
}

body.landing .fig {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    min-width: 0;
    padding: var(--space-36) var(--space-36) 60px;
    border-bottom: var(--hairline) solid var(--color-edge);
    list-style: none;
}

body.landing .fig:nth-child(3n + 1),
body.landing .fig:nth-child(3n + 2) {
    border-right: var(--hairline) solid var(--color-edge);
}

body.landing .fig-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 232;
    margin: 0 0 var(--space-36);
    display: grid;
    place-items: center;
}

body.landing .fig-stage svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 320 / 232;
    overflow: visible;
    pointer-events: none;
    user-select: none;
}

body.landing .fig-stage img {
    display: block;
    height: calc(var(--fig-stage, 176px) * 0.88);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

body.landing .fig-id {
    margin: 0 0 4px;
    font-family: 'IBM Plex Mono', 'SF Mono', monospace;
    font-size: var(--type-caption);
    font-weight: 400;
    letter-spacing: var(--eyebrow-tracking);
    line-height: 1.4;
    color: #6e6e6e;
    font-variant-numeric: tabular-nums;
}

body.landing .fig-name {
    margin: 0 0 12px;
    min-height: 1.2em;
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: #dedede;
    text-wrap: balance;
}

body.landing .fig-desc {
    margin: 0;
    max-width: 36ch;
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #a0a0a0;
    text-wrap: pretty;
}

@media (max-width: 1100px) {
    body.landing .fig-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.landing .fig:nth-child(3n + 1),
    body.landing .fig:nth-child(3n + 2) {
        border-right: 0;
    }

    body.landing .fig:nth-child(odd) {
        border-right: var(--hairline) solid var(--color-edge);
    }
}

@media (max-width: 700px) {
    body.landing .fig-grid {
        grid-template-columns: 1fr;
    }

    body.landing .fig:nth-child(odd) {
        border-right: 0;
    }

    body.landing .fig {
        padding: var(--space-36) 0 60px;
    }

    body.landing .fig-name {
        min-height: 0;
    }

    body.landing .fig-desc {
        max-width: 58ch;
    }
}

/* Quiet activity on the connections; physical components stay stable. */
body.landing .fig-stage { isolation: isolate; }
body.landing .fig-stage svg { overflow: hidden; }
body.landing .fig-model { transition: transform 500ms ease; }
body.landing .fig:hover .fig-model { transform: translateY(-3px); }
body.landing .fig-signal { animation: fig-signal 7s linear infinite; }
body.landing .fig:nth-child(2n) .fig-signal { animation-delay: -2.4s; }
body.landing .fig:nth-child(3n) .fig-signal { animation-delay: -4.8s; }
@keyframes fig-signal { to { stroke-dashoffset: -114; } }
@media (prefers-reduced-motion: reduce) {
    body.landing .fig-signal { animation: none; }
    body.landing .fig-model { transition: none; }
    body.landing .fig:hover .fig-model { transform: none; }
}
