/* =========================================================
   OUR ROOTS — MASHAK
   ========================================================= */

.roots {
    position: relative;
    width: 100%;
    overflow: hidden;

    background: #f5f2eb;
    color: #20211f;

    padding: 150px 0 180px;
}


/* =========================================================
   INNER CONTAINER
   ========================================================= */

.roots__inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.roots__intro {
    width: min(850px, 100%);
    margin: 0 auto 110px;
    text-align: center;
}


.roots__eyebrow {
    margin: 0 0 28px;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.28em;
    text-transform: uppercase;

    color: #456653;
}


.roots__title {
    margin: 0;

    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(72px, 8vw, 132px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.055em;

    color: #20211f;
}


.roots__intro-copy {
    width: min(680px, 100%);
    margin: 48px auto 0;
}


.roots__intro-copy p {
    margin: 0;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;

    color: #656761;
}


/* =========================================================
   VILLAGE IMAGE
   ========================================================= */

.roots__village {
    position: relative;

    width: 100%;
    margin: 0;
}


.roots__image-wrap {
    position: relative;
    overflow: hidden;
}


.roots__village .roots__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;

    border-radius: 4px;
}


.roots__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    will-change: transform;
}


.roots__image--village {
    transform: scale(1.04);
}


/* =========================================================
   VILLAGE CAPTION
   ========================================================= */

.roots__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;

    padding: 20px 4px 0;
}


.roots__caption-place {
    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #456653;
}


.roots__caption-detail {
    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.4;

    color: #777870;
}


/* =========================================================
   HERITAGE / PEOPLE
   ========================================================= */

.roots__heritage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(70px, 9vw, 150px);

    width: min(1120px, 100%);
    margin: 180px auto 0;
}


.roots__people {
    margin: 0;
}


.roots__people .roots__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;

    border-radius: 3px;
}


.roots__image--people {
    object-position: center center;
}


/* =========================================================
   HERITAGE COPY
   ========================================================= */

.roots__heritage-copy {
    max-width: 500px;
}


.roots__eyebrow--small {
    margin-bottom: 24px;

    font-size: 11px;
    letter-spacing: 0.24em;
}


.roots__heritage-title {
    margin: 0;

    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;

    color: #20211f;
}


.roots__body {
    width: min(440px, 100%);
    margin-top: 42px;
}


.roots__body p {
    margin: 0;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 17px;
    line-height: 1.7;

    color: #686a64;
}


.roots__body p + p {
    margin-top: 20px;
}


/* =========================================================
   CONNECTION / ROUTE
   ========================================================= */

.roots__connection {
    width: min(1120px, 100%);
    margin: 190px auto 0;
}


.roots__connection > .roots__eyebrow {
    text-align: center;
}


/* =========================================================
   ROUTE
   ========================================================= */

.roots__route {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    align-items: center;
    gap: 35px;

    margin-top: 55px;
}


.roots__route-point {
    position: relative;

    flex-shrink: 0;
}


.roots__route-label {
    display: block;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #30332f;
}


.roots__route-point::before {
    content: "";

    display: block;

    width: 9px;
    height: 9px;

    margin-bottom: 13px;

    border-radius: 50%;

    background: #456653;
}


.roots__route-point--village {
    text-align: right;
}


.roots__route-point--village::before {
    margin-left: auto;
}


/* =========================================================
   ROUTE LINE
   ========================================================= */

.roots__route-line {
    position: relative;

    height: 1px;

    background: #d4d1c9;
}


.roots__route-progress {
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 1px;

    background: #456653;

    transform-origin: left center;
}


.roots__route-distance {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    transform: translate(-50%, -50%);

    border: 1px solid #d4d1c9;
    border-radius: 50%;

    background: #f5f2eb;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #456653;
}


/* =========================================================
   CLOSING
   ========================================================= */

.roots__closing {
    width: min(900px, 100%);
    margin: 190px auto 0;

    text-align: center;
}


.roots__closing-title {
    margin: 0;

    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;

    color: #20211f;
}


.roots__closing-copy {
    width: min(600px, 100%);
    margin: 50px auto 0;

    font-family: var(--font-sans, Arial, sans-serif);
    font-size: 17px;
    line-height: 1.7;

    color: #686a64;
}


/* =========================================================
   INITIAL ANIMATION STATES
   JS will animate these into view.
   ========================================================= */

.roots__eyebrow,
.roots__title,
.roots__intro-copy,
.roots__village,
.roots__heritage-copy,
.roots__people,
.roots__connection,
.roots__closing {
    will-change: transform, opacity;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .roots__image {
        transform: none !important;
    }

    .roots__route-progress {
        width: 100% !important;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .roots {
        padding: 120px 0 140px;
    }


    .roots__inner {
        width: min(100% - 48px, 760px);
    }


    .roots__intro {
        margin-bottom: 80px;
    }


    .roots__heritage {
        grid-template-columns: 1fr;
        gap: 60px;

        width: min(680px, 100%);
        margin-top: 130px;
    }


    .roots__heritage-copy {
        max-width: 600px;
    }


    .roots__people {
        width: min(520px, 100%);
    }


    .roots__connection {
        margin-top: 140px;
    }


    .roots__closing {
        margin-top: 140px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .roots {
        padding: 90px 0 110px;
    }


    .roots__inner {
        width: calc(100% - 36px);
    }


    .roots__intro {
        margin-bottom: 60px;
    }


    .roots__eyebrow {
        margin-bottom: 22px;

        font-size: 10px;
        letter-spacing: 0.22em;
    }


    .roots__title {
        font-size: clamp(58px, 16vw, 86px);
        line-height: 0.9;
    }


    .roots__intro-copy {
        margin-top: 34px;
    }


    .roots__intro-copy p {
        font-size: 16px;
        line-height: 1.65;
    }


    .roots__village .roots__image-wrap {
        aspect-ratio: 4 / 3;
        border-radius: 2px;
    }


    .roots__caption {
        display: block;
        padding-top: 15px;
    }


    .roots__caption-place {
        display: block;
        margin-bottom: 6px;
    }


    .roots__caption-detail {
        font-size: 12px;
    }


    .roots__heritage {
        gap: 45px;
        margin-top: 100px;
    }


    .roots__people {
        width: 100%;
    }


    .roots__people .roots__image-wrap {
        aspect-ratio: 4 / 5;
    }


    .roots__heritage-title {
        font-size: clamp(46px, 12vw, 64px);
    }


    .roots__body {
        margin-top: 30px;
    }


    .roots__body p {
        font-size: 16px;
        line-height: 1.65;
    }


    .roots__connection {
        margin-top: 110px;
    }


    .roots__route {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-top: 45px;
        padding-left: 10px;
    }


    .roots__route-point--village {
        text-align: left;
    }


    .roots__route-point--village::before {
        margin-left: 0;
    }


    .roots__route-line {
        width: 1px;
        height: 90px;

        margin-left: 4px;
    }


    .roots__route-progress {
        width: 1px;
        height: 0;

        transform-origin: top center;
    }


    .roots__route-distance {
        top: 50%;
        left: 50%;
    }


    .roots__closing {
        margin-top: 110px;
    }


    .roots__closing-title {
        font-size: clamp(48px, 13vw, 68px);
    }


    .roots__closing-copy {
        margin-top: 35px;

        font-size: 16px;
        line-height: 1.65;
    }

}