/* Case Study Detail — Figma node 20889:18617 (1440 frame) */
.case-study-detail {
    --cs-bg: #000000;
    --cs-text: #ffffff;
    --cs-muted: #ffffff;
    --cs-line: rgba(255, 255, 255, 0.2);
    --cs-pill-bg: rgba(255, 255, 255, 0.1);
    --cs-radius: 40px;
    --cs-page-inset: 120px;
    --cs-section-w: 760px;
    color: var(--cs-text);
    background-color: var(--cs-bg);
    padding-bottom: 80px;
    overflow: visible;
}

/* Neutralize Umbraco block grid chrome around the hero */
.case-study-detail .umb-block-grid,
.case-study-detail .umb-block-grid__layout-container,
.case-study-detail .umb-block-grid__layout-item,
.case-study-detail .umb-block-grid__area-container,
.case-study-detail .umb-block-grid__area {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    grid-template-columns: none;
}

/* ---------- Hero Rectangle 1 — 1420×870, 10px inset ---------- */
.cs-hero {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    width: calc(100% - 20px);
    max-width: none;
    height: 870px;
    min-height: 870px;
    margin: 10px;
    padding: 0 110px 110px;
    border-radius: var(--cs-radius);
    /* overflow on hero breaks backdrop-filter on the duration pill — clip media only */
    overflow: visible;
}

.cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--cs-radius);
    background-color: #000000;
    /* Keep rounded clip on the media layer only */
    clip-path: inset(0 round var(--cs-radius));
}

.cs-hero__bg-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.cs-hero__bg-img--mobile {
    display: none;
}

/* Frame 1000010248 — 1200 wide, gap 45 */
.cs-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 45px;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

.cs-hero__eyebrow {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 20px;
    font-weight: 500; /* Regular */
    line-height: 25px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-hero__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
}

.cs-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 45px;
    width: 100%;
}

/* Frame 1 (20889:18847) — Figma glass: rgba(255,255,255,0.1) + frosted blur */
.cs-hero__duration {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 15px 25px;
    border-radius: 9999px;
    /* Base fill from Figma + soft vertical sheen so glass reads on dark hero */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    font-family: "Nohemi", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.6px;
    color: #ffffff;
    white-space: nowrap;
    z-index: 2;
    isolation: isolate;
    overflow: hidden;
}

/* Specular top edge — glass highlight */
.cs-hero__duration::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.cs-hero__title {
    margin: 0;
    width: 100%;
    max-width: 1200px;
    font-family: "Nohemi", sans-serif;
    font-size: 100px;
    font-weight: 500; /* Regular */
    line-height: 110px;
    letter-spacing: 3px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-hero__desc {
    margin: 0;
    width: 892px;
    max-width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 200; /* Extra Light */
    line-height: 35px;
    letter-spacing: 0.54px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-hero__desc p {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

/* ---------- Content Frame 1171275689 — 760 wide @ x120, gap 150 ---------- */
.cs-section {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--cs-section-w);
    margin: 150px 0 0 var(--cs-page-inset);
    padding: 0;
}

/* ---------- Story + scroll-morph laptop (Hero → Clients) ---------- */
.cs-story {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    overflow: visible;
}

.cs-story__content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.cs-story__visual {
    grid-area: 1 / 1;
    justify-self: end;
    align-self: stretch;
    z-index: 1;
    width: min(52vw, 760px);
    pointer-events: none;
    overflow: visible;
}

/* Invisible sticky target — Problem → Clients pin rect */
.cs-story__end {
    position: sticky;
    top: 100px;
    width: 100%;
    height: calc(100vh - 100px);
    visibility: hidden;
    pointer-events: none;
}

/* Floater is unused in Hero; promoted to fixed only during morph + pin */
.cs-story__laptop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transform-origin: 0 0;
    backface-visibility: hidden;
}

.cs-story__laptop.is-floating {
    visibility: visible;
}

.cs-story__laptop img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    pointer-events: none;
}

.cs-hero__content,
.cs-section__label,
.cs-section__body {
    position: relative;
    z-index: 5;
}

@media (min-width: 992px) {
    /* Hide in-layout hero media only after the floater has taken over (same pixels) */
    .cs-story.is-morphing .cs-hero__bg {
        background-color: transparent;
    }

    .cs-story.is-morphing .cs-hero__bg-img--desktop,
    .cs-story.is-morphing .cs-hero__bg::after {
        visibility: hidden;
    }
}

/* Sticky needs visible overflow on ancestors — also inlined on html.page-cs-detail for first paint */
html.page-cs-detail {
    scrollbar-gutter: stable;
}

body:has(.case-study-detail),
html.page-cs-detail body {
    overflow-x: visible;
}

body:has(.case-study-detail) main,
html.page-cs-detail main {
    overflow: visible;
}

body:has(.case-study-detail) .footer-contact,
body:has(.case-study-detail) footer {
    position: relative;
    z-index: 6;
}

/* Header must paint at its settled top; do not interpolate position on first frames */
html.page-cs-detail header {
    top: 27px;
    transform: none;
}
@media (max-width: 991px) {
    html.page-cs-detail header {
        top: 0;
    }
}

/* Subtle section reveal — premium scroll, not a slideshow */
.case-study-detail [data-cs-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.case-study-detail [data-cs-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.case-study-detail [data-cs-reveal] .cs-section__label,
.case-study-detail [data-cs-reveal] .cs-section__body,
.case-study-detail [data-cs-reveal] .cs-problem-block,
.case-study-detail [data-cs-reveal] .cs-tech-item,
.case-study-detail [data-cs-reveal] .cs-testimonial {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-detail [data-cs-reveal].is-revealed .cs-section__label {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.05s;
}

.case-study-detail [data-cs-reveal].is-revealed .cs-section__body {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.14s;
}

.case-study-detail [data-cs-reveal].is-revealed .cs-problem-block:nth-child(1),
.case-study-detail [data-cs-reveal].is-revealed .cs-tech-item:nth-child(1),
.case-study-detail [data-cs-reveal].is-revealed .cs-testimonial:nth-child(1) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.18s;
}

.case-study-detail [data-cs-reveal].is-revealed .cs-problem-block:nth-child(2),
.case-study-detail [data-cs-reveal].is-revealed .cs-tech-item:nth-child(2),
.case-study-detail [data-cs-reveal].is-revealed .cs-testimonial:nth-child(2) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.28s;
}

.case-study-detail [data-cs-reveal].is-revealed .cs-tech-item:nth-child(3) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.36s;
}

.case-study-detail [data-cs-reveal].is-revealed .cs-tech-item:nth-child(4),
.case-study-detail [data-cs-reveal].is-revealed .cs-tech-item:nth-child(n+4) {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.44s;
}

@media (prefers-reduced-motion: reduce) {
    .case-study-detail [data-cs-reveal],
    .case-study-detail [data-cs-reveal] .cs-section__label,
    .case-study-detail [data-cs-reveal] .cs-section__body,
    .case-study-detail [data-cs-reveal] .cs-problem-block,
    .case-study-detail [data-cs-reveal] .cs-tech-item,
    .case-study-detail [data-cs-reveal] .cs-testimonial {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .cs-story__visual {
        display: none;
    }

    .cs-story.is-morphing .cs-hero__bg {
        background-color: #000000;
    }

    .cs-story.is-morphing .cs-hero__bg-img--desktop,
    .cs-story.is-morphing .cs-hero__bg::after {
        visibility: visible;
    }

    .case-study-detail [data-cs-reveal],
    .case-study-detail [data-cs-reveal] .cs-section__label,
    .case-study-detail [data-cs-reveal] .cs-section__body,
    .case-study-detail [data-cs-reveal] .cs-problem-block,
    .case-study-detail [data-cs-reveal] .cs-tech-item,
    .case-study-detail [data-cs-reveal] .cs-testimonial {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.cs-section:last-of-type {
    margin-bottom: 80px;
    padding-bottom: 20px;
    overflow: visible;
}

body:has(.case-study-detail) .footer-contact {
    margin-top: 0;
}

body:has(.case-study-detail) .footer-contact[data-cs-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(.case-study-detail) .footer-contact[data-cs-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.cs-divider {
    width: 100%;
    height: 0;
    margin: 0 0 50px;
    border: 0;
    border-top: 1px solid var(--cs-line);
}

.cs-section__inner {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
}

/* Figma clients row uses space-between (260 + 450 in 760) */
.cs-section__inner--between {
    justify-content: space-between;
    gap: 50px;
}

.cs-section__label {
    flex: 0 0 260px;
    width: 260px;
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 55px;
    letter-spacing: 1.2px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-section__body {
    flex: 0 0 450px;
    width: 450px;
    max-width: 450px;
    min-width: 0;
}

.cs-section__body p,
.cs-section__body li {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 35px;
    letter-spacing: 0.54px;
    color: #ffffff;
}

.cs-section__body p + p {
    margin-top: 35px;
}

.cs-section__body ul {
    list-style: disc;
    margin: 0;
    padding-left: 27px;
}

.cs-section__body li + li {
    margin-top: 35px;
}

.cs-section__body strong {
    font-weight: 600;
}

/* Problem statement — gap 70 between blocks, 35 title→text */
.cs-problem-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
}

.cs-problem-block + .cs-problem-block {
    margin-top: 70px;
}

.cs-problem-block__title {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 35px;
    letter-spacing: 0.66px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-problem-block__text {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 35px;
    letter-spacing: 0.54px;
    color: #ffffff;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
}

.cs-problem-block__text p {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

/* Technology stack — gap 30 between rows, logos h 67 */
.cs-tech-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.cs-tech-item + .cs-tech-item {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--cs-line);
}

.cs-tech-item__caption {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.54px;
    color: #ffffff;
}

.cs-tech-item__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    width: 100%;
}

.cs-tech-item__logos img {
    display: block;
    width: auto;
    height: 67px;
    max-width: 100%;
    object-fit: contain;
}

/* SQL Server logo in Figma is taller (107) — allow natural if ratio needs it */
.cs-tech-item__logos img[src*="sql"],
.cs-tech-item__logos img[alt*="SQL" i],
.cs-tech-item__logos img[alt*="Database" i] {
    height: 107px;
}

/* Testimonial — Figma 20889:18699: quote → meta gap 50; name → role ~15 */
.cs-testimonial {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    overflow: visible;
}

.cs-testimonial__quote {
    margin: 0;
    width: 100%;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 35px;
    letter-spacing: 0.54px;
    color: #ffffff;
}

.cs-testimonial__quote p {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.cs-testimonial__quote p + p {
    margin-top: 35px;
}

.cs-testimonial__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: auto;
    max-width: 100%;
    overflow: visible;
    padding-bottom: 4px; /* keep role descenders visible */
}

/* Higher specificity than .cs-section__body p (font-weight: 200) */
.cs-section__body .cs-testimonial__author {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 600; /* Figma Regular weight read as bold vs body Extra Light */
    line-height: 24px;
    letter-spacing: 0.54px;
    color: #ffffff;
}

.cs-section__body .cs-testimonial__role {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.39px;
    color: #ffffff;
    overflow: visible;
}

/* Fallback when rich text isn’t split (raw CMS HTML) */
.cs-section__body .cs-testimonial > p {
    margin: 0;
    font-family: "Nohemi", sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 35px;
    letter-spacing: 0.54px;
    color: #ffffff;
}

.cs-section__body .cs-testimonial > p:has(strong) {
    margin-top: 50px;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.54px;
}

.cs-section__body .cs-testimonial > p:has(strong) strong {
    font-weight: 600;
}

.cs-section__body .cs-testimonial > p:has(strong) + p {
    margin-top: 15px;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.39px;
    overflow: visible;
    padding-bottom: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
    .case-study-detail {
        --cs-page-inset: clamp(20px, 8vw, 120px);
    }

    .cs-hero {
        height: auto;
        min-height: 640px;
        aspect-ratio: 1420 / 870;
        padding: 80px clamp(24px, 6vw, 110px) clamp(48px, 6vw, 110px);
    }

    .cs-hero__title {
        font-size: clamp(42px, 7vw, 100px);
        line-height: 1.1;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 991px) {
    .cs-hero {
        width: calc(100% - 20px);
        min-height: 520px;
        aspect-ratio: auto;
        padding: 100px 40px 60px;
    }

    .cs-hero__content {
        gap: 28px;
    }

    .cs-hero__main,
    .cs-hero__copy {
        gap: 28px;
    }

    .cs-hero__title {
        font-size: 48px;
        line-height: 1.1;
    }

    .cs-section {
        margin-left: 20px;
        margin-right: 20px;
        max-width: none;
        width: auto;
    }

    .cs-section__inner {
        flex-direction: column;
        gap: 30px;
    }

    .cs-section__label,
    .cs-section__body {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
}

/* ---------- Mobile — Figma node 20922:21499 (375) ---------- */
@media (max-width: 767px) {
    .case-study-detail {
        --cs-page-inset: 15px;
        padding-bottom: 40px;
    }

    /* Hero — Figma 20922:22118: 365×695 card @ 5px inset, 345px content */
    .cs-hero {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: calc(100% - 10px);
        max-width: 365px;
        margin: 5px auto 0;
        border-radius: 20px;
        height: 695px;
        min-height: 695px;
        max-height: 695px;
        aspect-ratio: auto;
        padding: 360px 10px 15px;
        overflow: hidden;
    }

    /* Gradient spans full hero frame */
    .cs-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: 20px;
        background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.5) 33.807%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
    }

    .cs-hero__bg {
        inset: 0;
        width: auto;
        height: auto;
        border-radius: 20px;
        clip-path: inset(0 round 20px);
    }

    .cs-hero__bg::after {
        display: none;
    }

    .cs-hero__bg-img--desktop {
        display: none;
    }

    .cs-hero__bg-img--mobile {
        display: block;
    }

    /* Figma img fill on 4096×2731 asset — h 84.81%, left -72.55%, w 235.75%, top 0.7% */
    .cs-hero__bg-img {
        inset: auto;
        top: 0.7%;
        right: auto;
        bottom: auto;
        left: -72.55%;
        width: 235.75%;
        height: 84.81%;
        max-width: none;
        object-fit: fill;
        object-position: unset;
    }

    /* Frame 20922:21863 — 345×320 @ x15 */
    .cs-hero__content {
        position: relative;
        z-index: 1;
        gap: 30px;
        max-width: 345px;
        width: 100%;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    .cs-hero__main {
        gap: 20px;
        width: 100%;
    }

    /* 20922:21864 — Nohemi Regular */
    .cs-hero__eyebrow {
        margin: 0;
        font-size: 15px;
        font-weight: 500;
        line-height: 25px;
        letter-spacing: 6px;
        text-transform: uppercase;
        word-break: break-word;
    }

    /* 20922:21866 — flat pill */
    .cs-hero__duration {
        align-self: flex-start;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: 300;
        line-height: 20px;
        letter-spacing: 0.42px;
        white-space: pre;
        text-align: right;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        isolation: auto;
        overflow: visible;
    }

    .cs-hero__duration::before {
        display: none;
    }

    .cs-hero__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        max-width: 345px;
        flex-shrink: 0;
        color: #ffffff;
        font-family: "Nohemi", sans-serif;
        font-style: normal;
        word-break: break-word;
    }

    /* 20922:21869 — title block, 345×119 */
    .case-study-detail .cs-hero__title {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 345px;
        font-family: "Nohemi", sans-serif;
        font-size: 40px;
        font-weight: 400;
        font-style: normal;
        line-height: 45px;
        letter-spacing: 1.2px;
        color: #ffffff;
        white-space: normal;
        overflow-wrap: break-word;
        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;
    }

    /* 20922:21870 — description block, 345×80 @ y139 (20px gap) */
    .case-study-detail .cs-hero__desc {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 345px;
        font-family: "Nohemi", sans-serif;
        font-size: 14px;
        font-weight: 300;
        font-style: normal;
        line-height: 20px;
        letter-spacing: 0.42px;
        color: rgba(255, 255, 255, 0.6);
        opacity: 1;
        overflow: visible;
        word-break: break-word;
    }

    /* Sections: 15px side inset, 55px between sections / after hero */
    .cs-section {
        max-width: none;
        width: auto;
        margin: 55px 15px 0;
    }

    .cs-hero + .cs-section,
    .case-study-detail > .umb-block-grid + .cs-section {
        margin-top: 55px;
    }

    .cs-section:last-of-type {
        margin-bottom: 55px;
        padding-bottom: 8px;
    }

    /* Divider → content 35px; label → body 50px */
    .cs-divider {
        margin: 0 0 35px;
    }

    .cs-section__inner,
    .cs-section__inner--between {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 50px;
    }

    .cs-section__label {
        flex: none;
        width: 100%;
        max-width: 100%;
        font-size: 35px;
        font-weight: 300;
        line-height: 45px;
        letter-spacing: 1.05px;
    }

    .cs-section__body {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .cs-section__body p,
    .cs-section__body li {
        font-size: 16px;
        font-weight: 300;
        line-height: 30px;
        letter-spacing: 0.48px;
    }

    .cs-section__body p + p {
        margin-top: 30px;
    }

    .cs-section__body ul {
        padding-left: 24px;
    }

    .cs-section__body li + li {
        margin-top: 30px;
    }

    /* Problem blocks: 50 between blocks, 25 title→text */
    .cs-problem-block {
        gap: 25px;
    }

    .cs-problem-block + .cs-problem-block {
        margin-top: 50px;
    }

    .cs-problem-block__title {
        font-size: 20px;
        font-weight: 600;
        line-height: 35px;
        letter-spacing: 0.6px;
    }

    .cs-problem-block__text {
        font-size: 16px;
        font-weight: 300;
        line-height: 30px;
        letter-spacing: 0.48px;
    }

    /* Tech stack logos — Figma mobile heights */
    .cs-tech-item {
        gap: 20px;
    }

    .cs-tech-item + .cs-tech-item {
        margin-top: 30px;
        padding-top: 30px;
    }

    .cs-tech-item__caption {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 0.54px;
        white-space: normal;
    }

    .cs-tech-item__logos {
        gap: 50px;
    }

    .cs-tech-item__logos img {
        height: 57px;
    }

    .cs-tech-item__logos img[src*="sql"],
    .cs-tech-item__logos img[alt*="SQL" i],
    .cs-tech-item__logos img[alt*="Database" i] {
        height: 97px;
    }

    /* Testimonial — quote → meta 25px on mobile */
    .cs-testimonial {
        gap: 25px;
    }

    .cs-testimonial__quote {
        font-size: 16px;
        font-weight: 300;
        line-height: 30px;
        letter-spacing: 0.48px;
    }

    .cs-testimonial__meta {
        gap: 15px;
        padding-bottom: 6px;
    }

    .cs-section__body .cs-testimonial__author {
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0.54px;
    }

    .cs-section__body .cs-testimonial__role {
        font-size: 13px;
        font-weight: 300;
        line-height: 20px;
        letter-spacing: 0.39px;
        white-space: normal;
        overflow: visible;
        max-width: 100%;
    }

    .cs-section__body .cs-testimonial > p:has(strong) {
        margin-top: 25px;
        font-weight: 600;
    }

    .cs-section__body .cs-testimonial > p:has(strong) + p {
        margin-top: 15px;
        white-space: normal;
        overflow: visible;
    }

}
