/* Story Scroll Section */
.story-section {
    background-color: #ffffff;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    position: relative;
    padding: 0 2rem;
}

/* Left: Sticky Image Column */
.story-image-column {
    width: 45%;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 8rem;
    height: calc(100vh - 10rem);
    min-height: 500px;
    max-height: 800px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

.story-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 3rem 2rem 2rem 2rem;
    color: white;
}

.story-name {
    margin: 0;
    font-size: var(--heading-lg);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.story-role {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Right: Scrolling Content Column */
.story-content-column {
    width: 55%;
    padding-left: 3rem;
    padding-top: 6rem;
}

.story-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--slate);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.story-headline {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-bg-dark);
    margin: 0 0 4rem 0;
    font-family: 'Inter', sans-serif;
}

.story-headline .highlight {
    color: var(--color-dmf);
}

/* Chapters */
.story-chapters {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

.chapter {
    display: flex;
    gap: 2rem;
}

.chapter-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    font-family: monospace;
    padding-top: 0.25rem;
}

.chapter-content {
    flex: 1;
}

.chapter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin: 0 0 1rem 0;
}

.chapter-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--slate);
    margin: 0;
}

.chapter-logo {
    display: block;
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.chapter-logo-ey {
    height: 30px; /* EY logo usually needs to be slightly smaller to optically match */
}

.chapter-logo-dmf {
    height: 28px; /* DMF logo adjusted for optical balance */
}

/* Stats */
.story-stats-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    margin-bottom: 1rem;
    margin-top: 3rem;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0;
    margin-bottom: 4rem;
    padding: 2.5rem 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    color: var(--color-bg-dark);
}

.stat-counter {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-prefix {
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--color-bg-dark);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.stat-desc {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate);
    font-weight: 600;
    white-space: normal;
    line-height: 1.3;
}

/* Quote */
.story-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--slate);
    border-left: 4px solid var(--color-dmf);
    padding-left: 2rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .story-section {
        padding: 4rem 0;
    }
    .story-container {
        flex-direction: column;
    }
    .story-image-column {
        width: 100%;
        margin-bottom: 2.5rem;
    }
    .sticky-wrapper {
        position: relative;
        top: 0;
        height: 55vh;
        min-height: 400px;
    }
    .story-content-column {
        width: 100%;
        padding-left: 0;
        padding-top: 0;
    }
    .story-headline {
        margin-bottom: 2.5rem;
    }
    .story-chapters {
        gap: 3rem;
        margin-bottom: 3.5rem;
    }
    .story-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .stat-box {
        padding-bottom: 0;
        border-bottom: none;
        width: auto;
        flex: 1 1 30%;
        min-width: 140px;
    }
    
    .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-counter {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .story-section {
        padding: 3rem 0;
    }

    .sticky-wrapper {
        height: 40vh;
        min-height: 300px;
    }

    .story-headline {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .chapter {
        gap: 1.25rem;
    }

    .chapter-number {
        font-size: 1.1rem;
    }

    .chapter-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .chapter-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .story-chapters {
        gap: 2.5rem;
    }

    .story-stats {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-counter {
        font-size: 2.2rem;
    }

    .stat-prefix, .stat-suffix {
        font-size: 1rem;
    }

    .stat-number-wrapper {
        min-height: 2.5rem;
    }

    .stat-box {
        flex: none;
        width: 100%;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .stat-box:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .stat-desc {
        font-size: 0.65rem;
        white-space: normal;
        line-height: 1.3;
        margin-top: 0.25rem;
    }

    .story-quote {
        font-size: 1.1rem; /* Reduced from 1.2rem */
        padding-left: 1.25rem; /* Slightly tighter padding */
        line-height: 1.5;
    }
}
