:root {
    --case-bg: #040507;
    --case-bg-soft: #080b12;
    --case-card: rgba(255, 255, 255, .055);
    --case-line: rgba(255, 255, 255, .12);
    --case-text: rgba(255, 255, 255, .72);
    --case-red: #da3227;
    --case-blue: #1c509d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.case-page-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--case-bg);
    color: #fff;
}

body.case-page-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 85% 4%, rgba(218, 50, 39, .2), transparent 28%),
        radial-gradient(circle at 8% 22%, rgba(28, 80, 157, .34), transparent 34%),
        linear-gradient(180deg, #020407 0%, #05070b 45%, #030303 100%);
}

.case-main {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.case-page-header {
    z-index: 20;
}

/* Keep Case Studies header behavior identical to other Stack91 pages.
   Header stays out of normal document flow so hero content will not jump
   when the compact fixed menu appears on scroll. */
.case-page-body .case-page-header.hero-header {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 20;
    width: min(var(--site-container-max-width), calc(100% - (var(--section-padding-x) * 2)));
    padding-left: 0;
    padding-right: 0;
    transform: translateX(-50%);
    align-items: center;
}

.case-page-body .case-page-header .hero-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.case-page-body .case-page-header .hero-nav {
    margin-left: auto;
}

.case-page-body.hero-scrolled-menu-only .case-page-header.hero-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.case-hero .observe-reveal {
    transform: none !important;
}

.case-hero .observe-reveal.is-visible {
    transform: none !important;
}

.case-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: clamp(108px, 9vw, 170px);
    padding-bottom: clamp(70px, 7vw, 120px);
    background:
        linear-gradient(120deg, rgba(5, 8, 15, .92), rgba(4, 5, 7, .78)),
        radial-gradient(circle at 90% 15%, rgba(218, 50, 39, .28), transparent 38%),
        radial-gradient(circle at 12% 72%, rgba(28, 80, 157, .22), transparent 36%);
}

.case-hero::after {
    content: "";
    position: absolute;
    right: -16vw;
    top: -18vw;
    width: clamp(420px, 58vw, 920px);
    height: clamp(420px, 58vw, 920px);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 52%, rgba(218, 50, 39, .18) 53%, transparent 69%);
    opacity: .85;
    pointer-events: none;
}

.case-hero-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .32;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
}

.case-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

.case-orb-one {
    width: 180px;
    height: 180px;
    left: 10%;
    bottom: 12%;
    background: rgba(28, 80, 157, .24);
}

.case-orb-two {
    width: 150px;
    height: 150px;
    right: 14%;
    top: 24%;
    background: rgba(218, 50, 39, .28);
}

.case-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.case-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(44px, 5vw, 88px);
    color: rgba(255, 255, 255, .55);
    font-weight: 800;
    letter-spacing: 0px;
}

.case-breadcrumb a,
.case-breadcrumb strong {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.case-breadcrumb a:hover {
    color: var(--case-red);
}

.case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
    align-items: center;
    gap: clamp(28px, 5vw, 88px);
}

.case-eyebrow {
    margin: 0 0 20px;
    color: var(--case-red);
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-hero-title {
    max-width: 1080px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .86;
    letter-spacing: 0px;
}

.case-hero-text {
    max-width: 690px;
    margin: clamp(28px, 3vw, 44px) 0 0;
    color: rgba(255, 255, 255, .75);
    line-height: 1.55;
    letter-spacing: 0px;
}

.case-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: clamp(30px, 4vw, 52px);
}

.case-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(58px, 5vw, 72px);
    min-width: clamp(190px, 16vw, 240px);
    padding: 0 clamp(28px, 3vw, 42px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--case-red), #ff3d34);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0px;
    box-shadow: 0 24px 58px rgba(218, 50, 39, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

.case-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px rgba(218, 50, 39, .44), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.case-hero-panel {
    position: relative;
    min-height: 0;
    padding: clamp(22px, 2.4vw, 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: clamp(28px, 3vw, 46px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028)),
        radial-gradient(circle at 100% 0%, rgba(218, 50, 39, .15), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(28, 80, 157, .12), transparent 34%);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
}


.case-hero-image {
    padding: 0;
    aspect-ratio: 1080 / 1406;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.case-hero-image img {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    height: 110%;
    object-fit: contain;
    border-radius: 0;
}

.case-hero-image::before,
.case-hero-image::after {
    display: none;
}

.case-hero-panel::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -82px;
    border-radius: 50%;
    background: conic-gradient(from 20deg, rgba(218, 50, 39, .95), rgba(28, 80, 157, .6), rgba(255, 255, 255, .03), rgba(218, 50, 39, .95));
    opacity: .56;
    filter: blur(2px);
}

.case-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(255, 255, 255, .038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .11;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 125%);
    pointer-events: none;
}

.case-panel-top,
.case-panel-meta,
.case-panel-analytics,
.case-panel-summary {
    position: relative;
    z-index: 2;
}

.case-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, .68);
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-panel-top span {
    color: var(--case-red);
}

.case-panel-top strong {
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.case-panel-meta {
    margin-top: 18px;
}

.case-panel-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(28px, 2.6vw, 48px);
    font-weight: 900;
    line-height: .94;
    letter-spacing: 0px;
}

.case-panel-dot {
    color: var(--case-red);
}

.case-panel-lead {
    max-width: 520px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .73);
    line-height: 1.52;
    letter-spacing: 0px;
}

.case-panel-accent {
    display: inline-block;
    width: 72px;
    height: 3px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--case-red), rgba(255, 255, 255, .12));
}

.case-panel-analytics {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.case-analytics-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.case-analytics-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.case-analytics-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--case-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.case-analytics-copy h3 {
    margin: 0 0 4px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(16px, 1vw, 20px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
}

.case-analytics-copy p {
    max-width: 290px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.38;
    letter-spacing: 0px;
}

.case-analytics-spark {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.case-analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    min-width: 76px;
    height: 36px;
}

.case-analytics-bars span {
    width: 6px;
    height: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .23);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .03);
    animation: caseGrowBar .85s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.case-analytics-bars span.is-active {
    background: linear-gradient(180deg, #ff7b73, var(--case-red));
    box-shadow: 0 0 18px rgba(218, 50, 39, .2);
}

.case-analytics-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--case-red);
    box-shadow: 0 0 0 rgba(218, 50, 39, .48);
    animation: casePulse 1.8s ease-in-out infinite;
}

.case-panel-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 6px;
}

.case-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px 2px 0;
}

.case-summary-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .08);
    margin-right: 14px;
}

.case-summary-value {
    color: var(--case-red);
    font-family: var(--font-primary);
    font-size: clamp(18px, 1.3vw, 24px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0px;
}

.case-summary-label {
    max-width: 140px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0px;
}

@keyframes caseGrowBar {
    0% { height: 0; opacity: .35; }
    100% { height: var(--bar); opacity: 1; }
}

@keyframes casePulse {
    0%, 100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(218, 50, 39, .5); opacity: .9; }
    50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(218, 50, 39, 0); opacity: 1; }
}
 .case-value-section {
    position: relative;
    z-index: 3;
    padding-top: clamp(34px, 4vw, 64px);
    padding-bottom: clamp(34px, 4vw, 64px);
    background:
        linear-gradient(180deg, rgba(4, 5, 7, .96), rgba(5, 7, 11, .98)),
        radial-gradient(circle at 20% 0%, rgba(28, 80, 157, .16), transparent 30%),
        radial-gradient(circle at 82% 100%, rgba(218, 50, 39, .14), transparent 30%);
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.case-value-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.case-value-card {
    position: relative;
    min-height: 230px;
    padding: clamp(24px, 2.8vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: clamp(22px, 2.2vw, 34px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026)),
        radial-gradient(circle at 100% 0%, rgba(218, 50, 39, .18), transparent 36%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    transition: transform .45s ease, border-color .45s ease, background .45s ease;
}

.case-value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(218, 50, 39, .16), rgba(28, 80, 157, .14));
    transition: opacity .45s ease;
    pointer-events: none;
}

.case-value-card::after {
    content: "";
    position: absolute;
    left: clamp(24px, 2.8vw, 38px);
    right: clamp(24px, 2.8vw, 38px);
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--case-red), var(--case-blue));
    transform: scaleX(.32);
    transform-origin: left;
    transition: transform .45s ease;
}

.case-value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(218, 50, 39, .34);
}

.case-value-card:hover::before {
    opacity: 1;
}

.case-value-card:hover::after {
    transform: scaleX(1);
}

.case-value-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: clamp(38px, 4vw, 58px);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: rgba(255, 255, 255, .68);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0px;
    background: rgba(255, 255, 255, .045);
    z-index: 1;
}

.case-value-card h2,
.case-value-card p {
    position: relative;
    z-index: 1;
}

.case-value-card h2 {
    max-width: 360px;
    margin: 0 0 15px;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.case-review-heading::selection {
    color: #ffffff;
    background: #da3227;
}

.case-value-card p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.55;
    letter-spacing: 0px;
}

.case-list-section {
    position: relative;
    padding-top: clamp(70px, 7vw, 130px);
    padding-bottom: clamp(84px, 8vw, 150px);
    background: linear-gradient(180deg, #05070b 0%, #030303 100%);
}

.case-list {
    display: grid;
    gap: clamp(34px, 4vw, 74px);
}

.case-project {
    position: relative;
    border-radius: clamp(28px, 3.4vw, 56px);
    border: 1px solid rgba(255, 255, 255, .11);
    background: linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    overflow: hidden;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .36);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, box-shadow .45s ease, opacity .3s ease;
}

.case-project.is-hidden {
    display: none;
}

.case-project::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 70%) var(--my, 35%), rgba(218, 50, 39, .16), transparent 28%);
    opacity: 0;
    transition: opacity .45s ease;
}

.case-project:hover {
    transform: translateY(-10px);
    border-color: rgba(218, 50, 39, .28);
    box-shadow: 0 58px 140px rgba(0, 0, 0, .52), 0 0 80px rgba(218, 50, 39, .08);
}

.case-project:hover::before {
    opacity: 1;
}

.case-project-link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(360px, .82fr);
    min-height: clamp(480px, 42vw, 620px);
    color: inherit;
    text-decoration: none;
}

.case-project:nth-child(even) .case-project-link {
    grid-template-columns: minmax(360px, .82fr) minmax(0, .98fr);
}

.case-project:nth-child(even) .case-project-media {
    order: 2;
}

.case-project-media {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.case-project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .34) 100%);
    pointer-events: none;
}

.case-project-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform .85s cubic-bezier(.2, .8, .2, 1), filter .85s ease;
}

.case-project:hover .case-project-media img {
    transform: scale(1.1);
    filter: saturate(1.12) contrast(1.08);
}

.case-project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 4.5vw, 74px);
}

.case-project-type {
    margin: 0 0 18px;
    color: var(--case-red);
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-project-content h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .9;
    letter-spacing: 0px;
    font-size: 61px !important;
}

.case-project-content p.p-size {
    max-width: 560px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
    letter-spacing: 0px;
}

.case-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.case-project-meta span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
    font-weight: 800;
}

.case-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 42px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0px;
}

.case-project-cta b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--case-red);
    transition: transform .35s ease;
}

.case-project:hover .case-project-cta b {
    transform: translateX(4px);
}

.case-insight-section {
    position: relative;
    padding-top: clamp(82px, 8vw, 150px);
    padding-bottom: clamp(82px, 8vw, 150px);
    background:
        radial-gradient(circle at 18% 12%, rgba(28, 80, 157, .16), transparent 28%),
        radial-gradient(circle at 86% 72%, rgba(218, 50, 39, .12), transparent 30%),
        #05070b;
    overflow: hidden;
}

.case-insight-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    opacity: .32;
}

.case-insight-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 110px);
    align-items: start;
}

.case-insight-copy {
    position: sticky;
    top: 110px;
}

.case-insight-copy h2 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .94;
    letter-spacing: 0px;
}

.case-insight-lead {
    max-width: 560px;
    margin: clamp(22px, 2.2vw, 34px) 0 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
}

.case-insight-cards {
    display: grid;
    gap: 18px;
    counter-reset: outcomeCard;
}

.case-insight-card {
    position: relative;
    min-height: clamp(188px, 15vw, 232px);
    padding: clamp(26px, 2.6vw, 42px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 70px rgba(0, 0, 0, .22);
    overflow: hidden;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, background .45s ease, box-shadow .45s ease;
}

.case-insight-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 12%, rgba(218, 50, 39, .22), transparent 34%), radial-gradient(circle at 90% 100%, rgba(28, 80, 157, .20), transparent 36%);
    opacity: 0;
    transition: opacity .45s ease;
}

.case-insight-card::after {
    content: "";
    position: absolute;
    inset: auto 26px 0 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--case-red), rgba(28, 80, 157, .9), transparent);
    transform: scaleX(.58);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.case-insight-card:hover {
    transform: translate3d(0, -8px, 0);
    border-color: rgba(218, 50, 39, .32);
    background: rgba(255, 255, 255, .065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 34px 90px rgba(0, 0, 0, .34);
}

.case-insight-card:hover::before {
    opacity: 1;
}

.case-insight-card:hover::after {
    transform: scaleX(1);
}

.case-insight-number,
.case-insight-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--case-red), rgba(28, 80, 157, .84));
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(218, 50, 39, .22);
}

.case-insight-card h3 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 22px 0 10px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(26px, 2vw, 36px);
    line-height: 1.02;
    letter-spacing: 0px;
}

.case-insight-card p {
    position: relative;
    z-index: 1;
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.56;
}

.case-ready {
    padding-top: clamp(46px, 5vw, 90px);
    padding-bottom: clamp(80px, 8vw, 150px);
    background: #030303;
}

.case-ready-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 74px);
    border-radius: clamp(30px, 4vw, 62px);
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(135deg, rgba(218, 50, 39, .92), rgba(28, 80, 157, .82));
    box-shadow: 0 40px 130px rgba(0, 0, 0, .5);
}

.case-ready-card::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 38px solid rgba(255, 255, 255, .08);
}

.case-ready-card > * {
    position: relative;
    z-index: 1;
}

.case-ready-card span {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .82);
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-ready-card h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .9;
    letter-spacing: 0px;
}

.case-ready-btn {
    flex: 0 0 auto;
    background: #fff !important;
    color: #111 !important;
}

.observe-reveal {
    opacity: 0;
    transform: translate3d(0, 38px, 0);
    transition: opacity .85s ease var(--delay, 0s), transform .85s cubic-bezier(.2, .8, .2, 1) var(--delay, 0s);
}

.observe-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1180px) {
    .case-project-link,
    .case-project:nth-child(even) .case-project-link {
        grid-template-columns: 1fr;
    }

    .case-project:nth-child(even) .case-project-media {
        order: 0;
    }

    .case-project-media {
        min-height: clamp(320px, 48vw, 520px);
    }
}

@media (max-width: 1024px) {
    .case-hero-grid,
    .case-insight-grid {
        grid-template-columns: 1fr;
    }

    .case-hero-panel {
        min-height: 0;
    }

    .case-panel-heading {
        max-width: 620px;
    }

    .case-analytics-row {
        grid-template-columns: 68px minmax(0, 1fr) 120px;
    }

    .case-value-wrap {
        grid-template-columns: 1fr;
    }

    .case-value-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .case-hero {
        min-height: auto;
        padding-top: 110px;
    }

    .case-breadcrumb {
        margin-bottom: 40px;
    }

    .case-hero-title {
        letter-spacing: 0px;
        font-size: 40px !important;
    }

    .case-hero-actions {
        margin-top: 28px;
    }

    .case-hero-btn {
        width: 100%;
        min-width: 0;
    }

    .case-hero-panel {
        min-height: 0;
        border-radius: 28px;
    }

    .case-panel-heading {
        font-size: clamp(28px, 8vw, 42px);
    }

    .case-analytics-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px 0;
    }

    .case-analytics-icon {
        width: 52px;
        height: 52px;
    }

    .case-analytics-copy p {
        max-width: none;
    }

    .case-analytics-spark {
        justify-content: space-between;
        padding-left: 0;
    }

    .case-panel-summary {
        grid-template-columns: 1fr;
        margin-top: 8px;
    }

    .case-summary-item {
        padding: 16px 0;
    }

    .case-summary-item:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        margin-right: 0;
    }

    .case-value-section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .case-value-card {
        padding: 24px 22px 30px;
        border-radius: 26px;
    }

    .case-value-number {
        margin-bottom: 34px;
    }

    .case-project {
        border-radius: 30px;
    }

    .case-project-media {
        min-height: 260px;
    }

    .case-project-content {
        padding: 28px 22px 32px;
    }

    .case-project-meta span {
        font-size: 12px;
    }

    .case-ready-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-ready-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Case study detail pages */
.case-detail-body .case-page-header.hero-header {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 20;
    width: min(var(--site-container-max-width), calc(100% - (var(--section-padding-x) * 2)));
    padding-left: 0;
    padding-right: 0;
    transform: translateX(-50%);
    align-items: center;
}

.case-detail-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: clamp(116px, 9vw, 170px);
    padding-bottom: clamp(70px, 7vw, 120px);
    background: #000;
    isolation: isolate;
}

.case-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.58) 45%, rgba(0,0,0,.18) 100%),
        linear-gradient(180deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.82) 100%),
        var(--case-detail-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.case-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 20%, rgba(218, 50, 39, .22), transparent 34%),
        radial-gradient(circle at 10% 72%, rgba(28, 80, 157, .18), transparent 36%);
}

.case-detail-hero .observe-reveal,
.case-detail-hero .observe-reveal.is-visible {
    transform: none !important;
}

.case-detail-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(38px, 7vw, 120px);
}


.case-detail-hero-copy {
    max-width: 940px;
}

.case-detail-hero .case-detail-hero-image {
    display: none;
}

.case-back-link {
    display: inline-flex;
    width: fit-content;
    margin-bottom: clamp(24px, 3vw, 40px);
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0px;
    transition: color .3s ease, transform .3s ease;
}

.case-back-link:hover {
    color: var(--case-red);
    transform: translateX(-4px);
}

.case-detail-title {
    max-width: 950px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .86;
    letter-spacing: 0px;
}

.case-detail-lead {
    max-width: 720px;
    margin: clamp(28px, 3vw, 44px) 0 0;
    color: rgba(255,255,255,.76);
    line-height: 1.58;
    letter-spacing: 0px;
}

.case-detail-hero-image {
    position: relative;
    min-height: clamp(360px, 36vw, 560px);
    overflow: hidden;
    border-radius: clamp(30px, 4vw, 58px);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.055);
    box-shadow: 0 38px 120px rgba(0,0,0,.5), 0 0 100px rgba(218,50,39,.08);
}

.case-detail-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.26));
    pointer-events: none;
}

.case-detail-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
}

.case-detail-meta-section {
    padding-top: clamp(24px, 3vw, 44px);
    padding-bottom: clamp(48px, 5vw, 90px);
    background: #05070b;
}

.case-detail-meta {
    display: grid;
    grid-template-columns: .72fr 1.3fr .38fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(24px, 3vw, 44px);
    background: rgba(255,255,255,.08);
}

.case-detail-meta div {
    min-height: 150px;
    padding: clamp(24px, 3vw, 38px);
    background: rgba(255,255,255,.045);
}

.case-detail-meta span {
    display: block;
    margin-bottom: 14px;
    color: var(--case-red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-detail-meta strong {
    display: block;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: 1.05;
    letter-spacing: 0px;
}

.case-detail-overview,
.case-detail-breakdown,
.case-detail-process,
.case-detail-next {
    background: #05070b;
}

.case-detail-overview {
    padding-top: clamp(76px, 8vw, 150px);
    padding-bottom: clamp(70px, 7vw, 130px);
}

.case-detail-two-col {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 88px);
    align-items: start;
}

.case-detail-sticky {
    position: sticky;
    top: 110px;
}

.case-detail-sticky h2,
.case-detail-process-head h2,
.case-detail-next-card h2,
.case-detail-showcase-caption h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .94;
    letter-spacing: 0px;
}

.case-detail-rich p {
    margin: 0;
    color: rgba(255,255,255,.74);
    line-height: 1.72;
    letter-spacing: 0px;
}

.case-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.case-detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.045);
    font-weight: 900;
    font-size: 13px;
}

.case-detail-breakdown {
    padding-top: clamp(30px, 4vw, 70px);
    padding-bottom: clamp(82px, 8vw, 150px);
}

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

.case-detail-info-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(26px, 3vw, 42px);
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.case-detail-info-card::before {
    content: "";
    position: absolute;
    inset: auto 26px 0 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--case-red), transparent);
}

.case-detail-info-card span {
    display: inline-block;
    color: var(--case-red);
    font-weight: 900;
}

.case-detail-info-card h3 {
    margin: 22px 0 22px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(32px, 2.6vw, 48px);
    line-height: .95;
    letter-spacing: 0px;
}

.case-detail-info-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-detail-info-card li {
    position: relative;
    padding-left: 20px;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
}

.case-detail-info-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 7px;
    border-radius: 50%;
    background: var(--case-red);
}

.case-detail-info-card .case-detail-copy {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.68;
    letter-spacing: 0px;
}

.case-detail-showcase {
    padding-top: clamp(34px, 5vw, 90px);
    padding-bottom: clamp(82px, 8vw, 150px);
    background: #030303;
}

.case-detail-showcase-card {
    position: relative;
    min-height: clamp(560px, 58vw, 850px);
    overflow: hidden;
    border-radius: clamp(32px, 4vw, 70px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 42px 130px rgba(0,0,0,.55);
}

.case-detail-showcase-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.case-detail-showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82) 100%);
}

.case-detail-showcase-caption {
    position: absolute;
    left: clamp(24px, 5vw, 72px);
    right: clamp(24px, 5vw, 72px);
    bottom: clamp(26px, 4vw, 70px);
    z-index: 2;
    max-width: 820px;
}

.case-detail-process {
    padding-top: clamp(82px, 8vw, 150px);
    padding-bottom: clamp(82px, 8vw, 150px);
}

.case-detail-process-wrap {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 88px);
}

.case-detail-process-line {
    display: grid;
    gap: 16px;
    counter-reset: process;
}

.case-detail-process-step {
    position: relative;
    padding: clamp(22px, 2.5vw, 34px) clamp(24px, 3vw, 40px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    background: rgba(255,255,255,.045);
}

.case-detail-process-step span {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 900;
    letter-spacing: 0px;
}

.case-detail-process-step p {
    margin: 0;
    color: rgba(255,255,255,.68);
    line-height: 1.5;
}

.case-detail-next {
    padding-top: clamp(32px, 4vw, 70px);
    padding-bottom: clamp(70px, 7vw, 130px);
}

.case-detail-next-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: clamp(28px, 4vw, 56px);
    background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

@media (max-width: 1024px) {
    .case-detail-hero-inner,
    .case-detail-two-col,
    .case-detail-process-wrap,
    .case-detail-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .case-detail-sticky {
        position: relative;
        top: auto;
    }

    .case-detail-meta {
        grid-template-columns: 1fr;
    }

    .case-detail-meta div {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .case-detail-hero {
        min-height: auto;
        padding-top: 112px;
    }

    .case-detail-hero-image {
        min-height: 280px;
        border-radius: 28px;
    }

    .case-detail-info-card {
        min-height: auto;
    }

    .case-detail-showcase-card {
        min-height: 420px;
        border-radius: 30px;
    }

    .case-detail-next-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-detail-next-card .case-hero-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Case study detail: heading first, full-width paragraph below */
.case-detail-overview .case-detail-two-col {
    display: block;
    max-width: 1180px;
}

.case-detail-overview .case-detail-sticky {
    position: static;
    top: auto;
    max-width: 860px;
}

.case-detail-overview .case-detail-sticky h2 {
    max-width: 820px;
}

.case-detail-overview .case-detail-rich {
    max-width: 1120px;
    margin-top: clamp(24px, 3vw, 42px);
}

.case-detail-overview .case-detail-rich p {
    max-width: 1080px;
    font-size: clamp(18px, 1.45vw, 25px);
    line-height: 1.65;
    color: rgba(255,255,255,.74);
}

@media (max-width: 767px) {
    .case-detail-overview .case-detail-rich {
        margin-top: 22px;
    }

    .case-detail-overview .case-detail-rich p {
        font-size: 17px;
        line-height: 1.7;
    }
}

/* Case detail pages: Sparklin-inspired professional section flow */
.case-narrative-section,
.case-execution-section {
    padding-top: clamp(72px, 7vw, 128px);
    padding-bottom: clamp(72px, 7vw, 128px);
}

.case-execution-section {
    border-top: 1px solid rgba(255,255,255,.07);
}

.case-dual-story,
.case-outcome-band,
.case-takeaway-section {
    position: relative;
    background: #05070b;
}

.case-dual-story {
    padding-top: clamp(20px, 3vw, 58px);
    padding-bottom: clamp(72px, 7vw, 130px);
}

.case-dual-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
}

.case-text-panel {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 30vw, 500px);
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(28px, 3.8vw, 58px);
    background:
        radial-gradient(circle at 88% 10%, rgba(218,50,39,.18), transparent 36%),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.case-text-panel::after {
    content: "";
    position: absolute;
    left: clamp(28px, 4vw, 58px);
    right: clamp(28px, 4vw, 58px);
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--case-red), transparent);
    opacity: .8;
}

.case-text-panel h2,
.case-outcome-card h2,
.case-takeaway-card h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .94;
    letter-spacing: 0px;
}

.case-text-panel p:last-child,
.case-outcome-card p:last-child {
    max-width: 780px;
    margin: clamp(24px, 3vw, 38px) 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.68;
    letter-spacing: 0px;
}

.case-outcome-band {
    padding-top: clamp(72px, 7vw, 128px);
    padding-bottom: clamp(28px, 4vw, 74px);
}

.case-outcome-card {
    overflow: hidden;
    padding: clamp(34px, 5vw, 78px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(30px, 4vw, 64px);
    background:
        radial-gradient(circle at 12% 0%, rgba(28,80,157,.24), transparent 34%),
        radial-gradient(circle at 94% 18%, rgba(218,50,39,.18), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

.case-outcome-card h2 {
    max-width: 820px;
}

.case-outcome-card p:last-child {
    max-width: 1040px;
    font-size: clamp(18px, 1.35vw, 24px);
}

.case-takeaway-section {
    padding-top: clamp(28px, 4vw, 72px);
    padding-bottom: clamp(70px, 7vw, 130px);
}

.case-takeaway-card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 76px);
    border-radius: clamp(30px, 4vw, 64px);
    border: 1px solid rgba(255,255,255,.1);
    background: #0b0d12;
}

.case-takeaway-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(218,50,39,.14), transparent 42%),
        radial-gradient(circle at 90% 50%, rgba(28,80,157,.18), transparent 38%);
    pointer-events: none;
}

.case-takeaway-card > * {
    position: relative;
    z-index: 1;
}

.case-takeaway-card h2 {
    max-width: 1040px;
    font-size: clamp(38px, 5vw, 88px);
}

@media (max-width: 1024px) {
    .case-dual-story-grid {
        grid-template-columns: 1fr;
    }

    .case-text-panel {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .case-narrative-section,
    .case-execution-section,
    .case-dual-story,
    .case-outcome-band,
    .case-takeaway-section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .case-text-panel,
    .case-outcome-card,
    .case-takeaway-card {
        border-radius: 28px;
        padding: 26px;
    }

    .case-takeaway-card h2 {
        font-size: clamp(34px, 13vw, 58px);
    }
}

@media (max-width: 1024px) {
    .case-insight-copy {
        position: relative;
        top: auto;
    }

    .case-insight-lead {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .case-insight-section {
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .case-insight-copy h2 {
        letter-spacing: 0px;
    }

    .case-insight-card {
        min-height: auto;
        padding: 24px 22px 34px;
        border-radius: 26px;
    }

    .case-insight-number,
    .case-insight-card span {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* CMSMinds-style case study inner flow */
.case-detail-anchor-section,
.case-detail-highlights,
.case-reference-section,
.case-review-section {
    position: relative;
    background: #05070b;
}

.case-detail-anchor-section {
    padding-top: clamp(28px, 3vw, 46px);
    padding-bottom: clamp(28px, 3vw, 46px);    
}

.case-detail-anchor-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 0;
    margin: 0 auto;
    padding: 0 26px;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 0% 0%, rgba(218, 50, 39, .12), transparent 34%),
        rgba(255, 255, 255, .035);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.case-detail-anchor-nav a {
    position: relative;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 104px;
    padding: 18px 10px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    text-decoration: none;
    text-align: center;
    font-size: clamp(16px, 1.15vw, 18px);
    font-weight: 900;
    letter-spacing: 0px;
    transition: color .3s ease, transform .3s ease, background .3s ease;
}

.case-detail-anchor-nav a:not(:last-child)::before {
    content: "";
    position: absolute;
    right: 0;
    top: 32%;
    width: 1px;
    height: 36%;
    background: rgba(255, 255, 255, .08);
}

.case-detail-anchor-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--case-red), var(--case-blue));
    transform: translateX(-50%);
    transition: width .3s ease;
}

.case-detail-anchor-nav a:hover {
    color: #fff;
    background: rgba(218, 50, 39, .08);
    transform: translateY(-1px);
}

.case-detail-anchor-nav a:hover::after {
    width: 44px;
}

.case-detail-highlights {
    padding-top: clamp(24px, 4vw, 70px);
    padding-bottom: clamp(72px, 7vw, 130px);
}

.case-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(24px, 3vw, 44px);
    background: rgba(255,255,255,.08);
}

.case-highlight-card {
    min-height: 170px;
    padding: clamp(24px, 2.6vw, 38px);
    background:
        radial-gradient(circle at 92% 0%, rgba(218,50,39,.14), transparent 34%),
        rgba(255,255,255,.045);
}

.case-highlight-card span {
    display: block;
    margin-bottom: 16px;
    color: var(--case-red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-highlight-card strong {
    display: block;
    max-width: 320px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(21px, 1.9vw, 32px);
    line-height: 1.05;
    letter-spacing: 0px;
}

.case-section-head {
    margin-bottom: clamp(28px, 4vw, 64px);
}

.case-section-head h2 {
    max-width: 1050px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .96;
    letter-spacing: 0px;
}

.case-reference-section {
    padding-top: clamp(30px, 4vw, 80px);
    padding-bottom: clamp(76px, 7vw, 135px);
    background: #030303;
}

.case-reference-wrap {
    display: grid;
    gap: clamp(22px, 3vw, 42px);
}

.case-reference-head h2 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .96;
    letter-spacing: 0px;
}

.case-reference-grid {
    display: grid;
    grid-template-columns: 1.25fr .85fr .85fr;
    gap: clamp(16px, 2vw, 26px);
}

.case-reference-slot {
    position: relative;
    min-height: clamp(260px, 28vw, 440px);
    overflow: hidden;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: clamp(26px, 3vw, 48px);
    background:
        linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
        radial-gradient(circle at 78% 18%, rgba(218,50,39,.16), transparent 34%);
    box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.case-reference-slot::before {
    content: "";
    position: absolute;
    inset: clamp(18px, 2vw, 30px);
    border-radius: clamp(18px, 2vw, 30px);
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: .7;
}

.case-reference-slot span {
    position: absolute;
    left: clamp(22px, 2.5vw, 34px);
    bottom: clamp(22px, 2.5vw, 34px);
    color: rgba(255,255,255,.7);
    font-weight: 900;
    letter-spacing: 0px;
}

.case-review-section {
    padding-top: clamp(32px, 4vw, 74px);
    padding-bottom: clamp(70px, 7vw, 130px);
}

.case-review-card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 5vw, 78px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: clamp(30px, 4vw, 64px);
    background:
        radial-gradient(circle at 8% 0%, rgba(218,50,39,.18), transparent 34%),
        radial-gradient(circle at 96% 75%, rgba(28,80,157,.18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
}

.case-review-card blockquote {
    max-width: 1100px;
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(34px, 4vw, 74px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: 0px;
}

.case-review-author {
    display: grid;
    gap: 6px;
    margin-top: clamp(28px, 4vw, 52px);
}

.case-review-author strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.case-review-author span {
    color: rgba(255,255,255,.58);
    font-weight: 800;
}

@media (max-width: 1024px) {
    .case-highlight-grid,
    .case-reference-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-reference-grid .case-reference-slot:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .case-detail-anchor-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 12px 18px;
        min-height: auto;
    }

    .case-detail-anchor-nav a {
        min-height: 64px;
    }
}

@media (max-width: 767px) {
    .case-detail-anchor-section {
        padding-top: 22px;
        padding-bottom: 26px;
    }

    .case-detail-anchor-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
        border-radius: 18px;
    }

    .case-detail-anchor-nav a {
        min-height: 54px;
        padding: 12px 8px;
        font-size: 14px;
    }

    .case-highlight-grid,
    .case-reference-grid {
        grid-template-columns: 1fr;
    }

    .case-reference-grid .case-reference-slot:first-child {
        grid-column: auto;
    }

    .case-highlight-card {
        min-height: auto;
    }

    .case-reference-slot {
        min-height: 240px;
        border-radius: 28px;
    }

    .case-review-card {
        border-radius: 28px;
        padding: 26px;
    }

    .case-review-card blockquote {
        font-size: clamp(31px, 12vw, 54px);
    }
}


/* CMSMinds inspired challenge section - Stack91 dark theme */
.case-challenge-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(84px, 8vw, 150px);
    padding-bottom: clamp(84px, 8vw, 150px);
    background:
        radial-gradient(circle at 12% 8%, rgba(28, 80, 157, .15), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(218, 50, 39, .13), transparent 28%),
        linear-gradient(180deg, #05070b 0%, #030303 100%);
}

.case-challenge-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 72%);
}

.case-challenge-wrap {
    position: relative;
    z-index: 1;
}

.case-challenge-intro {
    max-width: 1080px;
    margin: 0 auto clamp(42px, 5vw, 78px);
    text-align: center;
}

.case-challenge-intro h2 {
    max-width: 920px;
    margin: 0 auto;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .93;
    letter-spacing: 0px;
}

.case-challenge-lead {
    max-width: 760px;
    margin: clamp(22px, 2.5vw, 34px) auto 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.68;
    letter-spacing: 0px;
}

.case-challenge-content {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
    align-items: stretch;
    gap: clamp(22px, 3vw, 44px);
}

.case-challenge-list {
    display: grid;
    gap: 14px;
}

.case-challenge-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 2vw, 32px);
    min-height: clamp(96px, 8vw, 126px);
    padding: clamp(22px, 2.2vw, 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: clamp(22px, 2vw, 32px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .026)),
        radial-gradient(circle at 100% 0%, rgba(218, 50, 39, .1), transparent 38%);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s ease, background .45s ease;
}

.case-challenge-item::before {
    content: "";
    position: absolute;
    inset: auto clamp(22px, 2.2vw, 32px) 0 clamp(22px, 2.2vw, 32px);
    height: 2px;
    background: linear-gradient(90deg, var(--case-red), rgba(28, 80, 157, .75), transparent);
    transform: scaleX(.22);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.case-challenge-item:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(218, 50, 39, .34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035)),
        radial-gradient(circle at 100% 0%, rgba(218, 50, 39, .16), transparent 42%);
}

.case-challenge-item:hover::before {
    transform: scaleX(1);
}

.case-challenge-number {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .62);
    font-family: var(--font-primary);
    font-size: clamp(40px, 4vw, 68px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: 0px;
}

.case-challenge-item:hover .case-challenge-number {
    color: var(--case-red);
    -webkit-text-stroke-color: transparent;
}

.case-challenge-item p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(18px, 1.35vw, 24px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0px;
}

.case-challenge-visual {
    position: sticky;
    top: 110px;
    min-height: 100%;
}

.case-challenge-visual-inner {
    position: relative;
    display: flex;
    min-height: clamp(420px, 40vw, 650px);
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(28px, 3vw, 46px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: clamp(28px, 3vw, 48px);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 80% 18%, rgba(218, 50, 39, .24), transparent 34%),
        radial-gradient(circle at 14% 82%, rgba(28, 80, 157, .20), transparent 34%),
        #080a10;
    box-shadow: 0 34px 110px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.case-challenge-visual-inner::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    border: 42px solid rgba(218, 50, 39, .22);
    animation: caseChallengeOrbit 7s ease-in-out infinite;
}

.case-challenge-visual-inner::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 42px;
    border: 1px dashed rgba(255, 255, 255, .14);
    background:
        linear-gradient(90deg, rgba(218, 50, 39, .22) 0 20%, transparent 20% 100%),
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, .045) 26px 27px);
    opacity: .62;
    transform: rotate(-5deg);
}

.case-challenge-visual-tag,
.case-challenge-visual-inner strong,
.case-challenge-visual-inner p {
    position: relative;
    z-index: 1;
}

.case-challenge-visual-tag {
    width: fit-content;
    margin-bottom: auto;
    padding: 10px 14px;
    border: 1px solid rgba(218, 50, 39, .32);
    border-radius: 999px;
    color: var(--case-red);
    background: rgba(218, 50, 39, .09);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-challenge-visual-inner strong {
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(34px, 3.3vw, 58px);
    font-weight: 900;
    line-height: .92;
    letter-spacing: 0px;
}

.case-challenge-visual-inner p {
    max-width: 320px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.5;
}

@keyframes caseChallengeOrbit {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 16px, 0) scale(1.05); }
}

@media (max-width: 1024px) {
    .case-challenge-content {
        grid-template-columns: 1fr;
    }

    .case-challenge-visual {
        position: relative;
        top: auto;
    }

    .case-challenge-visual-inner {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .case-challenge-section {
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .case-challenge-intro {
        text-align: left;
        margin-bottom: 34px;
    }

    .case-challenge-intro h2,
    .case-challenge-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .case-challenge-item {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
        padding: 22px;
        border-radius: 24px;
    }

    .case-challenge-number {
        font-size: 46px;
    }

    .case-challenge-item p {
        font-size: 17px;
    }

    .case-challenge-visual-inner {
        min-height: 300px;
        border-radius: 26px;
    }
}

/* Case detail: CMSMinds-style About and Highlights, adapted to Stack91 theme */
.case-detail-about {
    position: relative;
    padding-top: clamp(70px, 7vw, 120px);
    padding-bottom: clamp(44px, 5vw, 84px);
    background:
        radial-gradient(circle at 8% 0%, rgba(28, 80, 157, .14), transparent 34%),
        radial-gradient(circle at 92% 18%, rgba(218, 50, 39, .12), transparent 30%),
        #05070b;
}

.case-detail-about-wrap,
.case-detail-table-wrap {
    max-width: 1240px;
}

.case-detail-simple-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(38px, 3.4vw, 64px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0px;
}

.case-detail-about-copy {
    display: grid;
    gap: clamp(20px, 2vw, 32px);
    max-width: 1120px;
    margin-top: clamp(24px, 3vw, 42px);
}

.case-detail-about-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.75;
    letter-spacing: 0px;
}

.case-detail-about-copy a {
    color: var(--case-red);
    font-weight: 900;
    text-decoration: none;
}

.case-detail-about-copy a:hover {
    color: #fff;
}

.case-detail-highlights {
    position: relative;
    padding-top: clamp(42px, 5vw, 80px) !important;
    padding-bottom: clamp(80px, 8vw, 140px) !important;
    background:
        radial-gradient(circle at 16% 100%, rgba(28, 80, 157, .13), transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(218, 50, 39, .12), transparent 30%),
        #05070b;
}

.case-detail-table-wrap .case-detail-simple-title {
    margin-bottom: clamp(30px, 4vw, 64px);
}

.case-highlight-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028)),
        rgba(255, 255, 255, .035);
    box-shadow: 0 26px 90px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.case-highlight-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-highlight-row > div {
    border-right: 1px solid rgba(255, 255, 255, .13);
}

.case-highlight-row > div:last-child {
    border-right: 0;
}

.case-highlight-head {
    background: linear-gradient(135deg, rgba(218, 50, 39, .95), rgba(28, 80, 157, .86));
}

.case-highlight-head > div {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 20px clamp(20px, 2vw, 34px);
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(20px, 1.55vw, 28px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0px;
}

.case-highlight-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
        rgba(255, 255, 255, .035);
}

.case-highlight-body > div {
    min-height: 230px;
    padding: clamp(24px, 2.5vw, 38px) clamp(20px, 2vw, 34px);
}

.case-highlight-body p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(17px, 1.2vw, 21px);
    line-height: 1.58;
    letter-spacing: 0px;
}

.case-highlight-body p:last-child {
    margin-bottom: 0;
}

.case-detail-about-wrap.observe-reveal,
.case-detail-table-wrap.observe-reveal {
    transform: translate3d(0, 34px, 0);
}

.case-detail-about-wrap.observe-reveal.is-visible .case-detail-simple-title,
.case-detail-table-wrap.observe-reveal.is-visible .case-detail-simple-title,
.case-detail-about-wrap.observe-reveal.is-visible .case-detail-about-copy p,
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-table {
    animation: caseTextRise .85s cubic-bezier(.2, .8, .2, 1) both;
}

.case-detail-about-wrap.observe-reveal.is-visible .case-detail-about-copy p:nth-child(1) { animation-delay: .08s; }
.case-detail-about-wrap.observe-reveal.is-visible .case-detail-about-copy p:nth-child(2) { animation-delay: .16s; }
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-table { animation-delay: .1s; }

.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-head > div,
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-body > div {
    animation: caseCellReveal .75s cubic-bezier(.2, .8, .2, 1) both;
}

.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-head > div:nth-child(1),
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-body > div:nth-child(1) { animation-delay: .16s; }
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-head > div:nth-child(2),
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-body > div:nth-child(2) { animation-delay: .22s; }
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-head > div:nth-child(3),
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-body > div:nth-child(3) { animation-delay: .28s; }
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-head > div:nth-child(4),
.case-detail-table-wrap.observe-reveal.is-visible .case-highlight-body > div:nth-child(4) { animation-delay: .34s; }

@keyframes caseTextRise {
    0% { opacity: 0; transform: translate3d(0, 24px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes caseCellReveal {
    0% { opacity: 0; transform: translate3d(0, 18px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 1024px) {
    .case-highlight-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-highlight-row > div:nth-child(2) {
        border-right: 0;
    }

    .case-highlight-head > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .case-highlight-body > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }
}

@media (max-width: 767px) {
    .case-detail-about {
        padding-top: 58px;
        padding-bottom: 38px;
    }

    .case-highlight-row {
        grid-template-columns: 1fr;
    }

    .case-highlight-row > div,
    .case-highlight-row > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .case-highlight-row > div:last-child {
        border-bottom: 0;
    }

    .case-highlight-head > div {
        min-height: 58px;
        padding: 18px 22px;
    }

    .case-highlight-body > div {
        min-height: auto;
        padding: 22px;
    }
}


/* Project overview split layout with image space */
.case-project-overview {
    position: relative;
    overflow: hidden;
    padding-top: clamp(72px, 7vw, 130px);
    padding-bottom: clamp(72px, 7vw, 130px);
    background:
        radial-gradient(circle at 82% 16%, rgba(218, 50, 39, .13), transparent 28%),
        radial-gradient(circle at 12% 84%, rgba(28, 80, 157, .12), transparent 30%),
        #05070b;
}

.case-project-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .62fr);
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
}

.case-project-overview-copy {
    max-width: 880px;
}

.case-project-overview-copy h2 {
    margin: 0 0 clamp(26px, 3vw, 42px);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .96;
    letter-spacing: 0px;
}

.case-project-overview-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.72;
    letter-spacing: 0px;
}

.case-project-overview-copy p + p {
    margin-top: clamp(22px, 2.6vw, 34px);
}

.case-project-overview-copy p span {
    color: var(--case-red);
    font-weight: 900;
}

.case-project-overview-media {
    position: relative;
    min-height: clamp(360px, 35vw, 560px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: clamp(26px, 3vw, 44px);
    background:
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
        radial-gradient(circle at 74% 24%, rgba(218,50,39,.20), transparent 36%),
        radial-gradient(circle at 18% 88%, rgba(28,80,157,.18), transparent 34%);
    box-shadow: 0 28px 90px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10);
}

.case-project-overview-media::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: clamp(18px, 2vw, 30px);
    pointer-events: none;
}

.case-project-overview-media::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -76px;
    bottom: -78px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, rgba(218,50,39,.78), rgba(28,80,157,.45), rgba(255,255,255,.03), rgba(218,50,39,.78));
    opacity: .52;
}

.case-project-overview-placeholder {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 48px);
    text-align: center;
}

.case-project-overview-placeholder span {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--case-red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.case-project-overview-placeholder strong {
    max-width: 330px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(30px, 2.5vw, 48px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: 0px;
}

.case-project-overview-placeholder p {
    max-width: 300px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.64);
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .case-project-overview-grid {
        grid-template-columns: 1fr;
    }

    .case-project-overview-media {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .case-project-overview {
        padding-top: 62px;
        padding-bottom: 70px;
    }

    .case-project-overview-copy p {
        font-size: 16px;
        line-height: 1.68;
    }

    .case-project-overview-media {
        min-height: 280px;
        border-radius: 28px;
    }
}


/* Solution section - reference style adapted to Stack91 theme */
.case-solution-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(88px, 8vw, 132px);
    padding-bottom: clamp(92px, 8vw, 140px);
    background:
        radial-gradient(circle at 12% 18%, rgba(28, 80, 157, .10), transparent 32%),
        radial-gradient(circle at 88% 72%, rgba(218, 50, 39, .12), transparent 34%),
        #05070b;
}

.case-solution-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .08;
    pointer-events: none;
}

.case-solution-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
}

.case-solution-head {
    max-width: 880px;
    margin: 0 auto clamp(46px, 5vw, 76px);
    text-align: center;
}

.case-solution-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0px;
}

.case-solution-lead {
    max-width: 820px;
    margin: clamp(18px, 2vw, 26px) auto 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
    letter-spacing: 0px;
}

.case-solution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 38px);
}

.case-solution-card {
    min-height: 124px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(218, 50, 39, .10), rgba(28, 80, 157, .14)),
        rgba(255, 255, 255, .035);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
    transition-delay: calc(var(--i, 0) * .05s);
}

.case-solution-card:nth-child(even) {
    background:
        linear-gradient(135deg, rgba(28, 80, 157, .16), rgba(255, 255, 255, .045)),
        rgba(255, 255, 255, .035);
}

.case-solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(218, 50, 39, .38);
    background:
        linear-gradient(135deg, rgba(218, 50, 39, .16), rgba(28, 80, 157, .18)),
        rgba(255, 255, 255, .045);
    box-shadow: 0 32px 82px rgba(0, 0, 0, .36), 0 0 36px rgba(218, 50, 39, .10);
}

.case-solution-check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--case-red), var(--case-blue));
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 24px rgba(218, 50, 39, .24);
}

.case-solution-card p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0px;
}

@media (max-width: 767px) {
    .case-solution-section {
        padding-top: 72px;
        padding-bottom: 78px;
    }

    .case-solution-head {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .case-solution-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .case-solution-grid {
        grid-template-columns: 1fr;
    }

    .case-solution-card {
        min-height: auto;
        align-items: flex-start;
        border-radius: 18px;
    }
}

/* Updated inner case study result section: premium split layout with 4-image grid */
.case-outcome-band {
    position: relative;
    overflow: hidden;
    padding-top: clamp(86px, 8vw, 136px);
    padding-bottom: clamp(88px, 8vw, 140px);
    background:
        radial-gradient(circle at 14% 20%, rgba(28, 80, 157, .18), transparent 34%),
        radial-gradient(circle at 86% 72%, rgba(218, 50, 39, .14), transparent 34%),
        linear-gradient(180deg, #05070b 0%, #070a11 54%, #030303 100%);
}

.case-outcome-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
    background-size: 66px 66px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.78) 42%, transparent 100%);
    opacity: .38;
}

.case-outcome-band::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(70vw, 960px);
    height: min(70vw, 960px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,.055), transparent 62%);
    pointer-events: none;
    opacity: .72;
}

.case-outcome-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(42px, 6vw, 110px);
}

.case-result-visual {
    position: relative;
    min-width: 0;
}

.case-result-image-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.25vw, 18px);
    padding: clamp(12px, 1.4vw, 20px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: clamp(28px, 3vw, 44px);
    background:
        linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
        rgba(255,255,255,.028);
    box-shadow: 0 34px 95px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(16px);
}

.case-result-image-grid::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(218,50,39,.42), rgba(255,255,255,.12), rgba(28,80,157,.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .76;
}

.case-result-grid-item {
    position: relative;
    aspect-ratio: 2 / 2.3;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: clamp(18px, 2vw, 28px);
    background: rgba(255,255,255,.055);
    transform: none;
}

.case-result-grid-item--empty {
    background:
        radial-gradient(circle at 30% 28%, rgba(255,255,255,.08), transparent 12%),
        linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        rgba(255,255,255,.03);
}

.case-result-grid-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.38));
    pointer-events: none;
}

.case-result-grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform .7s ease, filter .7s ease;
}

.case-result-image-grid:hover .case-result-grid-item img {
    transform: scale(1.09);
    filter: saturate(1.08) contrast(1.03);
}

.case-result-content {
    max-width: 860px;
}

.case-result-content h2 {
    margin: 0 0 clamp(24px, 2.8vw, 38px);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0px;
}

.case-result-intro {
    max-width: 880px;
    margin: 0 0 clamp(26px, 3vw, 40px);
    color: rgba(255,255,255,.80);
    font-weight: 800;
    line-height: 1.72;
    letter-spacing: 0px;
}

.case-result-list {
    display: grid;
    gap: clamp(16px, 1.55vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-result-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: clamp(16px, 1.45vw, 22px);
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 22px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.case-result-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(218,50,39,.92), rgba(28,80,157,.92));
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    transform: none;
}

.case-result-list p {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: clamp(16px, 1.06vw, 20px);
    font-weight: 800;
    line-height: 1.54;
    letter-spacing: 0px;
}

@media (max-width: 1024px) {
    .case-outcome-wrap {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .case-result-image-grid {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .case-outcome-band {
        padding-top: 68px;
        padding-bottom: 72px;
    }

    .case-outcome-wrap {
        gap: 32px;
    }

    .case-result-image-grid {
        gap: 10px;
        padding: 10px;
        border-radius: 24px;
    }

    .case-result-grid-item {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
        transform: none;
    }

    .case-result-content h2 {
        margin-bottom: 22px;
    }

    .case-result-intro {
        font-size: 16px;
        line-height: 1.68;
        margin-bottom: 24px;
    }

    .case-result-list {
        gap: 14px;
    }

    .case-result-list li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
        border-radius: 18px;
    }

    .case-result-list span {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .case-result-list p {
        font-size: 15.5px;
        line-height: 1.55;
    }
}

/* Updated inner case study client feedback section */
.case-review-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(76px, 8vw, 132px);
    padding-bottom: clamp(78px, 8vw, 136px);
    background:
        radial-gradient(circle at 12% 18%, rgba(28, 80, 157, .10), transparent 32%),
        radial-gradient(circle at 88% 72%, rgba(218, 50, 39, .12), transparent 34%),
        #05070b;
    color: #ffffff;
}

.case-review-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .08;
    pointer-events: none;
}

.case-review-wrap {
    position: relative;
    z-index: 1;
}

.case-review-heading {
    margin: 0 0 clamp(54px, 6vw, 92px);
    text-align: center;
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0px;
}

.case-review-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: clamp(38px, 5vw, 78px);
    width: min(100%, 1280px);
    min-height: clamp(310px, 25vw, 410px);
    margin: 0 auto;
    padding: clamp(48px, 5vw, 72px) clamp(42px, 5vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(218, 50, 39, .10), rgba(28, 80, 157, .14)),
        rgba(255, 255, 255, .035);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
}

.case-review-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 50%, rgba(218, 50, 39, .10), transparent 26%), radial-gradient(circle at 90% 30%, rgba(28, 80, 157, .12), transparent 28%);
    opacity: .9;
}

.case-review-avatar {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .10);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(135deg, rgba(28, 80, 157, .40), rgba(218, 50, 39, .32)),
        rgba(255, 255, 255, .04);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}


.case-review-avatar img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}

.case-review-avatar span {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0px;
}

.case-review-copy {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.case-review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: clamp(20px, 2vw, 28px);
    color: #da3227;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1;
    text-shadow: 0 0 18px rgba(218, 50, 39, .20);
}

.case-review-card blockquote {
    max-width: 900px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-family: var(--font-primary);
    font-size: clamp(17px, 1.15vw, 22px);
    font-weight: 700;
    line-height: 1.72;
    letter-spacing: 0px;
}

.case-review-author {
    display: grid;
    gap: 6px;
    margin-top: clamp(26px, 3vw, 36px);
}

.case-review-author strong {
    color: #ffffff;
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0px;
}

.case-review-author span {
    color: rgba(255, 255, 255, .68);
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 700;
    letter-spacing: 0px;
}

.case-review-quote {
    position: absolute;
    right: clamp(26px, 3.5vw, 54px);
    bottom: clamp(24px, 3vw, 42px);
    z-index: 1;
    color: rgba(255, 255, 255, .18);
    font-family: Georgia, serif;
    font-size: clamp(54px, 5vw, 86px);
    font-weight: 900;
    line-height: .65;
    letter-spacing: 0px;
}

@media (max-width: 1024px) {
    .case-review-card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 30px;
        padding: 42px 34px;
    }

    .case-review-avatar {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 767px) {
    .case-review-section {
        padding-top: 64px;
        padding-bottom: 76px;
    }

    .case-review-heading {
        margin-bottom: 34px;
    }

    .case-review-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
        min-height: auto;
        padding: 30px 22px 70px;
        border-radius: 18px;
    }

    .case-review-avatar {
        justify-self: start;
        width: 82px;
        height: 82px;
    }

    .case-review-card blockquote {
        font-size: 16px;
        line-height: 1.62;
    }

    .case-review-author strong {
        font-size: 24px;
    }

    .case-review-quote {
        right: 22px;
        bottom: 20px;
        font-size: 56px;
    }
}

/* More case studies grid section for inner case study pages */
.more-case-studies-section {
    position: relative;
    overflow: hidden;
    padding-top: clamp(80px, 8vw, 132px);
    padding-bottom: clamp(84px, 8vw, 140px);
    background:
        radial-gradient(circle at 12% 18%, rgba(28, 80, 157, .10), transparent 32%),
        radial-gradient(circle at 88% 72%, rgba(218, 50, 39, .12), transparent 34%),
        #05070b;
    color: #ffffff;
}

.more-case-studies-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .08;
    pointer-events: none;
}

.more-case-studies-wrap {
    position: relative;
    z-index: 1;
}

.more-case-studies-head {
    max-width: 860px;
    margin: 0 auto clamp(46px, 5vw, 72px);
    text-align: center;
}

.more-case-studies-head .case-eyebrow {
    margin-bottom: 12px;
    color: #da3227;
}

.more-case-studies-head h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-primary);
    font-weight: 900;
    line-height: .98;
    letter-spacing: 0px;
}

.more-case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 3vw, 42px);
}

.more-case-card {
    min-width: 0;
    padding: clamp(14px, 1.2vw, 18px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(218, 50, 39, .10), rgba(28, 80, 157, .14)),
        rgba(255, 255, 255, .035);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.more-case-card:nth-child(even) {
    background:
        linear-gradient(135deg, rgba(28, 80, 157, .16), rgba(255, 255, 255, .045)),
        rgba(255, 255, 255, .035);
}

.more-case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(218, 50, 39, .38);
    background:
        linear-gradient(135deg, rgba(218, 50, 39, .16), rgba(28, 80, 157, .18)),
        rgba(255, 255, 255, .045);
    box-shadow: 0 32px 82px rgba(0, 0, 0, .36), 0 0 36px rgba(218, 50, 39, .10);
}

.more-case-image {
    display: block;
    height: clamp(210px, 16vw, 300px);
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .20);
}

.more-case-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.more-case-card:hover .more-case-image img {
    transform: scale(1.055);
}

.more-case-content {
    padding: 22px 4px 4px;
}

.more-case-content span {
    display: inline-flex;
    margin-bottom: 10px;
    color: #da3227;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.more-case-content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: clamp(24px, 1.8vw, 34px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0px;
}

.more-case-content p {
    max-width: 94%;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0px;
}

.more-case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: clamp(15px, 1vw, 17px);
    font-weight: 900;
    text-decoration: none;
    transition: color .3s ease, transform .3s ease;
}

.more-case-link:hover {
    color: #da3227;
    transform: translateX(4px);
}

.more-case-studies-action {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: clamp(18px, 2vw, 28px);
    margin-top: clamp(44px, 5vw, 72px);
}

.more-case-studies-action::before,
.more-case-studies-action::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    opacity: .95;
}

.more-case-studies-action::before {
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(28, 80, 157, .58) 38%, rgba(218, 50, 39, .88) 100%);
}

.more-case-studies-action::after {
    background: linear-gradient(90deg, rgba(218, 50, 39, .88) 0%, rgba(28, 80, 157, .58) 62%, rgba(255,255,255,0) 100%);
}

.more-case-all-btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #da3227, #1c509d);
    box-shadow: 0 18px 46px rgba(218, 50, 39, .24);
    padding: 20px 20px;
    border-radius: 50px;
    color: #ffffff;
}

.more-case-all-btn:hover {
    background: linear-gradient(135deg, #1c509d, #da3227);
}

@media (max-width: 1024px) {
    .more-case-studies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .more-case-studies-section {
        padding-top: 64px;
        padding-bottom: 78px;
    }

    .more-case-studies-head {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .more-case-studies-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .more-case-image {
        height: 230px;
        border-radius: 18px;
    }

    .more-case-content p {
        max-width: 100%;
    }

    .more-case-studies-action {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .more-case-studies-action::before,
    .more-case-studies-action::after {
        display: none;
    }

    .more-case-all-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Case study supplied mockup/challenge images */
.case-project-overview-media.has-case-image {
    background: #05070b;
}

.case-project-overview-media.has-case-image::before,
.case-project-overview-media.has-case-image::after,
.case-challenge-visual-inner.has-case-image::before,
.case-challenge-visual-inner.has-case-image::after {
    display: none;
}

.case-project-overview-image,
.case-challenge-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.case-challenge-visual-inner.has-case-image {
    padding: 0;
    background: #05070b;
}
section#case-studies {
    padding-bottom: 0px;
}
/* Case Study dynamic rebuild refinements */
.case-result-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0;
}

.case-result-gallery-head small {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.case-result-drag-gallery {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    cursor: grab;
    padding: 4px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(218, 50, 39, .75) rgba(255, 255, 255, .08);
}

.case-result-drag-gallery.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.case-result-drag-gallery .case-result-grid-item {
    flex: 0 0 min(340px, 82vw);
    scroll-snap-align: start;
    margin: 0;
}

.case-result-drag-gallery .case-result-grid-item img {
    pointer-events: none;
}

.acf-field[data-name="case_study_result_images"] .acf-label label::after {
    content: "  (drag images to reorder)";
    color: #da3227;
    font-weight: 700;
}


/* Stack91 fix: keep every Case Studies listing card the same size, even when uploaded images have different dimensions. */
.case-list .case-project-link {
    height: clamp(480px, 42vw, 620px);
    min-height: 0;
}

.case-list .case-project-media {
    height: 100%;
    min-height: 0;
}

.case-list .case-project-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991px) {
    .case-list .case-project-link {
        height: auto;
        min-height: 0;
    }

    .case-list .case-project-media {
        height: auto;
        min-height: clamp(270px, 62vw, 420px);
        aspect-ratio: 16 / 10;
    }
}


/* Prompt Dairy Mart case-study image: fit the complete box width and height. */
.case-list .case-project--prompt-dairy .case-project-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
    transform: none;
}

/* Inner Case Study Highlights: mobile-only heading/content pairing */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .case-detail-highlights .case-highlight-table {
        display: grid;
        grid-template-columns: 1fr;
    }

    .case-detail-highlights .case-highlight-head,
    .case-detail-highlights .case-highlight-body {
        display: contents;
    }

    .case-detail-highlights .case-highlight-head > div:nth-child(1) { order: 1; }
    .case-detail-highlights .case-highlight-body > div:nth-child(1) { order: 2; }
    .case-detail-highlights .case-highlight-head > div:nth-child(2) { order: 3; }
    .case-detail-highlights .case-highlight-body > div:nth-child(2) { order: 4; }
    .case-detail-highlights .case-highlight-head > div:nth-child(3) { order: 5; }
    .case-detail-highlights .case-highlight-body > div:nth-child(3) { order: 6; }
    .case-detail-highlights .case-highlight-head > div:nth-child(4) { order: 7; }
    .case-detail-highlights .case-highlight-body > div:nth-child(4) { order: 8; }

    .case-detail-highlights .case-highlight-head > div {
        min-height: auto;
        padding: 18px 22px 9px;
        border-right: 0;
        border-bottom: 0;
        background: linear-gradient(135deg, rgba(218, 50, 39, .95), rgba(28, 80, 157, .86));
    }

    .case-detail-highlights .case-highlight-body > div {
        min-height: auto;
        padding: 8px 22px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .case-detail-highlights .case-highlight-body > div:last-child {
        border-bottom: 0;
    }
}
