/* Projects-only platform references: plain names and original category icons. */
.platforms {
    --platform-surface: #0b0b14;
    --platform-border: #35234d;
    --platform-border-hover: #7545a3;
    padding: 0 0 40px;
    scroll-margin-top: 120px;
}

.platforms__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-top: 36px;
    margin-bottom: 28px;
    border-top: 1px solid var(--color-border);
}

.platforms__heading .eyebrow {
    margin: 0 0 10px;
    font-size: 0.7rem;
}

.platforms__heading h2 {
    max-width: 580px;
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.platforms__intro {
    max-width: 285px;
    margin: 0 0 2px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.platforms__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.platforms__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 80px;
    padding: 18px 24px;
    border: 1px solid var(--platform-border);
    border-radius: 7px;
    background: var(--platform-surface);
    transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .platforms__item:hover {
        border-color: var(--platform-border-hover);
        background-color: #120e1d;
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.12);
    }
}

.platforms__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #e0d8ec;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.platforms__label {
    position: relative;
    min-width: 0;
}

.platforms__name {
    color: var(--color-text);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.platforms__description {
    /* Keep the explanation available to assistive technology. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.platforms__note {
    margin: 17px 0 0;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    line-height: 1.6;
}

@media (max-width: 1050px) {
    .platforms__item {
        gap: 12px;
        padding: 20px 16px;
    }

    .platforms__icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 760px) {
    .platforms {
        padding-bottom: 12px;
    }

    .platforms__heading {
        display: block;
        padding-top: 28px;
        margin-bottom: 22px;
    }

    .platforms__intro {
        max-width: 400px;
        margin-top: 12px;
    }

    .platforms__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .platforms__item {
        gap: 10px;
        min-height: 76px;
        padding: 16px 12px;
    }

    .platforms__icon {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .platforms__name {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platforms__item {
        transition: none;
    }
}
