.service-page-content { padding: var(--section-space) 0; background: var(--color-white); }
.service-content-layout { display: block; }
.service-detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 56px; }
.service-detail-layout--editor { display: block; }
.service-cross-sections { display: grid; gap: 72px; }
.service-detail-layout--image-right .service-detail-media { order: 2; }
.service-detail-media { min-width: 0; position: relative; }
@media (min-width: 951px) { .service-detail-media { position: sticky; top: 120px; align-self: start; } }
.service-detail-image { display: block; width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 24px rgba(18, 20, 24, .1); }
.service-detail-layout--two-images .service-detail-media { padding: 0 36px 36px 0; }
.service-detail-image-secondary { position: absolute; right: 0; bottom: 0; width: 48%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--color-white); border-radius: 6px; box-shadow: 0 8px 24px rgba(18, 20, 24, .14); }
@media (max-width: 950px) { .service-detail-layout { grid-template-columns: 1fr; gap: 32px; } .service-detail-layout--image-right .service-detail-media { order: 0; } }
.process-head.service-detail-heading { flex-direction: column; align-items: center; justify-content: center; gap: 18px; margin-bottom: 40px; text-align: center; }
.process-head.service-detail-heading h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; }
.service-detail-heading::after { content: ''; display: block; width: 72px; height: 2px; background: var(--color-brand-primary); }
.service-content-body { margin-inline: auto; }
.service-section-heading h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.service-section-heading p { margin: 0; color: var(--color-text-medium); line-height: 1.7; }
.service-content-body { min-width: 0; max-width: none; color: var(--color-text-medium); line-height: 1.85; overflow-wrap: anywhere; }
.service-content-body > :first-child { margin-top: 0; }
.service-content-body > :last-child { margin-bottom: 0; }
.service-content-body :where(p, ul, ol, blockquote) { margin-block: 0 24px; }
.service-content-body :where(ul, ol) { padding-inline-start: 1.4em; }
.service-content-body :where(li) { margin-block: 8px; }
.service-content-body :where(h2, h3, h4) { color: var(--color-ink-dark); margin-block: 32px 16px; }
.service-content-body img, .service-content-body iframe { max-width: 100%; }
.service-gallery { padding: var(--section-space) 0; background: var(--color-surface-muted); border-top: 1px solid var(--color-border-soft); }
.service-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.service-gallery-count { flex-shrink: 0; color: var(--color-text-medium); font-size: .85rem; padding-bottom: 4px; }
.service-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-gallery-grid .service-gallery-item { display: block; position: relative; overflow: hidden; width: 100%; padding: 0; border: 0; border-radius: 6px; background: var(--color-white); box-shadow: 0 8px 24px rgba(18, 20, 24, .12), 0 2px 6px rgba(18, 20, 24, .06); cursor: pointer; }
.service-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-gallery-open { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--color-white); color: var(--color-ink-dark); font-size: .78rem; font-weight: 600; }
.service-gallery-open > span { color: var(--color-brand-primary); font-size: 1rem; }
.service-gallery-item:focus-visible { outline: 3px solid var(--color-brand-primary); outline-offset: 4px; }
.service-image-dialog { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; width: fit-content; max-width: min(860px, calc(100vw - 48px)); max-height: 80dvh; background: transparent; overflow: visible; }
.service-image-dialog::backdrop { background: rgba(18, 20, 24, .86); }
.service-image-dialog > img { display: block; margin-inline: auto; width: auto; height: auto; max-width: min(860px, calc(100vw - 48px)); max-height: 80dvh; object-fit: contain; }
.service-image-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(18, 20, 24, .75); color: #fff; font-size: 30px; cursor: pointer; }
.service-image-close:focus-visible { outline: 2px solid var(--color-brand-primary); outline-offset: 2px; }
.service-image-close svg { display: block; width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
    .service-gallery-item { transition: transform 150ms ease, box-shadow 150ms ease; }
    .service-gallery-item img { transition: transform 200ms ease; }
    .service-gallery-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 20, 24, .18), 0 3px 8px rgba(18, 20, 24, .08); }
    .service-gallery-item:hover img { transform: scale(1.025); }
    .service-image-close { transition: background-color 150ms ease, transform 150ms ease; }
    .service-image-close:hover { background: var(--color-brand-primary); transform: scale(1.06); }
}
.service-image-close:active { transform: scale(.95); }
@media (prefers-reduced-motion: reduce) {
    .service-gallery-item, .service-gallery-item img, .service-image-close { transition: none; }
    .service-gallery-item:hover, .service-gallery-item:hover img, .service-image-close:hover, .service-image-close:active { transform: none; }
}
@media (max-width: 950px) { .service-content-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 950px) { .service-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-gallery-grid { grid-template-columns: 1fr; } }

.service-page-hero {
    padding: var(--section-space) 0;
    background: var(--color-surface-muted)
}

.service-page-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 72px;
    align-items: center
}

.service-page-media {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: var(--color-ink-dark)
}

.service-page-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.7) contrast(1.05)
}

.service-page-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--color-overlay-brand-28), transparent 55%, rgba(36, 39, 43, .42))
}

.service-page-copy .eyebrow {
    margin-bottom: 16px
}

.service-page-copy h1,
.service-page-copy h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.055em;
    margin: 0 0 24px
}

.service-page-copy>p {
    font-size: 1.08rem;
    color: var(--color-text-medium);
    line-height: 1.8;
    max-width: 640px
}

.service-page-copy .button {
    margin-top: 20px
}

.service-scope {
    padding: var(--section-space) 0;
    background: var(--color-ink-dark);
    color: var(--color-white)
}

.service-scope-head {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 45px;
    margin-bottom: 55px
}

.service-scope-head h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0
}

.service-scope-head p {
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 10px 0 0
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--color-overlay-white-18);
    border-left: 1px solid var(--color-overlay-white-18)
}

.scope-item {
    min-height: 180px;
    padding: 30px;
    border-right: 1px solid var(--color-overlay-white-18);
    border-bottom: 1px solid var(--color-overlay-white-18)
}

.scope-item span {
    display: block;
    color: var(--color-brand-highlight);
    font: 500 .68rem var(--font-body, Poppins, Arial, sans-serif);
    margin-bottom: 32px
}

.scope-item h3 {
    font-size: 1.1rem;
    margin: 0 0 10px
}

.scope-item p {
    color: #adb1b6;
    font-size: .9rem;
    margin: 0;
    line-height: 1.65
}

.service-process {
    padding: var(--section-space) 0
}

.process-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 45px
}

.process-head h2 {
    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 0
}

.process-head p {
    max-width: 520px;
    color: var(--color-text-muted)
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--color-border-soft)
}

.process-step {
    padding: 28px 24px;
    border-right: 1px solid var(--color-border-soft)
}

.process-step:last-child {
    border-right: 0
}

.process-step b {
    display: block;
    color: var(--color-brand-primary);
    font: 500 .68rem var(--font-body, Poppins, Arial, sans-serif);
    margin-bottom: 35px
}

.process-step h3 {
    font-size: 1rem;
    margin: 0 0 10px
}

.process-step p {
    font-size: .86rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0
}

.service-next {
    position: relative;
    background-color: var(--color-ink-dark, #0f172a);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color-white, #fff);
    padding: clamp(75px, 9vw, 125px) 0;
    overflow: hidden;
}

.service-next-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 19, 21, .82), rgba(17, 19, 21, .52) 60%, rgba(181, 18, 27, .28));
    pointer-events: none;
}

.service-next-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.service-next-text h2 {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.15;
    margin: 0;
    color: var(--color-white, #fff);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-next .service-next-btn,
.service-next .button {
    background: var(--color-white, #fff);
    color: var(--color-brand-primary, #c5161d);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 2px solid var(--color-white, #fff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-next .service-next-btn:hover,
.service-next .button:hover {
    background: var(--color-brand-primary, #c5161d);
    color: var(--color-white, #fff);
    border-color: var(--color-white, #fff);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

@media(max-width:850px) {

    .service-next {
        background-attachment: scroll;
    }

    .service-page-grid,
    .service-scope-head {
        grid-template-columns: 1fr
    }

    .service-page-media {
        min-height: 420px
    }

    .scope-grid {
        grid-template-columns: 1fr 1fr
    }

    .process-steps {
        grid-template-columns: 1fr 1fr
    }

    .process-step:nth-child(2) {
        border-right: 0
    }

    .process-step:nth-child(-n+2) {
        border-bottom: 1px solid var(--color-border-soft)
    }

    .service-next .wrap {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:560px) {

    .service-process .process-head {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
        margin-bottom: 32px;
    }

    .service-process .process-head h2 {
        width: 100%;
        font-size: clamp(2rem, 8vw, 2.6rem);
        line-height: 1.1;
    }

    .service-process .process-head p {
        width: 100%;
        max-width: 36ch;
        margin: 0;
        line-height: 1.65;
    }

    .service-page-hero,
    .service-scope,
    .service-process,
    .service-next {
        padding: var(--section-space) 0
    }

    .service-page-media {
        min-height: 300px
    }

    .scope-grid,
    .process-steps {
        grid-template-columns: 1fr
    }

    .process-step {
        border-right: 0;
        border-bottom: 1px solid var(--color-border-soft)
    }

    .process-step:last-child {
        border-bottom: 0
    }
}
