.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.engineer-hero-image-container {
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.engineer-hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Adjusting main header for this specific case study */
.main-header {
    background: linear-gradient(135deg, #3E1696, #250B60) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Results Table Styles - Apple Inspired Redesign */
.results-table-container {
    margin: 4rem 0;
    overflow-x: auto;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(55, 19, 133, 0.08);
    box-shadow: 0 20px 50px rgba(55, 19, 133, 0.04);
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Mulish', sans-serif;
    min-width: 800px;
}

.results-table th {
    background: #fafbfc;
    padding: 1.25rem 2rem;
    text-align: left;
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(55, 19, 133, 0.05);
}

.results-table td {
    padding: 2.25rem 2rem;
    text-align: left;
    border-bottom: 1px solid rgba(55, 19, 133, 0.03);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.results-table td:first-child {
    padding-left: 2.5rem;
}

.results-table td:last-child {
    padding-right: 2.5rem;
}

.results-table tr:last-child td {
    border-bottom: none;
}

/* Hover Effect */
.results-table tbody tr {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.results-table tbody tr:hover td {
    background-color: rgba(55, 19, 133, 0.015);
}

.results-table td strong {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    color: #1e293b;
    font-size: inherit;
    font-weight: 700;
}

.results-table .steps {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    max-width: 320px;
}

.results-table .percentage-metric {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
}

.results-table .benchmark {
    font-size: 1.1rem;
    font-weight: 500;
    color: #64748b;
}

/* Elite Gold Badge - Apple-style Pill with Animated Gold Border */
.elite-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.25rem;
    color: #1e293b !important;
    /* Premium Slate Black */
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    border-radius: 100px;
    background: #ffffff;
    position: relative;

    /* The animated golden border trick */
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, #d4af37, #fcf6ba, #d1a128, #fbf5b7, #a67c00, #d4af37);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% auto;

    animation: gold-border-shimmer 4s linear infinite;
    white-space: nowrap;
}

@keyframes gold-border-shimmer {
    0% {
        background-position: 0% 0%, 0% center;
    }

    100% {
        background-position: 0% 0%, 200% center;
    }
}

.ranking-cell {
    white-space: nowrap;
}

/* Framework Circles and Layout */
/* Benchmark Info & Tooltips - Apple Glassmorphic Style */
.benchmark-info-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.info-icon-container {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.info-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.info-icon-container:hover .info-icon {
    color: #371385;
    opacity: 1;
    transform: scale(1.1);
}

.info-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Mulish', sans-serif;
    width: max-content;
    max-width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    pointer-events: none;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(55, 19, 133, 0.9) transparent transparent transparent;
}

.info-icon-container:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Framework Section - Apple Inspired Redesign */
.framework-section {
    padding: 4rem 0 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.framework-container {
    padding: 0 2rem;
}

.framework-header {
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-subheading {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

.framework-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 6rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.framework-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 2rem 3rem 40px 3rem;
    border: 1px solid rgba(55, 19, 133, 0.08);
    /* Using primary color 371385 */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: flex-start;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(55, 19, 133, 0.03);
}

.framework-card:hover {
    transform: translateX(10px);
    box-shadow: 0 40px 80px rgba(55, 19, 133, 0.08);
    border-color: rgba(55, 19, 133, 0.15);
}

.framework-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: #371385;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.framework-card:hover::before {
    opacity: 1;
}

.card-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.step-number {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 7rem;
    font-weight: 200;
    color: rgba(55, 19, 133, 0.12);
    /* Increased from 0.06 for better visibility */
    line-height: 1;
    margin-bottom: 0.5rem;
    margin-left: -5px;
    transition: all 0.4s ease;
}

.framework-card:hover .step-number {
    color: rgba(55, 19, 133, 0.12);
    transform: scale(1.05);
}


.step-tag {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    /* Increased from 0.75rem for prominence */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    /* Slightly tighter for better balance at larger size */
    color: #371385;
    opacity: 0.8;
}


.step-title {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #1e293b;
    margin-bottom: 1.5rem !important;
    line-height: 1.1;
    text-align: left !important;
}

.step-subtitle {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #371385;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 0;
    font-weight: 500;
}

.step-details {
    padding-top: 1rem;
}


.step-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.step-details li:last-child {
    margin-bottom: 0;
}

.step-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #371385;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.framework-card:hover .step-details li::before {
    transform: translateX(3px);
}

.framework-visual {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.framework-diagram-container {
    width: 100%;
    max-width: 700px;
    padding: 0;
    border-radius: 0;
}

/* Case Showcase - Apple Inspired Open Layout */
.case-showcase {
    padding: 40px 0 40px 0;
    position: relative;
}

.case-showcase:last-of-type {
    border-bottom: none;
}

.case-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.case-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    gap: 2rem;
}

.case-identity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-id-tag {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #371385;
    opacity: 0.6;
}

.case-display-title {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -0.04em;
}

.case-stats-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-bottom: 0.5rem;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #371385;
    line-height: 1;
}

.stat-unit {
    font-size: 0.6em;
    vertical-align: baseline;
    margin-left: 2px;
}

.stat-description {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(55, 19, 133, 0.1);
}

.case-main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
}

.narrative-label {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #371385;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.narrative-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(55, 19, 133, 0.1);
}

.narrative-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 450;
}

.framework-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.framework-detail-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-marker {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #050505;
    letter-spacing: 0.1em;
}

.framework-detail-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.framework-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.framework-points li {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
    background: rgba(55, 19, 133, 0.04);
    border-radius: 8px;
    color: #371385;
    font-weight: 600;
    transition: all 0.2s ease;
}

.framework-points li:hover {
    background: #371385;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 19, 133, 0.15);
}

.highlight-result {
    grid-column: span 2;
    background: rgba(55, 19, 133, 0.03);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(55, 19, 133, 0.05);
}

.highlight-result p {
    font-size: 1.4rem !important;
    color: #1e293b !important;
}

/* Alternate Layout Shifts */
.showcase-alt {
    background: #fcfdfe;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .case-showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 24px;
    }

    .case-display-title {
        font-size: 4rem;
    }

    .case-main-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .framework-details-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .case-showcase {
        padding: 0 0 5rem 0;
    }

    .case-display-title {
        font-size: 3rem;
    }

    .case-stats-row {
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-description {
        font-size: 0.6rem;
        text-align: center;
    }

    .framework-details-grid {
        grid-template-columns: 1fr;
    }

    .highlight-result {
        grid-column: span 1;
    }

    /* Specific 4px gap for split Progress Framing steps */
    .progress-framing-part+.progress-framing-part {
        margin-top: -28px !important;
        /* Counteracts the 2rem (32px) grid gap to leave 4px */
        padding-top: 0 !important;
    }
}


/* Framework Diagram */
/* Unifying diagram styles above */

.framework-diagram {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.diagram-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1.5rem;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
}

/* Feature Visual Styles for funnels etc */
.case-feature-visual {
    margin: 24px 0 0 0;
    width: 100%;
}

.feature-visual-container {
    padding: 3rem;
    border-radius: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-visual-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-visual-container:hover .feature-visual-img {
    transform: scale(1.02);
}

.feature-visual-caption {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 2rem;
    font-family: 'Mulish', sans-serif;
    font-weight: 500;
}

@media (max-width: 768px) {
    .framework-diagram-container {
        padding: 1rem;
    }
}

.case-study-context {
    font-family: 'Bricolage Grotesque', 'Mulish', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* Consolidated with main definition */
.results-table-container {
    max-width: 100%;
}

.intro-subtitle {
    font-size: 1.5rem;
    color: #475569;
    font-weight: 600;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
    font-family: 'Mulish', sans-serif;
}

@media (max-width: 768px) {
    .intro-heading {
        margin-bottom: 24px !important;
        font-size: 30px;
    }

    .intro-subtitle {
        font-size: 1.1rem;
        margin-top: -1rem;
        margin-bottom: 2rem;
    }
}


.intro-heading,
.intro-subtitle,
.intro-text-container p {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}


/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.active,
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .feature-visual-container {
        padding: 0.5rem;
        /* Reduced from 1.5rem to make images bigger */
        border-radius: 20px;
    }

    .feature-visual-img {
        cursor: zoom-in;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .framework-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }

    .framework-card:hover {
        transform: translateY(-8px);
    }

    .step-number {
        font-size: 5rem;
    }

    .framework-card::before {
        width: 100%;
        height: 6px;
    }
}

/* Table Mobile Improvements */
@media (max-width: 768px) {
    .results-table-container {
        margin: 2rem 0;
        overflow-x: auto !important;
        width: 100%;
        max-width: 100%;
        display: block;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0;
    }

    /* Keep scrollbar always visible */
    .results-table-container::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

    .results-table-container::-webkit-scrollbar-track {
        background: rgba(55, 19, 133, 0.03);
        border-radius: 10px;
    }

    .results-table-container::-webkit-scrollbar-thumb {
        background: #c8c8c8;
        /* Primary purple color */
        border-radius: 10px;
    }

    .results-table {
        display: block;
        width: max-content;
        min-width: unset !important;
        background: #ffffff;
        border: 1px solid rgba(55, 19, 133, 0.08);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(55, 19, 133, 0.03);
        overflow: hidden;
    }

    /* Reset potential global paddings that interfere with mobile layout */
    .results-table td:last-child,
    .results-table th:last-child {
        padding-right: 10px !important;
    }

    .results-table td:first-child,
    .results-table th:first-child {
        padding-left: 10px !important;
    }

    .results-table thead,
    .results-table tbody {
        display: block;
    }

    .results-table tr {
        display: flex;
    }

    .results-table th,
    .results-table td {
        padding: 12px 10px !important;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Product (1st in DOM) */
    .results-table th:nth-child(1),
    .results-table td:nth-child(1) {
        width: 110px;
    }

    /* Onboarding Data (2nd in DOM) */
    .results-table th:nth-child(2),
    .results-table td:nth-child(2) {
        width: 150px;
    }

    /* Sign-up Rate (3rd in DOM) */
    .results-table th:nth-child(3),
    .results-table td:nth-child(3) {
        width: 80px;
    }

    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        width: 210px;
    }

    /* Percentile rank (5th in DOM) - Moved to 1st */
    .results-table th:nth-child(5),
    .results-table td:nth-child(5) {
        width: 140px;
        order: -1;
    }

    .results-table .steps {
        font-size: 0.85rem;
        min-width: unset;
        max-width: unset;
    }

    .results-table .percentage-metric {
        font-size: 1.1rem;
    }

    .results-table .benchmark {
        font-size: 0.9rem;
    }

    .elite-gold {
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem !important;
    }

    .info-tooltip {
        max-width: 120px;
    }
}

/* --- Case Study Gallery Carousel (matching index.html Gallery aesthetic) --- */
.case-carousel-section {
    padding: 16px 0 32px 0;
    width: 100%;
    overflow: hidden;
}

.case-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.case-gallery-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Extra padding to prevent shadow clipping */
    padding: 20px 0;
    margin: 0;

    /* Hide scrollbars */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */

    /* Soft edge fade to prevent abrupt cuts */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.case-gallery-viewport::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.case-gallery-track {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    width: max-content;
}

.case-gallery-item {
    flex: 0 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: none;
    box-sizing: border-box;
    width: 240px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.case-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.case-gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 32px;
}

.case-gallery-item.case-gallery-video {
    width: 300px;
}

.case-gallery-item:active {
    cursor: grabbing;
}

.case-gallery-item img {
    width: 100%;
    aspect-ratio: 240 / 515;
    object-fit: cover;
    object-position: top;
    background: #ffffff;
    border-radius: 32px;
    pointer-events: none;
    display: block;
}

/* Captions removed as per user request */

.case-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #371385;
    transition: all 0.2s ease;
}

.case-nav-arrow:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.05);
}

.case-nav-arrow.disabled {
    opacity: 0.2;
    pointer-events: none;
}

.case-nav-left {
    left: 5px;
}

.case-nav-right {
    right: 5px;
}

@media (max-width: 768px) {
    .case-carousel-section {
        padding: 2rem 0;
    }

    .case-carousel-container {
        padding: 0;
    }

    .case-gallery-track {
        gap: 16px;
    }

    .case-gallery-item {
        width: 160px;
        padding: 0;
        gap: 0;
        border-radius: 20px;
    }

    .case-gallery-item.case-gallery-video {
        width: 200px;
    }

    .case-gallery-item img {
        aspect-ratio: 240 / 515;
        object-fit: cover;
        object-position: top;
        border-radius: 20px;
    }

    .case-gallery-item video {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 20px;
    }

    /* Captions removed */

    .case-gallery-viewport {
        padding: 15px 0;
        margin: 0;
    }

    .case-nav-arrow {
        width: 34px;
        height: 34px;
    }
}

/* Image Modal Overlay */
.image-modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-body {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-body img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.2s ease;
}

.image-modal-close:hover {
    transform: scale(1.1);
}

.image-modal-info {
    margin-top: 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
}

.image-modal-overlay.active .image-modal-info {
    opacity: 1;
    transform: translateY(0);
}

.image-modal-caption {
    color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: -45px;
        right: -10px;
        font-size: 35px;
    }

    .image-modal-caption {
        font-size: 1.1rem;
    }
}

/* Case Article Card */
.case-article-card {
    display: block;
    text-decoration: none;
    max-width: 240px;
    background: #ffffff;
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(55, 19, 133, 0.08);
    box-shadow: 0 10px 30px rgba(55, 19, 133, 0.03);
    margin: 2rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(55, 19, 133, 0.08);
    border-color: rgba(55, 19, 133, 0.15);
}

.case-article-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: block;
}

.case-article-card .article-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #371385;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.case-article-card:hover .article-link {
    gap: 8px;
    opacity: 0.8;
}

.case-studies-intro {
    padding-bottom: 52px !important;
}