/* Extracted from Sponsor-Journey-final-timed-card-marker-reveal_1296px.
   Component-local selectors, variables and animations keep the old timeline intact. */
.stn-journey {
    --stn-blue: #0072ce;
    --stn-dark: #243c4b;
    --stn-yellow: #ffd500;
    --stn-page: #f4f8fb;
    --stn-muted: #536874;
    --stn-line: #bfd7e7;
    --stn-shadow: 0 14px 38px rgb(36 60 75 / 10%);
    --stn-radius: 22px;
    position: relative;
    overflow: clip;
    padding: clamp(4rem, 9vw, 8rem) 1.25rem;
    color: var(--stn-dark);
    background: radial-gradient(circle at 7% 18%, rgb(0 114 206 / 8%) 0 8rem, transparent 8.1rem),
    linear-gradient(180deg, #fff 0%, var(--stn-page) 30%, #fff 100%);
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

.stn-journey *, .stn-journey *::before, .stn-journey *::after {
    box-sizing: border-box;
}

.stn-journey [hidden] {
    display: none !important;
}

.stn-journey a {
    font: inherit;
}

.stn-journey a:focus-visible {
    outline: 4px solid rgb(0 114 206 / 30%);
    outline-offset: 4px;
}

.stn-journey h2, .stn-journey h3, .stn-journey p {
    margin-top: 0;
}

.stn-journey h2, .stn-journey h3 {
    font-family: Poppins, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.12;
}

.stn-inner {
    width: min(1296px, 100%);
    margin-inline: auto;
}

.stn-header {
    max-width: 800px;
    margin: 0 auto clamp(3.5rem, 8vw, 6rem);
    text-align: center;
}

.stn-eyebrow {
    margin: 0 0 .65rem;
    color: var(--stn-blue);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.stn-journey .stn-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    letter-spacing: -.045em;
}

.stn-intro {
    max-width: 650px;
    margin: 0 auto 1.5rem;
    color: var(--stn-muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.stn-phase-key {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.stn-phase-key li {
    padding: .42rem .75rem;
    border: 1px solid var(--stn-line);
    border-radius: 999px;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.stn-canvas {
    position: relative;
    isolation: isolate;
}

.stn-route {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.stn-route-base, .stn-route-progress {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.stn-route-base {
    stroke: var(--stn-line);
    stroke-width: 5;
    stroke-dasharray: 3 12;
}

.stn-route-progress {
    --stn-route-length: 0;
    stroke: var(--stn-blue);
    stroke-width: 7;
}

.stn-phase {
    display: grid;
    gap: clamp(5rem, 11vw, 9rem);
    padding: 0;
    margin: 0;
    list-style: none;
}

.stn-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
    width: min(1296px, 100%);
    min-height: 250px;
    margin-inline: auto;
}

.stn-step:not(:nth-child(3n)) .stn-card {
    grid-column: 1;
    justify-self: end;
}

.stn-step:nth-child(3n) .stn-card {
    grid-column: 3;
    justify-self: start;
}

.stn-step:not(:nth-child(3n)) .stn-doodle {
    grid-column: 3;
    justify-self: center;
}

.stn-step:nth-child(3n) .stn-doodle {
    grid-column: 1;
    justify-self: center;
}

.stn-marker {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin: auto;
    border: 5px solid #fff;
    border-radius: 50%;
    color: var(--stn-blue);
    background: #fff;
    box-shadow: 0 0 0 3px var(--stn-line), 0 8px 22px rgb(36 60 75 / 14%);
    font-family: Poppins, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

@keyframes stn-marker-reveal {
    from {
        color: var(--stn-blue);
        background-color: #fff;
        box-shadow: 0 0 0 3px var(--stn-line), 0 8px 22px rgb(36 60 75 / 14%);
        transform: scale(1);
    }
    to {
        color: #fff;
        background-color: var(--stn-blue);
        box-shadow: 0 0 0 5px rgb(0 114 206 / 18%), 0 10px 26px rgb(0 114 206 / 25%);
        transform: scale(1.06);
    }
}

.stn-step.is-revealed .stn-marker {
    animation: stn-marker-reveal 520ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.stn-card {
    position: relative;
    width: min(440px, 100%);
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 12px 35px rgba(36, 60, 75, .14), 0 2px 6px rgba(36, 60, 75, .05);
    transition: box-shadow .3s ease, opacity .25s ease, transform .35s ease;
}

.stn-card::before {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    content: '';
    background: inherit;
    border-top: 1px solid #dce8ef;
    border-right: 1px solid #dce8ef;
    transform: translateY(-50%) rotate(45deg);
}

.stn-step:not(:nth-child(3n)) .stn-card::before {
    right: -13px;
}

.stn-step:nth-child(3n) .stn-card::before {
    left: -13px;
    transform: translateY(-50%) rotate(225deg);
}

.stn-card h3 {
    margin-bottom: .65rem;
    color: var(--stn-blue);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.stn-card p {
    margin-bottom: 0;
    color: var(--stn-muted);
}

.stn-card strong {
    color: var(--stn-dark);
}

.stn-doodle {
    grid-row: 1;
    color: var(--stn-blue);
    font-size: clamp(5.5rem, 11vw, 8.5rem);
    opacity: 1;
}

.stn-journey.has-reveal .stn-doodle {
    opacity: var(--stn-doodle-opacity, 0);
}

@keyframes stn-card-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.stn-journey.has-reveal .stn-card {
    opacity: 0;
    transform: translateY(18px);
}

.stn-journey.has-reveal .stn-step.is-revealed .stn-card {
    animation: stn-card-reveal 520ms cubic-bezier(.22, 1, .36, 1) forwards;
}

/* JavaScript synchronizes the route tip and reveals with viewport centre. */
.stn-closing {
    max-width: 632px;
    margin: clamp(6rem, 13vw, 11rem) auto 0;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 1.5rem;
    background: var(--stn-dark);
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 35px rgba(36, 60, 75, .14), 0 2px 6px rgba(36, 60, 75, .05);
    transition: box-shadow .3s ease, opacity .25s ease, transform .35s ease;
}

.stn-closing h2 {
    margin-bottom: .75rem;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.stn-closing p {
    max-width: 550px;
    margin: 0 auto 1.5rem;
    color: #fff;
}

.stn-cta {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.35rem;
    border-radius: 9px;
    color: #172c36;
    background: var(--stn-yellow);
    box-shadow: 0 8px 0 #d8b500;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.stn-cta:hover {
    color: #172c36;
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #d8b500;
}

.stn-cta:active {
    transform: translateY(5px);
    box-shadow: 0 3px 0 #d8b500;
}

@media (max-width: 820px) {
    .stn-journey {
        padding-inline: 1rem;
        font-size: 17px;
    }

    .stn-header {
        text-align: left;
    }

    .stn-phase-key {
        justify-content: flex-start;
    }

    .stn-phase {
        gap: 3.5rem;
    }

    .stn-step {
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 0;
    }

    .stn-step:nth-child(n) .stn-card {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
    }

    .stn-step:nth-child(n) .stn-card::before {
        left: -13px;
        right: auto;
        transform: translateY(-50%) rotate(225deg);
    }

    .stn-marker {
        grid-column: 1;
        width: 48px;
        height: 48px;
        border-width: 4px;
        font-size: .92rem;
    }

    .stn-step:nth-child(n) .stn-doodle {
        position: absolute;
        z-index: 1;
        top: -24px;
        right: 14px;
        grid-column: auto;
        width: 70px;
    }

    .stn-card {
        padding-right: 4.5rem;
        border-radius: 17px;
    }

    .stn-route-base {
        stroke-width: 4;
    }

    .stn-route-progress {
        stroke-width: 6;
    }

    .stn-closing {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .stn-journey {
        padding-inline: .75rem;
    }

    .stn-step {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .stn-marker {
        width: 42px;
        height: 42px;
    }

    .stn-card {
        padding: 1.2rem 3.4rem 1.2rem 1.15rem;
    }

    .stn-card h3 {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stn-route-progress, .stn-card, .stn-cta {
        animation: none !important;
        transition: none !important;
    }

    .stn-journey.has-reveal .stn-card {
        opacity: 1;
        transform: none;
    }

    .stn-journey.has-reveal .stn-doodle {
        opacity: 1;
    }

    .stn-step.is-revealed .stn-marker {
        animation: none !important;
        color: #fff;
        background-color: var(--stn-blue);
        box-shadow: 0 0 0 5px rgb(0 114 206 / 18%), 0 10px 26px rgb(0 114 206 / 25%);
        transform: none;
    }
}


