.history-timeline-page {
    background:
        linear-gradient(180deg, #fff, #f6faf7 48%, #fff),
        #fff;
}

.history-hero {
    background:
        linear-gradient(135deg, rgba(3, 27, 19, .98), rgba(11, 107, 63, .82)),
        radial-gradient(circle at 82% 18%, rgba(217, 165, 27, .18), transparent 34%);
}

.history-timeline-section {
    background:
        radial-gradient(circle at 12% 0%, rgba(11, 107, 63, .10), transparent 28%),
        linear-gradient(180deg, #fff, #f7fbf8);
    overflow: hidden;
}

.history-intro {
    margin: 0 auto 56px;
    max-width: 960px;
    text-align: center;
}

.history-intro h2 {
    color: var(--brand-dark);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    margin: 0 auto 18px;
    max-width: 900px;
}

.history-intro p:not(.eyebrow) {
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 700;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 820px;
}

.history-intro > span {
    border: 1px solid rgba(11, 107, 63, .22);
    color: var(--brand);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    margin-top: 24px;
    padding: 11px 15px;
    text-transform: uppercase;
}

.history-timeline {
    margin: 0 auto;
    max-width: 1160px;
    padding: 18px 0 36px;
    position: relative;
}

.history-timeline::before {
    background:
        linear-gradient(180deg, transparent, rgba(11, 107, 63, .36) 5%, rgba(11, 107, 63, .36) 95%, transparent),
        repeating-linear-gradient(180deg, rgba(217, 165, 27, .88) 0 28px, transparent 28px 52px);
    content: "";
    left: 50%;
    min-height: 100%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
}

.history-year-marker {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    margin: 34px 0 28px;
    position: relative;
    z-index: 4;
}

.history-year-marker::before,
.history-year-marker::after {
    background: linear-gradient(90deg, transparent, rgba(11, 107, 63, .24));
    content: "";
    height: 1px;
}

.history-year-marker::after {
    background: linear-gradient(90deg, rgba(11, 107, 63, .24), transparent);
}

.history-year-marker span {
    background:
        linear-gradient(135deg, var(--brand-deep), var(--brand-dark)),
        var(--brand-deep);
    border: 1px solid rgba(217, 165, 27, .72);
    box-shadow:
        0 20px 44px rgba(3, 27, 19, .18),
        inset 0 0 0 1px rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: .14em;
    line-height: 1;
    padding: 15px 18px 14px;
    position: relative;
    text-transform: uppercase;
}

.history-year-marker span::after {
    background: var(--accent);
    bottom: -7px;
    content: "";
    height: 14px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
}

.history-timeline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
    margin: -2px 0 18px;
    min-height: 150px;
    position: relative;
}

.history-timeline-item:nth-child(odd) .history-timeline-card {
    grid-column: 1;
    justify-self: end;
}

.history-timeline-item:nth-child(even) .history-timeline-card {
    grid-column: 3;
    justify-self: start;
}

.history-timeline-node {
    align-self: center;
    background: var(--brand-deep);
    border: 4px solid #fff;
    box-shadow:
        0 0 0 3px rgba(217, 165, 27, .95),
        0 16px 30px rgba(3, 27, 19, .18);
    grid-column: 2;
    height: 22px;
    justify-self: center;
    position: relative;
    transform: rotate(45deg);
    width: 22px;
    z-index: 2;
}

.history-timeline-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 249, .98)),
        radial-gradient(circle at 0 0, rgba(11, 107, 63, .14), transparent 42%);
    border: 1px solid rgba(11, 107, 63, .16);
    box-shadow:
        0 22px 56px rgba(3, 27, 19, .10),
        inset 0 0 0 1px rgba(255, 255, 255, .78);
    max-width: 440px;
    padding: 26px;
    position: relative;
    width: min(100%, 440px);
}

.history-timeline-card::before {
    background: linear-gradient(90deg, var(--brand), rgba(217, 165, 27, .90));
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.history-date {
    color: var(--accent);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .10em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.history-timeline-card h3 {
    color: var(--brand-dark);
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.05;
    margin: 0 0 12px;
}

.history-timeline-card p {
    color: #315246;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.38;
    margin: 0;
}

.timeline-reveal {
    opacity: .18;
    transform: translateY(54px) scale(.97);
    transition:
        opacity 520ms ease,
        transform 520ms ease,
        filter 520ms ease;
    filter: saturate(.65);
}

.timeline-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
}

.history-year-marker.timeline-reveal {
    opacity: 0;
    transform: translateY(36px) scale(.94);
}

.history-year-marker.timeline-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
    .history-timeline {
        max-width: 760px;
        padding-left: 8px;
    }

    .history-timeline::before {
        left: 23px;
    }

    .history-year-marker {
        grid-template-columns: 46px minmax(0, 1fr);
        margin: 32px 0 24px;
    }

    .history-year-marker::before {
        display: none;
    }

    .history-year-marker::after {
        background: linear-gradient(90deg, rgba(11, 107, 63, .22), transparent);
    }

    .history-year-marker span {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 0;
        min-width: 92px;
    }

    .history-timeline-item {
        gap: 18px;
        grid-template-columns: 46px minmax(0, 1fr);
        margin-bottom: 18px;
        min-height: 0;
    }

    .history-timeline-item:nth-child(odd) .history-timeline-card,
    .history-timeline-item:nth-child(even) .history-timeline-card {
        grid-column: 2;
        justify-self: stretch;
        max-width: none;
        width: 100%;
    }

    .history-timeline-node {
        grid-column: 1;
        margin-top: 42px;
    }
}

@media (max-width: 560px) {
    .history-intro {
        margin-bottom: 34px;
        text-align: left;
    }

    .history-timeline-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .history-timeline-card {
        padding: 22px;
    }

    .history-year-marker span {
        font-size: 16px;
        padding: 13px 15px 12px;
    }

    .history-timeline-card p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-reveal {
        filter: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}
