/* ---------------------------------------------------------------------------
   The services section.

   Products and services are different things and should not look the same. The
   products above are cards, one per platform, each in its own brand colour -
   they are separate things the company sells. Services are one company's
   capabilities, so they are a list in one voice, on dark, in the brand red.

   A list also handles ten items in a way a four-across card grid does not:
   nothing is orphaned on a half-empty final row.
   --------------------------------------------------------------------------- */

.our-capabilities {
    background: #141312;
    padding: 100px 0;
    position: relative;
}

    /* The same hairline the notice board uses, so the sections belong to the
       same site. */
    .our-capabilities::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-color);
    }

/* ---- heading ---- */

.our-capabilities .cap-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 14px;
}

    .our-capabilities .cap-eyebrow .eyebrow-mark {
        width: 8px;
        height: 8px;
        background: var(--primary-color);
    }

.our-capabilities .cap-title {
    text-align: center;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: #fff;
    margin: 0 auto 12px;
    max-width: 18ch;
    text-wrap: balance;
}

    .our-capabilities .cap-title span {
        color: var(--primary-color);
    }

.our-capabilities .cap-lead {
    text-align: center;
    max-width: 56ch;
    margin: 0 auto 46px;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    line-height: 1.75;
}

/* ---- the list ---- */

.cap-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cap-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    text-decoration: none;
    color: inherit;
    transition: padding-left .2s ease, border-color .2s ease;
}

    .cap-item:hover,
    .cap-item:focus-visible {
        padding-left: 14px;
        border-color: rgba(255, 255, 255, .3);
    }

.cap-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 8px;
    border-radius: 12px;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .5px;
    background: rgba(235, 28, 36, .13);
    color: #ff6b70;
    border: 1px solid rgba(235, 28, 36, .3);
    transition: background .2s ease, color .2s ease;
}

.cap-item:hover .cap-mark,
.cap-item:focus-visible .cap-mark {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cap-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cap-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 4px;
}

.cap-tagline {
    display: block;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .64);
}

.cap-arrow {
    flex: 0 0 auto;
    align-self: center;
    color: rgba(255, 255, 255, .38);
    font-size: 14px;
    transition: transform .2s ease, color .2s ease;
}

.cap-item:hover .cap-arrow,
.cap-item:focus-visible .cap-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* ---- keyboard ---- */

.our-capabilities a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    .cap-item,
    .cap-mark,
    .cap-arrow {
        transition: none;
    }

        .cap-item:hover,
        .cap-item:focus-visible {
            padding-left: 4px;
        }

        .cap-item:hover .cap-arrow {
            transform: none;
        }
}

/* ---- narrow screens ---- */

@media (max-width: 991px) {
    .cap-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767px) {
    .our-capabilities {
        padding: 70px 0;
    }

    .cap-item {
        gap: 14px;
        padding: 18px 2px;
    }

    .cap-mark {
        min-width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .cap-name {
        font-size: 15.5px;
    }

    .our-capabilities .cap-lead {
        margin-bottom: 32px;
    }
}
