/* Webtimized front-page hero */

body.home header.wp-block-template-part {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    width: 100%;
}

body.home header.wp-block-template-part > .wp-block-group {
    padding-right: clamp(1.5rem, 4vw, 5rem) !important;
    padding-left: clamp(1.5rem, 4vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:first-child {
    position: relative;
    left: 50%;
    isolation: isolate;
    width: 100vw !important;
    max-width: none !important;
    min-height: 100svh;
    margin-top: 0 !important;
    margin-right: -50vw !important;
    margin-bottom: 0 !important;
    margin-left: -50vw !important;
    padding: 0 !important;
    overflow: hidden;
    background: #e9e2df !important;
}

body.home .entry-content > .wp-block-group:first-child::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(248, 245, 243, 0.98) 0%,
        rgba(248, 245, 243, 0.94) 31%,
        rgba(248, 245, 243, 0.74) 48%,
        rgba(248, 245, 243, 0.12) 72%,
        rgba(248, 245, 243, 0) 100%
    );
    content: "";
    pointer-events: none;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 100svh;
    margin: 0 !important;
    padding: 0 clamp(1.5rem, 4vw, 5rem) !important;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100svh;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child > .wp-block-group {
    width: min(100%, 46rem);
    max-width: none;
    min-height: auto !important;
    margin: 0;
    padding: clamp(8rem, 15vh, 11rem) 0 clamp(4rem, 9vh, 7rem) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child > .wp-block-group > * {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.home .entry-content > .wp-block-group:first-child h1 {
    max-width: 9.5ch;
    margin: 0;
    font-size: clamp(4rem, 6.5vw, 7.25rem);
    line-height: 0.94 !important;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

body.home .entry-content > .wp-block-group:first-child h1 + p {
    max-width: 52ch;
    margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.55;
}

body.home .entry-content > .wp-block-group:first-child .wp-block-buttons {
    margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}

body.home .entry-content > .wp-block-group:first-child .wp-block-button__link {
    padding: 1rem 1.5rem;
    border: 1px solid rgba(9, 31, 53, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.home .entry-content > .wp-block-group:first-child .wp-block-button__link:hover {
    transform: translateY(-2px);
}

body.home .entry-content > .wp-block-group:first-child .wp-block-button__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:last-child {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:last-child > .wp-block-cover {
    width: 100%;
    height: 100%;
    min-height: 100svh !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.home .entry-content > .wp-block-group:first-child .wp-block-cover__image-background {
    object-position: 62% center !important;
}

@media (min-width: 782px) {
    body.home .entry-content > .wp-block-group:first-child,
    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns,
    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child,
    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:last-child > .wp-block-cover {
        height: clamp(680px, 80svh, 800px);
        min-height: clamp(680px, 80svh, 800px) !important;
    }

    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child > .wp-block-group {
        padding-top: clamp(7rem, 12vh, 8rem) !important;
        padding-bottom: clamp(3rem, 7vh, 5rem) !important;
    }
}

@media (max-width: 781px) {
    body.home header.wp-block-template-part > .wp-block-group {
        padding-top: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 1.25rem !important;
    }

    body.home .entry-content > .wp-block-group:first-child::after {
        background: linear-gradient(
            180deg,
            rgba(248, 245, 243, 0.92) 0%,
            rgba(248, 245, 243, 0.62) 34%,
            rgba(248, 245, 243, 0.88) 68%,
            rgba(248, 245, 243, 0.98) 100%
        );
    }

    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns {
        padding: 0 1.25rem !important;
    }

    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child {
        align-items: flex-end;
    }

    body.home .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child > .wp-block-group {
        padding-top: 8rem !important;
        padding-bottom: clamp(3rem, 8vh, 5rem) !important;
    }

    body.home .entry-content > .wp-block-group:first-child h1 {
        max-width: 9ch;
        font-size: clamp(3.25rem, 15vw, 5rem);
        line-height: 0.96 !important;
    }

    body.home .entry-content > .wp-block-group:first-child h1 + p {
        max-width: 34rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    body.home .entry-content > .wp-block-group:first-child .wp-block-cover__image-background {
        object-position: 58% center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .entry-content > .wp-block-group:first-child .wp-block-button__link {
        transition: none;
    }
}
