.engineering-demo {
  --system-color:#f4c86b;--focus-x:10.6%;--focus-y:29%;
  position:relative;min-width:0;padding:22px;border:1px solid #40586b;border-radius:20px;
  background:linear-gradient(145deg,#162c3e,#0d1d2c 72%);
  box-shadow:0 24px 65px #0003,inset 0 1px 0 #ffffff0d;
}
.demo-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#d0dce4;font:600 14px/1.4 Manrope,Arial,sans-serif}
.demo-heading span:last-child{color:#74dace;font-size:12px;font-weight:500}
.house-stage{position:relative;isolation:isolate;margin:18px -10px 0;border-radius:12px;overflow:hidden;background:#101d2d;perspective:1100px}
.house-render{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;user-select:none}
.house-render,.house-focus,.house-air,.house-points,.house-zones{transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transform-origin:50% 60%;transition:transform .35s ease}
.house-focus{position:absolute;z-index:1;left:var(--focus-x);top:var(--focus-y);width:30%;height:45%;margin:-15% 0 0 -15%;color:var(--system-color);background:radial-gradient(ellipse,currentColor,transparent 68%);opacity:.24;mix-blend-mode:screen;pointer-events:none;transition:left .45s ease,top .45s ease,color .3s,transform .35s ease}
.house-points{position:absolute;inset:0;z-index:3;pointer-events:none}
.house-point{position:absolute;left:var(--point-x);top:var(--point-y);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff;transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.house-point span{position:relative;display:grid;place-items:center;width:26px;height:26px;border:1px solid #ffffffc9;border-radius:50%;background:#102131ed;box-shadow:0 2px 9px #0008;font:700 11px/1 Manrope,Arial,sans-serif;transition:background .25s,color .25s,box-shadow .25s,transform .25s}
.house-point[aria-pressed=true] span{color:#0b1826;background:var(--system-color);border-color:var(--system-color);box-shadow:0 0 0 5px #ffffff20,0 2px 12px #0006;transform:scale(1.1)}
.house-point.is-managed span{border:2px solid #b5c5ff;color:#dce4ff;background:#273453;box-shadow:0 0 0 4px #8eabff26,0 2px 12px #0006}
.house-zones{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.house-zone{opacity:0;transition:opacity .4s ease;fill:var(--zone-color);fill-opacity:.14;stroke:var(--zone-color);stroke-opacity:.7;stroke-width:2;vector-effect:non-scaling-stroke}
.house-zone.is-visible{opacity:1}
.heat-zone{stroke-width:1.5;fill-opacity:.2}
.sensor-zone{fill-opacity:.15}
.engineering-demo[data-active-system=asu] .house-zone{fill:#a3b8ff;stroke:#a3b8ff;fill-opacity:.1;stroke-opacity:.5}
.engineering-demo[data-active-system=asu] .house-focus{opacity:.12}
.house-point:focus-visible{outline:2px solid #fff;outline-offset:1px;background:#0b182675}
.house-point:hover span{transform:scale(1.12);border-color:#fff}
.house-point:disabled{cursor:default}
.house-air{position:absolute;left:81.5%;top:18%;width:12%;height:22%;z-index:2;opacity:0;pointer-events:none;overflow:hidden}
.house-air span{position:absolute;left:20%;top:-60%;height:60%;width:2px;border-radius:50%;background:linear-gradient(transparent,#b5ffedbb,transparent);transform:rotate(-13deg)}
.house-air span:nth-child(2){left:48%;animation-delay:.2s!important}
.house-air span:nth-child(3){left:76%;animation-delay:.4s!important}
.engineering-demo[data-active-system=hvac] .house-air{opacity:1}
.demo-legend{display:flex;align-items:center;gap:8px;min-height:36px;margin:5px 0 10px;color:#c0d3df;font:500 14px/1.4 Manrope,Arial,sans-serif}
.demo-dot{flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--system-color)}
.demo-index{margin-left:auto;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.1em;color:#a3bac9}
.demo-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:5px;border:1px solid #385064;border-radius:12px;background:#081825}
.demo-controls button{font:700 14px/1.4 Manrope,Arial,sans-serif;min-height:44px;padding:8px 2px;color:#b8cbd6;border:1px solid transparent;background:transparent;border-radius:8px;cursor:pointer;touch-action:manipulation;transition:background .2s,color .2s,border-color .2s}
.demo-controls button[aria-pressed=true]{color:#0b1826;background:var(--system-color);border-color:var(--system-color);box-shadow:0 3px 14px #0003}
.demo-controls button:hover{border-color:#d9e9f3}
.demo-controls button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.demo-copy{min-height:216px;margin:18px 0 12px;padding-left:14px;border-left:2px solid var(--system-color)}
.demo-copy h3{font:700 17px/1.4 Manrope,Arial,sans-serif;color:#fff;margin:0 0 7px}
.engineering-demo .demo-copy p{font:400 14px/1.6 Manrope,Arial,sans-serif;color:#b8cbd6;margin:0}
.demo-feature-label{margin-top:12px;color:#aabecd;font:500 12px/1.5 Manrope,Arial,sans-serif}
.demo-features{display:flex;flex-wrap:wrap;gap:5px 7px;margin:7px 0 0;padding:0;list-style:none}
.demo-features li{padding:4px 8px;border:1px solid #486173;border-radius:6px;color:#d4e1e9;background:#172b3c;font:500 12px/1.4 Manrope,Arial,sans-serif}
.engineering-demo[data-active-system=asu] .demo-features li{border-color:#718ac4;color:#dce4ff;background:#223252}
.engineering-demo[data-active-system=hvac] .demo-features li:nth-child(-n+2){border-color:#896d58;color:#ffcfaa;background:#322e2b}
.engineering-demo[data-active-system=water] .demo-features li:nth-last-child(-n+2){border-color:#5a85a6;color:#bce1ff;background:#1a3044}
.demo-footnote{display:block;padding-top:12px;border-top:1px solid #385065;color:#a3bac9;font:400 12px/1.6 Manrope,Arial,sans-serif}
.image-unavailable .house-stage{display:none}
@keyframes house-point-pulse{0%,100%{box-shadow:0 0 0 5px #ffffff20,0 2px 12px #0006}50%{box-shadow:0 0 0 10px #ffffff05,0 2px 12px #0006}}
@keyframes house-airflow{from{translate:0 0;opacity:0}25%{opacity:.8}to{translate:-5px 100px;opacity:0}}
@media(prefers-reduced-motion:no-preference){
  .house-point[aria-pressed=true] span{animation:house-point-pulse 1.6s ease-out 2}
  .engineering-demo[data-active-system=hvac] .house-air span{animation:house-airflow 2s ease-out 2}
}
@media(max-width:800px){
  .engineering-demo{padding:18px;max-width:600px;width:100%;margin-inline:auto}
  .demo-copy{min-height:216px}
}
@media(max-width:380px){
  .engineering-demo{padding:14px}
  .demo-heading{font-size:13px;gap:8px}
  .demo-heading span:last-child{font-size:12px}
  .demo-controls{gap:2px;padding:3px}
  .demo-controls button{font-size:13px}
  .demo-legend{font-size:13px}
  .demo-copy{padding-left:10px;min-height:290px}
  .house-point{width:38px;height:38px}
  .house-point span{width:24px;height:24px}
}
@media(prefers-reduced-motion:reduce){
  .house-render,.house-focus,.house-air,.house-points,.house-zones{transform:none;transition:none}
  .house-point span,.demo-controls button,.house-zone{transition:none}
  .house-air{display:none}
}
