/* Focused type, language-switch and catalogue stability refinements. */
.site-header {
    grid-template-columns: 110px minmax(0, 1fr) 250px;
}

.brand {
    gap: 0;
}

.brand img {
    width: 58px;
    height: 58px;
}

.header-tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    letter-spacing: .12em;
}

.language-switch a {
    color: #838982;
}

.language-switch a.active {
    color: var(--ink);
    font-weight: 700;
}

.hero h1,
.project-hero h1 {
    font-size: clamp(42px, 5.2vw, 76px);
}

.statement {
    font-size: clamp(30px, 3.4vw, 52px);
}

.category-panel h2 {
    font-size: 44px;
}

.section-heading h2 {
    font-size: clamp(32px, 3vw, 46px);
}

.architecture-copy h2 {
    font-size: clamp(38px, 4vw, 58px);
}

.footer-intro h2 {
    font-size: clamp(38px, 4.5vw, 64px);
}

.page-hero {
    padding: 88px 6vw 72px;
}

.page-hero.compact h1 {
    font-size: clamp(42px, 4.8vw, 68px);
}

.catalog-grid {
    align-items: start;
}

.product-card,
.product-meta > div,
.detail-gallery,
.detail-summary {
    min-width: 0;
}

.product-image {
    width: 100%;
    contain: layout paint;
}

.product-meta {
    min-height: 70px;
}

.product-meta h3 {
    min-height: 2.8em;
    overflow-wrap: anywhere;
}

.detail-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
}

.detail-gallery img,
.detail-gallery img:first-child {
    height: auto;
    aspect-ratio: 4 / 3;
}

.detail-gallery img:first-child {
    aspect-ratio: 16 / 10;
}

.detail-summary h1 {
    font-size: clamp(36px, 3.2vw, 48px);
    overflow-wrap: anywhere;
}

.rich {
    overflow-wrap: anywhere;
}

.rich table {
    display: block;
    overflow-x: auto;
}

.product-information h2 {
    font-size: 40px;
}

.project-story h2 {
    font-size: 44px;
}

.project-cta h2 {
    font-size: 42px;
}

.contact-intro h1 {
    font-size: 52px;
}

@media (max-width: 1000px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .detail-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-tools {
        gap: 10px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .statement {
        font-size: 30px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .page-hero {
        padding: 66px 5vw 48px;
    }

    .page-hero.compact h1 {
        font-size: 40px;
    }

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

    .product-meta {
        min-height: 76px;
    }

    .detail-gallery img,
    .detail-gallery img:first-child {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .detail-summary h1 {
        font-size: 38px;
    }

    .contact-intro h1 {
        font-size: 44px;
    }
}
