/* One full-screen video hero followed by the document-flow footer. */
html.is-home-active,
html body.is-home-active,
html body.is-home-active #app-container {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    touch-action: auto !important;
}
html body #page-home.home-scroll-page,
html body #page-home.home-scroll-page .home-single-view {
    display: block !important;
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
}
html body #page-home.home-scroll-page .home-media {
    position: absolute;
    inset: 0;
}
html body #page-home.home-scroll-page .home-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    max-height: none !important;
    padding: max(90px, var(--site-header-h, 90px)) 5% !important;
    box-sizing: border-box;
    overflow: visible;
}
html body #page-home.home-scroll-page .home-panel--title {
    overflow: hidden;
}
html body #page-home.home-scroll-page .hero-content-left {
    max-height: none;
    max-width: 1280px;
}
/* Replayable letter entrance; the unenhanced heading stays readable without JS. */
html body #page-home .main-title .text-fill {
    overflow: hidden;
    vertical-align: bottom;
}
html body #page-home .main-title .title-char {
    display: inline-block;
    font: inherit;
    white-space: pre;
}
html body #page-home .main-title.is-title-ready .title-char {
    opacity: 0;
    transform: translateY(200px);
}
html body #page-home .main-title.is-title-visible .title-char {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.01s cubic-bezier(.16, 1, .3, 1), transform 1.01s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--char-index) * 70ms);
}
html body #page-home .home-panel--title.is-hero-ready :is(.home-intro-copy, .home-hero-actions) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(72px);
}
html body #page-home .home-panel--title.is-hero-visible :is(.home-intro-copy, .home-hero-actions) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 1.3s ease-out, transform 1.3s cubic-bezier(.22, 1, .36, 1),
        background-color .4s ease, border-color .4s ease;
    transition-delay: 0s;
}
html body #page-home .main-title,
html body #page-home .main-title * {
    --site-selection-bg: #ff6e2e;
    --site-selection-text: #fff;
}
html body #page-home .main-title::selection,
html body #page-home .main-title *::selection {
    background-color: #ff6e2e !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none !important;
}
html body #page-home .home-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: clamp(28px, 4dvh, 44px);
}
html body #page-home .home-hero-actions .home-view-more {
    margin-top: 0;
}
@media (max-width: 768px) {
    html body #page-home .main-title .text-fill {
        font-size: clamp(20px, 7.2vw, 53px) !important;
        line-height: 1.02 !important;
    }
    html body #page-home .main-title .line-1 {
        margin-bottom: 2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html body #page-home .main-title.is-title-ready .title-char,
    html body #page-home .home-panel--title.is-hero-ready :is(.home-intro-copy, .home-hero-actions) {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none !important;
    }
}
/* White controls over the opening video, until scrolling or opening a menu. */
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .logo img {
    filter: brightness(0) invert(1) !important;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .nav-item:not(.active):not(:hover) {
    color: rgba(255, 255, 255, .8) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, .8) !important;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .nav-account:not(:hover):not(.is-active) {
    color: #fff;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .mobile-menu-toggle span {
    background-color: #fff !important;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .theme-switch .slider {
    box-shadow: 0 0 0 2px #fff;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .theme-switch .slider::before {
    background-color: #fff;
}
html body.is-home-active.light-mode #gnb:not(.is-scrolled):not(.is-mega-open):not(:has(#navMenu.active)) .theme-switch #theme-input:focus-visible + .slider {
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #ffffff40;
}
html body #page-home.home-scroll-page .main-title,
html body #page-home.home-scroll-page .hero-content-left p,
html body #page-home.home-scroll-page .btn-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
html body.is-home-active .page-footer,
html body.is-home-active .page-footer.visible {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 32px 0 !important;
    margin-top: 0 !important;
}
html body.is-home-active .page-footer-spacer {
    display: none !important;
}
html body #page-home .home-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(28px, 4dvh, 44px);
    padding: 16px 44px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .4s ease, border-color .4s ease;
}
html body #page-home.home-scroll-page .home-panel--title .home-intro-copy {
    margin-top: clamp(20px, 3dvh, 30px) !important;
}
html body #page-home .home-panel--title .home-intro-copy .text-highlight {
    font-weight: inherit;
}
html body #page-home .home-panel--title .home-intro-copy,
html body #page-home .home-panel--title .home-intro-copy span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, .3) !important;
}
html body #page-home .home-view-more:is(:hover, :focus-visible) {
    background: #ff6e2e;
    border-color: #ff6e2e;
}
html body #page-home .home-view-more:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
/* Compact controls and menu typography on the mobile home page. */
@media (max-width: 768px) {
    html body #page-home .home-view-more {
        padding: 11px 28px;
        font-size: 14px;
    }
    html body.is-home-active #scroll-hint-overlay {
        font-size: 12px;
        gap: 7px;
    }
    html body.is-home-active #scroll-hint-overlay .scroll-hint-chevron {
        flex-basis: 16px;
        width: 16px;
        height: 20px;
    }
}
@media (min-width: 1025px) {
    html.is-home-active {
        scroll-snap-type: none;
        scroll-padding: 0;
    }
    html body #page-home.home-scroll-page .home-panel {
        min-height: 100dvh !important;
    }
}

/* Preview-only: keep the popup checkbox proportional to its mobile label. */
@media (max-width: 768px) {
    html body #dt-home-popup[data-preview="true"] .dt-popup-dismiss input[type="checkbox"] {
        appearance: auto !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        flex: 0 0 14px;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box;
    }
    html body #dt-home-popup[data-preview="true"] .dt-popup-dismiss label { align-items: center; }
}

@media (max-width: 768px), (max-width: 1024px) and (max-height: 600px) and (pointer: coarse) {
    html.is-home-active,
    html body.is-home-active,
    html body.is-home-active #app-container { scroll-snap-type: none !important; }
    html body #page-home.home-scroll-page .home-panel {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }
}

/* The first screen shrinks as one surface while its section keeps its layout height. */
html body #page-home.home-scroll-page .home-panel--title {
    padding:0!important;overflow:visible;contain:none;will-change:auto;z-index:3;
}
html body #page-home .home-hero-surface {
    position:relative;display:flex;align-items:center;justify-content:center;
    width:100%;min-height:inherit;padding:max(90px,var(--site-header-h,90px)) 5%;
    box-sizing:border-box;overflow:hidden;isolation:isolate;background:#161616;
    transform-origin:center center;
}
html body #page-home.home-hero-morphing .home-hero-surface {will-change:transform,opacity}
html body #page-home.home-hero-morphing #home-approach .home-section-inner {opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce) {
    html body #page-home .home-hero-surface {transform:none!important;border-radius:0!important;opacity:1!important}
}
html body #page-home.home-scroll-page .home-panel--title {background:#0b0b0b!important}
html body.light-mode #page-home.home-scroll-page .home-panel--title {background:#fcfcfc!important}
