.soxera-history {
    --soxera-history-ink: #171717;
    --soxera-history-muted: #66615a;
    --soxera-history-line: #e7dfd2;
    --soxera-history-paper: #fffaf2;
    --soxera-history-sage: #49685a;
    --soxera-history-title-size: clamp(2rem, 4vw, 4.2rem);
    --soxera-history-step-title-size: clamp(1.75rem, 3vw, 3.2rem);
    --soxera-history-body-size: 0.96rem;
    --soxera-history-title-color: #171717;
    --soxera-history-text-color: #45413c;
    --soxera-history-accent: #b85f2f;
    --soxera-history-button: #7b341b;

    box-sizing: border-box;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
    color: var(--soxera-history-ink);
    font-family: inherit;
    background: transparent;
}

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

.soxera-history,
.soxera-history button,
.soxera-history input,
.soxera-history select,
.soxera-history textarea,
.soxera-history__main-title,
.soxera-history__description,
.soxera-history__note,
.soxera-history__step-label,
.soxera-history__step-title,
.soxera-history__step-copy {
    font-family: inherit !important;
}

.soxera-history :where(h1, h2, h3, h4, h5, h6, p, span, div, button) {
    font-family: inherit !important;
}

.soxera-history--bg-solid {
    background: var(--soxera-history-paper);
}

.soxera-history--bg-transparent {
    background: transparent;
}

.soxera-history--bg-dynamic {
    background:
        repeating-linear-gradient(90deg, rgba(73,104,90,0.035) 0 1px, transparent 1px 92px),
        var(--soxera-history-paper);
    background-size: 184px 100%, auto;
    animation: soxera-history-bg 22s linear infinite;
}

.soxera-history__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--soxera-history-line);
}

.soxera-history__eyebrow {
    color: var(--soxera-history-button);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.soxera-history__main-title {
    max-width: 720px;
    margin: 6px 0 8px;
    color: var(--soxera-history-title-color);
    font-size: var(--soxera-history-title-size);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.soxera-history__description {
    max-width: 620px;
    margin: 0;
    color: var(--soxera-history-muted);
    font-size: var(--soxera-history-body-size);
    line-height: 1.55;
}

.soxera-history__note {
    min-width: 150px;
    border-left: 1px solid var(--soxera-history-line);
    padding-left: 22px;
    color: var(--soxera-history-sage);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
}

.soxera-history__slides {
    position: relative;
    overflow: hidden;
    transition: min-height 0.25s ease;
}

.soxera-history__slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    min-height: 360px;
    gap: 24px;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.soxera-history.is-moving-prev .soxera-history__slide {
    transform: translateX(-28px) scale(0.985);
}

.soxera-history__slide.is-active {
    position: relative;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.soxera-history__slide.is-measuring {
    position: relative;
    inset: auto;
    z-index: -1;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
    transform: none;
}

.soxera-history__text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 360px;
    padding: 28px 34px;
    border: 1px solid var(--soxera-history-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
}

.soxera-history__step-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: var(--soxera-history-button);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.soxera-history__step-label::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--soxera-history-accent);
}

.soxera-history__step-title {
    margin: 12px 0;
    color: var(--soxera-history-title-color);
    font-size: var(--soxera-history-step-title-size);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.soxera-history__step-copy {
    max-width: 560px;
    color: var(--soxera-history-text-color);
    font-size: var(--soxera-history-body-size);
    line-height: 1.62;
}

.soxera-history__step-copy p {
    margin: 0 0 0.8em;
}

.soxera-history__step-copy p:last-child {
    margin-bottom: 0;
}

.soxera-history__step-copy strong {
    color: var(--soxera-history-button);
    font-weight: 800;
}

.soxera-history__image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: #ded7cc;
    box-shadow: 0 24px 55px rgba(74, 54, 38, 0.18);
}

.soxera-history__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.soxera-history__slide.is-active .soxera-history__image img {
    transform: scale(1.045);
}

.soxera-history__dots {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.soxera-history__dot {
    width: 38px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d9d0c4;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}

.soxera-history__dot.is-active {
    width: 58px;
    background: var(--soxera-history-accent);
}

@keyframes soxera-history-bg {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 184px 0, 0 0; }
}

@media (max-width: 768px) {
    .soxera-history {
        padding: 16px 14px;
    }

    .soxera-history__header {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .soxera-history__note {
        min-width: 0;
        border-left: 0;
        border-top: 1px solid var(--soxera-history-line);
        padding: 10px 0 0;
    }

    .soxera-history__slide {
        min-height: 0;
        gap: 16px;
    }

    .soxera-history__slide.is-active {
        grid-template-columns: 1fr;
    }

    .soxera-history__image {
        order: -1;
        min-height: 190px;
        height: 28vh;
    }

    .soxera-history__text {
        min-height: 0;
        padding: 22px 20px;
    }

    .soxera-history__dot {
        width: 30px;
    }

    .soxera-history__dot.is-active {
        width: 44px;
    }

}
