/* ==========================================================================
   --- css/pages/overview-media.css
   Mobile / tablet: keep the desktop canvas (bg + figure overlay), sepia
   ambient, and a single document scroller for touch.
   ========================================================================== */

@media (max-width: 1200px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100% !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #scroll-stage.horizontal-scroll-container,
    #scroll-stage {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        height: auto !important;
        touch-action: pan-y !important;
    }

    #hero.page-section {
        margin-bottom: 0 !important;
    }
    #hero.page-section::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 4.5rem;
        background: linear-gradient(to bottom, rgba(8,8,8,0) 0%, #080808 100%);
        pointer-events: none;
        z-index: 8;
    }

    #overview-showroom.page-section {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        background: #050505 !important;
        position: relative !important;
        overscroll-behavior: auto !important;
        touch-action: pan-y !important;
    }

    #overview-showroom .ov-ambient {
        display: block !important;
        position: absolute !important;
        inset: -20px !important;
        z-index: 0 !important;
        pointer-events: none !important;
        background-image: url('/assets/pages/index/sections/overview/ambient.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        filter: blur(14px) brightness(0.7) sepia(0.8) grayscale(0.5) !important;
    }

    #overview-showroom .ov-scroll {
        position: relative;
        z-index: 1;
        overflow: visible !important;
        padding: 5.2rem 0 1.6rem !important;
        flex: none !important;
        min-height: 0 !important;
        height: auto !important;
        touch-action: pan-y !important;
    }

    #overview-showroom .ov-panel {
        min-height: 0 !important;
        height: auto !important;
        padding: 0.45rem 0 0.9rem !important;
        display: flex;
        justify-content: center;
    }

    #overview-showroom .ov-stage {
        width: min(1040px, 94vw) !important;
        min-height: 0 !important;
        height: auto !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #overview-showroom .ov-copy,
    #overview-showroom .ov-visual {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        clip-path: none !important;
    }

    #overview-showroom .ov-visual {
        order: 2 !important;
        height: 46vw !important;
        min-height: 180px !important;
        max-height: 280px !important;
        background: #070708;
        overflow: hidden;
    }

    #overview-showroom .ov-copy {
        order: 1 !important;
        z-index: 3;
        padding: 1.35rem 1.2rem 1.15rem !important;
        text-align: left !important;
        background: rgba(12, 12, 14, 0.92) !important;
    }

    #overview-showroom .ov-panel--rtl .ov-copy,
    #overview-showroom .ov-panel--ltr .ov-copy {
        padding: 1.35rem 1.2rem 1.15rem !important;
        text-align: left !important;
        clip-path: none !important;
    }

    #overview-showroom .ov-panel--rtl .ov-rule,
    #overview-showroom .ov-panel--rtl .ov-text,
    #overview-showroom .ov-panel--rtl .ov-cta-row {
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }

    #overview-showroom .ov-text {
        max-width: none !important;
        font-size: 0.98rem !important;
    }

    #overview-showroom .ov-title {
        font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    }

    #overview-showroom .ov-figure,
    #overview-showroom .ov-panel--ltr .ov-figure,
    #overview-showroom .ov-panel--rtl .ov-figure,
    #overview-showroom .ov-figure--wide,
    #overview-showroom .ov-figure--group {
        position: absolute !important;
        object-fit: contain !important;
    }

    .ov-jump {
        display: none !important;
        position: sticky !important;
        top: 4.55rem !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: min(1040px, calc(100vw - 1.25rem)) !important;
        margin: 0.85rem auto 0.95rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.38rem !important;
        padding: 0.38rem !important;
        background: rgba(12, 12, 14, 0.78) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 12px !important;
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        backdrop-filter: blur(16px) saturate(1.2);
        z-index: 90 !important;
        box-sizing: border-box !important;
        visibility: hidden;
        pointer-events: none;
    }
    body.ov-jump-on .ov-jump {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1;
    }

    body.ov-jump-on .ov-jump.ov-jump-flash {
        animation: ovJumpFlash 0.62s ease-in-out both;
    }

    body.ov-jump-on .ov-jump.ov-jump-flash-out {
        animation: ovJumpFlashOut 0.62s ease-in-out both;
        pointer-events: none !important;
    }

    @keyframes ovJumpFlash {
        0% { opacity: 0; }
        16% { opacity: 0.5; }
        32% { opacity: 0; }
        48% { opacity: 0.5; }
        64% { opacity: 0; }
        100% { opacity: 1; }
    }

    @keyframes ovJumpFlashOut {
        0% { opacity: 1; }
        16% { opacity: 0; }
        32% { opacity: 0.5; }
        48% { opacity: 0; }
        64% { opacity: 0.5; }
        100% { opacity: 0; }
    }

    @media (prefers-reduced-motion: reduce) {
        body.ov-jump-on .ov-jump.ov-jump-flash,
        body.ov-jump-on .ov-jump.ov-jump-flash-out {
            animation: none !important;
        }
    }

    .ov-jump-link {
        display: inline-flex !important;
        align-items: center;
        gap: 0.35rem;
        padding: 0.42rem 0.72rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.04);
        color: #f4f4f5 !important;
        font-size: 0.58rem !important;
        letter-spacing: 0.14em;
    }

    .ov-jump-link span {
        display: inline !important;
        color: rgba(255, 255, 255, 0.55) !important;
        font-size: 0.52rem !important;
    }

    .ov-jump-link.is-on {
        background: rgba(210, 220, 70, 0.16);
        border-color: var(--OrOcra5519) !important;
        color: var(--OrOcra5519) !important;
    }

    .ov-jump-link.is-on span {
        color: var(--OrOcra5519) !important;
    }

    .ov-foot {
        width: min(1040px, 94vw);
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .ov-origin {
        order: 3;
        width: 100%;
        padding-top: 0.4rem;
    }
}

@media (max-width: 640px) {
    .ov-scroll {
        padding-top: 0.2rem;
    }

    .ov-jump {
        top: 4.35rem !important;
        width: min(100%, calc(100vw - 0.9rem)) !important;
        margin: 0.55rem auto 0.7rem !important;
        border-radius: 12px !important;
        gap: 0.3rem !important;
    }

    .ov-jump-link {
        font-size: 0.52rem !important;
        padding: 0.38rem 0.55rem !important;
    }

    .ov-title {
        font-size: 1.85rem;
    }

    .ov-text {
        font-size: 1rem;
    }

    #overview-showroom .ov-stage {
        min-height: 0 !important;
        height: auto !important;
    }

    .ov-cta {
        width: 100%;
        justify-content: center;
    }

    body.overview-body .pinned-hud-sidebar {
        display: none;
    }
}

/* Phone / tablet: every section stays visible. The page scrolls normally. */
@media (max-width: 1200px) {
    html,
    html.is-mobile-stack,
    body,
    html.is-mobile-stack body,
    body.is-mobile-stack {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        max-height: none !important;
        padding-bottom: 4.6rem !important;
        overscroll-behavior-y: auto !important;
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #scroll-stage.horizontal-scroll-container,
    #scroll-stage,
    html.is-mobile-stack #scroll-stage {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        touch-action: pan-y !important;
    }

    html.is-mobile-stack .page-section,
    body.is-mobile-stack .page-section,
    .page-section,
    #hero.page-section,
    #overview-showroom.page-section,
    #sectors-showroom.page-section,
    #payhip-showroom.page-section,
    #mods-showroom.page-section,
    #oxl-orama-showroom.page-section,
    #ormusic-showroom.page-section,
    #apps-showroom.page-section,
    #artea-showroom.page-section,
    #ekovea-showroom.page-section,
    #services-showroom.page-section,
    #platforms-showroom.page-section,
    #bio.page-section {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        content-visibility: visible !important;
        contain-intrinsic-size: none !important;
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        padding-bottom: 1.25rem !important;
    }

    #hero,
    #hero.page-section {
        min-height: 100svh !important;
        min-height: 100dvh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 5.5rem !important;
        padding-bottom: 4.5rem !important;
        box-sizing: border-box !important;
    }

    #overview-showroom .ov-scroll,
    .scrollable-y-matrix,
    .bio-scrollable-container,
    #payhip-scroll-matrix,
    #bio-scroll-matrix {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        touch-action: pan-y !important;
    }

    #stage-hover-scroll,
    .transition-shield {
        display: none !important;
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

