/* HOMESTAT — the 3D demo beside "Try the screen" (17 Oct 2026). The figure only: the page's template places it (beside a
   room controller's screen, under a whole home controller's screen, above the screen on a phone). On a phone the picture
   stays in view under the page's own menu while the visitor uses the screen. Mono and one orange: the screen's mark,
   the room in use, and during a change the frames of the changed rooms (the mark turns white then). */

.d3{margin:0;min-width:0;color:#EDEDED}
.d3-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;min-height:30px}
.d3-eye{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 10px;margin:0;font-size:12px;line-height:1.4;max-width:none;color:#A3A3A3;min-width:0}
.d3-eye-k{letter-spacing:.08em;text-transform:uppercase;font-size:11px;color:#BDBDBD}
.d3-eye-v::before{content:"·";margin-inline-end:10px;color:#5C5C5C}
.d3-villa,.d3-apartment{max-width:1040px;margin-left:auto;margin-right:auto}

/* ---- the stage: the still first, the picture over it when it is drawn ---- */
.d3-stage{position:relative;width:100%;aspect-ratio:var(--d3-ar,1.6);background:#000;border:1px solid #2C2C2C;border-radius:18px;overflow:hidden;isolation:isolate;touch-action:manipulation;contain:layout paint}
.d3-villa .d3-stage{aspect-ratio:var(--d3-ar,2.5)}
.d3-apartment .d3-stage{aspect-ratio:var(--d3-ar,2.6)}
.d3-poster{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;display:block;pointer-events:none;user-select:none}
.d3-gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .4s}
.d3-live .d3-gl{opacity:1}
/* round 2 (18 Oct 2026): the snow from the air conditioning and the notes from the speakers, over the picture */
.d3-fx{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:1}
.d3-nogl .d3-gl{display:none}

/* ---- over the picture: the names, the frames, the screen's mark ---- */
.d3-over{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.d3-over > *{position:absolute;left:0;top:0}
.d3-frame{display:block;box-sizing:border-box;border:2px solid #FF5705;border-radius:2px;opacity:0;transition:opacity .3s}
.d3-frame.on{opacity:1}
.d3-name{font-family:var(--mono,monospace);font-size:9.5px;line-height:1;letter-spacing:.09em;text-transform:uppercase;color:#D9D4CC;white-space:nowrap;padding:3px 4px;border-radius:3px;background:rgba(11,11,12,.8)}
.d3-name.big{font-size:11px;padding:4px 6px}
.d3-name.chg{color:#FF5705;font-weight:700}
.d3-name[hidden]{display:none}
.d3-mark{display:block;width:9px;height:12px;margin:-6px 0 0 -4px;border-radius:2px;background:#FF5705;box-shadow:0 0 0 1.5px rgba(11,11,12,.9),0 0 8px rgba(255,87,5,.5);transition:background-color .3s,box-shadow .3s}
.d3-mark.white{background:#F4F4F4;box-shadow:0 0 0 1.5px rgba(11,11,12,.9)}
.d3-mark[hidden]{display:none}
.d3-actag{font-family:var(--mono,monospace);font-size:10px;line-height:1;color:#F4F4F4;padding:3px 5px;border-radius:3px;background:rgba(11,11,12,.86);transform-origin:100% 0;margin-left:-40px}

/* ---- what the visitor can tap: a room (look inside), the lights, the curtains, the air conditioning ---- */
.d3-hot{position:absolute;inset:0;z-index:3;pointer-events:none}
.d3-hot > *{position:absolute;left:0;top:0;pointer-events:auto}
.d3-hot [hidden]{display:none}
.d3-rb{display:block;padding:0;margin:0;border:1px solid transparent;border-radius:2px;background:transparent;cursor:zoom-in;-webkit-tap-highlight-color:transparent;transition:border-color .15s}
.d3-rb:hover{border-color:rgba(244,244,244,.35)}
.d3-rb:focus-visible{outline:2px solid #F4F4F4;outline-offset:-2px}
.d3-hb{width:34px;height:34px;margin:-17px 0 0 -17px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}
.d3-hb .d3-dot{display:block;width:14px;height:14px;margin:10px;border-radius:50%;border:1.5px solid rgba(244,244,244,.9);background:rgba(11,11,12,.55);box-shadow:0 0 0 1px rgba(11,11,12,.6);transition:background-color .2s,transform .2s}
.d3-hb[aria-pressed="true"] .d3-dot{background:#F4F4F4}
.d3-hb:hover .d3-dot{transform:scale(1.15)}
.d3-hb:focus-visible{outline:2px solid #F4F4F4;outline-offset:0}
.d3-ac{display:flex;align-items:center;gap:2px;margin:-14px 0 0 -96px;padding:2px;border-radius:16px;background:rgba(11,11,12,.86);border:1px solid rgba(222,215,203,.35);font-family:var(--mono,monospace);font-size:11px;line-height:1;color:#E4E4E4;transition:border-color .3s}
.d3-ac.chg{border-color:#F4F4F4}
.d3-acv{padding:0 6px;white-space:nowrap}
.d3-pm{width:26px;height:26px;padding:0;border:1px solid rgba(222,215,203,.45);border-radius:50%;background:transparent;color:#F4F4F4;font:inherit;font-size:14px;line-height:1;cursor:pointer}
.d3-pm:hover{border-color:#F4F4F4}
.d3-pm:focus-visible{outline:2px solid #F4F4F4;outline-offset:1px}
.d3-back{position:absolute;z-index:4;left:10px;bottom:10px;min-height:30px;padding:4px 12px;border:1px solid #3A3A3A;border-radius:15px;background:rgba(11,11,12,.86);color:#E4E4E4;font-family:var(--mono,monospace);font-size:11px;line-height:1.2;cursor:pointer}
.d3-back:hover{border-color:#F4F4F4}
.d3-back:focus-visible{outline:2px solid #F4F4F4;outline-offset:2px}

/* ---- the small map: where the room is in the villa ---- */
.d3-map{position:absolute;right:10px;bottom:10px;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:5px;padding:7px 8px 6px;border-radius:8px;background:rgba(11,11,12,.86);pointer-events:none}
.d3-map svg{display:block;width:118px;height:auto}
.d3-map rect{fill:none;stroke:rgba(222,215,203,.55);stroke-width:5}
.d3-map rect.here{fill:#F4F4F4;stroke:#F4F4F4}
.d3-map b{font-family:var(--mono,monospace);font-size:8.5px;letter-spacing:.12em;font-weight:400;color:#D9D4CC}
.d3-map[hidden]{display:none}

.d3-pause{position:relative;flex:none;min-height:30px;padding:4px 12px;border:1px solid #2C2C2C;border-radius:14px;background:transparent;color:#A3A3A3;font-family:var(--mono,monospace);font-size:11px;line-height:1.2;cursor:pointer}
.d3-pause::after{content:"";position:absolute;inset:-8px -4px}
.d3-pause:hover{color:#FF5705;border-color:#FF5705}
.d3-pause:focus-visible{outline:2px solid #FF5705;outline-offset:2px}
.d3-pause[hidden]{display:none}

/* ---- under the picture: what it is, in words; the state of the rooms for screen readers ---- */
.d3-label{margin:10px 0 0;font-family:var(--mono,monospace);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#8C8C8C}
.d3-cap{font-size:11.5px;line-height:1.6;color:#8C8C8C;margin:6px 0 0;max-width:62ch}
.d3-legend{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.d3-say{min-height:1.6em;margin:2px 0 0;font-size:11.5px;line-height:1.6;color:#D6D6D6;max-width:none;opacity:0;transition:opacity .25s}
.d3-say.on{opacity:1}

/* ---- phones and narrow windows: the picture sits above the screen and stays in view while the screen is used ---- */
@media (max-width:999px){
  .d3{position:-webkit-sticky;position:sticky;top:var(--d3-top,49px);z-index:8;background:var(--ink,#0A0A0A);padding:10px 0 12px;margin:-10px 0 0}
  .d3-host{position:-webkit-sticky;position:sticky;top:var(--d3-top,49px);z-index:8}
  .d3-host > .d3{position:relative;top:auto}
  .d3-stage{border-radius:14px;aspect-ratio:var(--d3-ar-strip,1.75)}
  .d3-villa .d3-stage{aspect-ratio:var(--d3-ar-strip,1.9)}
  .d3-apartment .d3-stage{aspect-ratio:var(--d3-ar-strip,2.2)}
  .d3-top{margin-bottom:8px}
  .d3 .d3-cap{display:none}
  .d3 .d3-say{position:absolute;left:12px;right:12px;bottom:44px;z-index:5;margin:0;min-height:0;padding:6px 10px;border-radius:10px;background:rgba(11,11,12,.92);font-size:11px;pointer-events:none}
  .d3-pause{min-height:28px;padding:3px 10px;font-size:10.5px}
  .d3-map svg{width:84px}
  .d3-mark{width:7px;height:9px;margin:-4.5px 0 0 -3.5px}
  .d3-name{font-size:9px;padding:2px 3px}
  .d3-map{right:8px;bottom:8px;padding:5px 6px 4px}
  .d3-back{left:8px;bottom:8px;min-height:28px;padding:3px 10px;font-size:10.5px}
}
@media (prefers-reduced-motion:reduce){
  .d3-gl,.d3-frame,.d3-mark,.d3-say,.d3-hb .d3-dot,.d3-ac{transition:none}
}

/* ---- The Arabic product pages (V2, 18 Oct 2026): the words in the Arabic font, without letter spacing (Arabic letters
   join); the picture keeps its left and right (dir="ltr" on .d3-stage in templates/_demo.html) ---- */
[dir="rtl"] .d3-eye-k,[dir="rtl"] .d3-name,[dir="rtl"] .d3-map b,[dir="rtl"] .d3-label,[dir="rtl"] .d3,[dir="rtl"] .d3-back,[dir="rtl"] .d3-ac,
[dir="rtl"] .d3-actag,[dir="rtl"] .d3-say,[dir="rtl"] .d3-pause{font-family:var(--arabic);letter-spacing:0}
