body.portfolio-interior main > section.blog-hero:first-child .blog-hero-layout {
    padding-block: clamp(34px, 3.25vw, 48px) !important;
}

.blog-hero-layout {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 3vw, 34px);
}

.blog-hero-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}

.blog-hero-labels a,
.blog-hero-labels p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    text-transform: uppercase;
}

.blog-hero-labels p {
    border-inline-start: 1px solid var(--portfolio-border);
    padding-inline-start: .75rem;
}

.blog-hero-copy h1 {
    text-wrap: balance;
}

.blog-hero-copy > p {
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
}

.blog-hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 36rem);
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

/* The archive reuses the hero markup on some pages. Only the Blog landing page loads these decorative layers. */
.blog-hero-art::before,
.blog-hero-art::after {
    content: '';
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
}

.blog-hero-art::before {
    top: 14%;
    left: 3%;
    width: 94%;
    aspect-ratio: 1488 / 706;
    background-image: url('/assets/blog-hero-notebook.webp');
}

.blog-hero-art::after {
    top: 43.4%;
    left: 53.6%;
    width: 34.8%;
    aspect-ratio: 936 / 467;
    background-image: url('/assets/blog-hero-pen.webp');
    filter: drop-shadow(0 2px 2px rgb(0 0 0 / .65));
}

@media (max-width: 767px) {
    body.portfolio-interior main > section.blog-hero:first-child h1 {
        font-size: clamp(2rem, 8.4vw, 3.4rem) !important;
        line-height: 1.04 !important;
    }
}

@media (min-width: 64rem) {
    .blog-hero-layout {
        grid-template-columns: minmax(30rem, 1.05fr) minmax(0, 1fr);
        column-gap: clamp(24px, 3.5vw, 64px);
    }

    .blog-hero-art {
        width: min(100%, 38rem);
    }
}

@media (64rem <= width < 80rem) {
    body.portfolio-interior main > section.blog-hero:first-child h1 {
        font-size: min(4vw, 3.4rem) !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .blog-hero-art::before,
    .blog-hero-art::after {
        animation: blog-hero-assemble 7.2s cubic-bezier(.64, 0, .22, 1) var(--arrival, 0s) infinite backwards;
    }

    .blog-hero-art::before {
        --scatter-x: -10%;
        --scatter-y: 8%;
        --scatter-turn: -8deg;
        --scatter-scale: .7;
    }

    .blog-hero-art::after {
        --scatter-x: 20%;
        --scatter-y: -150%;
        --scatter-turn: 10deg;
        --scatter-scale: .64;
        --arrival: .62s;
    }

    /* Match the assembly, hold, and scatter phases of the Portfolio hero. */
    @keyframes blog-hero-assemble {
        0%, 7%, 94%, 100% {
            transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-turn)) scale(var(--scatter-scale));
        }

        24% {
            transform:
                translate(calc(var(--scatter-x) * -.07), calc(var(--scatter-y) * -.07))
                rotate(calc(var(--scatter-turn) * -.08))
                scale(1.025);
        }

        32%, 75% {
            transform: none;
        }

        75% {
            animation-timing-function: cubic-bezier(.55, 0, .68, 1);
        }
    }
}
