body {
    margin: 0;
}

.history-page {
    background: #ffffff;
    color: #1f1f1f;
    overflow-x: hidden;
}

.history-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.history-hero {
    height: 480px;
    overflow: hidden;
}

.history-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* White intro card overlapping hero — like the reference design */
.history-intro-card-wrap {
    position: relative;
    z-index: 2;
    margin-top: -145px;
    padding: 0 20px 80px;
}

.history-intro-card {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    background: #ffffff;
    padding: 52px 54px 62px;
    box-shadow: 14px 14px 0 #63dce6;
}

.history-intro-card h1 {
    margin: 0 0 26px;
    text-align: center;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.035em;
}

.history-intro-card p {
    margin: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #000;
}

.history-intro-card p:last-child {
    margin-bottom: 0;
}

.history-timeline {
    padding: 20px 0 110px;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 86px;
}

.history-row--reverse .history-row__image {
    order: 2;
}

.history-row__image img {
    width: 100%;
    height: auto;
    display: block;
}

.history-row__content {
    max-width: 540px;
}

.history-row__year {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.history-row__content h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.history-row__content p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.65;
}

.history-row__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .history-hero {
        height: 360px;
    }

    .history-intro-card-wrap {
        margin-top: -90px;
        padding-bottom: 60px;
    }

    .history-intro-card {
        padding: 38px 28px 44px;
        box-shadow: 10px 10px 0 #63dce6;
    }

    .history-row,
    .history-row--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 64px;
    }

    .history-row--reverse .history-row__image {
        order: 0;
    }

    .history-row__content {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .history-hero {
        height: 290px;
    }

    .history-intro-card-wrap {
        margin-top: -64px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .history-intro-card {
        width: auto;
        padding: 32px 20px 36px;
    }

    .history-intro-card p,
    .history-row__content p {
        font-size: 15.5px;
    }
}
