/*
 * Owlnest homepage layout and interaction layer.
 * Loaded only by the English and Traditional Chinese homepages.
 */

body.homepage  {
    --home-header-height: 4.5rem;
    overflow-x: clip;
}body.homepage #main-header.owlnest-glass-header  {
    background: rgba(12, 18, 30, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    color: rgba(246, 240, 226, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}body.homepage #main-header :is(.site-brand span, .primary-nav a, .language-trigger, .header-actions > a, button[aria-controls="mobile-menu"])  {
    color: rgba(246, 240, 226, 0.88);
}body.homepage #main-header :is(.header-actions svg, .language-trigger i)  {
    color: rgba(246, 240, 226, 0.82);
}body.homepage #main-header :is(.primary-nav a, .language-trigger, .header-actions > a, button[aria-controls="mobile-menu"]):hover  {
    color: #c9852a;
}body.homepage #main-header .header-actions > a.bg-amber  {
    color: #182234;
}body.homepage #section-1  {
    display: block;
    height: 135vh;
    height: 135svh;
    min-height: calc(100vh + 11rem);
    min-height: calc(100svh + 11rem);
    padding: 0;
    overflow: visible;
    background: #182234;
    touch-action: pan-y;
}body.homepage .home-hero-stage  {
    height: 100vh;
    height: 100svh;
    min-height: 32rem;
}body.homepage #hero-canvas  {
    pointer-events: none;
    touch-action: pan-y;
}body.homepage .home-hero-content  {
    min-width: 0;
}body.homepage .home-hero-summary  {
    max-width: 36rem;
}body.homepage .premium-cta  {
    min-height: 2.75rem;
}body.homepage :is(a, button):focus-visible  {
    outline: 2px solid #e6a64b;
    outline-offset: 4px;
}body.homepage #mobile-menu  {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
}body.homepage #mobile-menu.open  {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}body.homepage.mobile-menu-open  {
    overflow: hidden;
}body.homepage .language-menu  {
    visibility: hidden;
}body.homepage .language-menu.open  {
    visibility: visible;
}body.homepage main > .section-container:not(#section-1)  {
    scroll-margin-top: var(--home-header-height);
}body.homepage .homepage-balanced-grid {
    min-width: 0;
}body.homepage .homepage-balanced-grid > * {
    min-width: 0;
}

body.homepage :is(
    #section-visual-difference,
    #section-comparison-table,
    #section-science-support,
    #section-product,
    #section-ritual,
    #section-how-to-use,
    #section-lab-program,
    #section-home-purchase
) h2[class]  {
    /* Keep legacy inline utility rules from overpowering the shared type scale. */
    font-size: var(--owl-type-section) !important;
    line-height: var(--owl-leading-section, 1.12) !important;
    letter-spacing: -0.012em !important;
}html[lang^="zh-Hant"] body.homepage :is(
    #section-visual-difference,
    #section-comparison-table,
    #section-science-support,
    #section-product,
    #section-ritual,
    #section-how-to-use,
    #section-lab-program,
    #section-home-purchase
) h2[class]  {
    line-height: 1.24 !important;
    letter-spacing: 0.015em !important;
}

@media (min-width: 768px) {    body.homepage #section-1  {
        height: 150vh;
        height: 150svh;
        min-height: calc(100vh + 18rem);
        min-height: calc(100svh + 18rem);
    }}

@media (min-width: 1024px) {    body.homepage .homepage-balanced-grid  {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    }

}

@media (min-width: 1024px) and (max-height: 900px) {    body.homepage .home-hero-content  {
        margin-top: 0;
    }
    body.homepage .home-hero-title  {
        margin-bottom: 1.5rem;
    }    body.homepage .home-hero-actions  {
        margin-top: 1.25rem;
    }}

@media (max-width: 1023px) {    body.homepage  {
        --home-header-height: 4rem;
    }    body.homepage #main-header .header-inner  {
        grid-template-columns: minmax(0, 1fr) auto;
        height: var(--home-header-height);
        padding-inline: clamp(1rem, 4vw, 2rem);
    }    body.homepage #main-header .site-brand  {
        min-width: 0;
    }    body.homepage #main-header .site-brand span  {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.homepage .home-hero-content  {
        margin-top: 0;
    }}

@media (max-width: 640px) {    body.homepage  {
        --owl-type-hero: clamp(1.95rem, 8.4vw, 2.35rem);
    }    html[lang="zh-Hant"] body.homepage  {
        --owl-type-hero: clamp(1.9rem, 8vw, 2.25rem);
    }    body.homepage .home-hero-content  {
        justify-content: flex-start;
        max-width: 100%;
        margin-top: 0;
        padding: calc(var(--home-header-height) + 1.4rem + env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    }
    body.homepage .home-hero-title  {
        width: min(100%, 22rem);
        margin-bottom: 1.25rem;
        line-height: 1.1;
    }    body.homepage .home-hero-summary  {
        width: min(100%, 21rem);
        font-size: 0.95rem;
        line-height: 1.6;
    }    body.homepage .home-hero-actions  {
        width: min(100%, 20rem);
        padding-inline: 0;
    }    body.homepage .home-hero-actions .premium-cta  {
        width: 100%;
        min-height: 3rem;
        padding-block: 0.8rem;
    }    body.homepage .section-breathe  {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    body.homepage #section-product .product-gallery > .grid > .gallery-frame  {
        min-height: min(66svh, 25rem);
    }    body.homepage #section-product .product-gallery .grid > .gallery-frame  {
        min-height: 9rem;
    }    body.homepage #section-product .product-gallery > .grid > div:last-child  {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }    body.homepage #section-product .product-gallery > .grid > div:last-child > :last-child  {
        grid-column: 1 / -1;
    }
}

@media (max-width: 359px) {    body.homepage  {
        --owl-type-hero: clamp(1.78rem, 8.5vw, 1.95rem);
    }    body.homepage .home-hero-content  {
        padding-top: calc(var(--home-header-height) + 0.8rem + env(safe-area-inset-top));
    }
    body.homepage #main-header .site-brand  {
        gap: 0.55rem;
    }    body.homepage #main-header .site-brand span  {
        font-size: 0.92rem;
        letter-spacing: 0.13em;
    }}

@media (max-height: 700px) and (max-width: 640px) {
    body.homepage .home-hero-content  {
        padding-top: calc(var(--home-header-height) + 0.75rem + env(safe-area-inset-top));
    }}

@media (prefers-reduced-motion: reduce) {    body.homepage #section-1  {
        height: 100vh;
        height: 100svh;
        min-height: 32rem;
    }    body.homepage #mobile-menu  {
        transition: none;
    }}