/*
 * ISO-10: the home page brought in line with the pages of Chris's mock-ups of 12 November 2026, without
 * touching its content (Page Builder). Scoped to the page body: the header, footer and contact dock are
 * the theme's, shared by every page.
 *
 * - Type: the mock-ups set every text in the system sans-serif, headings at 760-800 with tight tracking.
 * - Corners: buttons nearly square (2px), cards 5px, photographs square.
 * - Motion: web/js/home-motion.js (photo corner opening, 16px rise), as on the service pages.
 *
 * The theme's rules read its fonts and radii from custom properties, redefined here for the body.
 */
.page-home #maincontent {
    --font-head: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-text: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --r-pill: 2px;
    --r-card: 5px;
    --r-s: 3px;
    font-family: var(--font-text);
}

/* Headings: the mock-ups' scale (h1 ≈ 5.2vw, h2 ≈ 4vw) and tracking, in place of the condensed display face */
.page-home #maincontent :is(h1, h2, h3, .section-title, .heading-accent) {
    letter-spacing: -0.045em;
    line-height: 1.06;
}
.page-home #maincontent h1,
.page-home #maincontent .heading-accent--h1 {
    font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.5rem);
    line-height: 1.04;
}
.page-home #maincontent :is(h2, .heading-accent--h2, .home-portrait h2) {
    font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
    font-weight: 780;
}
.page-home #maincontent .heading-accent:not(.heading-accent--h1, .heading-accent--h2) {
    font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
}
.page-home #maincontent h3 {
    font-weight: 760;
    letter-spacing: -0.035em;
}

/*
 * ISO-19: the yellow accent line on the paper sections reads at 1.56:1 (3:1 required). There it is set in
 * ink with a yellow marker stroke under the letters, so the yellow stays and the text reads at 12.8:1.
 * The dark sections (hero, method, final call) keep the yellow text.
 */
.page-home #maincontent :is(.home-foam, .home-portrait) .heading-accent {
    color: var(--c-ink);
    text-decoration: underline var(--c-accent);
    text-decoration-thickness: 0.24em;
    text-underline-offset: -0.06em;
    text-decoration-skip-ink: none;
}
.page-home #maincontent :is(.home-proof__item strong, .method-card__figure, .guide-item .wm-pb-tile__title),
.page-home #maincontent .guide-item::before {
    letter-spacing: -0.035em;
}

/* Eyebrows: 13px, extra bold, wide tracking */
.page-home #maincontent :is(.eyebrow, .kicker) {
    font: 800 0.8125rem/1.4 var(--font-text);
    letter-spacing: 0.1em;
}

/* Buttons: the mock-ups' flat yellow rectangle */
.page-home #maincontent :is(.btn, .btn-orange, .btn-outline) {
    gap: 9px;
    min-height: 51px;
    padding: 16px 22px;
    font: 800 0.875rem/1.25 var(--font-text);
}
.page-home #maincontent .text-link {
    font-weight: 800;
}

/* Corners */
.page-home #maincontent :is(.zone-card, .other-project, .foam-point, .g-review, .wm-pb-tile) {
    border-radius: 5px;
}
.page-home #maincontent .wm-pb-tile__icon {
    border-radius: 3px;
}
.page-home #maincontent img.wm-pb-image:not(.home-hero__bg),
.page-home #maincontent .home-foam__media img,
.page-home #maincontent .home-foam__video {
    border-radius: 0 !important;
}
.page-home #maincontent .home-proof__photo {
    border-radius: 2px;
}
.page-home #maincontent .home-foam__media::before,
.page-home #maincontent .home-foam__media::after {
    border-radius: 0;
}

/* The foam film (web/js/home-foam-video.js) in the frame of the picture it replaces */
.page-home .home-foam__video {
    display: block;
    width: 100%;
    aspect-ratio: 1100 / 733;
    object-fit: cover;
    background: var(--c-ink);
}
