/* =========================================================
   MARAMATTA EXPERIENCE LANDING PAGE
   07 · JOURNEY IN PRACTICE
   ========================================================= */


/* =========================================================
   SECTION FOUNDATION
   ========================================================= */

.landing-journey-practice {

    position: relative;

    width: 100%;

    background: var(--ms-bg);

    overflow: hidden;
}


/*
 * Give the section enough breathing room to feel
 * distinctly editorial after the journey collection.
 */

.landing-journey-practice
.section-body {

    position: relative;

    width: 100%;

    padding-top:
        clamp(
            2rem,
            4vw,
            4rem
        );

}


/* =========================================================
   TIMELINE FRAME
   ========================================================= */

.landing-journey-practice__timeline {

    position: relative;

    width: min(
        100%,
        1080px
    );

    margin-inline: auto;

    padding-block:
        clamp(
            2rem,
            5vw,
            5rem
        );
}


/*
 * The vertical journey line.
 *
 * It sits behind the markers rather than beside
 * the content, creating the feeling of one continuous
 * journey from beginning to end.
 */

.landing-journey-practice__timeline::before {

    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 88px;

    width: 1px;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(39,73,33,.16) 8%,
            rgba(39,73,33,.16) 92%,
            transparent 100%
        );

    pointer-events: none;
}


/* =========================================================
   JOURNEY CHAPTER
   ========================================================= */

.landing-journey-practice__chapter {

    position: relative;

    display: grid;

    grid-template-columns:
        176px
        minmax(0, 1fr);

    column-gap:
        clamp(
            2rem,
            5vw,
            5rem
        );

    padding-block:
        clamp(
            2.5rem,
            5vw,
            5rem
        );

    isolation: isolate;
}


/*
 * Soft editorial separation.
 *
 * Not a heavy card border.
 */

.landing-journey-practice__chapter
+ .landing-journey-practice__chapter {

    border-top:
        1px solid
        rgba(39,73,33,.08);
}


/* =========================================================
   MARKER
   ========================================================= */

.landing-journey-practice__marker {

    position: relative;

    display: flex;

    align-items: flex-start;

    justify-content: flex-start;

    z-index: 2;
}


/*
 * Number becomes the visual anchor of
 * every chapter.
 */

.landing-journey-practice__number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 52px;
    height: 52px;

    border:
        1px solid
        rgba(39,73,33,.22);

    border-radius: 50%;

    background: var(--ms-bg);

    color: var(--ms-green);

    font-size: .67rem;

    font-weight: 700;

    letter-spacing: .12em;

    line-height: 1;

    position: relative;
}


/*
 * Small centre point.
 *
 * This gives the timeline a subtle
 * cartographic / journey quality.
 */

.landing-journey-practice__number::after {

    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--ms-orange);

}


/* =========================================================
   CHAPTER CONTENT
   ========================================================= */

.landing-journey-practice__content {

    max-width: 650px;

    padding-right:
        clamp(
            0rem,
            3vw,
            3rem
        );
}


/* =========================================================
   EYEBROW
   ========================================================= */

.landing-journey-practice__eyebrow {

    display: block;

    margin-bottom: .9rem;

    color: var(--ms-orange);

    font-size: .68rem;

    font-weight: 700;

    letter-spacing: .17em;

    line-height: 1.4;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.landing-journey-practice__title {

    margin: 0 0 1rem;

    color: var(--ms-green);

    font-family:
        inherit;

    font-size:
        clamp(
            1.65rem,
            3vw,
            2.65rem
        );

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -.035em;
}


/* =========================================================
   TEXT
   ========================================================= */

.landing-journey-practice__text {

    max-width: 58ch;

    margin: 0;

    color:
        rgba(39,73,33,.72);

    font-size:
        clamp(
            .94rem,
            1vw,
            1.04rem
        );

    line-height: 1.75;
}


/* =========================================================
   SUBTLE CHAPTER INDICATOR
   ========================================================= */

.landing-journey-practice__content::after {

    content: "";

    display: block;

    width: 34px;

    height: 1px;

    margin-top: 1.6rem;

    background: var(--ms-orange);

    opacity: .55;
}


/* =========================================================
   ALTERNATING EDITORIAL RHYTHM
   ========================================================= */

/*
 * Every second chapter moves slightly toward
 * the opposite side.
 *
 * The timeline itself remains fixed.
 */

.landing-journey-practice__chapter:nth-child(even)
.landing-journey-practice__content {

    padding-left:
        clamp(
            0rem,
            4vw,
            4rem
        );
}


/* =========================================================
   CLOSING STATEMENT
   ========================================================= */

.landing-journey-practice__closing {

    width: min(
        100%,
        760px
    );

    margin:
        clamp(
            2rem,
            5vw,
            5rem
        )
        auto
        0;

    padding:
        clamp(
            3rem,
            6vw,
            5.5rem
        )
        clamp(
            1.5rem,
            4vw,
            4rem
        );

    text-align: center;

    border-top:
        1px solid
        rgba(39,73,33,.12);

    border-bottom:
        1px solid
        rgba(39,73,33,.12);
}


/*
 * Closing editorial statement.
 */

.landing-journey-practice__closing p {

    max-width: 620px;

    margin: 0 auto 2rem;

    color: var(--ms-green);

    font-family: inherit;

    font-size:
        clamp(
            1.35rem,
            2.5vw,
            2rem
        );

    font-weight: 400;

    line-height: 1.4;

    letter-spacing: -.025em;
}


/* =========================================================
   CLOSING LINK
   ========================================================= */

.landing-journey-practice__link {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: .7rem;

    padding-bottom: .45rem;

    color: var(--ms-green);

    text-decoration: none;

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;
}


/*
 * Editorial underline.
 */

.landing-journey-practice__link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 0;

    height: 1px;

    background: currentColor;

    transform-origin: left;

    transition:
        transform .35s
        cubic-bezier(.22,.61,.36,1);
}


.landing-journey-practice__link span {

    display: inline-block;

    font-size: 1rem;

    line-height: 1;

    transition:
        transform .35s
        cubic-bezier(.22,.61,.36,1);
}


.landing-journey-practice__link:hover::after {

    transform:
        scaleX(.45);
}


.landing-journey-practice__link:hover span {

    transform:
        translateX(5px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .landing-journey-practice__timeline {

        width: min(
            100%,
            900px
        );

    }

    .landing-journey-practice__timeline::before {

        left: 72px;

    }

    .landing-journey-practice__chapter {

        grid-template-columns:
            144px
            minmax(0,1fr);

        column-gap: 2.5rem;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .landing-journey-practice
    .section-body {

        padding-top: 1rem;

    }


    .landing-journey-practice__timeline {

        padding-block: 1.5rem 2rem;

    }


    /*
     * On mobile the timeline moves closer
     * to the left edge.
     */

    .landing-journey-practice__timeline::before {

        left: 25px;

    }


    .landing-journey-practice__chapter {

        display: grid;

        grid-template-columns:
            52px
            minmax(0,1fr);

        column-gap: 1.25rem;

        padding-block: 2.5rem;

    }


    .landing-journey-practice__marker {

        justify-content: center;

    }


    .landing-journey-practice__number {

        width: 50px;
        height: 50px;

        font-size: .61rem;

    }


    .landing-journey-practice__content {

        padding: 0;

    }


    .landing-journey-practice__chapter:nth-child(even)
    .landing-journey-practice__content {

        padding-left: 0;

    }


    .landing-journey-practice__eyebrow {

        margin-bottom: .7rem;

        font-size: .61rem;

        letter-spacing: .14em;

    }


    .landing-journey-practice__title {

        margin-bottom: .85rem;

        font-size:
            clamp(
                1.45rem,
                6vw,
                2rem
            );

        line-height: 1.08;

    }


    .landing-journey-practice__text {

        font-size: .91rem;

        line-height: 1.65;

    }


    .landing-journey-practice__content::after {

        margin-top: 1.25rem;

    }


    .landing-journey-practice__closing {

        margin-top: 2rem;

        padding:
            2.75rem
            1.25rem
            3rem;

    }


    .landing-journey-practice__closing p {

        font-size: 1.25rem;

        line-height: 1.45;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .landing-journey-practice__timeline::before {

        left: 22px;

    }


    .landing-journey-practice__chapter {

        grid-template-columns:
            44px
            minmax(0,1fr);

        column-gap: 1rem;

        padding-block: 2.25rem;

    }


    .landing-journey-practice__number {

        width: 44px;
        height: 44px;

        font-size: .57rem;

    }


    .landing-journey-practice__eyebrow {

        font-size: .58rem;

    }


    .landing-journey-practice__title {

        font-size: 1.4rem;

    }


    .landing-journey-practice__text {

        font-size: .88rem;

    }


    .landing-journey-practice__closing {

        padding-inline: 1.15rem;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .landing-journey-practice__link,
    .landing-journey-practice__link::after,
    .landing-journey-practice__link span {

        transition: none;

    }

}