.hero-journey {
    display: grid;
    align-items: center;
    padding-block: clamp(24px, 4.6vw, 68px);
    background: radial-gradient(ellipse at 49% 4%, #293c56, transparent 68%), #121e32;
    color: #f7f2e9;
}

.hero-journey-inner { width: min(1050px, calc(100% - 56px)); }
.hero-journey-heading, .hero-journey-finish { text-align: center; }
.hero-journey-heading .kicker { color: #edcf9c; margin-bottom: .5rem; }
.hero-journey-heading h2 span { display: inline-block; white-space: nowrap; }
.hero-journey-heading h2 { font: 500 clamp(25px, 4vw, 48px)/1.35 var(--serif); text-wrap: balance; }
.hero-journey-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    grid-auto-rows: 1fr;
    padding: 0;
    margin-block: clamp(16px, 3vw, 34px);
    list-style: none;
}
.hero-journey-steps > li { min-width: 0; position: relative; }
.hero-journey-steps > li:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 16px;
    height: 1px;
    background: #d8b880;
    transform-origin: left;
    opacity: .64;
}
.hero-journey-steps > li:nth-child(3)::after {
    content: '';
    position: absolute;
    height: 16px;
    width: calc(300% - 12px);
    right: 22px;
    bottom: -16px;
    background:
        linear-gradient(#d8b880, #d8b880) right top / 1px 50% no-repeat,
        linear-gradient(#d8b880, #d8b880) center / 100% 1px no-repeat,
        linear-gradient(#d8b880, #d8b880) left bottom / 1px 50% no-repeat;
    opacity: .64;
}
.hero-journey-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 1.2vw, 15px);
    min-height: 100%;
    padding: clamp(12px, 1.6vw, 24px);
    border: 1px solid #b696627f;
    background: linear-gradient(140deg, #26384f, #1a293e);
    text-decoration: none;
}
.hero-journey-link:hover, .hero-journey-link:focus-visible { color: #fff9ed; border-color: #f3d498; background: #2b3d54; }
.hero-journey-marker { display: grid; justify-items: center; gap: .2rem; color: #e7c792; }
.hero-journey-marker span { font: 600 .85rem/1.25 var(--serif); letter-spacing: .09em; }
.hero-journey-marker svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.hero-journey-copy { display: grid; gap: .35em; }
.hero-journey-copy strong { font-size: clamp(.88rem, 1.33vw, 1.09rem); line-height: 1.43; }
.hero-journey-copy > span { color: #ded9d1; font-size: .85rem; line-height: 1.55; }
.hero-journey-arrow { color: #f1d59d; }
.hero-journey-steps > li:last-child .hero-journey-link { background: linear-gradient(145deg, #403936, #293344); border-color: #d5b273; }
.hero-journey-finish p:first-child { color: #f1d6a9; font: 500 clamp(16px, 2.1vw, 26px)/1.5 var(--serif); }
.hero-journey-finish p:last-child { margin-top: .3em; color: #dcc398; font: italic 1rem/1.45 Georgia, serif; }

.journey-quick-nav .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1.1rem;
    padding-block: .75rem;
}
.journey-quick-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #263e58;
    font-size: .9rem;
    text-underline-offset: .3em;
}
.journey-quick-nav a:last-child { font-weight: 650; }
[data-journey-play] .hero-journey-steps > li { animation: journey-arrive .4s var(--journey-delay) ease-out; }
[data-journey-play] .hero-journey-steps > li::after { animation: journey-wire .36s var(--journey-delay) ease-out both; }
[data-journey-play] .hero-journey-marker path { animation: journey-ink .38s var(--journey-delay) ease-out both; }
[data-journey-play] .hero-journey-finish { animation: journey-arrive .32s 2.6s ease-out; }
@keyframes journey-arrive { from { transform: translateY(4px); opacity: .86; } to { transform: none; opacity: 1; } }
@keyframes journey-wire { from { opacity: .17; transform: scaleX(.2); } to { opacity: .64; transform: scaleX(1); } }
@keyframes journey-ink { from { stroke-dasharray: 1; stroke-dashoffset: .78; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

@media (max-width: 760px) {
    .hero-journey-inner { width: calc(100% - 36px); }
    .hero-journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hero-journey-steps > li::after { display: none; }
    .hero-journey-steps > li:nth-child(odd)::after { display: block; right: -10px; width: 10px; }
    .hero-journey-steps > li:nth-child(3)::after { top: 50%; bottom: auto; height: 1px; background: #d8b880; }
    .hero-journey-steps > li:nth-child(even):not(:last-child)::after {
        display: block;
        content: '';
        position: absolute;
        width: calc(200% - 24px);
        height: 10px;
        top: auto;
        right: 17px;
        bottom: -10px;
        opacity: .64;
        background:
            linear-gradient(#d8b880, #d8b880) right top / 1px 50% no-repeat,
            linear-gradient(#d8b880, #d8b880) center / 100% 1px no-repeat,
            linear-gradient(#d8b880, #d8b880) left bottom / 1px 50% no-repeat;
    }
    .hero-journey-link { position: relative; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .42rem; padding: 11px 10px; }
    .hero-journey-marker { grid-column: 1 / -1; display: flex; align-items: center; gap: .55rem; }
    .hero-journey-marker svg { width: 18px; height: 18px; }
    .hero-journey-arrow { position: absolute; top: 9px; right: 10px; }
}
@media (max-width: 470px) {
    .hero-switcher-inner { flex-wrap: wrap; gap: 0 .45rem; padding-block: 1px 5px; }
    .hero-scene-options { flex: 1 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-scene-options button { padding-inline: .08rem; }
    .hero-cycle-line { flex: 1; }
    .journey-quick-nav .wrap { column-gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-journey * { animation: none !important; }
}
