/* The launch invitation shares the established studio and palette. */
.home-page > .site-header.on-home {
    background: rgba(var(--paper-rgb), .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.launch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--cocoa);
    border-radius: 30px;
    color: var(--cocoa);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.launch-link:hover { background: var(--cocoa); color: var(--cream); }
.home-page .hero-launch.jar-showcase {
    --jar-unit: min(46vw, 60svh, 690px);
    --hero-header-bottom: calc(max(16px, env(safe-area-inset-top)) + 70px);
    --hero-jar-center: calc(var(--hero-header-bottom) + 56px + var(--jar-unit) * .4623);
    /* Rear lids are highest; account for the images' 4.6% transparent top. */
    --hero-lid-top: calc(var(--hero-jar-center) - var(--jar-unit) * .4623);
    /* Fit the pots and actions below the header without an empty title area. */
    height: calc(var(--hero-header-bottom) + var(--jar-unit) + 190px);
    min-height: 0;
}
.home-page .jar-showcase .jar-anchor {
    top: calc(var(--hero-jar-center) + var(--jar-unit) * var(--drop));
}
/* Keep each jar's depth ordering above the hero copy throughout its journey. */
.home-page .jar-showcase .jar-origin {
    z-index: calc(10 + var(--portrait-z, var(--rz, var(--depth))));
}
.launch-intro {
    position: absolute;
    z-index: 1;
    top: var(--hero-header-bottom);
    height: max(0px, calc(var(--hero-lid-top) - var(--hero-header-bottom)));
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: auto;
}
.launch-intro .eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.launch-intro .hero-launch-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: clamp(36px, 4.1vw, 58px);
    line-height: 1.06;
    color: var(--cocoa);
}
.launch-intro .hero-launch-title br { display: none; }
.launch-origin { margin-top: 12px; color: var(--muted); font-size: 14px; }
.launch-actions {
    position: absolute;
    z-index: 1;
    bottom: 30px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    pointer-events: auto;
}
.home-hero .launch-actions .button {
    background: var(--caramel);
    color: var(--cream);
    border-color: var(--caramel);
    font-size: 22px;
    min-height: 48px;
    padding: 12px 22px;
}
.home-hero .launch-actions .button:hover { background: var(--cocoa); border-color: var(--cocoa); }
.launch-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 19px; }
.launch-actions .small { flex-basis: 100%; text-align: center; font-size: 12px; }
.home-page .jar-showcase .jar-scroll { display: none; }
.launch-intro, .launch-actions { opacity: 1 !important; translate: none !important; }
#interest-form { scroll-margin-top: 116px; }
#saveurs, #degustation { scroll-margin-top: 96px; }
.order-panel h2 { margin-bottom: 16px; font-size: clamp(30px, 3.4vw, 44px); }
.house-text .actions { gap: 18px; }
.house-text .actions .button { margin: 0; }
.story-enhanced { height: 330svh; }
.story-skip { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }

@media (max-width: 650px), (pointer: coarse) and (max-width: 1024px) {
    .launch-link { font-size: 11px; padding-inline: 10px; }
    .home-page .hero-launch.jar-showcase {
        --jar-unit: min(112vw, 47svh, 520px);
        --ring: min(29vw, 20svh, 160px);
        /* The front jar is highest in the mobile orbit. */
        --hero-jar-center: calc(var(--hero-header-bottom) + 56px + var(--jar-unit) * .454);
        --hero-lid-top: calc(var(--hero-jar-center) - var(--jar-unit) * .454);
    }
    .home-page .jar-showcase .jar-anchor,
    .home-page .jar-showcase .jar-controls button { top: var(--hero-jar-center); }
    .launch-intro { left: 16px; right: 16px; }
    .launch-intro .eyebrow { font-size: 9px; letter-spacing: .07em; margin-bottom: 9px; }
    .launch-intro .hero-launch-title { font-size: clamp(31px, 8.7vw, 43px); line-height: 1.06; }
    .launch-intro .hero-launch-title br { display: initial; }
    .launch-origin { margin-top: 11px; font-size: 12px; }
    .launch-actions { bottom: 19px; gap: 5px 16px; left: 14px; right: 14px; }
    .home-hero .launch-actions .button { font-size: 19px; padding: 12px 18px; }
    .launch-actions .text-link { flex-basis: 100%; justify-content: center; font-size: 17px; min-height: 38px; }
    .launch-actions .small { font-size: 10px; }
    .story-enhanced { height: 250svh; }
    .story-skip { display: inline-flex; position: static; transform: none; margin: 4px 0 0; min-height: 44px; font-size: 12px; }
    .story-visual-slot { width: min(100vw, calc(100svh - 400px)); }
    #interest-form { scroll-margin-top: 92px; }
    #saveurs, #degustation { scroll-margin-top: 82px; }
    .product-copy .actions .button { font-size: 20px; }
    .house-text .actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
    .home-page .hero-launch.jar-showcase {
        --hero-header-bottom: calc(max(10px, env(safe-area-inset-top)) + 58px);
        --jar-unit: min(82vw, 37svh, 360px);
        --ring: min(24vw, calc(var(--jar-unit) * .30));
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto var(--jar-unit) auto;
        row-gap: 12px;
        height: auto;
        padding: calc(var(--hero-header-bottom) + 22px) 16px 24px;
    }
    .home-hero > .hero-launch-title {
        grid-area: 1 / 1;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip-path: none;
        white-space: normal;
        text-align: center;
        color: var(--cocoa);
        font-size: clamp(26px, 7.5vw, 36px);
        line-height: 1.15;
    }
    /* The jars, their shadows and the tap areas share the same stage. */
    .jar-showcase > :is(.jar-origin, .jar-floor-layer, .jar-controls) {
        grid-area: 2 / 1;
        position: relative;
        inset: auto;
    }
    .home-page .jar-showcase > .jar-origin {
        place-self: center;
        top: auto;
        left: auto;
        transform: none;
    }
    .home-page .jar-floor-layer .jar-anchor,
    .home-page .jar-showcase .jar-controls button {
        top: 50%;
    }
    .jar-showcase .jar-controls button {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--paper);
        border: 1px solid var(--line);
        display: grid;
        place-items: center;
    }
    .jar-showcase .jar-controls button:first-child { left: 0; }
    .jar-showcase .jar-controls button:nth-child(2) { right: 0; }
    .jar-showcase .jar-controls button::after {
        content: "";
        width: 9px;
        height: 9px;
        padding: 0;
        border: solid var(--cocoa);
        border-width: 0 0 2px 2px;
        border-radius: 0;
        background: none;
        transform: translateX(2px) rotate(45deg);
    }
    .jar-showcase .jar-controls button:nth-child(2)::after {
        content: "";
        transform: translateX(-2px) rotate(225deg);
    }
    .jar-controls[inert] { visibility: hidden; }
    .home-hero .launch-actions {
        grid-area: 3 / 1;
        position: static;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        text-align: center;
    }
    .home-hero .launch-actions .button {
        align-self: center;
        --button-cast-shadow: 0 3px 8px rgb(44 32 20 / 15%);
    }
    .home-hero .launch-actions .text-link {
        flex-basis: auto;
        min-height: 44px;
        font: inherit;
        font-size: 15px;
        text-shadow: none;
        text-underline-offset: .25em;
    }
    .home-hero .launch-actions .small {
        flex-basis: auto;
        font-size: 12px;
    }
    .home-page .home-flavors {
        border-top: 1px solid var(--line);
        padding-top: 20px;
    }
}
@media (max-width: 360px) {
    .site-header .brand img { width: 95px; }
    .header-actions { gap: 5px; }
    .launch-link { padding-inline: 8px; }
    .launch-intro .eyebrow { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .story-enhanced { height: auto; }
}
