.service-page-hero {
    padding: clamp(110px, 14vw, 180px) 0 72px;
}

.service-detail-hero {
    padding:
        clamp(96px, 9vw, 128px)
        0
        clamp(44px, 6vw, 64px);
}

.service-page-hero h1,
.service-detail-hero h1 {
    max-width: 980px;
    margin: 0;
}

.service-page-hero__description,
.service-detail-hero__description {
    max-width: 780px;
    margin-top: 24px;

    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-list-card {
    position: relative;

    min-height: 260px;
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
}

.service-list-card--primary {
    grid-column: span 2;
}


.service-list-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}


.service-list-card p {
    max-width: 520px;
    margin: 16px 0 0;

    color: var(--text-muted);
    line-height: 1.65;
}




.service-detail-hero__grid {
    position: relative;

    display: flex;
    min-height: clamp(380px, 38vw, 500px);
    align-items: flex-end;
    overflow: hidden;

    padding:
        clamp(28px, 5vw, 58px);

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--surface-raised);

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, 0.28);
}

.service-detail-hero__content {
    position: relative;
    z-index: 2;

    width: min(100%, 780px);
}

.service-detail-hero__content h1 {
    max-width: 760px;

    text-shadow:
        0 3px 24px
        rgba(0, 0, 0, 0.96);
}

.service-detail-hero__content
.service-detail-hero__description {
    color: rgba(236, 232, 244, 0.82);

    text-shadow:
        0 2px 18px
        rgba(0, 0, 0, 0.96);
}

.service-detail-hero__media {
    position: absolute;
    z-index: 0;
    overflow: hidden;
    inset: 0;

    border-radius: inherit;

    background: var(--surface-raised);
}

.service-detail-hero__media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(9, 8, 13, 0.96) 0%,
            rgba(9, 8, 13, 0.82) 48%,
            rgba(9, 8, 13, 0.42) 100%
        ),
        linear-gradient(
            0deg,
            rgba(9, 8, 13, 0.82),
            transparent 72%
        );

    pointer-events: none;
}

.service-detail-hero__media img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter:
        brightness(0.72)
        contrast(0.84)
        saturate(0.82);

    opacity: 0.7;
    transform: scale(1.01);
}

.service-detail-content__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    align-items: start;
    gap: clamp(48px, 8vw, 110px);
}

.service-detail-copy {
    max-width: 820px;

    font-size: 1.08rem;
    line-height: 1.8;
}

.service-detail-copy p:first-child {
    margin-top: 0;
}

.service-detail-action {
    position: sticky;
    top: 120px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
}

.service-detail-action h2 {
    margin: 10px 0 16px;
}

.service-detail-action > p:not(.eyebrow) {
    margin-bottom: 24px;

    color: var(--text-muted);
    line-height: 1.65;
}

.service-project-grid,
.service-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-project-card,
.service-related-card {
    display: flex;
    flex-direction: column;
    gap: 14px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    color: var(--text);
    text-decoration: none;

    background: var(--surface);
}

.service-project-card__media {
    overflow: hidden;
    margin: -20px -20px 4px;
    border-radius: 16px 16px 0 0;
}

.service-project-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-project-card span,
.service-related-card span {
    color: var(--text-muted);
    line-height: 1.55;
}

.service-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .service-list-grid,
    .service-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-detail-hero__grid,
    .service-detail-content__grid {
        grid-template-columns: 1fr;
    }

    .service-detail-action {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-list-grid,
    .service-project-grid,
    .service-related-grid {
        grid-template-columns: 1fr;
    }

    .service-list-card--primary {
        grid-column: auto;
    }

}


/* ---------------------------------------------------------------
   Service list — interactive card treatment
   --------------------------------------------------------------- */

.service-list-card {
    isolation: isolate;
    overflow: hidden;

    background: var(--surface-raised);

    transition:
        transform 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        background-color 260ms ease;
}

.service-list-card::before {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 0;

    background:
        radial-gradient(
            circle at 12% 0%,
            rgba(145, 97, 208, 0.13),
            transparent 34%
        );

    opacity: 0;

    transition: opacity 280ms ease;

    pointer-events: none;
}

.service-list-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;
    right: 28px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(145, 97, 208, 0.58),
            transparent
        );

    opacity: 0;

    transition: opacity 280ms ease;

    pointer-events: none;
}

.service-list-card--primary {
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(145, 97, 208, 0.18),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(112, 64, 178, 0.24),
            var(--surface-raised) 62%
        );
}


@media (hover: hover) {
    .service-list-card:hover {
        border-color:
            rgba(145, 97, 208, 0.42);

        box-shadow:
            0 24px 70px
            var(--card-glow);

        transform: translateY(-6px);
    }

    .service-list-card:hover::before,
    .service-list-card:hover::after {
        opacity: 1;
    }
}

.service-list-card:focus-within {
    border-color:
        rgba(145, 97, 208, 0.42);

    box-shadow:
        0 24px 70px
        var(--card-glow);
}

.service-list-card:focus-within::before,
.service-list-card:focus-within::after {
    opacity: 1;
}

/* Full-card navigation for Service and Solution lists. */

.service-list-card h2 {
    position: relative;
    z-index: 1;

    padding-right: 62px;

    pointer-events: none;
}

.service-list-card p {
    position: relative;
    z-index: 1;

    pointer-events: none;
}

.service-list-card__action {
    position: absolute;
    z-index: 3;
    inset: 0;

    border-radius: inherit;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
    touch-action: manipulation;
}

.service-list-card__action:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: -5px;
}

.service-list-card__action-icon {
    position: absolute;
    top: 24px;
    right: 24px;

    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border: 1px solid rgba(145, 97, 208, 0.34);
    border-radius: 13px;

    color: var(--brand-light);
    background: rgba(145, 97, 208, 0.1);

    transition:
        color 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease;
}

.service-list-card__action-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentcolor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .service-list-card:hover
    .service-list-card__action-icon {
        border-color: rgba(145, 97, 208, 0.72);
        color: var(--text);
        background: rgba(145, 97, 208, 0.2);
        transform: translate(3px, -3px);
    }
}

@media (max-width: 640px) {
    .service-list-card h2 {
        padding-right: 54px;
    }

    .service-list-card__action-icon {
        top: 20px;
        right: 20px;

        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-list-card__action-icon {
        transition: none;
    }
}


/* ---------------------------------------------------------------
   Versioned Service and Solution card imagery
   --------------------------------------------------------------- */

.service-list-card__media {
    position: absolute;
    z-index: 0;
    overflow: hidden;
    inset: 0;

    border-radius: inherit;

    pointer-events: none;
}

.service-list-card__media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 11, 16, 0.96) 0%,
            rgba(12, 11, 16, 0.82) 46%,
            rgba(12, 11, 16, 0.36) 100%
        ),
        linear-gradient(
            0deg,
            rgba(12, 11, 16, 0.84),
            transparent 62%
        );
}

.service-list-card__media img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.72;

    transition:
        opacity 320ms ease,
        transform 420ms ease;
}

.service-list-card h2,
.service-list-card p {
    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.92);
}

@media (hover: hover) {
    .service-list-card:hover
    .service-list-card__media img {
        opacity: 0.88;
        transform: scale(1.025);
    }
}

@media (max-width: 640px) {
    .service-detail-hero {
        padding:
            92px
            0
            40px;
    }

    .service-detail-hero__grid {
        min-height: 420px;

        padding:
            24px;
    }

    .service-detail-hero__media::after {
        background:
            linear-gradient(
                90deg,
                rgba(9, 8, 13, 0.94),
                rgba(9, 8, 13, 0.62)
            ),
            linear-gradient(
                0deg,
                rgba(9, 8, 13, 0.9),
                transparent 78%
            );
    }

    .service-list-card__media::after {
        background:
            linear-gradient(
                90deg,
                rgba(12, 11, 16, 0.94),
                rgba(12, 11, 16, 0.56)
            ),
            linear-gradient(
                0deg,
                rgba(12, 11, 16, 0.88),
                transparent 70%
            );
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-list-card__media img {
        transition: none;
    }
}

/* SITE-5.1 light theme Service and Solution imagery */

html[data-theme="light"]
.service-detail-hero__media::after {
    background:
        linear-gradient(
            90deg,
            rgba(249, 248, 251, 0.97) 0%,
            rgba(248, 246, 250, 0.86) 48%,
            rgba(248, 246, 250, 0.34) 100%
        ),
        linear-gradient(
            0deg,
            rgba(247, 246, 249, 0.82),
            transparent 72%
        );
}

html[data-theme="light"]
.service-detail-hero__media img {
    filter:
        brightness(1.02)
        contrast(0.92)
        saturate(0.9);

    opacity: 0.9;
}

html[data-theme="light"]
.service-detail-hero__content h1 {
    color: #17131b;

    text-shadow:
        0 2px 18px
        rgba(255, 255, 255, 0.98);
}

html[data-theme="light"]
.service-detail-hero__content
.service-detail-hero__description {
    color: rgba(34, 29, 39, 0.82);

    text-shadow:
        0 2px 18px
        rgba(255, 255, 255, 0.98);
}

html[data-theme="light"]
.service-list-card__media::after {
    background:
        linear-gradient(
            90deg,
            rgba(250, 249, 252, 0.96) 0%,
            rgba(248, 247, 250, 0.84) 46%,
            rgba(248, 247, 250, 0.38) 100%
        ),
        linear-gradient(
            0deg,
            rgba(247, 246, 249, 0.88),
            transparent 62%
        );
}

html[data-theme="light"]
.service-list-card__media img {
    filter:
        brightness(1.02)
        contrast(0.92)
        saturate(0.88);

    opacity: 0.9;
}

html[data-theme="light"]
.service-list-card h2,
html[data-theme="light"]
.service-list-card p {
    color: var(--text);

    text-shadow:
        0 2px 18px
        rgba(255, 255, 255, 0.98);
}

@media (hover: hover) {
    html[data-theme="light"]
    .service-list-card:hover
    .service-list-card__media img {
        opacity: 0.98;
    }
}

@media (max-width: 640px) {
    html[data-theme="light"]
    .service-detail-hero__media::after {
        background:
            linear-gradient(
                90deg,
                rgba(249, 248, 251, 0.96),
                rgba(248, 246, 250, 0.68)
            ),
            linear-gradient(
                0deg,
                rgba(247, 246, 249, 0.94),
                transparent 78%
            );
    }

    html[data-theme="light"]
    .service-list-card__media::after {
        background:
            linear-gradient(
                90deg,
                rgba(250, 249, 252, 0.96),
                rgba(248, 247, 250, 0.62)
            ),
            linear-gradient(
                0deg,
                rgba(247, 246, 249, 0.94),
                transparent 70%
            );
    }
}

/* End SITE-5.1 light theme Service and Solution imagery */
