.page-template-page-home {
    --hp-gutter: 32px;
    background: var(--color-bg) !important;
}

.page-template-page-home #content > .ast-container {
    max-width: none !important;
    padding: 0 !important;
    display: block;
}

.page-template-page-home #page {
    position: relative;
}

.hp {
    background: var(--color-bg);
}

.page-template-page-home #masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
}

.page-template-page-home #masthead .main-header-bar,
.page-template-page-home #masthead .ast-primary-header-bar,
.page-template-page-home #masthead .ast-above-header-bar,
.page-template-page-home #masthead .ast-below-header-bar,
.page-template-page-home #masthead .site-primary-header-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.page-template-page-home #masthead .main-header-menu > .menu-item > .menu-link {
    color: #fff !important;
}

.hp-hero {
    position: relative;
}

.hp-hero picture {
    display: block;
}

.hp-hero img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

.hp-about {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    padding: var(--hp-gutter) var(--hp-gutter) 0;
}

.hp-about-img {
    margin: 0;
}

.hp-about-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hp-about-text {
    justify-self: center;
    width: 100%;
    max-width: 450px;
    font-weight: 400;
    color: var(--color-ink);
}

.hp-heading {
    margin: 0 0 2.5em;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    text-transform: none;
}

.hp-name,
.hp-role,
.hp-role-linia {
    display: block;
}

.hp-name {
    font-weight: 700;
    text-transform: uppercase;
}

.hp-bio p {
    margin: 0 0 1.2em;
    text-align: left;
}

.hp-bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-template-page-home {
        --hp-gutter: 20px;
    }

    .hp-about {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 32px;
    }

    .hp-about-text {
        max-width: none;
    }

    .hp-hero img {
        height: 100vh;
        height: 100svh;
        object-fit: cover;
        object-position: center;
    }
}