/* Shared hero geometry for the Materialize and Bootstrap page shells.
   Navigation is fixed, so its height is included in the first card's offset. */
:root {
    --site-parallax-height: 500px;
    --site-parallax-blur: 5px;
    --site-nav-height: 64px;
    --site-first-card-gap: 100px;
    --site-portrait-overhang: 0px;
}

.parallax-container,
.tool-parallax {
    position: relative;
    height: var(--site-parallax-height);
    overflow: hidden;
    isolation: isolate;
}

/* Blur the photograph through a clipped overlay. The moving Materialize
   image and the Tools' fixed background retain their native parallax motion. */
.parallax-container::after,
.tool-parallax::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-backdrop-filter: blur(var(--site-parallax-blur));
    backdrop-filter: blur(var(--site-parallax-blur));
    pointer-events: none;
}

.site-main,
.tool-main { position: relative; }

.site-main > section:first-of-type,
.tool-main > section:first-of-type {
    margin-top: calc(var(--site-nav-height) + var(--site-first-card-gap)
        + var(--site-portrait-overhang) - var(--site-parallax-height));
}

@media (max-width: 767px) {
    :root { --site-first-card-gap: 64px; }
    /* The 150px portrait protrudes halfway above the mobile profile card.
       Keep the same clear gap above its top as above other pages' cards. */
    .site-main > #vcard:first-of-type { --site-portrait-overhang: 75px; }
}

@media (max-width: 600px) {
    :root { --site-nav-height: 56px; }
}
