/* Your Journey (/journey): the compass (the five steps) with its walking figure, what's along the way, and the start invitation.
   Shared layout (header, .section, .section-intro, .eyebrow, .btn, footer) is in site.css. */

/* ---- hero ---- */
.jr-hero {
    padding: 90px max(5vw, 20px) 40px;
    background:
        radial-gradient(ellipse at 70% 100%, #f2a64a2e 0%, transparent 55%),
        radial-gradient(ellipse at 20% 0%, #b449ff26 0%, transparent 50%),
        linear-gradient(180deg, #0c0b13, #120d18);
}

.jr-hero .intro {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.jr-hero h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -.04em;
    font-size: clamp(44px, 6.4vw, 88px);
    line-height: 1.05;
    margin: 16px 0 22px;
    text-wrap: balance;
}

.jr-hero h1 em {
    background: linear-gradient(100deg, #d9a2ff 10%, #ffc37a 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .1em;
}

.jr-hero p {
    max-width: 62ch;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #d8cde2;
}

/* ---- the compass: the road of five steps ---- */
.jr-road-sec {
    background:
        radial-gradient(ellipse at 50% 60%, #3a165e55, transparent 60%),
        #0c0b13;
}

.jr-stories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 26px;
}

.jr-stories button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 22px;
    border-radius: 18px;
    border: 1px solid #ffffff2c;
    background: #ffffff08;
    color: #f1e8f8;
    text-align: left;
}

.jr-stories button b {
    font-size: 16px;
}

.jr-stories button small {
    font-size: 13px;
    color: #c9bdd6;
}

.jr-stories button[aria-selected="true"] {
    border-color: transparent;
    background: linear-gradient(115deg, #8d34d4, #bc54e8 60%, #d9845a);
    box-shadow: 0 0 24px #b45cff55;
}

.jr-stories button[aria-selected="true"] small {
    color: #fff;
}

.jr-road {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.jr-road svg.road {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.jr-road svg.tall {
    display: none;
}

.road-base {
    fill: none;
    stroke: #1c1426;
    stroke-width: 26;
    stroke-linecap: round;
}

.road-glow {
    fill: none;
    stroke-width: 26;
    stroke-linecap: round;
    opacity: .18;
}

.road-line {
    fill: none;
    stroke: #ffc37a66;
    stroke-width: 1.5;
    stroke-dasharray: 8 10;
}

.road-walked {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px #df6cff);
}

.walker .aura {
    fill: #ffc37a33;
}

.walker .head {
    fill: #fff4e0;
}

.walker .body {
    fill: none;
    stroke: #fff4e0;
    stroke-width: 3;
    stroke-linecap: round;
}

.walker {
    filter: drop-shadow(0 0 8px #ffc37a);
}

.walker.walking .body {
    animation: stride .35s ease-in-out infinite alternate;
    transform-origin: 0 -9px;
}

@keyframes stride {
    from {
        transform: scaleX(.85);
    }
    to {
        transform: scaleX(1.1);
    }
}

.stops {
    position: absolute;
    inset: 0;
}

.stop {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 0;
    background: none;
    color: #f9f4ff;
    font-weight: 700;
    font-size: 14px;
}

.stop i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffc37a99;
    background: #1c1426;
    transition: background .3s, box-shadow .3s, transform .3s;
}

.stop span {
    position: absolute;
    top: 38px;
    white-space: nowrap;
    text-shadow: 0 1px 8px #0c0b13;
}

.stop.passed i {
    background: #df6cff;
    border-color: #f7adff;
}

.stop[aria-selected="true"] i,
.stop:hover i {
    background: radial-gradient(circle at 35% 30%, #fff4e0, #ffc37a 70%);
    border-color: transparent;
    box-shadow: 0 0 22px #ffc37a;
    transform: scale(1.2);
}

.stop[aria-selected="true"] span {
    color: #ffc37a;
}

.jr-panel {
    max-width: 760px;
    margin: 44px auto 0;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 22px;
    border: 1px solid #ffffff22;
    background: linear-gradient(160deg, #1e1829, #171320);
    text-align: center;
}

.jr-panel .k {
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 700;
    color: #ffc37a;
}

.jr-panel h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(26px, 3vw, 34px);
    margin: 8px 0 10px;
}

.jr-panel p {
    margin: 0;
    color: #ddd2ea;
    font-size: 17px;
    line-height: 1.7;
}

.jr-panel p + p {
    margin-top: 12px;
}

.jr-closing {
    max-width: 760px;
    margin: 30px auto 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.5;
    color: #f9f4ff;
}

.jr-closing em {
    color: #df6cff;
}

.jr-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.jr-pager button {
    color: #f9f4ff;
    background: #ffffff0b;
    border: 1px solid #ffffff2a;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
}

.jr-pager button:disabled {
    opacity: .4;
}

.jr-note {
    margin: 16px auto 0;
    text-align: center;
    font-size: 12px;
    font-style: italic;
    color: #8f86a0;
}

/* ---- what's along the way ---- */
.jr-supports {
    background: radial-gradient(ellipse at 50% 30%, #281337, #0c0b13 70%);
}

.jr-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.jr-support {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 26px;
    border-radius: 18px;
    border: 1px solid #ffffff1c;
    border-top: 3px solid var(--c);
    background: #17121f;
    scroll-margin-top: 100px;
}

.jr-support:target {
    box-shadow: 0 0 30px color-mix(in srgb, var(--c) 35%, transparent);
}

.jr-support .k {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--c);
}

.jr-support h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 26px;
    margin: 8px 0;
}

.jr-support p {
    margin: 0 0 14px;
    color: #e6dcf0;
    line-height: 1.6;
}

.jr-support ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #cfc4dc;
    font-size: 14px;
    line-height: 1.7;
}

.jr-support .areas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: auto;
    font-size: 12px;
    color: #cfc4dc;
}

.jr-support .areas i {
    width: 9px;
    height: 9px;
    margin-left: 4px;
    border-radius: 50%;
    background: var(--a);
    box-shadow: 0 0 8px var(--a);
}

.jr-support .areas i:first-child {
    margin-left: 0;
}

.jr-support .fine {
    margin-top: 12px;
    font-size: 12px;
    color: #a99fb7;
}

/* ---- start your journey ---- */
.jr-start {
    background:
        radial-gradient(ellipse at 50% 100%, #f2a64a24, transparent 55%),
        #100c18;
}

.jr-next {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    color: #d7cce4;
    line-height: 1.6;
}

.jr-next li::marker {
    color: #ffc37a;
    font-weight: 700;
}

.jr-next b {
    color: #f9f4ff;
}

.jr-start .actions {
    justify-content: center;
}

/* ---- smaller screens: the road turns tall ---- */
@media (max-width: 900px) {
    .jr-support-grid,
    .jr-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .jr-road {
        max-width: 290px;
    }
    .jr-road svg.wide {
        display: none;
    }
    .jr-road svg.tall {
        display: block;
    }
    .stop span {
        top: 50%;
        left: 40px;
        transform: translateY(-50%);
    }
    .jr-panel {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stop i {
        transition: none;
    }
    .walker.walking .body {
        animation: none;
    }
}
