/* The Bungalows explorer. Max Estates' own look: paper, olive ink, sage, Gill Sans (DBOX's page + Film 2 cards). */
:root {
  --paper: #EAE8E0; --paper-hi: #FAF9F7; --ink: #333A06; --ink-2: rgba(51, 58, 6, .86); --ink-3: rgba(51, 58, 6, .74);
  --sage: #949A77; --wall: #86906F; --rule: rgba(51, 58, 6, .18);
  --stage-1: #15170F; --stage-2: #0E0F0A;
  --cream: #F3F1EA; --cream-2: rgba(243, 241, 234, .82); --cream-3: rgba(243, 241, 234, .66); --cream-rule: rgba(243, 241, 234, .2);
  --f: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Lato, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.16, 1, .3, 1);
  /* one timing family: a control's own change, a panel or a group arriving, a scene crossing */
  --t-ui: .25s; --t-panel: .45s; --t-scene: .9s;
  /* one label: the tower tag (dark glass, a fine paper rule on top, small spaced capitals); .on = paper with an ink rule */
  --tag-bg: rgba(14, 15, 10, .46); --tag-rule: rgba(250, 249, 247, .55);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stage-2); color: var(--cream); font-family: var(--f); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
img, canvas, video { user-select: none; -webkit-user-drag: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
#app { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
section { position: absolute; inset: 0; overflow: hidden; overflow: clip; }
.caps { text-transform: uppercase; letter-spacing: .2em; }

/* header */
#top { position: absolute; left: 0; right: 0; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: calc(16px + var(--sat)) calc(28px + var(--sar)) 16px calc(28px + var(--sal)); pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 15, 10, .5), rgba(14, 15, 10, 0)); }
#top > * { pointer-events: auto; }
.brand img { height: 52px; display: block; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .3)); }
.loc { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-2); padding-left: 20px; border-left: 1px solid var(--cream-rule); }
.nav { position: relative; margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.nav a:hover, .nav a.on { color: var(--paper-hi); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sage); }
#menuBtn { display: none; width: 42px; height: 40px; padding: 0; background: rgba(14, 15, 10, .35); border: 1px solid var(--cream-rule); color: var(--cream); border-radius: 1px; }
#menuBtn svg { display: block; width: 18px; height: 12px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
#menuBtn[aria-expanded="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.nav .paper { white-space: nowrap; }
.paper { background: var(--paper); color: var(--ink); border: 0; padding: 11px 18px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; border-radius: 1px; }
.paper:hover { background: var(--paper-hi); }
#app[data-view="floor"] .nav, #app[data-view="entering"] .nav, #app[data-view="leaving"] .nav, #app[data-view="dive"] .nav, #app[data-view="dive-out"] .nav { opacity: 0; pointer-events: none; }
.nav { transition: opacity var(--t-ui) var(--out); }
#app[data-view="room"] #top, #app[data-view="dive"] #top { background: linear-gradient(to bottom, rgba(14, 15, 10, .55), rgba(14, 15, 10, 0)); }
/* the header in ink, over paper (the estate plan: estate.js sets .m59e-paper): the olive logo, ink links, the tour button outlined in ink */
#app.m59e-paper #top { background: none; }
#app.m59e-paper .brand img { content: url(img/brand/logo-olive.png); filter: none; }
@supports (-moz-appearance: none) { #app.m59e-paper .brand img { filter: brightness(0) opacity(.82); } }
#app.m59e-paper .loc { color: var(--ink-3); border-left-color: var(--rule); }
#app.m59e-paper .nav a { color: var(--ink-2); }
#app.m59e-paper .nav a:hover, #app.m59e-paper .nav a.on { color: var(--ink); }
#app.m59e-paper .nav .paper { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
#app.m59e-paper .nav .paper:hover { background: var(--ink); color: var(--paper); }
#app.m59e-paper #menuBtn { background: transparent; border-color: var(--ink); color: var(--ink); }
#app.m59e-paper #menuBtn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

/* 1. towers */
#tower { z-index: 10; background: radial-gradient(ellipse at 50% 40%, var(--stage-1), var(--stage-2) 75%);
  -webkit-user-select: none; user-select: none; }   /* a drag to turn the view never selects the card's, the rail's or the tags' words */
/* will-change only while the camera moves frame by frame (app.js towerOpen, towerOut: #app.cam-move). A will-change layer is drawn at
   the screen's full pixel ratio or more whatever its scale, and never smaller again: at rest that is 59 MB for this picture on a
   retina screen where 19 MB shows every pixel it has, 81 MB against 17 MB on a 2.6x phone (work/ux/layers.js, tilemem.js). During
   the move the hint keeps the browser from redrawing the picture at every step of the zoom */
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#app.cam-move #stage { will-change: transform; }
/* touch screens, the light move into a residence and back (app.js liteIn, liteOut): the lit band waits out the camera's move. It is
   blended onto the picture (mix-blend-mode above), and on a Samsung phone that blend over a moving camera flickered */
#app.lite-move #bands { visibility: hidden; }
#stage > img { position: absolute; display: block; pointer-events: none; }
/* the sharp towers (the zoom layer) fade in and out as the camera moves in and back, a little on every frame. On the stage's own layer
   each step redrew the whole towers area, and the browser, kept busy, showed that area black for a few frames on the way back from a
   floor (work/ux/backflick.js: 46 % of the screen). On a layer of its own the fade is the compositor's and nothing is redrawn.
   Not on touch screens: they never play this move (the film), and theirs is animated on the compositor already */
#app:not(.touch) #facadeImg { will-change: opacity; }
#heroImg { left: 0; top: 0; width: 100%; height: 100%; }
#facadeImg { opacity: 0; }
.tod-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; pointer-events: none; will-change: opacity; }
#dim { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .35s; }
#dim path, #dim rect { fill: rgb(12, 13, 9); }   /* app.js dimDraw: four solid rectangles and one small cut-out; the see-through is the layer's */
#dim.on { opacity: .3; }
#bands { position: absolute; left: 0; top: 0; overflow: visible; touch-action: none; mix-blend-mode: screen; }
#bands polygon.hit { fill: rgba(0, 0, 0, 0); stroke: none; cursor: pointer; }
#hl { opacity: 0; transition: opacity .2s; pointer-events: none; }
/* every screen: the dim and the lit floor each on a layer of their own, so a pointer or finger crossing floors redraws those two vector
   layers only, never the render under them (on one layer with it, every floor crossed repainted the whole picture: on a phone a
   strobe). The band keeps its screen blend, now done by the compositor over the same render.
   The layers come from a flat 3D transform, not from will-change: a will-change layer is drawn at the screen's full pixel ratio
   whatever its scale, and these sit in the stage at under half size, so each cost almost five times the memory it showed
   (work/ux/layers.js, tilemem.js). What the dim itself costs is app.js dimDraw's business. Short of memory a browser drops what is
   on screen: flicker, black patches (Gurleen's Samsung and his laptop, 11-21) */
#dim, #bands { transform: translateZ(0); }
#hl.on { opacity: 1; }
#glowImg { opacity: .95; }
#wash { fill: rgba(255, 246, 230, .26); }
#wEdge { fill: none; stroke: #FFF8EC; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#wSide { fill: none; stroke: rgba(255, 248, 236, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
#sib { fill: none; stroke: rgba(250, 249, 247, .34); stroke-width: 1; vector-effect: non-scaling-stroke; }
#bands .pin { fill: #FFF8EC; stroke: none; }
#lead { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 29; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .2s; }
#lead.on { opacity: 1; }
#lead polyline { fill: none; stroke: rgba(250, 249, 247, .8); stroke-width: 1; }
#lead circle { fill: var(--paper-hi); }
#heroBase { position: absolute; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 15, 10, 0), var(--stage-2) 70%); }
#towerTags { position: absolute; inset: 0; pointer-events: none; }
#towerTags span { position: absolute; transform: translate(-50%, 0); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-hi);
  padding: 6px 10px 5px; background: var(--tag-bg); border-top: 1px solid var(--tag-rule); white-space: nowrap; transition: opacity var(--t-ui) var(--out); }
#towerTags span.on { background: var(--paper); color: var(--ink); border-top-color: var(--ink); }
#app:not([data-view="hero"]) #towerTags, #app:not([data-view="hero"]) #rail, #app:not([data-view="hero"]) #hint { opacity: 0; pointer-events: none; }
#towerTags, #rail, #hint { transition: opacity var(--t-ui) var(--out); }

#floorCard { position: absolute; z-index: 30; width: 316px; background: rgba(234, 232, 224, .97); color: var(--ink); padding: 16px 18px 16px; border-radius: 1px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); transform: translateY(-50%); }
.fc-head { display: flex; gap: 14px; align-items: center; }
.fc-no { display: flex; flex-direction: column; align-items: center; padding-right: 14px; border-right: 1px solid var(--rule); min-width: 58px; }
.fc-no .lbl { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.fc-no .num { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: .02em; }
.fc-title { flex: 1; min-width: 0; }
.fc-title .tower { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.fc-title .name { font-size: 19px; font-weight: 300; line-height: 1.15; margin-top: 3px; letter-spacing: .02em; }
.fc-title .meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.fc-step { display: flex; flex-direction: column; gap: 4px; }
.fc-step button { width: 30px; height: 26px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 13px; line-height: 1; border-radius: 1px; }
.fc-step button:hover { border-color: var(--ink); }
.fc-body { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.fc-plan { flex: 0 0 62px; height: 58px; overflow: visible; }
.fc-plan .core, #keyPlan .core { fill: rgba(51, 58, 6, .07); stroke: none; }
.fc-plan .wg, #keyPlan .wg { fill: rgba(234, 232, 224, .9); stroke: var(--wall); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fc-plan .wg.on, #keyPlan .wg.on { fill: var(--ink); stroke: var(--ink); }
.fc-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.fc-note:empty { display: none; }
.fc-go { margin-top: 13px; width: 100%; background: var(--ink); border: 0; color: var(--paper); padding: 11px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; border-radius: 1px; }
.fc-go:hover { background: #454d0c; }
.fc-go { touch-action: none; }     /* held and dragged: the film into the residence (app.js towerGrabStart) */
#towerVid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 25; opacity: 0; pointer-events: none; }
.fc-go[disabled] { background: transparent; border: 1px solid var(--rule); color: var(--ink-3); cursor: default; }

#rail { position: absolute; right: calc(18px + var(--sar)); top: 50%; transform: translateY(-46%); z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; outline-offset: 6px;
  padding: 10px 10px 14px; background: rgba(14, 15, 10, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.r-switch { display: flex; padding: 3px; gap: 2px; background: rgba(14, 15, 10, .5); border: 1px solid var(--cream-rule); border-radius: 30px; }
.r-switch button { background: transparent; border: 0; border-radius: 30px; padding: 7px 10px 6px; font-size: 11px; letter-spacing: .16em; color: var(--cream-2); transition: background var(--t-ui), color var(--t-ui); }
.r-switch button:hover { color: var(--paper-hi); }
.r-switch button.on { background: var(--paper); color: var(--ink); }
.r-ticks { position: relative; width: 44px; }
.r-ticks i { position: absolute; right: 0; height: 1px; width: 12px; background: rgba(250, 249, 247, .55); }
.r-ticks i.five { width: 18px; background: rgba(250, 249, 247, .85); }
.r-ticks i.ref { background: var(--sage); }
.r-ticks b { position: absolute; right: 24px; font-weight: 400; font-size: 11px; color: var(--cream); transform: translateY(-50%); letter-spacing: .06em; }
.r-ticks .sel { position: absolute; right: -4px; transform: translateY(-50%); background: var(--paper); color: var(--ink); font-size: 12px; padding: 3px 7px; letter-spacing: .06em; transition: top .12s; pointer-events: none; }
.r-ticks .sel[hidden] { display: none; }

#hint, #diveHint { position: absolute; left: calc(28px + var(--sal)); bottom: calc(24px + var(--sab)); z-index: 20; display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(14, 15, 10, .5); padding: 10px 16px 10px 12px; border-radius: 30px; color: var(--cream); }
#hint.off { opacity: 0; }
#hint .dot, #diveHint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 0 rgba(234, 232, 224, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234, 232, 224, .7); } 70% { box-shadow: 0 0 0 10px rgba(234, 232, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 232, 224, 0); } }

/* the Theme switch: ONE place in every view that has themes. Wide screens: top centre of the picture, on the back control's row (top left
   on the towers and the estate's aerial: home-turn.css); upright screens: top right, under the header. A small "Theme" label and the
   chosen theme's name; a click opens the four themes as a short menu (phone-chrome.js). Balcony views put their own in the same place
   (views.js .m59v-tod, placed by views.css) and share these looks (.look) */
#tod { position: absolute; z-index: 45; left: 50%; top: calc(94px + var(--sat)); transform: translateX(-50%); transition: opacity var(--t-ui) var(--out), left var(--t-panel) var(--out), transform var(--t-panel) var(--out); }
.look { background: rgba(14, 15, 10, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--cream-rule); border-radius: 30px; }
.look-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-radius: 30px; padding: 11px 15px 11px 17px; color: var(--paper-hi);
  font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.look-btn:hover { background: rgba(243, 241, 234, .1); }
.look-lbl { color: var(--cream-3); font-size: 9.5px; letter-spacing: .24em; padding-right: 10px; border-right: 1px solid var(--cream-rule); }
.look-ico { display: none; }
.look-chev { width: 10px; height: 6px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-ui) var(--out); }
.look.open .look-chev { transform: rotate(180deg); }
.look-menu { position: absolute; left: 0; top: calc(100% + 6px); width: max-content; min-width: 100%; box-sizing: border-box; padding: 6px 0 7px; background: var(--paper); color: var(--ink);
  border-radius: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .32); }
.look-menu[hidden] { display: none; }
.look-h { padding: 8px 18px 7px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.look-menu button { display: flex; align-items: center; gap: 11px; width: 100%; background: transparent; border: 0; padding: 11px 20px 11px 18px; color: var(--ink);
  font: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-align: left; white-space: nowrap; cursor: pointer; }
.look-menu button::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sage); }
.look-menu button[aria-checked="true"]::before { background: var(--ink); box-shadow: none; }
.look-menu button:hover, .look-menu button:focus-visible { background: rgba(148, 154, 119, .24); }
.look-menu button:focus-visible { outline-offset: -3px; }
/* Outside (the towers, the estate from the air) the switch is the light: Day / Afternoon / Evening. A floor and its rooms show the Theme
   switch instead (Gurleen, 21 Nov 2026). Both live in the one box (#tod), so whatever keeps clear of it still does. */
.light-bar { display: none; padding: 3px; gap: 2px; }
#app:not([data-view="floor"]):not([data-view="room"]) #tod .light-bar { display: flex; }
#app:not([data-view="floor"]):not([data-view="room"]) #tod > :is(.look-btn, .look-menu) { display: none; }
.light-bar button { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; border-radius: 30px; padding: 8px 14px 8px 11px; color: var(--cream-2);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background var(--t-ui), color var(--t-ui); }
.light-bar button:hover { color: var(--paper-hi); }
.light-bar button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.light-bar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
#app.phone .light-bar { padding: 0; }                       /* a phone: the light on now, one round button; a tap goes on to the next */
#app.phone .light-bar span { display: none; }
#app.phone .light-bar button { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
#app.phone .light-bar button[aria-checked="false"] { display: none; }
#app.phone .light-bar button[aria-checked="true"] { background: transparent; color: var(--paper-hi); }
#app.short #tod .light-bar span { display: none; }
#app.short #tod .light-bar button { padding: 10px 13px; }
#app.phone #wEdge { filter: none; }   /* a phone: the lit floor's edge without its blurred glow (an SVG blur redrawn on every floor crossed is slow there) */
/* a phone: no frosted blur (backdrop-filter) behind a control that sits over a picture that moves or a film that plays (the room's slow
   drift and walk-through, the estate turning, the club's films, a list scrolling under a back chip). Each one is re-blurred on every frame
   of the move, a heavy job for a phone's graphics chip (Android in particular); the same tint, a little denser, keeps them as legible.
   The light switch, the turn's bar and the level switch had this already (style.css #tod, home-turn.css .tn-bar, floor-phone.css) */
#app.phone :is(.chip-dark, .m59-back, .m59v-back, .m59v-gyro, .bc-chip, .fm-chip, .m59e-tag span) { -webkit-backdrop-filter: none; backdrop-filter: none; --tag-bg: rgba(14, 15, 10, .62); }   /* (their states keep their own backgrounds) */
#app.phone :is(#roomNav, #roomMap:not(.big), #motionBtn, .bc-dial, .bc-mode, .bc-pv-switch, .bc-nav) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 15, 10, .66); }
#app.phone #infoBtn { -webkit-backdrop-filter: none; backdrop-filter: none; }
#app.phone:not(.m59e-paper) #infoBtn:not(:hover):not([aria-expanded="true"]) { background: rgba(14, 15, 10, .5); }
#app[data-view="floor"] #tod { left: calc(50% - 190px); }
#app:not([data-view="hero"]):not([data-view="floor"]):not([data-view="room"]):not(.m59e-lit) #tod, #app.kp-big #tod { opacity: 0; pointer-events: none; }   /* .m59e-lit: the estate's aerial (estate.js) */
/* phones and upright tablets: one round button (a swatch); a tap opens the four themes, a pick is named beside it for a moment
   (phone-chrome.js). On the towers it ends the bottom row, in thumb reach, its menu above it; elsewhere it sits under the header, right */
#app.phone #tod { left: auto; right: calc(12px + var(--sar)); top: calc(61px + var(--sat)); bottom: auto; transform: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
#app.phone :is(#tod, .m59v-tod) { border-radius: 23px; background: rgba(14, 15, 10, .62); backdrop-filter: none; -webkit-backdrop-filter: none; }
#app.phone[data-view="hero"] #tod { top: auto; right: calc(16px + var(--sar)); bottom: calc(14px + var(--sab)); }
#app.phone :is(#tod, .m59v-tod) .look-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
#app.phone :is(#tod, .m59v-tod) :is(.look-lbl, .look-name, .look-chev) { display: none; }
#app.phone :is(#tod, .m59v-tod) .look-ico { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; }
#app.phone :is(#tod, .m59v-tod) .look-menu { left: auto; right: 0; top: calc(100% + 8px); }
#app.phone[data-view="hero"] #tod .look-menu { top: auto; bottom: calc(100% + 8px); }
#app.phone .look-menu button { padding: 13px 20px 13px 18px; }
#app.phone :is(#tod, .m59v-tod) > .tod-say { display: block; position: absolute; right: 0; top: calc(100% + 8px); white-space: nowrap; pointer-events: none;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); background: rgba(14, 15, 10, .62); padding: 8px 12px 7px; border-radius: 20px;
  opacity: 0; transition: opacity .25s var(--out); }
#app.phone[data-view="hero"] #tod > .tod-say { top: auto; bottom: calc(100% + 8px); }   /* over the button, clear of the row */
#app.phone :is(#tod, .m59v-tod) > .tod-say.on { opacity: 1; }
#app.phone:has(#tod > .tod-say.on) :is(#hint, .tn-tip) { opacity: 0 !important; }   /* the theme's name has the hint's place for a moment */
#app.phone :is(#tod, .m59v-tod).open > .tod-say { opacity: 0; }
:is(#app.phone, #app.short) .m59v-hint.seen { opacity: 0 !important; }

/* the split + stage colour */
#veil { position: absolute; inset: 0; z-index: 15; background: radial-gradient(ellipse at 40% 50%, #1c1f14 0%, var(--stage-1) 45%, var(--stage-2) 100%); opacity: 0; pointer-events: none; overflow: hidden; }
#skyBlur { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
/* the city out of focus behind the model: a soft scrim keeps the model and the cream lines readable */
#veil::after { content: ''; position: absolute; left: var(--vl, 0px); top: var(--vt, 0px); width: var(--vw, 100%); height: var(--vh, 100%); z-index: 1;   /* vars: a dive film's frame */ pointer-events: none; transition: opacity .7s cubic-bezier(.4,0,.2,1);
  background: radial-gradient(ellipse 75% 70% at 40% 50%, rgba(14, 15, 10, 0) 0%, rgba(14, 15, 10, .32) 100%),
              linear-gradient(to bottom, rgba(14, 15, 10, .22) 0%, rgba(14, 15, 10, 0) 30%, rgba(14, 15, 10, .5) 100%); }
#app[data-tod="night"] #veil::after { opacity: .78; }   /* the night sky is dark already: a lighter scrim, faded, never swapped */
#split { position: absolute; inset: 0; z-index: 16; pointer-events: none; }
#split canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity, filter; }

/* 2. floor */
#floor { z-index: 20; opacity: 0; visibility: hidden; pointer-events: none; }
#app[data-view="floor"] #floor { pointer-events: auto; }
#skyline { transform-origin: 50% 50%; position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
#isoWrap { position: absolute; will-change: transform, opacity, filter; }
/* the model: the client's cut-out per level, lying at a slight tilt over the city; a duplex / triplex waits as an exploded stack */
#isoTilt { position: absolute; inset: 0; transform-origin: 50% 55%; will-change: transform; }
#isoLevels { position: absolute; inset: 0; }
.lvl { position: absolute; transform-origin: 50% 50%; will-change: transform, opacity; }
.lvl img { display: block; width: 100%; height: 100%; }
.lvl.flip img { transform: scaleX(-1); }
.lvl:not(.on) { cursor: pointer; }
.lvl.missing img { visibility: hidden; }
.lvl.missing::after { content: 'This level is still being drawn'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px 9px;
  background: rgba(14, 15, 10, .55); color: var(--cream); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
#isoShadow { position: absolute; pointer-events: none; opacity: .62; transform: translateY(2.4%); }
#isoShadow.mir { transform: translateY(2.4%) scaleX(-1); }
#levelCtl { position: absolute; z-index: 6; bottom: calc(22px + var(--sab)); left: calc((100% - 380px) / 2); transform: translateX(-50%); display: flex; padding: 3px; gap: 2px;
  background: rgba(14, 15, 10, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--cream-rule); border-radius: 30px; transition: opacity var(--t-ui) var(--out); }
#levelCtl button { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-radius: 30px; padding: 8px 16px 8px 13px; color: var(--cream-2);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; transition: background var(--t-ui), color var(--t-ui); }
#levelCtl button:hover { color: var(--paper-hi); }
#levelCtl button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
#levelCtl i { font-style: normal; font-size: 12px; letter-spacing: 0; opacity: .75; }
#planNote { position: absolute; z-index: 6; left: calc(28px + var(--sal)); bottom: calc(26px + var(--sab)); background: var(--paper); color: var(--ink); padding: 7px 12px 6px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; border-radius: 1px; transition: opacity var(--t-ui) var(--out); }
#app:not([data-view="floor"]) #levelCtl, #app:not([data-view="floor"]) #planNote, #app:not([data-view="floor"]) #backToTower { opacity: 0; pointer-events: none; }
/* the first plan with a dive film: how to drive it (once), centred over the model above the time switch */
#diveHint { z-index: 6; left: calc((100% - 380px) / 2); bottom: calc(78px + var(--sab)); transform: translateX(-50%); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
#app[data-view="floor"] #diveHint.on { opacity: 1; }
#app.phone #diveHint { left: 50%; bottom: calc(50% + 10px); font-size: 11px; }
#app.phone:has(#levelCtl:not([hidden])) #diveHint { bottom: calc(50% + 62px); }
#app.short #diveHint { bottom: calc(62px + var(--sab)); }
#app.diving #glow { opacity: 0; }
#glow { position: absolute; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle, rgba(255, 236, 196, .55) 0%, rgba(255, 236, 196, 0) 65%); mix-blend-mode: screen; }
#glow.on { opacity: 1; }
#hotspots { position: absolute; z-index: 5; }
.hs { position: absolute; width: 0; height: 0; transition: opacity .15s; }
#app:not([data-view="floor"]) .hs { opacity: 0; visibility: hidden; }
.hs button { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent; touch-action: none; }   /* a held room drags its film */
.hs .dot { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(148, 154, 119, .9), 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform .2s; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1; }
.hs .tag { position: absolute; left: 16px; top: -12px; white-space: nowrap; background: rgba(234, 232, 224, .94); color: var(--ink); padding: 5px 9px 4px; border-top: 1px solid var(--ink);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; transition: transform var(--t-ui) var(--out), background var(--t-ui); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.hs.flip .tag { left: auto; right: 16px; }
.hs.on .dot, .hs:hover .dot { transform: scale(1.25); }
.hs.on, .hs:hover { z-index: 3; }     /* the named room's tag sits over its neighbours' dots */
.hs.on .tag, .hs:hover .tag { background: var(--paper-hi); transform: translateY(-3px); }
.hs .enter { display: none; }
.hs.on.drop .tag { left: 0; right: auto; top: 20px; transform: translateX(-50%); }   /* phone: both sides taken, the name reads under its dot */

#panel { position: absolute; right: 0; top: 0; bottom: 0; width: 380px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(24px); opacity: 0; transition: transform var(--t-panel) var(--out), opacity var(--t-panel) var(--out); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
#app[data-view="floor"] #panel { transform: none; opacity: 1; }
#app[data-view="dive"] #panel, #app[data-view="leaving"] #panel { transition-duration: .15s; }
.p-scroll { flex: 1; overflow-y: auto; padding: calc(96px + var(--sat)) 30px 8px 30px; }
.p-eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.p-title { font-weight: 300; font-size: 32px; line-height: 1.08; margin: 8px 0 6px; letter-spacing: .01em; }
/* the client's unit number: a caption-style tag after the home name, on its line when it fits, else whole on the next (no indent, no tall line) */
.p-title, .fc-title .name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.p-title .unit, .fc-title .name .unit { white-space: nowrap; font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.p-sub { font-size: 12.5px; color: var(--ink-2); }
.p-area { position: relative; margin: 18px 0 16px; padding: 12px 0 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.p-label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.p-stats { margin: 0; width: calc(100% - 96px); }
.p-stats div { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.p-stats div:last-child { border-bottom: 0; }
.p-stats dt { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); grid-row: 1 / span 2; align-self: center; }
.p-stats dd { margin: 0; font-size: 17px; font-weight: 300; text-align: right; letter-spacing: .02em; }
.p-stats dd.m { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.p-stats small { font-size: 11px; color: var(--ink-3); }
#keyPlan { position: absolute; right: 0; bottom: 14px; width: 84px; height: 80px; overflow: visible; }
#roomList { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
#roomList li { display: grid; }   /* both names of a row stand as tall as the taller one, so their rules stay level */
#roomList button { min-width: 0; min-height: 34px; display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink);
  padding: 7px 0 6px; font-size: 13.5px; line-height: 1.3; text-align: left; letter-spacing: .02em; }   /* a name on two lines keeps its line spacing (the client, 20 Nov) */
#roomList button .n { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1px solid var(--sage); display: grid; place-items: center; font-size: 10px; color: var(--ink-2); }
#roomList button:hover, #roomList button.on { color: #000; }
#roomList button:hover .n, #roomList button.on .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-views { width: 100%; margin: 16px 0 4px; }
#roomList .lv-h, #roomList .lv-none { display: block; }
#roomList .lv-h { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); padding: 12px 0 2px; transition: color .25s; }
#roomList .lv-h:first-child { padding-top: 0; }
#roomList .lv-h.here { color: var(--ink); }
#roomList .lv-none { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); padding: 7px 0 8px; border-bottom: 1px solid var(--rule); }
.p-also { margin: 6px 0 10px; }
.p-also .p-label { margin: 14px 0 2px; }
.p-also .also { width: 100%; display: grid; grid-template-columns: 1fr auto 12px; align-items: baseline; gap: 10px; background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 9px 0 8px; text-align: left; color: var(--ink); font-size: 13.5px; letter-spacing: .02em; }
.p-also .also small { font-size: 11.5px; color: var(--ink-3); }
.p-also .also i { font-style: normal; color: var(--ink-3); }
.p-also .also:hover { color: #000; }
.p-also .also:hover i { color: var(--ink); }
.p-notes { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.p-notes summary { cursor: pointer; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); padding: 4px 0; }
.p-notes p { margin: 6px 0; }
.p-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 30px calc(18px + var(--sab)); border-top: 1px solid var(--rule); background: var(--paper); }
.p-actions .solid { grid-column: 1 / -1; }
/* the panel holds more than it shows (a short screen): its last lines fade into the paper over the actions, with a quiet "More below"
   that scrolls on (app.js moreCue); gone at the end of the panel. Phones keep their sheet as it is */
.p-actions { position: relative; }
#panel:has(#liftGo[hidden]) .p-actions { padding-top: 0; padding-bottom: var(--sab); border-top: 0; }   /* no Private tour button any more (Gurleen, 21 Nov): a home with no lift arrival has nothing in this bar */
.p-more { position: absolute; left: 0; right: 0; bottom: calc(100% + 1px); height: 58px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
  background: linear-gradient(to bottom, rgba(234, 232, 224, 0), var(--paper) 72%); pointer-events: none; opacity: 0; transition: opacity var(--t-ui) var(--out); }
#panel.more .p-more { opacity: 1; }
.p-more button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; background: none; color: var(--ink-3); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
#panel.more .p-more button { pointer-events: auto; }
.p-more button:hover { color: var(--ink); }
.p-more svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#app.phone .p-more { display: none; }
.solid { background: var(--ink); color: var(--paper); border: 0; padding: 13px 14px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; border-radius: 1px; }
.solid:hover { background: #454d0c; }
.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 11px 10px; font-size: 11px; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; border-radius: 1px; }
.text { background: transparent; border: 0; color: var(--ink-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 11px 6px; }
.text:hover, .line:hover { color: #000; }

/* 3. room */
#room { z-index: 30; opacity: 0; visibility: hidden; pointer-events: none; background: var(--stage-2); }
#app[data-view="room"] #room { pointer-events: auto; }
.rimg, #roomVid, #diveVid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.rimg { z-index: 0; } #roomVid, #diveVid { z-index: 2; } .r-shade { z-index: 3; } .chip-dark, .r-caption, #roomNav, #roomMap, #mediaCtl { z-index: 4; }
#roomImg2 { opacity: 0; }
#roomVid, #diveVid { opacity: 0; pointer-events: none; }
.rimg.drift, .cine.drift { animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
/* the cinemagraph's small canvases (cine.js), over the still and drifting with it; no will-change: the layer itself draws nothing */
.cine { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cine canvas { position: absolute; }
.r-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 15, 10, .82) 0%, rgba(14, 15, 10, .35) 22%, rgba(14, 15, 10, 0) 38%), linear-gradient(to bottom, rgba(14, 15, 10, .45), rgba(14, 15, 10, 0) 16%); }
#room.hold .rimg.drift, #room.hold .cine.drift { animation-play-state: paused; }
/* the key plan: the architect's plan turned like the model, top right; the room you are in is lit, every room is a link */
#roomMap { position: absolute; right: calc(28px + var(--sar)); top: calc(92px + var(--sat)); width: 288px; padding: 12px 12px 10px; box-sizing: border-box;
  background: rgba(14, 15, 10, .5); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border: 1px solid var(--cream-rule);
  transition: opacity var(--t-panel) var(--out), transform var(--t-panel) var(--out); }
#app:not([data-view="room"]) #roomMap { opacity: 0; transform: translateY(-10px); pointer-events: none; }
#roomMap .kp { display: block; width: 100%; height: auto; overflow: visible; }
.kp-floor { fill: rgba(243, 241, 234, .05); stroke: rgba(243, 241, 234, .34); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.kp-walls { fill: rgba(243, 241, 234, .78); pointer-events: none; }
.kp-room { fill: rgba(243, 241, 234, 0); stroke: none; cursor: pointer; transition: fill .45s; }
.kp-room.hov { fill: rgba(243, 241, 234, .13); }
.kp-room.on { fill: rgba(148, 154, 119, .62); }
.kp-dot { cursor: pointer; }
.kp-hit { fill: transparent; }
.kp-core { fill: rgba(243, 241, 234, .82); transition: fill .3s; }
.kp-halo { fill: none; stroke: rgba(250, 249, 247, .9); stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.kp-dot.on .kp-core { fill: var(--paper-hi); }
.kp-dot.on .kp-halo { opacity: 1; animation: kpPulse 2.4s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes kpPulse { 0% { transform: scale(.55); opacity: .95; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .kp-dot.on .kp-halo { animation: none; opacity: .8; } }
.kp-lbls { display: none; pointer-events: none; }
.kp-lbl { fill: var(--cream-2); font-size: 25px; letter-spacing: .1em; text-transform: uppercase; text-anchor: middle; paint-order: stroke; stroke: rgba(14, 15, 10, .85); stroke-width: 7px; }
.kp-lbl.on { fill: var(--paper-hi); }
.kp-tip { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 12px)); padding: 5px 9px 4px; background: var(--paper); color: var(--ink); font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .18s; }
.kp-tip.on { opacity: 1; }
.kp-x { display: none; }
#kpScrim { position: absolute; inset: 0; z-index: 5; background: rgba(8, 9, 6, .55); }
#roomMap.big { z-index: 6; left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 460px); padding: 34px 14px 16px; background: rgba(14, 15, 10, .82); }
#roomMap.big .kp-lbls { display: block; }
#roomMap.big .kp-x { display: block; position: absolute; right: 2px; top: 0; width: 44px; height: 40px; border: 0; background: none; color: var(--cream); font-size: 24px; line-height: 1; }
/* the other residences: a small copy of the model's level, the room you are in marked, every room a way in */
#roomMap .kp-iso { position: relative; width: 100%; }
.kp-iso img { display: block; width: 100%; height: 100%; }
.kp-iso.flip img { transform: scaleX(-1); }
.kp-pins { position: absolute; inset: 0; }
.kp-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border: 0; background: transparent; border-radius: 50%; }
.kp-pin::before { content: ''; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 241, 234, .9);
  box-shadow: 0 0 0 2px rgba(148, 154, 119, .95), 0 1px 6px rgba(0, 0, 0, .55); transition: transform .2s; }
.kp-pin:hover::before { transform: scale(1.2); }
.kp-pin.on::before { background: var(--paper-hi); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px var(--paper-hi), 0 1px 8px rgba(0, 0, 0, .6); }
.kp-pin.on::after { content: ''; position: absolute; left: 1px; top: 1px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(250, 249, 247, .9); animation: kpPulse 2.4s cubic-bezier(.16, 1, .3, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .kp-pin.on::after { animation: none; opacity: .8; } }
.kp-pin span { display: none; }
#roomMap.big .kp-pin span { display: block; position: absolute; left: 50%; bottom: calc(100% - 2px); transform: translateX(-50%); white-space: nowrap; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); pointer-events: none; }
#roomMap.big .kp-pin.on span { color: var(--paper-hi); }
#app.phone #roomMap:not(.big) .kp-pin { pointer-events: none; }
#app.no-themes[data-view="room"] #tod { opacity: 0; pointer-events: none; }   /* one set of pictures: nothing for the switch to change */

/* 4. the hosted modules (balcony views, the estate, the clubhouse) and the dark stage they cross through */
.mod { z-index: 40; background: var(--stage-2); visibility: hidden; pointer-events: none; }
.mod.on { visibility: visible; pointer-events: auto; }
#modVeil { position: absolute; inset: 0; z-index: 48; background: radial-gradient(ellipse at 50% 45%, var(--stage-1), var(--stage-2) 75%); opacity: 0; visibility: hidden; pointer-events: none; }
/* media: Skip (lift) + the play/pause dial with the clip's progress as a ring */
#mediaCtl { position: absolute; right: calc(32px + var(--sar)); bottom: calc(128px + var(--sab)); display: flex; align-items: center; gap: 10px; transition: opacity var(--t-ui) var(--out); }
#app:not([data-view="room"]) #mediaCtl { opacity: 0; pointer-events: none; }
#mediaCtl .chip-dark { position: static; }
/* the room's cinemagraph key, the same as The B Club's: plays by itself; on a hover screen the pause comes forward when the picture is hovered */
#motionBtn { display: flex; align-items: center; height: 42px; padding: 0; border: 1px solid var(--cream-rule); border-radius: 21px; background: rgba(14, 15, 10, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--cream); font: inherit; cursor: pointer; transition: background var(--t-ui) var(--out), opacity var(--t-ui) var(--out); }
#motionBtn[hidden] { display: none; }
#motionBtn:hover { background: rgba(14, 15, 10, .72); }
@media (hover: hover) { #app:not(.touch) #motionBtn.playing { opacity: 0; } #app:not(.touch) #room:hover #motionBtn.playing, #app:not(.touch) #motionBtn.playing:focus-visible { opacity: 1; } }
/* (a touch screen that reports hover, as some Samsung phones do, keeps the pause in sight: nothing there hovers to bring it back) */
#motionBtn .dial { position: relative; width: 40px; height: 40px; flex: 0 0 40px; }
#motionBtn .ring { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
#motionBtn .ring circle { fill: none; stroke-width: 1.4; }
#motionBtn .trk { stroke: rgba(243, 241, 234, .16); }
#motionBtn .prg { stroke: var(--cream); stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
#motionBtn .ico { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; fill: var(--cream); }
#motionBtn .i-pause, #motionBtn.playing .i-play { display: none; }
#motionBtn.playing .i-pause { display: inline; }
#motionBtn .lbl { display: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 1px 18px 0 0; white-space: nowrap; }
#motionBtn.idle .lbl { display: block; }
/* ONE back control and ONE single chip, in every section: the tower tag as a button, top left on the light switch's row
   (#backToFloor, #backToTower, The B Club's, the estate map's, the balcony views', the films') */
.chip-dark, .m59-back { position: absolute; display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 1px 14px 0; background: var(--tag-bg); color: var(--paper-hi);
  border: 0; border-top: 1px solid var(--tag-rule); border-radius: 0; font: inherit; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background var(--t-ui) var(--out), color var(--t-ui) var(--out), border-color var(--t-ui) var(--out), opacity var(--t-ui) var(--out); }
.chip-dark:hover, .m59-back:hover { background: var(--paper); color: var(--ink); border-top-color: var(--ink); }
#backToFloor, #backToTower { left: calc(28px + var(--sal)); top: calc(96px + var(--sat)); }
#backToTower { z-index: 7; }
.r-caption { position: absolute; left: calc(32px + var(--sal)); bottom: calc(128px + var(--sab)); pointer-events: none; }
.r-eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-2); }
.r-name { font-size: 30px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(243, 241, 234, .55); display: inline-block; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
#room .r-caption, #roomNav, #backToFloor { transition: opacity var(--t-ui) var(--out); }
#app:not([data-view="room"]) #room .r-caption, #app:not([data-view="room"]) #roomNav, #app:not([data-view="room"]) #backToFloor { opacity: 0; }
#roomNav { position: absolute; left: calc(24px + var(--sal)); right: calc(24px + var(--sar)); bottom: calc(22px + var(--sab)); display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(14, 15, 10, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#roomNav > button { flex: 0 0 34px; height: 68px; background: transparent; border: 0; color: var(--cream-2); font-size: 15px; transition: color var(--t-ui), background var(--t-ui); }
#roomNav > button:hover { color: var(--paper-hi); background: rgba(243, 241, 234, .08); }
#thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; justify-content: safe center; }
#thumbs::-webkit-scrollbar { display: none; }
#thumbs button { position: relative; flex: 0 0 120px; height: 68px; padding: 0; border: 1px solid transparent; background: #222 center / cover no-repeat; border-radius: 1px; opacity: .72; transition: opacity var(--t-ui), border-color var(--t-ui); }
#thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--cream);
  background: linear-gradient(to top, rgba(14, 15, 10, .85), rgba(14, 15, 10, 0)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#thumbs button:hover { opacity: 1; }
#thumbs button.on { opacity: 1; border-color: var(--paper); box-shadow: 0 0 0 1px var(--paper); }

#toast { position: absolute; left: 50%; top: calc(92px + var(--sat)); transform: translateX(-50%); z-index: 60; background: var(--paper); color: var(--ink); padding: 11px 16px; font-size: 13px; border-radius: 1px; max-width: min(440px, 90vw); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#loader { position: absolute; inset: 0; z-index: 70; background: var(--paper); display: grid; place-items: center; transition: opacity .45s; }
#loader img { width: 64px; animation: breathe 1.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.96); opacity: .75; } to { transform: scale(1); opacity: 1; } }
#loader.done { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .45s, visibility 0s linear .45s; }
#loader.done img { animation-play-state: paused; }   /* gone: no layer left over the page, its breathing held where it was (no jump) */

/* phones and portrait tablets (class set by app.js: portrait and narrower than 900) */
#app.phone .brand img { height: 40px; }
#app.phone #top { padding: calc(10px + var(--sat)) calc(16px + var(--sar)) 10px calc(16px + var(--sal)); }
#app.phone .loc { display: none; }
#app.phone .paper { padding: 12px 13px; font-size: 10.5px; letter-spacing: .18em; }
#app.phone .nav { gap: 8px; }
#app.phone #top { gap: 12px; }
#app.phone #rail { display: none; }
#app.phone #hint { left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--sab)); font-size: 11px; white-space: nowrap; }   /* over the bottom row */
/* the first hint stands where the towers' names do: the names wait for its few seconds, then come in (they sat half under it) */
#app.phone:has(#hint:not(.seen):not(.off)) #towerTags { opacity: 0; visibility: hidden; }
/* a hint shows once a session, a few seconds (phone-chrome.js) */
:is(#app.phone, #app.short) #hint.seen { opacity: 0 !important; transition: opacity .6s var(--out); }
#app.phone #floorCard { left: calc(12px + var(--sal)) !important; right: calc(12px + var(--sar)); width: auto; top: auto !important; bottom: calc(74px + var(--sab)); transform: none; }
#app.phone #floorCard::before { display: none; }
#app.phone #floorCard { background: var(--paper); }   /* opaque: the tower tags must not show through */
#app.phone #floorCard:not([hidden]) { display: flex; flex-direction: column; }   /* the card keeps its tallest height (app.js showCard): the room */
#app.phone #floorCard .fc-body { margin-bottom: auto; }                          /* to spare goes above the button, which stays at its foot */
#floorCard { touch-action: pan-y; }   /* sideways is the estate turn's (home-turn.js), from the card too; up and down stay the card's */
#app.phone #floorCard { max-height: calc(100% - 150px - var(--sat) - var(--sab)); overflow-y: auto; overscroll-behavior: contain; }   /* clear of the header */
#app.phone #floorCard .fc-step button { width: 44px; height: 34px; font-size: 15px; }
#app.phone #panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 50%; transform: translateY(24px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .3); }
#app.phone[data-view="floor"] #panel { transform: none; }
#app.phone .p-scroll { padding: 16px 18px 6px; }
#app.phone .p-title { font-size: 24px; margin: 4px 0 2px; }
#app.phone .p-area { margin: 10px 0 10px; padding: 8px 0 6px; }
#app.phone .p-area .p-label { display: none; }
#app.phone .p-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
#app.phone .p-stats div { display: block; border: 0; padding: 0 8px 0 0; }
#app.phone .p-stats div + div { padding-left: 10px; border-left: 1px solid var(--rule); }
#app.phone .p-stats dt { font-size: 11px; }
#app.phone .p-stats dd { text-align: left; font-size: 17px; }
#app.phone #keyPlan { display: none; }
#app.phone #roomList { display: flex; flex-wrap: wrap; gap: 6px; }
#app.phone #roomList li { flex: 0 0 auto; }
#app.phone #roomList li.lv-h, #app.phone #roomList li.lv-none { flex-basis: 100%; }
#app.phone #levelCtl { top: auto; bottom: calc(50% + 8px); left: 50%; }      /* under the model, clear of the time-of-day switch */
#app.phone #levelCtl button { padding: 9px 13px 9px 11px; }
#app.phone #planNote { left: calc(16px + var(--sal)); top: calc(118px + var(--sat)); bottom: auto; }   /* under the back control */
#app.phone .p-views { margin: 12px 0 2px; padding: 12px 8px; }
#app.phone .p-stats:has(> div:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
#app.phone .p-stats:has(> div:nth-child(4)) dd { font-size: 15px; }
#app.phone .p-stats:has(> div:nth-child(4)) div + div { padding-left: 7px; }
#app.phone #roomList button { height: 38px; border: 1px solid var(--rule); padding: 0 11px 0 7px; font-size: 13px; width: auto; white-space: nowrap; }
#app.phone .p-actions { padding: 10px 18px calc(10px + var(--sab)); grid-template-columns: 1fr; gap: 6px 10px; }
#app.phone .p-actions .solid { grid-column: 1 / -1; padding: 14px 10px; font-size: 11px; letter-spacing: .2em; }
#app.phone .p-actions .line { padding: 11px 8px; font-size: 10.5px; letter-spacing: .14em; }
:is(#app.phone, #app.short) .hs .tag { display: none; }
:is(#app.phone, #app.short) .hs.on .tag { display: block; pointer-events: auto; }
:is(#app.phone, #app.short) .hs .enter { display: inline; margin-left: 6px; }
:is(#app.phone, #app.short) .hs .dot { width: 22px; height: 22px; left: 11px; top: 11px; font-size: 11px; }
#app.phone :is(#backToFloor, #backToTower) { left: calc(16px + var(--sal)); top: calc(66px + var(--sat)); height: 40px; }
#app.phone #roomMap:not(.big) { right: calc(12px + var(--sar)); top: calc(122px + var(--sat)); width: 132px; padding: 7px 7px 6px; }   /* under the light switch */
#app.phone #mediaCtl { right: calc(16px + var(--sar)); bottom: calc(112px + var(--sab)); }
#app.phone #motionBtn.idle .lbl { display: none; }
#app.phone .r-caption { left: calc(18px + var(--sal)); right: calc(78px + var(--sar)); bottom: calc(112px + var(--sab)); }
#app.phone .r-caption .r-name { white-space: normal; }
#app.phone .r-name { font-size: 22px; letter-spacing: .18em; }
#app.phone #roomNav { left: 0; right: 0; bottom: 0; padding: 8px 10px calc(10px + var(--sab)); }
#app.phone #roomNav > button { display: none; }
#app.phone #thumbs { justify-content: flex-start; }
#app.phone #thumbs button { flex-basis: 104px; height: 60px; }
@media (max-width: 1180px) { .loc { display: none; } }
/* narrow screens, phones, phones on their side: the four sections go into a menu */
@media (max-width: 900px) { #menuBtn { display: block; } .nav-links { display: none; } }
:is(#app.phone, #app.short) #menuBtn { display: block; }
:is(#app.phone, #app.short) .nav-links { display: none; }
.nav.open .nav-links { display: flex !important; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 0; min-width: 220px;
  background: var(--paper); padding: 6px 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.nav.open .nav-links a { display: block; color: var(--ink); padding: 14px 20px 13px; font-size: 12px; }
.nav.open .nav-links a:hover, .nav.open .nav-links a.on { text-decoration: none; background: rgba(51, 58, 6, .08); color: #000; }
.nav.open .nav-links { animation: navIn .22s var(--out); }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } }
/* the menu's own first and last items on phones: Private tour (out of the header) and the explorer's note (out of the info button) */
.nav-links .m-tour, .nav-links .m-note { display: none; }
#app.phone .nav > .tour { display: none; }
#app.phone .nav.open .nav-links { position: fixed; top: calc(62px + var(--sat)); right: calc(12px + var(--sar)); left: auto; width: min(320px, calc(100vw - 24px)); padding: 10px 0 0; }
#app.phone .nav.open .nav-links a { padding: 16px 22px 15px; font-size: 12.5px; }
#app.phone .nav.open .m-tour { display: block; margin: 0 14px 6px; padding: 16px 12px 15px; border: 0; border-radius: 1px; background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
#app.phone .nav.open .m-note { display: block; margin: 6px 0 0; padding: 13px 22px 15px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.5;
  color: var(--ink-3); letter-spacing: 0; text-transform: none; }
@media (max-height: 820px) { .p-scroll { padding-top: calc(86px + var(--sat)); } .p-title { font-size: 28px; } #roomList button { min-height: 31px; padding: 5px 0 4px; } .p-area { margin: 12px 0 12px; } }   /* min-height, never a fixed one: a name on two lines must fit */
@media (max-height: 500px) { .brand img { height: 40px; } #top { padding-top: calc(10px + var(--sat)); } .p-scroll { padding-top: calc(70px + var(--sat)); } #roomNav { bottom: calc(8px + var(--sab)); } #thumbs button { height: 52px; flex-basis: 92px; } #roomNav > button { height: 52px; } .r-caption { bottom: calc(92px + var(--sab)); } :is(#backToFloor, #backToTower) { top: calc(64px + var(--sat)); left: calc(16px + var(--sal)); } }
@media (prefers-reduced-motion: reduce) { .rimg.drift, .cine.drift { animation: none; } #hint .dot, #diveHint .dot, #loader img { animation: none; } }
/* floor entry / exit: the focus dim and the pin step back; only the modelled wing (4.5 BHK) stays lit */
#app[data-view="entering"] #dim.on, #app[data-view="leaving"] #dim.on { opacity: 0; }
#pin { transition: opacity .25s; }
#app[data-view="entering"] #pin, #app[data-view="leaving"] #pin { opacity: 0; }
/* phone turned sideways (short landscape): keep the desktop layout, clear the collisions */
#app.short #tod { top: calc(10px + var(--sat)); bottom: auto; }
#app.short #tod .look-lbl { display: none; }
#app.short #tod .look-btn { padding: 10px 14px; }
#app.short #towerTags { display: none; }
#app.short .loc { display: none; }
#app.short #levelCtl { top: auto; bottom: calc(10px + var(--sab)); }
#app.short #levelCtl button { padding: 8px 12px 8px 10px; }
#app.short #planNote { left: calc(12px + var(--sal)); bottom: calc(60px + var(--sab)); }
#app.short .r-name { font-size: 22px; letter-spacing: .18em; margin-top: 4px; padding-bottom: 7px; }
#app.short .r-eyebrow { font-size: 10px; }
#app.short .r-caption { bottom: calc(84px + var(--sab)); }
#app.short .r-shade { background: linear-gradient(to top, rgba(10, 11, 8, .82) 0%, rgba(10, 11, 8, .5) 30%, rgba(10, 11, 8, 0) 58%), linear-gradient(to bottom, rgba(10, 11, 8, .45) 0%, rgba(10, 11, 8, 0) 26%); }
#app.short[data-view="floor"] #tod { left: calc(100% - 396px - var(--sar)); transform: translateX(-100%); }
#app.short #roomMap { top: calc(62px + var(--sat)); width: 212px; padding: 8px 8px 7px; }
#app.short #mediaCtl { bottom: calc(84px + var(--sab)); }

/* the room's theme under its name; the Theme switch stays on in a room and re-furnishes it */
.r-theme { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-2); margin-top: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }


/* unit codes in a face whose 1 cannot be read as an I (Gill Sans capitals turn TH1A into THIA) */
.ucode { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; letter-spacing: .1em; font-variant-numeric: lining-nums tabular-nums; }
