.hk-timeline-story {
    --hk-inactive: #b689bd;
    --hk-active: #6d1e71;
    --hk-line: #d7b8dd;
    --hk-line-active: #b689bd;
    --hk-column-gap: 70px;
    --hk-step-gap: 120px;
    --hk-image-width: 280px;
    --hk-drop-width: 54px;
    --hk-drop-width-mobile: 30px;
    --hk-badge-width: 110px;
    --hk-hero-drop-gap: 70px;
    --hk-rail-start-offset: 0px;
    --hk-rail-top: 0px;
    --hk-rail-height: 0px;
    position: relative;
    width: 100%;
    overflow: visible;
}

.hk-timeline-story *,
.hk-timeline-story *::before,
.hk-timeline-story *::after {
    box-sizing: border-box;
}

.hk-timeline-story__intro-inner,
.hk-timeline-story__timeline-inner {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.hk-timeline-story__intro-wrap {
    position: relative;
    display: flex;
    min-height: 520px;
    align-items: center;
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    background-image: var(--hk-hero-image, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.hk-timeline-story__intro-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

.hk-timeline-story__intro-inner {
    position: relative;
    z-index: 1;
}

.hk-timeline-story__intro {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    color: var(--hk-active);
    text-align: center;
}

.hk-timeline-story__intro-eyebrow,
.hk-timeline-story__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.hk-timeline-story__intro-title,
.hk-timeline-story__title,
.hk-timeline-story__intro-description {
    margin: 0;
}

.hk-timeline-story__intro-title {
    margin-top: 7px;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.08;
}

.hk-timeline-story__intro-description {
    margin-top: 12px;
}

.hk-timeline-story__timeline-inner {
    padding-top: clamp(70px, 8vw, 130px);
}

.hk-timeline-story__start-marker {
    position: absolute;
    top: calc(100% + var(--hk-hero-drop-gap));
    left: 50%;
    width: 1px;
    height: 1px;
    transform: translateX(-50%);
    pointer-events: none;
}

.hk-timeline-story__stage {
    position: relative;
    padding-block: calc(var(--hk-drop-width) * .65);
}

.hk-timeline-story__rail {
    position: absolute;
    z-index: 1;
    top: var(--hk-rail-top);
    bottom: auto;
    height: var(--hk-rail-height);
    left: 50%;
    width: 1px;
    border-left: 1px dashed var(--hk-line);
    transform: translateX(-50%);
    pointer-events: none;
}

.hk-timeline-story__rail-progress {
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: var(--hk-progress-length, 0px);
    max-height: 100%;
    background: var(--hk-line-active);
    border-radius: 999px;
    transition: height 80ms linear;
}

.hk-timeline-story__drop {
    position: absolute;
    z-index: 4;
    top: var(--hk-rail-top);
    left: 50%;
    width: var(--hk-drop-width);
    transform: translate3d(-50%, var(--hk-drop-y, 0), 0);
    will-change: transform;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

/* Prevent the drop from flashing at its unmeasured CSS position before JS has
   calculated the responsive rail start. */
.hk-timeline-story.is-timeline-ready .hk-timeline-story__drop {
    visibility: visible;
    opacity: 1;
}

.hk-timeline-story__drop img {
    display: block;
    width: 100%;
    height: auto;
}

.hk-timeline-story__steps {
    display: flex;
    flex-direction: column;
    gap: var(--hk-step-gap);
}

.hk-timeline-story__step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    min-height: min(62vh, 650px);
}

/* Text left, image right. */
.hk-timeline-story__step--left .hk-timeline-story__copy {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: var(--hk-column-gap);
    text-align: right;
}

.hk-timeline-story__step--left .hk-timeline-story__visual {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-left: var(--hk-column-gap);
}

/* Image left, text right. */
.hk-timeline-story__step--right .hk-timeline-story__visual {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-right: var(--hk-column-gap);
}

.hk-timeline-story__step--right .hk-timeline-story__copy {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin-left: var(--hk-column-gap);
    text-align: left;
}

.hk-timeline-story__visual {
    width: 100%;
}

.hk-timeline-story__copy {
    width: min(100%, 440px);
}

.hk-timeline-story__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hk-timeline-story__image-main {
    width: min(100%, var(--hk-image-width));
    max-width: 100%;
}

.hk-timeline-story__image-main img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.hk-timeline-story__badge {
    z-index: 2;
    width: min(60%, var(--hk-badge-width));
}

.hk-timeline-story__badge img {
    display: block;
    width: 100%;
    height: auto;
}

.hk-timeline-story__badge--top-left,
.hk-timeline-story__badge--top-right,
.hk-timeline-story__badge--bottom-left,
.hk-timeline-story__badge--bottom-right {
    position: absolute;
}

.hk-timeline-story__badge--top-left {
    top: 0;
    left: 0;
    transform: translate(-30%, -30%);
}

.hk-timeline-story__badge--top-right {
    top: 0;
    right: 0;
    transform: translate(30%, -30%);
}

.hk-timeline-story__badge--bottom-left {
    bottom: 0;
    left: 0;
    transform: translate(-30%, 30%);
}

.hk-timeline-story__badge--bottom-right {
    right: 0;
    bottom: 0;
    transform: translate(30%, 30%);
}

.hk-timeline-story__badge--below {
    position: relative;
    margin-top: 22px;
}

.hk-timeline-story__copy {
    color: var(--hk-inactive);
    opacity: .55;
    transform: translateY(16px);
    transition: color .35s ease, opacity .45s ease, transform .45s ease;
}

.hk-timeline-story__eyebrow,
.hk-timeline-story__title,
.hk-timeline-story__description,
.hk-timeline-story__description p,
.hk-timeline-story__description a,
.hk-timeline-story__description span,
.hk-timeline-story__description strong,
.hk-timeline-story__description em {
    color: inherit !important;
    transition: color .35s ease;
}

.hk-timeline-story__title {
    margin-top: 6px;
    font-size: clamp(24px, 2.5vw, 40px);
    line-height: 1.08;
}

.hk-timeline-story__description {
    margin-top: 14px;
}

.hk-timeline-story__description > :first-child {
    margin-top: 0;
}

.hk-timeline-story__description > :last-child {
    margin-bottom: 0;
}

.hk-timeline-story__step.is-visible .hk-timeline-story__copy {
    opacity: 1;
    transform: none;
}

.hk-timeline-story__step .hk-timeline-story__copy {
    color: var(--hk-inactive) !important;
}

.hk-timeline-story__step.is-active .hk-timeline-story__copy,
.hk-timeline-story__step.is-active .hk-timeline-story__eyebrow,
.hk-timeline-story__step.is-active .hk-timeline-story__title,
.hk-timeline-story__step.is-active .hk-timeline-story__description,
.hk-timeline-story__step.is-active .hk-timeline-story__description * {
    color: var(--hk-active) !important;
}

@media (max-width: 767px) {
    .hk-timeline-story {
        width: 100% !important;
        max-width: none !important;
    }

    .hk-timeline-story__intro-wrap {
        width: 100vw !important;
        max-width: none !important;
        margin-inline: calc(50% - 50vw) !important;
    }

    .hk-timeline-story__intro-inner,
    .hk-timeline-story__timeline-inner {
        width: 100% !important;
        max-width: none !important;
        margin-inline: 0 !important;
    }

    .hk-timeline-story__intro-inner {
        padding-inline: 16px;
    }

    .hk-timeline-story__timeline-inner {
        padding-top: 70px;
        padding-inline: 16px;
    }

    .hk-timeline-story__intro-wrap {
        min-height: 360px;
    }

    .hk-timeline-story__intro {
        margin: 0 auto;
    }

    .hk-timeline-story__stage {
        padding-left: 42px;
        padding-block: calc(var(--hk-drop-width-mobile) * .65);
    }

    .hk-timeline-story__rail,
    .hk-timeline-story__drop {
        left: 14px;
    }

    .hk-timeline-story__drop {
        width: var(--hk-drop-width-mobile) !important;
        max-width: var(--hk-drop-width-mobile) !important;
    }

    .hk-timeline-story__drop img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hk-timeline-story__step {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 28px;
    }

    .hk-timeline-story__step--left .hk-timeline-story__copy,
    .hk-timeline-story__step--left .hk-timeline-story__visual,
    .hk-timeline-story__step--right .hk-timeline-story__copy,
    .hk-timeline-story__step--right .hk-timeline-story__visual {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .hk-timeline-story__copy {
        order: 1;
    }

    .hk-timeline-story__visual {
        order: 2;
        align-items: flex-start;
    }
}

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