﻿.journeyPage {
    position: relative;
    color: rgba(255,255,255,0.92);
}

/* HERO */
.journeyHero {
    padding: 120px 0 72px;
    position: relative;
    z-index: 2;
}

.journeyHeroGrid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px);
    gap: 48px;
    align-items: center;
}

.journeyHeroInner {
    min-width: 0;
    max-width: 760px;
}

.journeyHero .kicker {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(211,176,106,0.95);
    margin-bottom: 14px;
}

.journeyHero .hero-title {
    margin: 0 0 14px 0;
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 1.04;
}

.hero-subtitle {
    max-width: 60ch;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    font-size: 15px;
    margin: 0 0 18px 0;
}

.heroIntro {
    max-width: 62ch;
    color: rgba(255,255,255,0.78);
    line-height: 1.9;
    font-size: 15px;
    margin: 0;
}

.heroTags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .heroTags span {
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.72);
        font-size: 13px;
        letter-spacing: 0.03em;
    }

.heroPortraitPanel {
    width: 100%;
    max-width: 400px;
    justify-self: end;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(10,12,16,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.heroPortraitFrame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: radial-gradient(circle at 50% 18%, rgba(211,176,106,0.16), transparent 42%), rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .heroPortraitFrame::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.28));
        pointer-events: none;
    }

.heroPortraitImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.heroPortraitMeta {
    padding: 18px 18px 20px;
}

.heroPortraitName {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.94);
}

.heroPortraitRole {
    margin-top: 6px;
    color: rgba(255,255,255,0.64);
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* TIMELINE SECTION */
.journeyTimelineSection {
    position: relative;
    padding: 40px 0 140px;
    overflow: clip;
    z-index: 1;
}

.journeyParallaxBg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.journeyParallaxLayer,
.journeyParallaxGlow {
    position: absolute;
    inset: -10%;
    will-change: transform;
}

    .journeyParallaxLayer.layer1 {
        background: radial-gradient(circle at 18% 24%, rgba(211,176,106,0.08), transparent 22%), radial-gradient(circle at 78% 35%, rgba(120,180,255,0.08), transparent 24%);
        opacity: 0.9;
    }

    .journeyParallaxLayer.layer2 {
        background: radial-gradient(circle at 35% 70%, rgba(211,176,106,0.05), transparent 20%), radial-gradient(circle at 82% 78%, rgba(255,255,255,0.03), transparent 18%);
        filter: blur(20px);
        opacity: 0.85;
    }

.journeyParallaxGlow {
    background: linear-gradient(to bottom, rgba(211,176,106,0.02), transparent 25%, rgba(140,195,255,0.03) 100%);
}

.journeyTimeline {
    --rail-width: 4px;
    --rail-col-width: 130px;
    --node-size: 28px;
    --branch-length: 92px;
    --card-offset: 22px;
    position: relative;
    max-width: 1260px;
    margin: 0 auto;
    padding: 18px 0;
}

.journeySpine,
.journeyProgress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: var(--rail-width);
    border-radius: 999px;
}

.journeySpine {
    top: 0;
    bottom: 0;
    background: rgba(255,255,255,0.08);
}

.journeyProgress {
    top: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(211,176,106,0.98), rgba(140,195,255,0.92));
    box-shadow: 0 0 22px rgba(211,176,106,0.22);
    z-index: 1;
    transition: height 0.1s linear, top 0.1s linear;
}

/* moving traveler dot */
.journeyTraveler {
    position: absolute;
    left: 50%;
    top: 0;
    width: 18px;
    height: 18px;
    transform: translate(-50%, 0);
    border-radius: 999px;
    z-index: 4;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.95), rgba(255,255,255,0.35) 35%, rgba(211,176,106,0.95) 60%, rgba(211,176,106,0.15) 100%);
    box-shadow: 0 0 12px rgba(211,176,106,0.75), 0 0 28px rgba(211,176,106,0.35), 0 0 42px rgba(140,195,255,0.18);
    pointer-events: none;
    transition: top 0.1s linear, opacity 0.2s ease, transform 0.2s ease;
}

    .journeyTraveler.is-hidden {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.7);
    }
.journeyStep {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail-col-width) minmax(0, 1fr);
    align-items: center;
    column-gap: 34px;
    margin: 0 0 54px 0;
}

    .journeyStep:last-child {
        margin-bottom: 0;
    }

    .journeyStep.featured {
        min-height: 380px;
        margin: 16px 0 72px 0;
    }

.journeyCol {
    min-width: 0;
}

.journeyColLeft {
    grid-column: 1;
}

.journeyColRight {
    grid-column: 3;
}

.journeyRail {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.journeyYearLabel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(12,16,24,0.76);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.journeyStep.left .journeyYearLabel {
    left: calc(50% + 28px);
}

.journeyStep.right .journeyYearLabel {
    right: calc(50% + 28px);
}

.journeyNode {
    width: var(--node-size);
    height: var(--node-size);
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.18);
    background: rgba(8,10,14,0.96);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.015);
    transition: all 0.45s ease;
}

.journeyNodeInner {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    transition: all 0.45s ease;
}

.journeyCard {
    position: relative;
    width: min(100%, 470px);
    opacity: 0;
    border-radius: 24px;
    overflow: visible;
    background: rgba(10,12,16,0.58);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.45s ease, transform 0.55s ease, box-shadow 0.45s ease;
}

.journeyStep.featured .journeyCard {
    width: min(100%, 620px);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(0,0,0,0.42), 0 0 0 1px rgba(211,176,106,0.08);
}

.journeyStep.left .journeyCard {
    margin-left: auto;
    transform: translateX(calc(-1 * var(--card-offset)));
}

.journeyStep.right .journeyCard {
    margin-right: auto;
    transform: translateX(var(--card-offset));
}

/* curved connector */
.journeyConnector {
    position: absolute;
    top: 50%;
    width: var(--branch-length);
    height: 120px;
    overflow: visible;
    pointer-events: none;
    transform: translateY(-50%) scaleX(0.85);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.45s ease;
}

    .journeyConnector path {
        fill: none;
        stroke: rgba(211,176,106,0.88);
        stroke-width: 2.4;
        stroke-linecap: round;
        filter: drop-shadow(0 0 6px rgba(211,176,106,0.28));
    }

.journeyStep.left .journeyConnector {
    left: 100%;
}

.journeyStep.right .journeyConnector {
    right: 100%;
}

.journeyImageWrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: radial-gradient(circle at 50% 20%, rgba(211,176,106,0.16), transparent 50%), rgba(255,255,255,0.02);
}

.journeyStep.featured .journeyImageWrap {
    aspect-ratio: 18 / 8;
}

.journeyImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

.journeyCardBody {
    padding: 24px 24px 26px;
}

.journeyStep.featured .journeyCardBody {
    padding: 28px 28px 30px;
}

.journeyEyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(211,176,106,0.92);
    margin-bottom: 10px;
}

.journeyCard h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: rgba(255,255,255,0.96);
}

.journeyStep.featured .journeyCard h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

.journeyCard p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    font-size: 15px;
}

.journeyStep.featured .journeyCard p {
    font-size: 16px;
    line-height: 1.9;
}

/* states */
.journeyStep.visible .journeyNode {
    border-color: rgba(211,176,106,0.96);
    box-shadow: 0 0 0 10px rgba(211,176,106,0.08), 0 0 22px rgba(211,176,106,0.28);
}

.journeyStep.visible .journeyNodeInner {
    background: rgba(211,176,106,0.98);
    transform: scale(1.08);
}

.journeyStep.visible .journeyCard {
    opacity: 1;
    transform: translateX(0);
}

.journeyStep.visible .journeyConnector {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

.journeyStep.visible .journeyYearLabel {
    color: rgba(255,255,255,0.92);
    border-color: rgba(211,176,106,0.18);
}

/* MOBILE */
@media (max-width: 980px) {
    .journeyHeroGrid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .heroPortraitPanel {
        justify-self: start;
        max-width: 420px;
    }

    .journeyTimeline {
        --rail-col-width: 40px;
        --node-size: 28px;
        --branch-length: 28px;
        --card-offset: 0px;
    }

    .journeySpine,
    .journeyProgress,
    .journeyTraveler {
        left: 20px;
        transform: translateX(0);
    }

    .journeyTraveler {
        transform: translate(-50%, 0);
    }

    .journeyStep,
    .journeyStep.featured {
        min-height: auto;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 18px;
        align-items: start;
        margin: 0 0 30px 0;
    }

    .journeyColLeft,
    .journeyColRight {
        grid-column: 2;
    }

    .journeyRail {
        grid-column: 1;
        justify-content: center;
        align-items: flex-start;
        padding-top: 18px;
    }

    .journeyStep.left .journeyColRight,
    .journeyStep.right .journeyColLeft {
        display: none;
    }

    .journeyCard,
    .journeyStep.left .journeyCard,
    .journeyStep.right .journeyCard,
    .journeyStep.featured .journeyCard {
        width: 100%;
        margin: 0;
        transform: translateY(22px);
    }

    .journeyStep.visible .journeyCard {
        transform: translateY(0);
    }

    .journeyYearLabel {
        top: 20px;
        left: 32px !important;
        right: auto !important;
        transform: none;
    }

    .journeyConnector {
        top: 34px;
        left: calc(-1 * var(--branch-length)) !important;
        right: auto !important;
        width: var(--branch-length);
        height: 40px;
        transform: translateY(-50%) scaleX(0.85);
    }

        .journeyConnector path {
            d: path("M120,20 C80,20 40,20 0,20");
        }
}


/* =========================
   CLOSING SECTION
   ========================= */
.journeyClosingSection {
    position: relative;
    padding: 26px 0 140px;
}

.journeyClosing {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding-top: 44px;
}

.journeyClosingLine {
    position: relative;
    width: 4px;
    height: 110px;
    margin: 0 auto -8px;
    border-radius: 999px;
    background: linear-gradient( to bottom, rgba(140,195,255,0.55), rgba(211,176,106,0.95) );
    box-shadow: 0 0 20px rgba(211,176,106,0.14), 0 0 36px rgba(140,195,255,0.08);
}

.journeyClosingDot {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(255,255,255,0.35) 36%, rgba(211,176,106,0.96) 62%, rgba(211,176,106,0.16) 100%);
    box-shadow: 0 0 12px rgba(211,176,106,0.8), 0 0 26px rgba(211,176,106,0.3), 0 0 44px rgba(140,195,255,0.18);
}

.journeyClosingPanel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 38px 34px 34px;
    border-radius: 30px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(211,176,106,0.08), transparent 34%), rgba(10,12,16,0.62);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 70px rgba(0,0,0,0.36), 0 0 0 1px rgba(211,176,106,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

    .journeyClosingPanel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 32%), radial-gradient(circle at 50% 0%, rgba(140,195,255,0.06), transparent 38%);
        pointer-events: none;
    }

.journeyClosingKicker {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(211,176,106,0.95);
}

.journeyClosingPanel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: rgba(255,255,255,0.97);
}

.journeyClosingPanel p {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 62ch;
    color: rgba(255,255,255,0.74);
    line-height: 1.9;
    font-size: 15px;
}

.journeyClosingTags {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

    .journeyClosingTags span {
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.74);
        font-size: 13px;
        letter-spacing: 0.03em;
    }

.journeyClosingActions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.journeyBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

    .journeyBtn:hover {
        transform: translateY(-2px);
    }

.journeyBtnPrimary {
    color: #0b0d12;
    background: linear-gradient( 135deg, rgba(239,219,167,0.98), rgba(211,176,106,0.98) );
    box-shadow: 0 10px 28px rgba(211,176,106,0.22), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

    .journeyBtnPrimary:hover {
        box-shadow: 0 14px 34px rgba(211,176,106,0.3), 0 0 0 1px rgba(255,255,255,0.12) inset;
    }

.journeyBtnGhost {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

    .journeyBtnGhost:hover {
        border-color: rgba(211,176,106,0.22);
        background: rgba(255,255,255,0.05);
    }

/* subtle fade from timeline into ending */
.journeyClosingSection::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: min(860px, 90vw);
    height: 160px;
    background: radial-gradient(circle at center, rgba(211,176,106,0.08), transparent 70%);
    pointer-events: none;
}

@media (max-width: 980px) {
    .journeyClosingSection {
        padding: 18px 0 110px;
    }

    .journeyClosingLine {
        height: 84px;
    }

    .journeyClosingPanel {
        padding: 30px 20px 24px;
        border-radius: 24px;
    }

        .journeyClosingPanel p {
            font-size: 14px;
            line-height: 1.85;
        }

    .journeyBtn {
        width: 100%;
        max-width: 320px;
    }

    .journeyClosingActions {
        gap: 10px;
    }
}


/* =========================
   CLOSING STEP INSIDE TIMELINE
   ========================= */
.journeyStepClosing {
    min-height: auto;
    display: block;
    margin: 40px 0 0 0;
    padding-top: 42px;
}

.journeyClosingRail {
    position: relative;
    width: 4px;
    height: 110px;
    margin: 0 auto -6px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(140,195,255,0.55),
        rgba(211,176,106,0.96)
    );
    box-shadow:
        0 0 20px rgba(211,176,106,0.14),
        0 0 36px rgba(140,195,255,0.08);
    z-index: 2;
}

.journeyClosingNode {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(255,255,255,0.35) 36%, rgba(211,176,106,0.96) 62%, rgba(211,176,106,0.16) 100%);
    box-shadow:
        0 0 12px rgba(211,176,106,0.8),
        0 0 26px rgba(211,176,106,0.3),
        0 0 44px rgba(140,195,255,0.18);
}

.journeyStepClosing .journeyClosingPanel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 38px 34px 34px;
    border-radius: 30px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(211,176,106,0.08), transparent 34%),
        rgba(10,12,16,0.62);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.36),
        0 0 0 1px rgba(211,176,106,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.journeyStepClosing .journeyClosingPanel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent 32%),
        radial-gradient(circle at 50% 0%, rgba(140,195,255,0.06), transparent 38%);
    pointer-events: none;
}

.journeyStepClosing.visible .journeyClosingPanel {
    opacity: 1;
    transform: translateY(0);
}

.journeyClosingKicker {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(211,176,106,0.95);
}

.journeyClosingPanel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: rgba(255,255,255,0.97);
}

.journeyClosingPanel p {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 62ch;
    color: rgba(255,255,255,0.74);
    line-height: 1.9;
    font-size: 15px;
}

.journeyClosingTags {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.journeyClosingTags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.74);
    font-size: 13px;
    letter-spacing: 0.03em;
}

.journeyClosingActions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.journeyBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}

.journeyBtn:hover {
    transform: translateY(-2px);
}

.journeyBtnPrimary {
.journeyBtnPrimary {
    color: #0b0d12;
    background: linear-gradient(
        135deg,
        rgba(239,219,167,0.98),
        rgba(211,176,106,0.98)
    );
    box-shadow:
        0 10px 28px rgba(211,176,106,0.22),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}

.journeyBtnGhost {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 980px) {
    .journeyStepClosing {
        margin-top: 26px;
        padding-top: 24px;
    }

    .journeyClosingRail {
        height: 84px;
    }

    .journeyStepClosing .journeyClosingPanel {
        padding: 30px 20px 24px;
        border-radius: 24px;
    }

    .journeyClosingPanel p {
        font-size: 14px;
        line-height: 1.85;
    }

    .journeyBtn {
        width: 100%;
        max-width: 320px;
    }
}