/* =========================================
   About / Meet Julie
========================================= */

.about {
    height: 235vh;

    position: relative;

    background-color: var(--bg-dark);
    color: var(--text-light);
}


/* =========================================
   Sticky Stage
========================================= */

.about__stage {
    width: 100%;
    height: 100svh;

    position: sticky;
    top: 0;

    overflow: hidden;

    background-color: var(--bg-dark);
}


/* =========================================
   Quote Scene
========================================= */

.about__quote-scene {
    width: 100%;
    height: 100%;

    padding: 2rem 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.about__eyebrow {
    margin: 0 0 2rem;

    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--sage);
}

.about__quote {
    width: 100%;
    max-width: 18ch;

    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.75rem, 10vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;

    color: var(--text-light);
}


/* =========================================
   Portrait Scene
========================================= */

.about__portrait-scene {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    background-color: var(--bg-dark);

    opacity: 0;
    visibility: hidden;

    overflow: hidden;
}


/* =========================================
   MOBILE FIRST
========================================= */

/*
 * The image occupies the upper part of the
 * viewport, but begins fading much earlier than
 * before so the long bio gets real dark space.
 */

.about__portrait {
    width: 100%;
    height: 64%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    display: block;

    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 38%,
        rgba(0, 0, 0, 0.96) 44%,
        rgba(0, 0, 0, 0.82) 51%,
        rgba(0, 0, 0, 0.58) 59%,
        rgba(0, 0, 0, 0.32) 67%,
        rgba(0, 0, 0, 0.12) 75%,
        transparent 84%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 38%,
        rgba(0, 0, 0, 0.96) 44%,
        rgba(0, 0, 0, 0.82) 51%,
        rgba(0, 0, 0, 0.58) 59%,
        rgba(0, 0, 0, 0.32) 67%,
        rgba(0, 0, 0, 0.12) 75%,
        transparent 84%,
        transparent 100%
    );
}

.about__portrait img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center 34%;
}


/*
 * This is deliberately subtle.
 *
 * The mask does most of the work. This extra
 * gradient just guarantees that the transition
 * behind the first few lines of copy feels smooth.
 */

.about__portrait-scene::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 31%,
        rgba(20, 20, 21, 0.06) 38%,
        rgba(20, 20, 21, 0.22) 45%,
        rgba(20, 20, 21, 0.52) 53%,
        rgba(20, 20, 21, 0.82) 62%,
        var(--bg-dark) 72%,
        var(--bg-dark) 100%
    );
}


/* =========================================
   Bio — Mobile
========================================= */

.about__bio {
    width: calc(100% - 1.5rem);
    max-width: 32rem;

    position: absolute;

    left: 0.75rem;
    bottom: clamp(1.25rem, 3.5vh, 2rem);

    z-index: 3;
}

.about__bio-label {
    margin: 0 0 0.55rem;

    font-family: "Manrope", sans-serif;
    font-size: 0.54rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: var(--sage);
}

.about__bio-text {
    width: 100%;
    max-width: 32ch;

    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.98rem, 4.45vw, 1.16rem);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -0.008em;

    color: var(--text-light);
}


/* =========================================
   Very Small Mobile
========================================= */

@media only screen and (max-width: 23rem) {

    .about__portrait {
        height: 61%;
    }

    .about__bio {
        width: calc(100% - 1.25rem);

        left: 0.625rem;
        bottom: 1rem;
    }

    .about__bio-label {
        margin-bottom: 0.45rem;

        font-size: 0.5rem;
    }

    .about__bio-text {
        max-width: 33ch;

        font-size: clamp(0.91rem, 4.3vw, 1.02rem);
        line-height: 1.14;
    }
}


/* =========================================
   Larger Mobile
========================================= */

@media only screen
    and (min-width: 30rem)
    and (max-width: 47.99rem) {

    .about__portrait {
        height: 66%;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 40%,
            rgba(0, 0, 0, 0.95) 47%,
            rgba(0, 0, 0, 0.78) 55%,
            rgba(0, 0, 0, 0.5) 63%,
            rgba(0, 0, 0, 0.22) 72%,
            transparent 84%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 40%,
            rgba(0, 0, 0, 0.95) 47%,
            rgba(0, 0, 0, 0.78) 55%,
            rgba(0, 0, 0, 0.5) 63%,
            rgba(0, 0, 0, 0.22) 72%,
            transparent 84%
        );
    }

    .about__bio {
        width: calc(100% - 2rem);

        left: 1rem;
        bottom: clamp(1.5rem, 4vh, 2.5rem);
    }

    .about__bio-text {
        max-width: 34ch;

        font-size: clamp(1.05rem, 3.6vw, 1.25rem);
        line-height: 1.17;
    }
}


/* =========================================
   TABLET PORTRAIT
========================================= */

@media only screen
    and (min-width: 48rem)
    and (max-width: 63.99rem)
    and (orientation: portrait) {

    /* -----------------------------------------
       Quote
    ----------------------------------------- */

    .about__quote-scene {
        padding: 3rem;
    }

    .about__eyebrow {
        margin-bottom: 2rem;
    }

    .about__quote {
        max-width: 19ch;

        font-size: clamp(3.75rem, 7vw, 5rem);
    }


    /* -----------------------------------------
       Portrait
    ----------------------------------------- */

    .about__portrait {
        width: 100%;
        height: 65%;

        top: 0;
        left: 0;
        right: auto;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.96) 49%,
            rgba(0, 0, 0, 0.78) 57%,
            rgba(0, 0, 0, 0.5) 66%,
            rgba(0, 0, 0, 0.22) 76%,
            transparent 88%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.96) 49%,
            rgba(0, 0, 0, 0.78) 57%,
            rgba(0, 0, 0, 0.5) 66%,
            rgba(0, 0, 0, 0.22) 76%,
            transparent 88%
        );
    }

    .about__portrait img {
        object-position: center 32%;
    }


    /*
     * Tablet gets its own slightly longer
     * dark transition.
     */

    .about__portrait-scene::after {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 34%,
            rgba(20, 20, 21, 0.08) 42%,
            rgba(20, 20, 21, 0.28) 50%,
            rgba(20, 20, 21, 0.58) 59%,
            rgba(20, 20, 21, 0.86) 68%,
            var(--bg-dark) 78%,
            var(--bg-dark) 100%
        );
    }


    /* -----------------------------------------
       Bio
    ----------------------------------------- */

    .about__bio {
        width: min(84%, 39rem);
        max-width: none;

        left: 50%;
        right: auto;
        bottom: clamp(2rem, 4vh, 3.5rem);

        transform: translateX(-50%);
    }

    .about__bio-label {
        margin-bottom: 0.7rem;

        font-size: 0.6rem;
    }

    .about__bio-text {
        max-width: 34ch;

        font-size: clamp(1.25rem, 2.65vw, 1.65rem);
        line-height: 1.17;
    }
}


/* =========================================
   DESKTOP
========================================= */

@media only screen and (min-width: 64rem) {

    /* -----------------------------------------
       Quote
    ----------------------------------------- */

    .about__quote-scene {
        padding: 4rem;
    }

    .about__eyebrow {
        margin-bottom: 2.5rem;
    }

    .about__quote {
        max-width: 20ch;

        font-size: clamp(4rem, 6vw, 6.5rem);
    }


    /* -----------------------------------------
       Remove mobile vertical overlay
    ----------------------------------------- */

    .about__portrait-scene::after {
        display: none;
    }


    /* -----------------------------------------
       Portrait — Right Side
    ----------------------------------------- */

    .about__portrait {
        width: 66%;
        height: 100%;

        top: 0;
        right: 0;
        left: auto;

        -webkit-mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 46%,
            rgba(0, 0, 0, 0.98) 53%,
            rgba(0, 0, 0, 0.91) 60%,
            rgba(0, 0, 0, 0.76) 67%,
            rgba(0, 0, 0, 0.56) 74%,
            rgba(0, 0, 0, 0.34) 81%,
            rgba(0, 0, 0, 0.15) 88%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to left,
            #000 0%,
            #000 46%,
            rgba(0, 0, 0, 0.98) 53%,
            rgba(0, 0, 0, 0.91) 60%,
            rgba(0, 0, 0, 0.76) 67%,
            rgba(0, 0, 0, 0.56) 74%,
            rgba(0, 0, 0, 0.34) 81%,
            rgba(0, 0, 0, 0.15) 88%,
            transparent 100%
        );
    }

    .about__portrait img {
        object-fit: cover;
        object-position: 58% center;
    }


    /* -----------------------------------------
       Bio — Left Side
    ----------------------------------------- */

    .about__bio {
        width: 34%;
        max-width: 34rem;

        top: 50%;
        left: clamp(3rem, 5.5vw, 7rem);
        right: auto;
        bottom: auto;

        transform: translateY(-50%);
    }

    .about__bio-label {
        margin-bottom: 0.85rem;

        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .about__bio-text {
        width: 100%;
        max-width: 32ch;

        font-size: clamp(1.15rem, 1.3vw, 1.55rem);
        line-height: 1.2;
    }
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media only screen and (min-width: 80rem) {

    .about__portrait {
        width: 63%;
    }

    .about__bio {
        width: 32%;
        max-width: 36rem;

        left: clamp(4rem, 7vw, 8rem);
    }

    .about__bio-text {
        max-width: 33ch;

        font-size: clamp(1.25rem, 1.3vw, 1.7rem);
        line-height: 1.2;
    }
}


/* =========================================
   SHORT / LANDSCAPE
========================================= */

@media only screen
    and (max-height: 31rem)
    and (orientation: landscape) {

    /* -----------------------------------------
       Quote
    ----------------------------------------- */

    .about__quote-scene {
        padding: 2rem 3rem;
    }

    .about__eyebrow {
        margin-bottom: 0.75rem;

        font-size: 0.55rem;
        letter-spacing: 0.12em;
    }

    .about__quote {
        max-width: 20ch;

        font-size: clamp(2.25rem, 9vh, 3rem);
        line-height: 0.95;
    }


    /* -----------------------------------------
       No vertical mobile overlay
    ----------------------------------------- */

    .about__portrait-scene::after {
        display: none;
    }


    /* -----------------------------------------
       Portrait — Left Side
    ----------------------------------------- */

    .about__portrait {
        width: 60%;
        height: 100%;

        top: 0;
        left: 0;
        right: auto;

        -webkit-mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.92) 54%,
            rgba(0, 0, 0, 0.68) 66%,
            rgba(0, 0, 0, 0.38) 78%,
            rgba(0, 0, 0, 0.15) 88%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to right,
            #000 0%,
            #000 42%,
            rgba(0, 0, 0, 0.92) 54%,
            rgba(0, 0, 0, 0.68) 66%,
            rgba(0, 0, 0, 0.38) 78%,
            rgba(0, 0, 0, 0.15) 88%,
            transparent 100%
        );
    }

    .about__portrait img {
        object-fit: cover;
        object-position: 42% center;
    }


    /* -----------------------------------------
       Bio — Right
    ----------------------------------------- */

    .about__bio {
        width: 39%;
        max-width: 29rem;

        top: 50%;
        right: 2.5%;
        bottom: auto;
        left: auto;

        transform: translateY(-50%);
    }

    .about__bio-label {
        margin-bottom: 0.4rem;

        font-size: 0.46rem;
        letter-spacing: 0.1em;
    }

    .about__bio-text {
        max-width: 34ch;

        font-size: clamp(0.72rem, 3.1vh, 0.98rem);
        line-height: 1.14;
    }
}