/* Our story: editorial layout with a scroll-linked timeline */
.story {
    --story-ink: #1b1530;
    --story-muted: #6b6580;
    --story-line: #e4dfec;
    --story-accent: #4c238c;
    padding: 104px 0 112px;
    background: #faf9fc;
}

.story__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 24px 64px;
    align-items: end;
    margin-bottom: 72px;
}

.story__eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--story-accent);
}

.story__title {
    margin: 0;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--story-ink);
}

.story__lede {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--story-muted);
}

.story__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.story__narrative {
    position: sticky;
    top: 150px;
}

.story__narrative p {
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--story-muted);
}

.story__narrative strong {
    color: var(--story-ink);
}

.story__narrative .story__lead {
    margin-bottom: 28px;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--story-ink);
}

.story__founder {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--story-line);
}

.story__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.story__founder-text {
    flex: 1;
    min-width: 0;
}

.story__narrative .story__founder-name {
    margin: 0 0 2px;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--story-ink);
}

.story__narrative .story__founder-role {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--story-muted);
}

.story__product {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 10px 16px;
    border-left: 1px solid var(--story-line);
    color: var(--story-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.story__product img {
    height: 26px;
    width: auto;
}

.story__product svg {
    transition: transform 0.2s ease;
}

.story__product:hover svg {
    transform: translate(2px, -2px);
}

.story__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: var(--story-muted);
}

.story__credentials li + li::before {
    content: '/';
    margin: 0 12px;
    color: var(--story-line);
}

/* Timeline */
.story__timeline {
    --story-progress: 0;
    position: relative;
    margin: 0;
    padding: 0 0 0 44px;
    list-style: none;
}

.story__rail {
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--story-line);
}

.story__rail-fill {
    position: absolute;
    inset: 0;
    background: var(--story-accent);
    transform-origin: top;
    transform: scaleY(var(--story-progress));
}

.story__event {
    position: relative;
}

.story__event::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 14px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #faf9fc;
    border: 1px solid var(--story-line);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.story__event.is-past::before {
    border-color: var(--story-accent);
    background: var(--story-accent);
}

.story__event.is-active::before {
    border-color: var(--story-accent);
    background: var(--story-accent);
    transform: scale(1.25);
}

.story__event-btn {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    padding: 0 0 56px;
    background: none;
    border: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.story__event:last-child .story__event-btn {
    padding-bottom: 0;
}

.story__event.is-active .story__event-btn,
.story__event-btn:hover,
.story__event-btn:focus-visible {
    opacity: 1;
}

.story__event-btn:focus-visible {
    outline: 2px solid var(--story-accent);
    outline-offset: 6px;
}

.story__year {
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--story-ink);
    transition: color 0.3s ease;
}

.story__event.is-active .story__year {
    color: var(--story-accent);
}

.story__event-title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--story-ink);
}

.story__event-text {
    display: block;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--story-muted);
}

@media (max-width: 991.98px) {
    .story {
        padding: 72px 0 80px;
    }

    .story__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 48px;
    }

    .story__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .story__narrative {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .story__credentials {
        gap: 6px 18px;
    }

    .story__credentials li + li::before {
        content: none;
    }

    .story__narrative .story__lead {
        font-size: 1.2rem;
    }

    .story__founder {
        flex-wrap: wrap;
    }

    .story__product {
        padding-left: 0;
        border-left: none;
    }

    .story__timeline {
        padding-left: 34px;
    }

    .story__event::before {
        left: -34px;
    }

    .story__event-btn {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding-bottom: 40px;
    }

    .story__year {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story__event::before,
    .story__event-btn,
    .story__year {
        transition: none;
    }
}
