/* ==========================================================================
   Morgane Smeesters — About page
   Intro layout follows BACI's "Come & Meet" section: three in-flow columns,
   the textile as the background of the last column, photos centred and
   overlapped with margins — no absolutely positioned photos.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Intro
   -------------------------------------------------------------------------- */
.about-intro {
    --pad-top: clamp(130px, 13vw, 180px);
    --pad-bottom: clamp(60px, 8vw, 110px);
    --title-gap: clamp(20px, 3.4vw, 56px);
    /* how far the silk reaches past the copy block (~40px above the script
       and 40px below the button) */
    --silk-top: clamp(72px, 6vw, 92px);
    --silk-bottom: 40px;

    display: flex;
    align-items: stretch;
    isolation: isolate;
    /* clear the navbar and start the row (and the silk) at the title */
    padding-top: calc(var(--pad-top) + var(--title-gap));
    padding-bottom: var(--pad-bottom);
    background: var(--cream);
    overflow-x: clip;
}

.about-intro__copy {
    flex: 0 0 52%;
    min-width: 0;
    /* near the page edge, like the reference (design canvas: 6.15%) */
    padding-left: clamp(20px, 6.15vw, 160px);
    padding-right: clamp(16px, 2vw, 32px);
}

/* Title — flush with the copy edge, script resting above it */
.about-intro__title {
    position: relative;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 3.9vw, 52px);
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: var(--brown);
}

.about-intro__script {
    position: absolute;
    left: -0.3em;
    top: -0.65em;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(36px, 5.4vw, 80px);
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--coral);
}

.about-intro__body {
    margin-top: clamp(30px, 3.8vw, 48px);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink);
    /* no justification — the design's wide word gaps were a printing artefact */
    text-align: left;
}

.about-intro__body p {
    max-width: 30rem;
}

.about-intro__body p+p {
    margin-top: 1.1em;
}

.about-intro__body .btn {
    margin-top: clamp(26px, 3.4vw, 42px);
}

/* --------------------------------------------------------------------------
   2. Photos
   -------------------------------------------------------------------------- */

/* Narrow rail: the café portrait is wider than its column and spills into the
   silk panel, exactly like BACI's first image with its negative margin. */
.about-intro__rail {
    flex: 0 0 8.25%;
    min-width: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.about-intro__cafe {
    flex: 0 0 auto;
    width: 26vw;
    /* the global `img { max-width: 100% }` would clamp it to the narrow rail */
    max-width: 380px;
    height: auto;
    aspect-ratio: 0.72;
    object-fit: cover;
}

/* Last column: the textile is a layer pinned to the column, reaching slightly
   past the copy block above and below. */
.about-intro__panel {
    position: relative;
    flex: 1 1 39.75%;
    min-width: 0;
    display: flex;
    align-items: center;
}

.about-intro__panel::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--silk-top));
    right: 0;
    bottom: calc(-1 * var(--silk-bottom));
    left: 0;
    /* softened like the mockup: the photo sits at reduced opacity over the
       cream page, which lifts the shadows and tones the fabric down */
    background: url("../assets/about/silk-teal.jpg") center / cover no-repeat;
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

/* hotel room — inside the panel, offset right and painted above the café */
.about-intro__room {
    position: relative;
    z-index: 3;
    width: 49%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 0.7;
    object-fit: cover;
    margin-left: 25%;
}

/* --------------------------------------------------------------------------
   3. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* a little more headroom so the extended silk clears the navbar */
    .about-intro {
        padding-top: calc(var(--pad-top) + var(--title-gap) + 12px);
    }
}

@media (max-width: 860px) {
    /* copy above, then a 25 / 75 photo row with the silk behind (BACI's
       tablet + mobile arrangement) */
    .about-intro {
        --silk-top: 0px;
        --silk-bottom: 0px;

        display: grid;
        grid-template-columns: 25% 75%;
        padding-top: var(--pad-top);
    }

    .about-intro__copy {
        grid-column: 1 / -1;
        padding: 0 var(--gut) clamp(34px, 6vw, 56px);
    }

    .about-intro__title {
        font-size: clamp(30px, 6.4vw, 44px);
    }

    .about-intro__rail {
        grid-column: 1;
        align-items: center;
        z-index: 2;
    }

    .about-intro__cafe {
        width: 52vw;
    }

    .about-intro__panel {
        grid-column: 2;
        align-items: center;
    }

    .about-intro__room {
        width: 60%;
        margin-left: 22%;
    }
}

@media (max-width: 620px) {
    .about-intro__body p {
        max-width: none;
    }

    /* keep the script inside the viewport on narrow screens */
    .about-intro__script {
        left: -0.3em;
        font-size: clamp(26px, 7.4vw, 38px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-intro * {
        transition: none;
    }
}
