/* Home shares Books’ edge-to-edge masthead and soft page transition. */
.home-page .page-shell { --home-inset: clamp(1rem, 3vw, 2rem); max-width: none; padding-top: 0; }
.home-page .section-stack, .home-page .tumblethorn-footer { max-width: 1496px; margin-inline: auto; }
.home-page .home-featured-adventure { max-width: 1464px; }
.home-page .home-nav-botanical-left { z-index: 4; }
.home-page .top-nav.site-nav {
    position: absolute;
    top: 1rem;
    left: max(var(--home-inset), calc((100% - 1496px) / 2));
    right: max(var(--home-inset), calc((100% - 1496px) / 2));
    margin: 0;
}
.home-page .hero-story { margin-inline: calc(-1 * var(--home-inset)); }
.home-page .hero-story .hero-showcase {
    --home-bottom-fade: clamp(6rem, 12vw, 11rem);
    --home-image-position: center 18%;
    --home-image-size: cover;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(34rem, 45vw, 41rem);
    padding: 10rem max(calc(var(--home-inset) + 4vw), calc((100% - 1392px) / 2)) 2.5rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.home-page .hero-story .hero-showcase::before,
.home-page .hero-story .hero-showcase::after {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--home-bottom-fade)), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--home-bottom-fade)), transparent 100%);
}
.home-page .hero-story .hero-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: var(--hero-photo) var(--home-image-position) / var(--home-image-size) no-repeat, #eaf6ff;
}
.home-page .hero-story .hero-showcase::before {
    z-index: -1;
    background: radial-gradient(ellipse 60% 95% at 15% 50%, #eaf6fff0 0%, #eaf6ffd0 30%, #eaf6ff80 55%, transparent 85%);
}

.home-page .hero-story .hero-copy {
    width: min(48%, 30rem);
    max-width: none;
    margin: 0;
    padding: 0;
    align-self: center;
    align-items: flex-start;
    justify-self: start;
    transform: none;
    text-align: left;
}
.home-page .hero-story .hero-subtitle {
    max-width: 28ch;
    margin: 1.25rem 0 0;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0;
    color: #173b75;
}

.home-page .hero-story .hero-actions {
    display: flex;
    width: auto;
    max-width: 100%;
    margin: 1.5rem 0 0;
    transform: none;
}

.home-page .hero-story .hero-story-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.4rem;
    padding: 0.8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: #7122d2;
    color: #fff;
    font: 800 1.05rem / 1.3 var(--font-ui);
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 3px 8px rgba(76, 34, 126, 0.2);
}

.home-page .hero-story .hero-story-cta img { width: 1.5rem; height: 1.5rem; }
.home-page .hero-story .hero-story-cta:hover { background: #6020b8; }
.home-page .hero-story .hero-story-cta:focus-visible { outline: 3px solid #173b75; outline-offset: 4px; }

/* The existing navigation branches frame the whole scene. */
.home-page .hero-story .home-hero-sky-tendril { display: none; }

@media (min-width: 721px) and (max-width: 1180px) {
    .home-page .hero-story .hero-showcase { min-height: 32rem; padding-top: 7rem; }
}

@media (min-width: 721px) and (max-width: 960px) {
    .home-page .hero-story .hero-copy { width: 49%; margin-left: 0; }
}

@media (max-width: 720px) {
    .home-page .hero-story .hero-showcase {
        min-height: 0;
        padding: calc(9rem + 62vw) 1.25rem 2rem;
        --home-bottom-fade: 5rem;
        --home-image-position: center 9rem;
        --home-image-size: 100% auto;
        border-radius: 0;
    }
    .home-page .hero-story .hero-showcase::before {
        background: linear-gradient(180deg, #eaf6ff 0 9rem, transparent 11rem, transparent calc(9rem + 40vw), #eaf6ff calc(9rem + 62vw));
    }
    .home-page .hero-story .hero-copy {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-self: center;
        text-align: center;
    }
    .home-page .hero-story .hero-subtitle { max-width: 29ch; font-size: 1rem; margin-top: 0.85rem; }
    .home-page .hero-story .hero-actions { margin-top: 1.1rem; }
    .home-page .hero-story .hero-story-cta { min-height: 3.1rem; font-size: 1rem; }
}

@media (max-width: 720px) { .home-page .hero-story .hero-showcase { --hero-photo: url('../web-assets/responsive/home-hero-960.webp'); } }
