/* The Lantern - living background (private test build). Pairs with living-bg.js. */
.lbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0b1424;
  contain: strict;
  --lbg-scrim: 0.3;
}
.lbg-stage,
.lbg-still,
.lbg-gl,
.lbg-fx,
.lbg-lift,
.lbg-hl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.lbg-still {
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.lbg-still.is-on { opacity: 1; }
.lbg-gl {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.lbg.has-gl .lbg-gl { opacity: 1; }
/* the hovered / tapped part: a warm gain on the object (color-dodge keeps its own colours), then a thin rim and a soft
   halo added with "screen" */
.lbg-lift { mix-blend-mode: color-dodge; visibility: hidden; }
.lbg-hl { mix-blend-mode: screen; visibility: hidden; }

/* Light scrim so text over the photo stays readable: darker behind the header and the left third, stronger on the
   bright daytime scenes (set per period by living-bg.js). No vignette: nothing that softens the picture. */
.lbg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, calc(var(--lbg-scrim) + 0.22)) 0%, rgba(8, 10, 18, calc(var(--lbg-scrim) * 0.5)) 15%, rgba(8, 10, 18, 0) 34%),
    linear-gradient(90deg, rgba(8, 10, 18, calc(var(--lbg-scrim) * 1.15)) 0%, rgba(8, 10, 18, calc(var(--lbg-scrim) * 0.55)) 30%, rgba(8, 10, 18, 0) 52%);
}
@media (max-width: 760px) {
  .lbg-scrim {
    background:
      linear-gradient(180deg, rgba(8, 10, 18, calc(var(--lbg-scrim) + 0.22)) 0%, rgba(8, 10, 18, calc(var(--lbg-scrim) * 1.05)) 24%, rgba(8, 10, 18, calc(var(--lbg-scrim) * 0.75)) 46%, rgba(8, 10, 18, 0) 66%),
      linear-gradient(0deg, rgba(8, 10, 18, calc(var(--lbg-scrim) + 0.30)) 0%, rgba(8, 10, 18, calc(var(--lbg-scrim) * 0.6)) 30%, rgba(8, 10, 18, 0) 52%);
  }
}

/* The little time-of-day switcher (preview / private test only) */
.lbg-switcher {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1200;
  max-width: min(440px, calc(100vw - 28px));
  padding: 10px 12px 9px;
  border-radius: 14px;
  background: rgba(14, 18, 30, 0.82);
  border: 1px solid rgba(232, 194, 112, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: #f5ecd4;
  font: 13px/1.35 'Inter', system-ui, sans-serif;
}
.lbg-sw-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 7px; }
.lbg-switcher button {
  font: inherit;
  color: #f5ecd4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 194, 112, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.lbg-switcher button:hover { background: rgba(232, 194, 112, 0.16); }
.lbg-switcher button:focus-visible { outline: 2px solid #e8c270; outline-offset: 2px; }
.lbg-switcher button[aria-pressed="true"] { background: #e8c270; color: #2a1a08; border-color: #e8c270; }
.lbg-switcher label { display: flex; gap: 6px; align-items: center; }
.lbg-switcher input[type="datetime-local"] {
  font: inherit;
  color: #f5ecd4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 194, 112, 0.35);
  border-radius: 8px;
  padding: 3px 6px;
  color-scheme: dark;
}
.lbg-sw-info { opacity: 0.85; font-size: 12px; }

@media (max-width: 760px) {
  .lbg-switcher { right: 8px; left: 8px; bottom: 8px; max-width: none; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lbg-still, .lbg-gl { transition: none; }
}
/* QA screenshots (?shot=1): no fades */
.lbg-instant .lbg-still, .lbg-instant .lbg-gl { transition: none !important; }

/* data-fit="box": the background fills its parent element (a page's hero) instead of the window */
.lbg.lbg-box { position: absolute; z-index: 0; }
