/* Homepage section spacing and photography. */
.homepage {
    --home-width: min(92%, 1300px);
    --section-space: clamp(2.75rem, 5.5vw, 5.25rem);
    --photo-gap: clamp(.75rem, 1.6vw, 1.5rem);
}

.homepage .about_sec3,
.homepage .sec3,
.homepage .sec4,
.homepage .sec6 {
    padding-block: var(--section-space);
}

.homepage .home-work-intro,
.homepage .home-sustainability-copy,
.homepage .sec3img,
.homepage .sec4felx {
    width: var(--home-width);
    max-width: none;
    margin-inline: auto;
}

.home-section-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem;
    color: var(--blue);
    font-size: .9rem;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.home-section-label::before {
    content: "";
    width: 2.25rem;
    height: 3px;
    background: currentColor;
}

.home-work-intro .heading {
    max-width: 30ch;
    text-wrap: balance;
    line-height: 1.08;
}

.home-work-intro .sec3content {
    width: auto;
    max-width: 76ch;
    padding: 0;
}

.homepage .sec3img,
.homepage .sec4felx {
    display: grid;
    gap: var(--photo-gap);
    margin-top: clamp(1.5rem, 3vw, 2.75rem);
}

.homepage .sec3img {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.homepage .about_sec3 .sec3img {
    margin-top: 0;
}

.homepage .sec3img .imgblk {
    width: 100%;
    height: clamp(9rem, 29vw, 23rem);
    margin: 0;
}

.homepage .sec3img img,
.homepage .sec4 .image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage .sec4felx {
    grid-template-columns: 1.3fr 1fr 1fr;
}

.homepage .sec4felx .reveal {
    margin: 0;
    min-width: 0;
}

.homepage .sec4 .image-wrap {
    height: clamp(12rem, 22vw, 19rem);
    aspect-ratio: auto;
}

.homepage .sec4 .reveal:first-child img {
    object-position: center 68%;
}

#home-sustainability {
    container-type: inline-size;
}

.home-sustainability-copy .heading {
    max-width: 32ch;
    text-wrap: balance;
    line-height: 1.08;
}

.home-sustainability-copy .sec6content {
    width: auto;
    max-width: 72ch;
    z-index: auto;
}

.home-sustainability-art {
    /* Retain the height of the original 5/9-width image column at each screen size. */
    --original-width: calc((min(92cqw, 1300px) - clamp(1.5rem, 4vw, 4.5rem)) * 5 / 9);
    display: block;
    width: 100%;
    height: calc(var(--original-width) * 1047 / 1920);
    margin-top: clamp(1.25rem, 2.5vw, 2.5rem);
    object-fit: cover;
    object-position: center 54%;
}

@media (max-width: 760px) {
    .home-sustainability-art {
        --original-width: min(92cqw, 32rem);
    }
}

@media (max-width: 540px) {
    .homepage .sec4felx {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage .sec4felx .reveal:first-child {
        grid-column: 1 / -1;
    }

    .homepage .sec4 .image-wrap {
        height: clamp(8rem, 36vw, 12rem);
    }

    .homepage .sec4 .reveal:first-child .image-wrap {
        height: clamp(10rem, 47vw, 15rem);
    }
}
