.rhit-wrap,
.rhit-wrap * {
    box-sizing: border-box;
}

.rhit-wrap {
    --rhit-accent: #9f38ff;
    --rhit-speed: 350ms;
    width: 100%;
    overflow: hidden;
    direction: rtl;
}

.rhit-grid {
    width: 100%;
    min-height: inherit;
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(440px, 1.62fr) minmax(290px, 0.96fr);
    grid-template-areas: "content timeline media";
    align-items: center;
}

.rhit-content {
    grid-area: content;
    align-self: center;
    text-align: right;
    max-width: 420px;
    justify-self: start;
}

.rhit-eyebrow {
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.rhit-title {
    margin: 0 0 26px;
    font-size: clamp(42px, 4vw, 72px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.03em;
}

.rhit-description {
    font-size: 20px;
    line-height: 2.1;
}

.rhit-description p {
    margin: 0 0 10px;
}

.rhit-description p:last-child {
    margin-bottom: 0;
}

.rhit-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 26px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.rhit-more:hover,
.rhit-more:focus-visible {
    opacity: .75;
    transform: translateX(-3px);
}

.rhit-timeline {
    grid-area: timeline;
    position: relative;
    width: 100%;
    align-self: center;
    padding: 58px 0 0;
}

.rhit-line {
    position: absolute;
    inset-inline: 0;
    top: 65px;
    height: 3px;
    pointer-events: none;
}

.rhit-line-base,
.rhit-line-progress {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    border-radius: 999px;
}

.rhit-line-base {
    width: 100%;
    opacity: .65;
}

.rhit-line-progress {
    width: 0;
    transition: width var(--rhit-speed) cubic-bezier(.2,.72,.25,1);
}

.rhit-nodes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--rhit-items, 5), minmax(95px, 1fr));
    width: 100%;
}

.rhit-node {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    min-width: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    outline: none;
}

.rhit-node:focus-visible .rhit-dot {
    outline: 3px solid rgba(159, 56, 255, .18);
    outline-offset: 5px;
}

.rhit-dot {
    position: relative;
    width: 28px;
    height: 28px;
    display: block;
    flex: 0 0 auto;
    margin-bottom: 14px;
    border: 3px solid #bdbdbd;
    border-radius: 50%;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.rhit-dot::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    transition: background-color .25s ease, transform .25s ease;
}

.rhit-node:hover .rhit-dot {
    transform: scale(1.08);
}

.rhit-node.is-active .rhit-dot::after {
    transform: scale(1.03);
}

.rhit-year {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    transition: color .25s ease;
}

.rhit-label {
    margin-top: 5px;
    max-width: 130px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.rhit-media {
    grid-area: media;
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #ededed;
    isolation: isolate;
}

.rhit-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.001);
    opacity: 1;
    transition: opacity var(--rhit-speed) ease, transform var(--rhit-speed) ease;
}

.rhit-caption {
    position: absolute;
    z-index: 2;
    inset-inline: 24px;
    bottom: 24px;
    margin: 0;
    padding: 18px 24px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--rhit-speed) ease, transform var(--rhit-speed) ease;
}

.rhit-media.is-changing .rhit-image {
    opacity: 0;
    transform: scale(1.025);
}

.rhit-media.is-changing .rhit-caption {
    opacity: 0;
    transform: translateY(8px);
}

@media (max-width: 1200px) {
    .rhit-grid {
        grid-template-columns: minmax(235px, .9fr) minmax(370px, 1.35fr) minmax(260px, .9fr);
    }

    .rhit-title {
        font-size: clamp(36px, 4.5vw, 58px);
    }

    .rhit-description {
        font-size: 17px;
    }

    .rhit-year {
        font-size: 19px;
    }

    .rhit-label {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .rhit-grid {
        grid-template-columns: 1fr 1.25fr;
        grid-template-areas:
            "content media"
            "timeline timeline";
        row-gap: 45px;
    }

    .rhit-content {
        justify-self: stretch;
        max-width: none;
    }

    .rhit-timeline {
        padding-top: 40px;
    }

    .rhit-line {
        top: 47px;
    }
}

@media (max-width: 767px) {
    .rhit-wrap {
        overflow: visible;
    }

    .rhit-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 34px;
    }

    .rhit-mobile-order-content-timeline-image .rhit-content { order: 1; }
    .rhit-mobile-order-content-timeline-image .rhit-timeline { order: 2; }
    .rhit-mobile-order-content-timeline-image .rhit-media { order: 3; }

    .rhit-mobile-order-image-timeline-content .rhit-media { order: 1; }
    .rhit-mobile-order-image-timeline-content .rhit-timeline { order: 2; }
    .rhit-mobile-order-image-timeline-content .rhit-content { order: 3; }

    .rhit-mobile-order-content-image-timeline .rhit-content { order: 1; }
    .rhit-mobile-order-content-image-timeline .rhit-media { order: 2; }
    .rhit-mobile-order-content-image-timeline .rhit-timeline { order: 3; }

    .rhit-content {
        width: 100%;
        text-align: right;
    }

    .rhit-eyebrow {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .rhit-title {
        margin-bottom: 18px;
        font-size: clamp(34px, 12vw, 50px);
        line-height: 1.35;
    }

    .rhit-description {
        font-size: 16px;
        line-height: 2;
    }

    .rhit-timeline {
        width: 100%;
        padding-top: 34px;
        overflow: hidden;
    }

    .rhit-wrap[data-mobile-scroll="yes"] .rhit-timeline {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 8px;
    }

    .rhit-wrap[data-mobile-scroll="yes"] .rhit-nodes,
    .rhit-wrap[data-mobile-scroll="yes"] .rhit-line {
        min-width: max(680px, calc(var(--rhit-items, 5) * 132px));
    }

    .rhit-line {
        top: 41px;
    }

    .rhit-nodes {
        grid-template-columns: repeat(var(--rhit-items, 5), minmax(120px, 1fr));
    }

    .rhit-node {
        scroll-snap-align: center;
    }

    .rhit-dot {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }

    .rhit-year {
        font-size: 18px;
    }

    .rhit-label {
        font-size: 13px;
    }

    .rhit-media {
        width: 100%;
        min-height: 300px;
    }

    .rhit-caption {
        inset-inline: 14px;
        bottom: 14px;
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rhit-wrap *,
    .rhit-wrap *::before,
    .rhit-wrap *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
