/* Fictional room; the supplied station logo replaces the television programme. */
body { isolation: isolate; background: #030404; }
.page-background {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    pointer-events: none; background: #020303;
}
.archive-room {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, 177.6833vh); aspect-ratio: 1672 / 941;
    transform: translate(-50%, -50%); isolation: isolate;
}
.archive-room__image { display: block; width: 100%; height: 100%; max-width: none; }
.archive-room__light, .archive-room__pool, .archive-room__bloom {
    position: absolute; pointer-events: none;
    animation: tv-soft-light 9s ease-in-out infinite; animation-play-state: paused;
}
/* Radial light fades smoothly to zero: no cut-out cones or synthetic shadows. */
.archive-room__light {
    left: 24%; top: 16%; width: 34%; height: 48%;
    background: radial-gradient(ellipse, #b5d6bd16, #729b7d07 44%, transparent 72%);
}
.archive-room__pool {
    left: 22%; top: 52%; width: 38%; height: 36%;
    background: radial-gradient(ellipse, #9bc6a50c, transparent 70%);
}
.archive-room__bloom {
    left: 33%; top: 29%; width: 16%; height: 26%;
    background: radial-gradient(ellipse, #bedec921, #97bfa00b 38%, transparent 72%);
}
/* Bounds follow the glass in the 1672 x 941 source image. The opaque base
   hides the original programme even when the station logo briefly dims. */
.archive-room__screen {
    position: absolute; left: 38.5766%; top: 35.3879%; width: 4.6053%; height: 12.7524%;
    overflow: hidden; border-radius: 5% 10% 12% 4%;
    clip-path: polygon(0 0, 100% 11.7%, 98% 94%, 0 100%);
    background: #1c1c1c;
    isolation: isolate;
}
.archive-room__programme {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #1c1c1c; transform: skewY(5deg); opacity: .95;
    animation: tv-logo-flicker 8s steps(1, end) infinite; animation-play-state: paused;
}
.archive-room__logo {
    display: block; width: 94%; height: auto; max-height: 80%; object-fit: contain;
    filter: drop-shadow(0 0 1px #e2d9c033);
}
.archive-room__static {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
    opacity: .065; mix-blend-mode: normal; image-rendering: pixelated;
}
.archive-room__screen::after {
    content: ''; position: absolute; inset: 0;
    box-shadow: inset 0 0 5px 1px #0008;
    background: repeating-linear-gradient(0deg, #0002 0 1px, transparent 1px 3px);
}
.archive-room__scan {
    position: absolute; inset: -100% 0 0;
    background: linear-gradient(0deg, transparent 44%, #0003 49%, transparent 54%);
    animation: tv-scan 12s linear infinite; animation-play-state: paused;
}
.page-background::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #02030370, transparent 42%, #02030314),
        radial-gradient(ellipse at 57% 48%, transparent 24%, #02030348 77%, #020303e0 100%);
}
.page-background__atmosphere {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: .05;
}
[data-background-motion="animated"] .archive-room__light,
[data-background-motion="animated"] .archive-room__pool,
[data-background-motion="animated"] .archive-room__bloom,
[data-background-motion="animated"] .archive-room__programme,
[data-background-motion="animated"] .archive-room__scan { animation-play-state: running; }
@keyframes tv-logo-flicker {
    0%, 22%, 30%, 65%, 100% { opacity: .95; transform: skewY(5deg); }
    24% { opacity: .64; transform: skewY(5deg) translateX(.4px); }
    27% { opacity: .85; transform: skewY(5deg); }
    68% { opacity: .58; transform: skewY(5deg) translateX(-.4px); }
    72% { opacity: .88; transform: skewY(5deg); }
    86% { opacity: .74; transform: skewY(5deg); }
    91% { opacity: .95; transform: skewY(5deg); }
}
@keyframes tv-soft-light { 0%, 100% { opacity: .7; } 38% { opacity: .9; } 62% { opacity: .65; } 82% { opacity: .8; } }
@keyframes tv-scan { to { transform: translateY(100%); } }
@media (max-width: 650px) {
    .archive-room { width: 210vw; left: -58vw; top: 24vh; transform: none; }
    .page-background::after {
        background: linear-gradient(0deg, #020303 0%, transparent 45% 72%, #02030380 100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .archive-room__light, .archive-room__pool, .archive-room__bloom,
    .archive-room__scan, .archive-room__programme { animation: none !important; }
}
