/* Editorial SEO story for service pages. The legacy slider classes stay in the
   markup so the existing mobile swipe behaviour remains compatible. */
.service_story {
    --story-dark: #0b1714;
    --story-dark-soft: #132720;
    --story-cream: #f5f0e7;
    --story-paper: #fbf8f1;
    --story-sand: #d7b493;
    --story-copper: #d98d59;
    --story-ink: #15221f;
    --story-muted: rgba(21, 34, 31, 0.68);
    position: relative;
    display: grid;
    width: min(95vw, 1820px);
    margin: clamp(32px, 3.2vw, 52px) auto 0;
    padding: clamp(28px, 3.5vw, 58px);
    overflow: clip;
    box-sizing: border-box;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.72fr);
    gap: clamp(28px, 4vw, 70px);
    align-items: start;
    border: 1px solid rgba(21, 34, 31, 0.1);
    border-radius: clamp(28px, 3vw, 48px);
    background:
        linear-gradient(rgba(21, 34, 31, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 34, 31, 0.055) 1px, transparent 1px),
        var(--story-cream);
    background-size: clamp(52px, 5.3vw, 88px) clamp(52px, 5.3vw, 88px);
    color: var(--story-ink);
    box-shadow: 0 28px 72px rgba(8, 20, 16, 0.09);
    isolation: isolate;
}

.service_story_ambient {
    position: absolute;
    z-index: -1;
    top: -190px;
    left: -140px;
    width: clamp(320px, 36vw, 650px);
    aspect-ratio: 1;
    border: 1px solid rgba(217, 141, 89, 0.24);
    border-radius: 50%;
    pointer-events: none;
}

.service_story_ambient::after {
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(217, 141, 89, 0.17);
    border-radius: inherit;
    content: "";
}

.service_story_head {
    position: sticky;
    top: 118px;
    min-width: 0;
    align-self: start;
}

.service_story_eyebrow {
    margin: 0;
    color: #bd6938;
    font-family: Raleway, sans-serif;
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.service_story .service_story_title,
.service_story .work_stages_title {
    max-width: 11ch;
    margin: clamp(18px, 1.8vw, 28px) 0 0;
    color: var(--story-ink);
    font-family: Raleway, sans-serif;
    font-size: clamp(38px, 3.7vw, 60px);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.service_story_intro {
    max-width: 34ch;
    margin: clamp(20px, 2vw, 30px) 0 0;
    color: var(--story-muted);
    font-family: Raleway, sans-serif;
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 400;
    line-height: 1.55;
}

.service_story_range {
    display: flex;
    max-width: 270px;
    margin-top: clamp(28px, 3.4vw, 52px);
    align-items: center;
    gap: 14px;
    color: var(--story-ink);
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.service_story_range i {
    height: 1px;
    flex: 1;
    background: rgba(21, 34, 31, 0.26);
}

.service_story .service_story_list,
.service_story .work_stages_blosk {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 1.3vw, 20px);
    list-style: none;
}

.service_story .service_story_item {
    --story-card: var(--story-paper);
    --story-card-ink: var(--story-ink);
    --story-card-copy: rgba(21, 34, 31, 0.72);
    --story-card-border: rgba(21, 34, 31, 0.09);
    position: relative;
    display: grid;
    width: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    padding: clamp(24px, 2.2vw, 36px);
    overflow: hidden;
    box-sizing: border-box;
    grid-template-columns: clamp(58px, 5vw, 86px) minmax(0, 1fr);
    grid-template-areas:
        "number heading"
        "number copy";
    gap: clamp(20px, 2.4vw, 40px);
    align-items: start;
    border: 1px solid var(--story-card-border);
    border-radius: clamp(22px, 2vw, 32px);
    background: var(--story-card);
    color: var(--story-card-ink);
    box-shadow: 0 16px 40px rgba(8, 20, 16, 0.07);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.service_story .service_story_item:nth-child(1),
.service_story .service_story_item:nth-child(5) {
    --story-card: var(--story-dark);
    --story-card-ink: #f3eee5;
    --story-card-copy: rgba(243, 238, 229, 0.74);
    --story-card-border: rgba(243, 238, 229, 0.11);
}

.service_story .service_story_item:nth-child(3) {
    --story-card: var(--story-sand);
    --story-card-ink: #2b211b;
    --story-card-copy: rgba(43, 33, 27, 0.78);
    --story-card-border: rgba(96, 58, 35, 0.13);
}

.service_story .service_story_item::after {
    position: absolute;
    right: -38px;
    bottom: -66px;
    width: 160px;
    height: 160px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
    opacity: 0.07;
    pointer-events: none;
}

.service_story .service_story_item:hover {
    z-index: 1;
    border-color: rgba(217, 141, 89, 0.38);
    box-shadow: 0 24px 54px rgba(8, 20, 16, 0.13);
    transform: translateY(-3px);
}

.service_story_number {
    grid-area: number;
    color: var(--story-copper);
    font-family: Raleway, sans-serif;
    font-size: clamp(32px, 3.2vw, 52px);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.service_story_item_heading {
    grid-area: heading;
    min-width: 0;
}

.service_story .service_story_item_title,
.service_story .work_stages_title_1 {
    max-width: none;
    margin: 0;
    color: inherit;
    font-family: Raleway, sans-serif;
    font-size: clamp(22px, 1.7vw, 28px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.service_story .service_story_text,
.service_story .work_stages_text {
    grid-area: copy;
    max-width: 68ch;
    margin: clamp(16px, 1.4vw, 22px) 0 0;
    color: var(--story-card-copy);
    font-family: Raleway, sans-serif;
    font-size: clamp(15px, 1.02vw, 17px);
    font-weight: 400;
    line-height: 1.62;
}

.service_story_text a {
    display: inline !important;
    height: auto !important;
    padding-bottom: 1px;
    color: inherit !important;
    font: inherit !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--story-copper) !important;
}

.service_story_text a:hover {
    color: var(--story-copper) !important;
}

.service_story_progress {
    display: none !important;
}

@media (max-width: 1180px) {
    .service_story {
        grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
        gap: 28px;
    }

    .service_story .service_story_item {
        grid-template-columns: 58px minmax(0, 1fr);
        grid-template-areas:
            "number heading"
            "number copy";
        gap: 0 22px;
    }
}

@media (max-width: 760px) {
    .service_story {
        display: block;
        width: calc(100% - 24px);
        margin-top: 32px;
        padding: 25px 12px 20px;
        border-radius: 28px;
        background-size: 54px 54px;
    }

    .service_story_ambient {
        top: -130px;
        left: -190px;
        width: 390px;
    }

    .service_story_head {
        position: relative;
        top: auto;
        padding: 7px 10px 0;
    }

    .service_story_eyebrow {
        font-size: 11px;
    }

    .service_story .service_story_title,
    .service_story .work_stages_title {
        max-width: 12ch;
        margin-top: 16px;
        font-size: clamp(34px, 10.4vw, 42px);
        line-height: 1;
    }

    .service_story_intro {
        max-width: 31ch;
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.5;
    }

    .service_story_range {
        max-width: none;
        margin-top: 25px;
    }

    .service_story .service_story_list,
    .service_story .work_stages_blosk {
        display: flex;
        width: 100%;
        margin-top: 20px;
        overflow: hidden;
        gap: 12px;
        touch-action: pan-y;
    }

    .service_story .service_story_item {
        display: flex;
        width: 100% !important;
        min-width: 100%;
        min-height: 430px;
        padding: 24px 22px;
        flex-direction: column;
        gap: 0;
        border-radius: 24px;
    }

    .service_story_number {
        font-size: 40px;
    }

    .service_story_item_heading {
        margin-top: 26px;
    }

    .service_story .service_story_item_title,
    .service_story .work_stages_title_1 {
        max-width: 18ch;
        margin-top: 0;
        font-size: 25px;
        line-height: 1.08;
    }

    .service_story .service_story_text,
    .service_story .work_stages_text {
        max-width: none;
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.55;
    }

    .service_story .service_story_item::after {
        right: -48px;
        bottom: -76px;
    }

    .service_story_progress {
        display: block !important;
        width: calc(100% - 20px) !important;
        height: 3px !important;
        margin: 18px 10px 3px !important;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(21, 34, 31, 0.14) !important;
    }

    .service_story_progress_value {
        display: block !important;
        height: 100% !important;
        margin: 0;
        border-radius: inherit;
        background: var(--story-copper) !important;
    }
}

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