:root {
    --cs-brand: #0f172a;
    --cs-brand-hover: #1e293b;
    --cs-border: rgba(226, 232, 240, 0.85);
    --cs-text-main: #0f172a;
    --cs-text-sub: #475569;
    --cs-text-muted: #64748b;
    --cs-emerald: #10b981;
}

.case-studies-block-section {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(180deg, #faf8f5 0%, #ffffff 50%, #faf8f5 100%);
    border-bottom: 1px solid var(--cs-border);
    overflow: hidden;
}

.case-studies-block-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
}

.cs-ambient-mesh {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 1050px;
    height: 450px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.5) 0%, rgba(224, 231, 255, 0.4) 45%, rgba(255, 255, 255, 0) 75%);
    filter: blur(65px);
    pointer-events: none;
    z-index: 1;
}

.site-container {
    position: relative;
    z-index: 3;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 24px;
}

.cs-header-flex-row {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

.cs-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--cs-border);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--cs-brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.cs-pulse-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cs-emerald);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.cs-title-main {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--cs-text-main);
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin: 0 0 10px 0;
}

.cs-subtitle-sub {
    font-size: 1rem;
    color: var(--cs-text-sub);
    line-height: 1.6;
    margin: 0;
}

.btn-cs-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.btn-cs-viewall:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.cs-slider-viewport {
    position: relative;
    z-index: 3;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 10px 0 30px 0;
}

.cs-slider-viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.cs-slider-viewport:active {
    cursor: grabbing;
}

.cs-slider-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding: 0 24px;
}

.cs-carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-carousel-ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--cs-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cs-text-main);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    position: relative;
    z-index: 5;
}

.btn-carousel-ctrl:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: scale(1.08);
}

.cs-v1-bento-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: stretch;
}

.cs-v1-profile-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-radius: 28px;
    padding: 36px 30px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.25);
}

.v1-prof-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 9999px;
    width: fit-content;
}

.v1-prof-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 20px 0 10px 0;
    color: #ffffff;
}

.v1-prof-sub {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.v1-prof-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
}

.v1-metric-num {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    display: block;
    color: #ffffff;
}

.v1-metric-lbl {
    font-size: 0.72rem;
    color: #94a3b8;
}

.cs-v1-card-slide {
    width: 380px;
    background: #ffffff;
    border: 1px solid var(--cs-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.cs-v1-card-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.v1-slide-media-wrap {
    position: relative;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
    cursor: pointer;
    z-index: 4;
}

.v1-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cs-v1-card-slide:hover .v1-slide-img {
    transform: scale(1.06);
}

.v1-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    font-family: monospace;
    font-size: 0.8rem;
}

.v1-media-play-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    pointer-events: none;
}

.v1-slide-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 4;
}

.v1-slide-category {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--cs-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

.v1-slide-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cs-text-main);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.v1-slide-desc {
    font-size: 0.86rem;
    color: var(--cs-text-sub);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.v1-slide-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    position: relative;
    z-index: 5;
}

.v1-metric-pill {
    font-size: 0.82rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--cs-border);
}

.cs-v2-card-slide {
    position: relative;
    width: 420px;
    height: 480px;
    border-radius: 26px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--cs-border);
    cursor: pointer;
    z-index: 3;
}

.cs-v2-card-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16);
}

.v2-bg-asset {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cs-v2-card-slide:hover .v2-bg-asset {
    transform: scale(1.05);
}

.v2-floating-info-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--cs-border);
    z-index: 5;
}

.v2-info-text strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cs-text-main);
    display: block;
    margin-bottom: 4px;
}

.v2-info-text p {
    font-size: 0.82rem;
    color: var(--cs-text-muted);
    margin: 0;
}

.v2-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cs-v2-card-slide:hover .v2-arrow-btn {
    background: #334155;
    transform: scale(1.08);
}

.cs-v3-card-slide {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--cs-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 3;
}

.cs-v3-card-slide:hover {
    transform: translateY(-8px);
    border-color: #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.16);
}

.v3-visual-block {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid var(--cs-border);
    cursor: pointer;
    z-index: 4;
}

.v3-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cs-v3-card-slide:hover .v3-visual-img {
    transform: scale(1.06);
}

.v3-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    position: relative;
}

.placeholder-tech-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--cs-border);
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.v3-corner-arrow-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    text-decoration: none;
    z-index: 5;
}

.cs-v3-card-slide:hover .v3-corner-arrow-badge {
    background: #0f172a;
    color: #ffffff;
    transform: scale(1.08);
}

.v3-date-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 4;
    border: 1px solid var(--cs-border);
    pointer-events: none;
}

.v3-content-bottom-deck {
    background: transparent;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 4;
}

.v3-meta-tag-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v3-category-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid var(--cs-border);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.v3-region-tag {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid var(--cs-border);
    padding: 4px 8px;
    border-radius: 6px;
}

.v3-slide-headline {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--cs-text-main);
    line-height: 1.35;
    margin: 0;
}

.v3-slide-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 5;
}

.v3-slide-headline a:hover {
    color: #334155;
}

.v3-slide-narrative {
    font-size: 0.86rem;
    color: var(--cs-text-sub);
    line-height: 1.55;
    margin: 0;
}

.v3-bottom-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: auto;
}

.v3-spec-left {
    display: flex;
    flex-direction: column;
}

.v3-spec-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.v3-spec-lbl {
    font-size: 0.7rem;
    color: #64748b;
}

.v3-spec-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid var(--cs-border);
    padding: 4px 10px;
    border-radius: 9999px;
}

.v3-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cs-emerald);
}

.cs-nda-badge-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffff;
    color: #b45309;
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #fde68a;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.cs-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.cs-modal-backdrop.active {
    display: flex;
}

.cs-modal-card {
    background: #ffffff;
    border: 1px solid var(--cs-border);
    border-radius: 24px;
    max-width: 760px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25);
    position: relative;
    animation: csModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes csModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.cs-modal-header {
    background: #0f172a;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
}

.cs-modal-close-btn:hover {
    color: #ffffff;
}

.cs-modal-body {
    padding: 24px;
}

.cs-video-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

.cs-video-embed-frame iframe,
.cs-video-embed-frame video {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .cs-v1-bento-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-header-flex-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .cs-v1-card-slide,
    .cs-v2-card-slide,
    .cs-v3-card-slide {
        width: 320px;
    }
}