/*
 * THE FOOTER SCENE (the owner's brief of 19 October 2026, and the owner's
 * correction the same night): the same house by night and by day behind the
 * rental site's footer, the night in dark mode and the day in light.
 *
 * The footer keeps exactly the height, layout and spacing it had. The house
 * is a background behind its content, cut to the footer's own box: cover,
 * centred, a little lower on a phone, where a taller crop of the middle of
 * the house is used. Nothing here sets a size, a padding, a margin or a gap
 * on the footer or on anything in it; FooterSceneTest holds that, and the
 * footer was measured at 390, 768 and 1366 wide before and after.
 *
 * The words sit on a soft dark shade over each picture, so the footer keeps
 * the dark palette whichever mode the page is in; each picture carries its
 * own shade, so the two fade together. Both pictures are always in the page:
 * changing the mode fades one into the other on opacity alone, at once for
 * anybody who asked for less motion. Each has a tiny blurred copy of itself
 * behind it until it loads (they are lazy, far below the first screen).
 *
 * Loaded by the layout just before the footer, not in the head, so nothing
 * above the footer waits for it. The pictures: tools/footer-scene/build.py.
 */
.site-footer {
    --bg: #0f1624; --surface: #131c2e; --surface-2: #1a2438; --text: #f1f5f9; --muted: #c0cad8;
    --border: rgba(255, 255, 255, .16); --gold: #f0b90b; --gold-2: #ffd45e; --gold-ink: #1a1300;
    color-scheme: dark;
    position: relative; isolation: isolate;
    background-color: var(--bg); color: var(--text);
    text-shadow: 0 1px 2px rgba(5, 9, 18, .5);
}
.footer-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.footer-scene-layer, .footer-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-scene-layer { background-size: cover; background-position: 50% var(--scene-y, 50%); transition: opacity .6s ease; }
.footer-scene img { object-fit: cover; object-position: 50% var(--scene-y, 50%); }
.footer-scene-layer::after { content: ""; position: absolute; inset: 0; }
.footer-scene-night { opacity: 1; background-image: url("data:image/webp;base64,UklGRpAAAABXRUJQVlA4IIQAAAAwBACdASogAA4APu1yrU+pp6QiMAgBMB2JQBOgMYUT7doVNNpDNBjheYAA/vvr6ocgVhYWi/gF47db8pVTek/ofB48+eORxzIpsQTeC6HL/Rmp2LYzd7txMzjAJuom0ZsoxPuv6oXvo4t94907JCFV7TheFdwHpusjfsFj/RY02fcpAAA="); }
.footer-scene-night::after { background: linear-gradient(to bottom, rgba(10, 15, 26, .72), rgba(10, 15, 26, .46) 55%, rgba(10, 15, 26, .64)); }
.footer-scene-day { opacity: 0; background-image: url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAAAQBACdASogAA4APu1qrU8ppiQiMAgBMB2JZQCzgBuJEeRzWW0+yVONsAD9TZ4EPd7lOZTYHKp12pU+2xZ0+JxsBk4Yxq3fi3Gz0tn3c7dXU7prtKlvTLBiGi2jJCc+/tdmk8zA9h4UbdMkx8fjvhskupClgM81arzXuVW5nPLY9ZSwEutnOMI0zzqHV/24RgBA/5dsPWIAfyqAAAA="); }
.footer-scene-day::after { background: linear-gradient(to bottom, rgba(10, 15, 26, .8), rgba(10, 15, 26, .6) 55%, rgba(10, 15, 26, .74)); }

/* Light mode: the day, whether the device asks for it or the visitor did. */
@media (prefers-color-scheme: light) {
    html:not([data-mode="dark"]) .footer-scene-night { opacity: 0; }
    html:not([data-mode="dark"]) .footer-scene-day { opacity: 1; }
}
html[data-mode="light"] .footer-scene-night { opacity: 0; }
html[data-mode="light"] .footer-scene-day { opacity: 1; }

/* A phone: a little lower, so the house stays in view. */
@media (max-width: 599px) {
    .site-footer { --scene-y: 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-scene-layer { transition: none; }
}
