.sepal-history,
.sepal-history * {
    box-sizing: border-box;
}

.sepal-history {
    --sepal-green-dark: #18312e;
    --sepal-green-deep: #0f2420;
    --sepal-yellow: #fecb37;
    --sepal-body-font: 'DM Sans', sans-serif;
    --sepal-display-font: 'Fraunces', Georgia, serif;
    background: var(--sepal-green-dark);
    padding: 100px 80px;
    overflow: hidden;
}

.sepal-history__inner {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1320px;
    margin: 0 auto;
}

.sepal-history__image-wrap,
.sepal-history__content {
    flex: 1 1 50%;
    min-width: 0;
}

.sepal-history__image {
    position: relative;
    z-index: 1;
}

.sepal-history__image.has-decor-border::after {
    content: '';
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 60%;
    height: 60%;
    border: 1px solid rgba(254,203,55,0.25);
    z-index: -1;
    pointer-events: none;
}

.sepal-history__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.sepal-history__year {
    font-family: var(--sepal-display-font);
    font-size: clamp(74px, 9vw, 120px);
    font-weight: 300;
    color: rgba(254,203,55,0.15);
    line-height: 1;
    margin-bottom: -20px;
    user-select: none;
}

.sepal-history__label {
    font-family: var(--sepal-body-font);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sepal-yellow);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sepal-history__label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--sepal-yellow);
    flex: 0 0 auto;
}

.sepal-history__title {
    font-family: var(--sepal-display-font);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 28px;
}

.sepal-history__title em {
    font-style: italic;
    color: var(--sepal-yellow);
}

.sepal-history__body {
    font-family: var(--sepal-body-font);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.sepal-history__body p {
    margin: 0 0 1em;
}

.sepal-history__body p:last-child {
    margin-bottom: 0;
}

.sepal-history__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sepal-body-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sepal-yellow);
    border: 1px solid rgba(254,203,55,0.5);
    background: transparent;
    padding: 9px 20px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sepal-history__button:hover,
.sepal-history__button:focus {
    background: var(--sepal-yellow);
    color: var(--sepal-green-deep);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .sepal-history {
        padding: 70px 40px;
    }

    .sepal-history__inner {
        flex-direction: column !important;
        gap: 60px;
        align-items: stretch;
    }

    .sepal-history__image-wrap,
    .sepal-history__content {
        flex-basis: auto !important;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .sepal-history {
        padding: 56px 24px;
    }

    .sepal-history__image.has-decor-border::after {
        bottom: -14px;
        right: -14px;
    }

    .sepal-history__year {
        font-size: 68px;
        margin-bottom: -10px;
    }
}
