/* Homepage-only styles. Shared tokens and primitives live in ../styles.css. */
.home-hero {
    min-height: 930px;
    padding: 52px 0 110px;
    display: grid;
    grid-template-columns: var(--grid-columns);
    column-gap: var(--grid-gutter);
}

.home-hero__side {
    grid-column: span 3;
    align-self: end;
}

.home-hero__name {
    margin: 0 0 42px;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
}

.home-hero__portrait {
    display: block;
    width: 100%;
    max-width: 325px;
    height: auto;
    aspect-ratio: 1 / 1.5;
    object-fit: cover;
}

.home-hero__main {
    grid-column: 4 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
    margin-top: 0;
}

.home-page h1,
.home-page h2 {
    line-height: .94;
    font-weight: 600;
}

.home-page h1 {
    margin: 0;
    font-size: clamp(4rem, 6.5vw, 8.4rem);
    text-align: right;
}

.home-hero__intro {
    align-self: flex-end;
    margin: 0;
    padding-top: 100px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.35;
    text-align: right;
}

.home-work {
    padding: 0 0 270px;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
}

.home-section-heading h2,
.home-about>h2,
.home-services>h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 600;
}

.home-section-heading p {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 95px 20px;
}

.home-project-card__art {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-project-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

.home-project-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 300ms ease;
}

.home-project-card__meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 18px;
    gap: 4px;
}

.home-project-card__meta h3,
.home-project-card__meta p {
    margin: 0;
}

.home-project-card__meta h3 {
    font-size: 24px;
    font-weight: 600;
}

.home-project-card__meta h3 a {
    cursor: pointer;
}

.home-project-card__meta p {
    font-size: 18px;
    font-weight: 300;
}

.home-project-card__meta p span {
    margin-left: 45px;
}

.home-project-card__image:hover img {
    transform: scale(1.1);
}

.home-about {
    display: grid;
    grid-template-columns: 2fr 8fr 2fr;
    column-gap: var(--grid-gutter);
    padding: 0 0 240px;
    align-items: start;
}

.home-about__copy {
    max-width: 900px;
}

.home-about__copy p {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.22;
}

.home-about__link {
    --link-hover-fg: #fff;
}

.home-about__social {
    justify-self: end;
    display: grid;
    gap: 8px;
}

.home-services {
    padding: 0 0 270px;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 45px;
}

.home-services__grid p {
    font-weight: 300;
}

.home-service {
    min-height: 220px;
    padding: 0 30px;
    border-left: 1px solid var(--line);
}

.home-service:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-service__number {
    display: block;
    margin-bottom: 40px;
    color: #b8b8b8;
    font-size: 28px;
}

.home-service h3 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 400;
}

.home-service p {
    max-width: 360px;
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

@media (max-width: 700px) {
    .home-hero {
        min-height: auto;
        padding: 45px 0 110px;
        display: block;
    }

    .home-hero__side {
        grid-template-columns: 1fr 1.5fr;
        gap: 16px;
        align-items: start;
        align-self: auto;
    }

    .home-hero__name {
        font-size: 20px;
    }

    .home-hero__portrait {
        width: 100%;
        max-width: none;
    }

    .home-hero__main {
        display: block;
    }

    .home-page h1 {
        margin: 42px 0 70px;
        font-size: clamp(3.1rem, 14vw, 5rem);
        text-align: left;
    }

    .home-hero__intro {
        padding: 0;
        text-align: left;
    }

    .home-work {
        padding-bottom: 130px;
    }

    .home-section-heading {
        display: block;
    }

    .home-section-heading p {
        margin-top: 14px;
        font-size: 16px;
    }

    .home-project-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-project-card__art {
        aspect-ratio: 1 / 1;
    }

    .home-about {
        display: block;
        padding-bottom: 130px;
    }

    .home-about>h2 {
        margin-bottom: 25px;
    }

    .home-about__copy p {
        font-size: 19px;
    }

    .home-about__social {
        margin-top: 24px;
        justify-self: start;
    }

    .home-services {
        padding-bottom: 140px;
    }

    .home-services__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-service,
    .home-service:first-child {
        min-height: 0;
        padding: 0 0 25px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-service:last-child {
        border-bottom: 0;
    }
}