/* 07 Founder Story. Component key: home.founder_story.

   The supplied artwork (fontaine.webp, 1028x342) is a single wide banner: blank
   left third, founder and dog centre-right, quote baked in at the far right. On
   desktop it therefore runs as one continuous full-bleed backdrop with the
   editable copy sitting over the blank area, and the band keeps the artwork's own
   aspect ratio so nothing is cropped. The baked quote is not repeated in markup;
   it stays available to assistive tech as a visually hidden blockquote. */

.founder {
    background-color: var(--color-bg);
}

.founder__inner {
    padding-block: var(--space-section) var(--space-5);
}

.founder__body {
    max-width: 34rem;
    margin-top: var(--space-4);
    color: var(--color-muted);
}

.founder__signature {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-4);
}

.founder__signature-name {
    color: var(--color-ink);
    font-size: 1.75rem;
    font-style: italic;
}

.founder__signature-role {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.founder__content .button {
    margin-top: var(--space-4);
}

.founder__image {
    width: 100%;
    aspect-ratio: 1028 / 342;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

/* At phone width the 3:1 banner is only ~130px tall and the founder is
   unreadable. Crop to her and the dog at a usable size; the baked quote is not
   lost because the markup already carries it as a visually hidden blockquote. */
@media (max-width: 47.99rem) {
    .founder__image {
        aspect-ratio: 1 / 1;
        object-position: 62% center;
    }
}

@media (min-width: 68rem) {
    .founder {
        position: relative;
        isolation: isolate;
        overflow: clip;
    }

    .founder__media {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .founder__image {
        height: 100%;
    }

    .founder__inner {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        /* Slightly above the artwork ratio so the copy always has room; the
           resulting crop is a few percent and stays inside the blank margins. */
        min-height: clamp(22rem, 35vw, 45rem);
        padding-block: var(--space-5);
    }

    .founder__content {
        width: 45%;
        max-width: 33rem;
    }

    .founder__heading {
        font-size: 1.75rem;
    }

    .founder__body {
        margin-top: var(--space-3);
        font-size: 0.9375rem;
    }

    .founder__signature,
    .founder__content .button {
        margin-top: var(--space-3);
    }
}

@media (min-width: 85rem) {
    .founder__heading {
        font-size: 2.375rem;
    }

    .founder__body {
        font-size: 1rem;
    }
}

/* HT Fontaine photo blend v6 — use actual photo geometry and mask image. */
@media (min-width: 68rem) {
    .founder__media {
        position: absolute;
        inset: 0;
        overflow: hidden;
        background: transparent;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .founder__image {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        display: block;
        width: auto;
        max-width: none;
        height: 100%;
        aspect-ratio: auto; /* Remove old 1028:342 banner ratio. */
        object-fit: contain;
        object-position: right center;
        background-color: transparent;
        -webkit-mask-image: linear-gradient(to right,
            transparent 0%, rgba(0,0,0,.08) 10%,
            rgba(0,0,0,.42) 28%, #000 58%);
        mask-image: linear-gradient(to right,
            transparent 0%, rgba(0,0,0,.08) 10%,
            rgba(0,0,0,.42) 28%, #000 58%);
    }

    .founder__media::after {
        content: none;
    }
}

@media (max-width: 67.99rem) {
    .founder__image {
        position: static;
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}
