/* Section: about intro. */

.about-intro {
    position: relative;
    overflow: clip;
    isolation: isolate;
    color: var(--color-dark);
    padding-bottom: clamp(4.5rem, 9.8vw, 9.25rem);
}

.about-intro:not(.about-intro--banner) {
    padding-top: var(--section-pad);
}

.about-intro__grid {
    position: relative;
    z-index: 1;
    /* Its own grid rather than .grid, whose children global.css forces to full
       width below 1024px, which would undo the named areas. */
    display: grid;
    /* Column widths are the Figma frame's 492 / 356 / 435 split of the 1352 content box. */
    grid-template-columns: minmax(0, 492fr) minmax(0, 356fr) minmax(0, 435fr);
    grid-template-areas:
        "banner banner banner"
        "title  tiles  aside"
        "text   tiles  aside";
    grid-template-rows: auto auto 1fr;
    column-gap: 2.5%;
    row-gap: 0;
    align-items: start;
}

/* Full-bleed strip: the grid area is the content box, so half of it less half
   the viewport lands the left edge on the viewport's. */
.about-intro__banner {
    grid-area: banner;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: clamp(4.5rem, 11.25vw, 10.625rem);
}

.about-intro__banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1512 / 306;
    object-fit: cover;
    object-position: 50% 100%;
}

.about-intro__head {
    grid-area: title;
    margin: 0;
}

.about-intro__title {
    margin: 0;
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-style: italic;
    font-weight: var(--fw-bold);
    line-height: var(--lh-display);
}

/* Phone-only copy: the subheading is added and the lead swapped on small screens. */
.about-intro__subtitle,
.about-intro__lead--mobile {
    display: none;
}

.about-intro__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.about-intro__lead {
    margin: 0;
    font-size: clamp(1rem, 0.907rem + 0.381vw, 1.25rem);
    font-weight: var(--fw-semibold);
    line-height: 1.6;
    letter-spacing: -0.5px;
}

.about-intro__body,
.about-intro__side {
    font-size: var(--text-copy);
    line-height: var(--lh-copy);
}

/* Zero-specificity reset, so the paragraph spacing below still applies. */
:where(.about-intro__body, .about-intro__side, .about-intro__quote) p {
    margin: 0;
}

.about-intro__body > * + *,
.about-intro__side > * + * {
    margin-top: 1rem;
}

/* The bold runs set on a taller line, as they do in the frame. */
.about-intro__body :is(strong, b),
.about-intro__side :is(strong, b) {
    font-weight: var(--fw-bold);
    line-height: 1.667;
    letter-spacing: -0.25px;
}

.about-intro__tiles {
    grid-area: tiles;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 22.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-intro__tile {
    overflow: hidden;
    aspect-ratio: 166 / 167;
    border-radius: 4px;
    background: var(--color-accent-01);
}

.about-intro__tile--accent-02 {
    background: var(--color-accent-02);
}

.about-intro__tile--primary {
    background: var(--color-primary);
}

.about-intro__tile--accent-03 {
    background: var(--color-accent-03);
}

.about-intro__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro__aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* The frame's 4px rule sits inside its 32px padding. */
.about-intro__quote {
    margin: 0;
    padding: 2rem 2rem 2rem calc(2rem - 4px);
    border-left: 4px solid var(--color-primary);
    background: var(--color-secondary);
    color: var(--color-dark);
    font-size: 1.5rem;
    font-weight: var(--fw-semibold);
    line-height: 1.667;
    letter-spacing: -0.75px;
}

.about-intro__quote :is(strong, b) {
    font-weight: var(--fw-bold);
    text-transform: uppercase;
}

.about-intro__pattern {
    position: absolute;
    right: -48px;
    bottom: -294px;
    z-index: 0;
    display: block;
    width: 522px;
    height: auto;
    aspect-ratio: 1;
    opacity: 0.65;
    pointer-events: none;
}

/* Screen by screen: where assets/js/screen-scroll.js steps the page, the
   section opens as a full screen, so a tall viewport never rests with the next
   section showing under it. A floor, not a lock: on a short screen the section
   keeps its height and the stepping walks the overrun. */
.has-screen-scroll .about-intro {
    min-height: 100vh;
    min-height: 100svh;
}

/* Tablet: story and tiles side by side, the aside below them. */
@media (max-width: 1024px) {
    .about-intro__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "banner banner"
            "title  title"
            "text   tiles"
            "aside  aside";
        grid-template-rows: none;
        column-gap: 2rem;
        row-gap: 2.5rem;
    }

    .about-intro__text {
        margin-top: 0;
    }

    .about-intro__tiles {
        justify-self: end;
    }

    .about-intro__aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

/* Phone: one column, and the banner drops in under the heading. */
@media (max-width: 768px) {
    .about-intro,
    .about-intro:not(.about-intro--banner) {
        padding-block: 5rem;
    }

    .about-intro__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "title"
            "banner"
            "text"
            "tiles"
            "aside";
        row-gap: 2rem;
    }

    .about-intro__banner {
        width: auto;
        margin: 0;
    }

    .about-intro__banner img {
        aspect-ratio: 1512 / 320;
    }

    .about-intro__title {
        font-size: 2.5rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .about-intro__subtitle {
        display: block;
        margin: 0.5rem 0 0;
        color: var(--color-dark);
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: var(--fw-bold);
        line-height: 1.333;
        letter-spacing: -0.5px;
    }

    .about-intro__text {
        gap: 0.5rem;
    }

    .about-intro__lead {
        font-weight: var(--fw-regular);
        line-height: 1.5;
        letter-spacing: 0;
    }

    .about-intro__lead--desktop {
        display: none;
    }

    .about-intro__lead--mobile {
        display: block;
    }

    .about-intro__lead::first-letter {
        font-size: 2rem;
        font-weight: var(--fw-bold);
        line-height: 0.75;
    }

    .about-intro__body,
    .about-intro__side {
        font-size: 1rem;
        line-height: 1.5;
    }

    .about-intro__body :is(strong, b),
    .about-intro__side :is(strong, b) {
        line-height: inherit;
    }

    .about-intro__body > * + * {
        margin-top: 0.5rem;
    }

    /* The side copy reads as one paragraph here: its break is a plain line break. */
    .about-intro__side > * + * {
        margin-top: 0;
    }

    /* Two 155px square tiles and the gap, as in the frame. */
    .about-intro__tiles {
        justify-self: start;
        gap: 1rem;
        max-width: 20.375rem;
    }

    .about-intro__tile {
        aspect-ratio: 1;
    }

    .about-intro__aside {
        display: flex;
    }

    .about-intro__quote {
        padding: 1.5rem 1.5rem 1.5rem calc(1.5rem - 4px);
    }

    .about-intro__pattern {
        display: none;
    }
}
