.tvflex-home-motion #connected-scene,
.tvflex-home-motion .scene-controls {
    display: none;
}

.tvflex-home-motion .hero-visual[data-tvflex-motion-ready] {
    transform: none !important;
}

.tvflex-home-motion .hero-visual[data-tvflex-motion-ready] > img {
    visibility: hidden;
}

.tvflex-home-motion .hero-visual[data-tvflex-motion-ready] .visual-label {
    visibility: hidden;
}

/* Reserve the frame inside the hero even when zoom creates a very wide CSS viewport. */
@media (min-width: 801px) {
    .tvflex-home-motion .home-hero .hero-visual {
        --tvflex-frame-top: clamp(25px, 5vh, 56px);
        --tvflex-frame-bottom: clamp(40px, 6vh, 75px);
        top: var(--tvflex-frame-top);
        bottom: auto;
        width: min(47%, 1040px);
        aspect-ratio: 3 / 2;
        max-height: calc(100% - var(--tvflex-frame-top) - var(--tvflex-frame-bottom));
    }

    .tvflex-home-motion .hero-visual > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.tvflex-ambient-art {
    position: fixed;
    inset: auto 24px 8vh auto;
    width: min(44vw, 610px, 72vh);
    aspect-ratio: 3 / 2;
    z-index: 6;
    pointer-events: none;
    opacity: var(--tvflex-scene-alpha, .15);
    mix-blend-mode: multiply;
    background: center / contain no-repeat url('network-backdrop.webp');
}

.tvflex-live-motion .tvflex-ambient-art {
    visibility: hidden;
}

.tvflex-home-stage {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 5;
    pointer-events: none;
    transform-origin: top left;
    opacity: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: clamp(18px, 2vw, 36px);
    transition: opacity .24s ease;
}

.tvflex-home-stage[data-visible] {
    opacity: var(--tvflex-scene-alpha, 1);
}

.tvflex-home-stage[data-ambient] {
    z-index: 6;
    mix-blend-mode: multiply;
}

.tvflex-ambient-art[data-inner-hero],
.tvflex-home-stage[data-inner-hero] {
    z-index: 1;
    mix-blend-mode: multiply;
}

.tvflex-site-motion #main > .not-found > * {
    position: relative;
    z-index: 2;
}

.tvflex-ambient-art[data-dark],
.tvflex-home-stage[data-ambient][data-dark] {
    mix-blend-mode: screen;
}

.tvflex-home-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--tvflex-panel-alpha, 1);
    background:
        radial-gradient(ellipse at 55% 60%, #b4cef3 0%, transparent 59%),
        radial-gradient(ellipse at 84% 18%, #d8e6ff 0%, transparent 42%),
        linear-gradient(150deg, #edf4ff, #d8e5fb 72%, #f2f7ff);
    box-shadow: inset 0 0 0 1px #fff8;
}

.tvflex-home-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.tvflex-home-stage[data-interactive] canvas {
    pointer-events: auto;
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.tvflex-home-stage[data-dragging] canvas { cursor: grabbing; }

.tvflex-orbit-hint {
    position: absolute;
    right: 4%;
    bottom: 5%;
    padding: .35rem .65rem;
    border: 1px solid #bdcce6;
    border-radius: 999px;
    background: #f9fbfff0;
    color: #233e72;
    font-size: .73rem;
    font-weight: 650;
    line-height: 1.2;
}

.tvflex-home-stage:not([data-interactive]) .tvflex-orbit-hint { display: none; }

.tvflex-home-stage:not([data-hero]) .visual-badge {
    display: none;
}

.tvflex-home-stage .visual-badge {
    z-index: 1;
}

.tvflex-home-stage .badge-top {
    top: 5%;
    right: 4%;
}

.tvflex-home-stage .badge-bottom {
    bottom: 5%;
    left: 4%;
}

@media (max-width: 640px) {
    .tvflex-ambient-art {
        opacity: var(--tvflex-scene-alpha, .11);
        right: 10px;
        width: min(62vw, 72vh);
    }

    .tvflex-home-stage .visual-badge {
        display: none;
    }
}

@media (min-width: 1050px) {
    .tvflex-home-motion .hero-visual[data-tvflex-motion-ready] ~ .hero-bottom .scroll-cue {
        transform: translateX(-85%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tvflex-home-stage {
        transition: none;
    }
}

@media print {
    .tvflex-home-stage,
    .tvflex-ambient-art {
        display: none;
    }

    .tvflex-home-motion .hero-visual[data-tvflex-motion-ready] > img {
        visibility: visible;
    }
}
