/* (FINAL-FIX2 perf) 2 selector lists in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* The motion pass, October 2026 (site levels). Loaded after css/ux/motion.css. */

/* ---------- Construction progress: the milestone line draws in (js/ux/site.js drawMilestones) ----------
   Each stage's ::before is the stretch of line from the stage before. The gold ones scale in from their left end one after another
   (--ux-d, --ux-seg: an even pace), then the current stage's dot answers with a small spring (--ux-dd). Transform only. */
body[data-level="site"] #ctx .prog-strip .ms.ux-draw > span::before { transform-origin: 0 50%; }
body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .done::before, body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .cur::before { animation: ux-ms-draw var(--ux-seg, .16s) linear var(--ux-d, 0s) both; }
body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .cur i { animation: ux-ms-dot var(--dur-base, 416ms) var(--ease-spring) var(--ux-dd, 0s) both; }
@keyframes ux-ms-draw { from { transform: scaleX(0); } }
@keyframes ux-ms-dot { from { transform: scale(.45); } }

/* ---------- the balcony view's Day <-> Dusk: one warm band of light (js/ux/site.js sweep) ----------
   One gradient on transform (WAAPI, 1.4s, once per change), screen blend over the photo and its shade, under the controls. */
#lv-tower .bview > .ux-sweep { position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(255, 206, 140, .3) 38%, rgba(255, 232, 196, .46) 50%, rgba(255, 206, 140, .3) 62%, transparent);   /* 90deg: the skew gives the slant, and both long edges stay fully clear */
  transform: translateX(-120%) skewX(-12deg); }

@media (prefers-reduced-motion: reduce) {
  body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .done::before, body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .cur::before, body[data-level="site"] #ctx .prog-strip .ms.ux-draw > .cur i { animation: none; }
  #lv-tower .bview > .ux-sweep { display: none; }
}

/* (22 October) round 4 · 05's curtains are gone, at the client's request: the balcony view opens with its crossfade again (js/levels.js openView) */

/* the tower tap's push-in (js/ux/site.js pushIn): the aerial and its outlines are layers of their own, and without this each step of the push and of the
   hand-over's zoom redrew them at the new size (~300 redraws of the 3800px aerial on a OnePlus Pad Go, the page going cream in patches) */
#lv-site.ux-push .aerial-f { will-change: transform; }

/* ---------- round 5 · 06 · the guest's homes are marked on the building (js/levels.js levels.tower.marks): a tag per shortlisted floor, the floor faintly warm ---------- */
#lv-tower .tw-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .24s; }
#lv-tower.tw-slabs .tw-marks { opacity: 0; }
#lv-tower .tw-mark { position: absolute; left: var(--x1); display: inline-flex; align-items: center; gap: .35rem; height: 1.85rem; margin: 0; padding: 0 .75rem 0 .55rem; border: 0; border-radius: 999px; transform: translate(calc(-100% - .6rem + var(--dx, 0px)), -50%);
  font: 600 max(.78rem, 12px)/1 var(--sans); white-space: nowrap; color: #16161b; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); cursor: pointer; pointer-events: auto; }
#lv-tower .tw-mark svg { width: .95rem; height: .95rem; fill: #e0564f; stroke: none; }
#lv-tower:not(.tw-slabs) .tw-frame polygon.fav:not(.on) { fill: rgba(242, 179, 61, .2); stroke: rgba(242, 179, 61, .6); }

/* ---------- round 6 · 04 · availability on the facade (js/levels.js levels.tower.avail): a faint tint per floor and its count at the band's left end ---------- */
#lv-tower .tw-av path { stroke: none; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out); }
#lv-tower .tw-av path.on { opacity: .3; }   /* (23 October) only the chosen floor wears its availability colour (it was every floor at .13: the whole tower looked lit); it follows the lift */
/* the floors' light on arrival (levels.js sweep): one small element a floor, over the outlines */
#lv-tower .tw-lit { position: absolute; inset: 0; pointer-events: none; }
#lv-tower .tw-lit > i { position: absolute; opacity: 0; }
#lv-tower .tw-lit path { fill: rgba(255, 255, 255, .45); }
#lv-tower .tw-av path.g { fill: #3fae6d; } #lv-tower .tw-av path.a { fill: #e3a43a; } #lv-tower .tw-av path.s { fill: #8c8c96; }
#lv-tower.tw-slabs .tw-av, #lv-tower.tw-slabs .tw-avl { display: none; }
#lv-tower .tw-avl { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* (17 October, Phase 5) the "5 free" tags and their key at the 11px floor (they were 10 and 10.5px on the tablet); larger roots keep their rem size */
#lv-tower .tw-avn { position: absolute; display: inline-flex; align-items: center; gap: .3rem; padding: max(2px, .14rem) max(7px, .5rem) max(2px, .14rem) max(5px, .4rem); transform: translate(.5rem, -50%); border-radius: 999px; white-space: nowrap;
  font: 600 max(.64rem, 11px)/1.2 var(--sans); color: #fff; background: rgba(14, 11, 20, .55); transition: opacity .2s; }
#lv-tower .tw-avn i, #lv-tower .tw-avkey i { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #3fae6d; }
#lv-tower .tw-avn.a i, #lv-tower .tw-avkey i.a { background: #e3a43a; } #lv-tower .tw-avn.s i, #lv-tower .tw-avkey i.s { background: #8c8c96; }
#lv-tower .tw-avn.off { opacity: 0; }
#lv-tower .tw-avkey { position: absolute; display: flex; align-items: center; gap: .35rem; margin: 0; padding: .3rem .65rem; transform: translateY(calc(-100% - .6rem)); border-radius: 999px; white-space: nowrap;
  font: 500 max(.66rem, 11px)/1 var(--sans); color: #fff; background: rgba(14, 11, 20, .55); }
#lv-tower .tw-avkey i { margin-left: .3rem; }
#lv-tower .tw-avkey em { margin-left: .4rem; font-style: normal; font-size: max(.9em, 11px); opacity: .7; }
