.esw-story {
    --esw-image-col: 52%;
    --esw-inactive-opacity: 0.45;
    --esw-inactive-y: 28px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, var(--esw-image-col)) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    margin-inline: auto;
}

.esw-story *,
.esw-typing-title-wrap *,
.esw-animated-button-wrap *,
.esw-feature-grid *,
.esw-feature-grid-wrap * {
    box-sizing: border-box;
}

.esw-story__media-column,
.esw-story__content {
    min-width: 0;
}

.esw-story__media-shell {
    position: relative;
    min-height: 100%;
}

.esw-story__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    will-change: transform;
}

.esw-story__media.is-pinned {
    position: fixed;
    z-index: 4;
}

.esw-story__media.is-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
}

.esw-story__media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.esw-story__content {
    position: relative;
    z-index: 3;
}

.esw-story__content-intro {
    margin: 0 0 72px;
}

.esw-story__items {
    position: relative;
}

.esw-story__panel {
    min-height: 62vh;
    display: flex;
    align-items: center;
    opacity: var(--esw-inactive-opacity);
    transform: translate3d(0, var(--esw-inactive-y), 0);
    transition: opacity .4s ease, transform .4s ease;
}

.esw-story__panel.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.esw-story__panel-inner {
    width: 100%;
}

.esw-story__eyebrow {
    margin: 0 0 18px;
    margin-top: 50px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.esw-story__headline {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 64px);
    line-height: 1.2;
    font-weight: 400;
}

.esw-story__feature-head {
    display: block;
    margin: 0 0 28px;
}

.esw-story__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    line-height: 1;
    flex: 0 0 auto;
    margin: 0 0 18px;
}

.esw-story__icon i,
.esw-story__icon svg {
    display: block;
}

.esw-story__divider {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, .12);
}

.esw-story__feature-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
}

.esw-story__feature-text,
.esw-story__feature-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}

.esw-typing-title-wrap {
    width: 100%;
}

.esw-typing-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.esw-typing-title__text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.esw-typing-title__cursor {
    width: 2px;
    height: 1.1em;
    display: inline-block;
    background: currentColor;
    animation: esw-blink 1s step-end infinite;
}

@keyframes esw-blink {
    50% {
        opacity: 0;
    }
}

/* Animated Button */
.esw-animated-button-wrap {
    width: 100%;
}

.esw-animated-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.esw-animated-button:hover,
.esw-animated-button:focus-visible {
    text-decoration: none;
}

.esw-animated-button__text {
    position: relative;
    display: inline-grid;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2;
    vertical-align: middle;
    align-items: center;
}

.esw-animated-button__text-inner {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}

.esw-animated-button__text-line {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.2;
    transition-property: transform, opacity, color;
    transition-duration: 450ms;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.esw-animated-button__text-line--default {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.esw-animated-button__text-line--hover {
    transform: translate3d(0, 100%, 0);
    opacity: 1;
}

.esw-animated-button:hover .esw-animated-button__text-line--default,
.esw-animated-button:focus-visible .esw-animated-button__text-line--default {
    transform: translate3d(0, -100%, 0);
}

.esw-animated-button:hover .esw-animated-button__text-line--hover,
.esw-animated-button:focus-visible .esw-animated-button__text-line--hover {
    transform: translate3d(0, 0, 0);
}

.esw-animated-button--single .esw-animated-button__text {
    display: inline-flex;
    align-items: center;
}

.esw-animated-button--single .esw-animated-button__text-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.esw-animated-button--single .esw-animated-button__text-line--default {
    position: relative;
    grid-area: auto;
    transform: translate3d(0, 0, 0);
}

.esw-animated-button--single .esw-animated-button__text-line--hover {
    display: none;
}

.esw-animated-button--single:hover .esw-animated-button__text-line--default,
.esw-animated-button--single:focus-visible .esw-animated-button__text-line--default {
    transform: translate3d(0, 0, 0);
}

/* Feature Grid */
.esw-feature-grid-wrap {
    width: 100%;
}

.esw-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
    width: 100%;
}

.esw-feature-grid__item {
    position: relative;
    min-width: 0;
    min-height: 220px;
    padding: 28px 22px;
    overflow: hidden;
    background: #ffffff;
}

.esw-feature-grid__item-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.esw-feature-grid__line {
    display: block;
    width: 36px;
    height: 1px;
    margin-bottom: 24px;
    background-color: rgba(0, 0, 0, .15);
    flex: 0 0 auto;
}

.esw-feature-grid__title {
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
    color: #2f261f;
    word-break: break-word;
}

.esw-feature-grid__description,
.esw-feature-grid__description p {
    margin: 0;
    position: relative;
    z-index: 2;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(47, 38, 31, .72);
}

.esw-feature-grid__number {
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 1;
    line-height: 1;
    font-size: clamp(56px, 5vw, 92px);
    font-weight: 300;
    letter-spacing: -.04em;
    color: rgba(47, 38, 31, .08);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1024px) {
    .esw-story {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .esw-story__media.is-pinned,
    .esw-story__media.is-bottom {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        bottom: auto;
    }

    .esw-story__content-intro {
        margin-bottom: 36px;
    }

    .esw-story__panel {
        min-height: auto;
        opacity: 1;
        transform: none;
        padding-bottom: 28px;
    }

    .esw-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .esw-feature-grid {
        grid-template-columns: 1fr;
    }

    .esw-feature-grid__item {
        min-height: 180px;
    }

    .esw-feature-grid__title {
        font-size: 24px;
    }

    .esw-feature-grid__number {
        font-size: clamp(46px, 14vw, 72px);
    }
}