/* Art kit colours and window chrome for the building dashboard.
   Colours come from html[data-scene="day" | "night"]. Shapes in interiors.js only carry class names.
   A window sets --acc and --acc2 (the project's accent colours) in its style attribute. */

:root,
html[data-scene="day"] {
  --room-wall: #d9c3a0;
  --room-cool: #8fa2bf;
  --room-dim: #b9a58a;
  --room-dark: #3b3a4a;
  --room-floor: #9c7b57;
  --room-skirt: #84653f;
  --ceiling: rgba(0, 0, 0, 0.08);
  --wp: rgba(70, 45, 40, 0.07);
  --cone-op: 0.06;
  --glow-op: 0.15;
  --ink: #3a2a31;
  --ink2: #6b4c44;
  --paper: #f4ead6;
  --frame: #6b4c44;
  --wood: #9a6a43;
  --wood2: #7a4f31;
  --brass: #c99a3b;
  --skin: #c68a63;
  --hair: #2a1b17;
  --cloth: #f1ebe0;
  --pants: #3d4258;
  --shirt: #4f7a6a;
  --shirt2: #8e4f6e;
  --screen: #cfe3f2;
  --screen-dark: #1d2433;
  --scope: #17302a;
  --trace: #5fe39b;
  --lamp: #ffe7a3;
  --dim: rgba(58, 42, 49, 0.22);
  --guide: rgba(58, 42, 49, 0.2);
  --seasky: #f0c597;
  --sea: #3d7cad;
  --sea2: #2f6896;
  --foam: #e9f4fb;
  --salt: #fffaf0;
  --nightsky: #1c2652;
  --star: #fff6d6;
  --cork: #c39561;
  --string: #c0392b;
  --tick: #2f8f5b;
  --plant: #4c8748;
  --terracotta: #b5563a;
  --blind: #e6d8bd;
  --curtain-in: #9c4c3f;
  --tv: #9ccfff;
  --case: #3a3d46;
  --board: #2f6a4f;
  --chip: #1f2328;
  --gold: #d8b25a;
  --ram: #c94b4b;
  --device: #4a4e58;
  --pegboard: #c8a777;
  --sticky: #f7d774;
  --sticky2: #f4a3b4;
  --door: #8a5a3a;
  --brick: #b0603c;
  --mortar: rgba(255, 238, 214, 0.55);
  --tarp: #2f6db5;
  --scaffold: #8b9099;
  --opening: #3a2d2a;
  --tank: #232427;
  --post: #3d4250;
  --cart: #8a5a35;
  --awning: #c8463a;
  --ac: #d9d6cf;

  --win-frame: #f6efe2;
  --curtain: #a5483b;
  --curtain-fold: rgba(0, 0, 0, 0.16);
  --glass-shine: rgba(255, 255, 255, 0.16);
  --glow: transparent;
}

html[data-scene="night"] {
  --room-wall: #f0b664;
  --room-cool: #2b3d70;
  --room-dim: #7d6a5a;
  --room-dark: #1d1d2b;
  --room-floor: #b47740;
  --room-skirt: #96602f;
  --ceiling: rgba(60, 25, 10, 0.18);
  --wp: rgba(120, 60, 20, 0.1);
  --cone-op: 0.24;
  --glow-op: 0.3;
  --ink: #2a1626;
  --ink2: #5a3230;
  --paper: #fff0cc;
  --frame: #5a3230;
  --wood: #a5683a;
  --wood2: #7e4a2a;
  --brass: #e2b04e;
  --skin: #d39468;
  --cloth: #fff1d6;
  --pants: #3a3550;
  --screen: #dff3ff;
  --lamp: #fff3bf;
  --dim: rgba(42, 22, 38, 0.25);
  --guide: rgba(42, 22, 38, 0.22);
  --seasky: #f6c88f;
  --blind: #d8b98a;
  --curtain-in: #7c3a33;
  --mortar: rgba(255, 238, 214, 0.35);
  --opening: #f3b45e;
  --post: #2a2e3a;
  --ac: #a9a59c;

  --win-frame: #3b405b;
  --curtain: #7e352d;
  --glass-shine: rgba(255, 255, 255, 0.06);
  --glow: rgba(255, 186, 96, 0.5);
}

/* ---------- Fills ---------- */
.wall { fill: var(--room-wall); }
.wall.cool { fill: var(--room-cool); }
.wall.dimroom { fill: var(--room-dim); }
.wall.darkroom { fill: var(--room-dark); }
.wp { fill: var(--wp); }
.ceiling { fill: var(--ceiling); }
.floor { fill: var(--room-floor); }
.skirt { fill: var(--room-skirt); }
.cone { fill: var(--lamp); opacity: var(--cone-op); }
.glow { fill: var(--lamp); opacity: var(--glow-op); }
.screen-glow { fill: var(--screen); opacity: calc(var(--cone-op) * 1.2); }
.shade { fill: var(--ink2); }
.ink, .ink > * { fill: var(--ink); }
.ink2, .ink2 > * { fill: var(--ink2); }
.paper { fill: var(--paper); }
.frame, .board-frame { fill: var(--frame); }
.board-frame { fill: #9aa0a8; }
.wood { fill: var(--wood); }
.wood2, .wood2 > * { fill: var(--wood2); }
.brass, .brass > * { fill: var(--brass); }
.acc { fill: var(--acc, #c08af2); }
.acc2 { fill: var(--acc2, #ff7aa0); }
.shirt { fill: var(--shirt); }
.shirt2 { fill: var(--shirt2); }
.skin { fill: var(--skin); }
.hair { fill: var(--hair); }
.eye { fill: #1c1215; }
.cloth { fill: var(--cloth); }
.pants { fill: var(--pants); }
.shoe { fill: #1c1215; }
.screen { fill: var(--screen); }
.screen-dark { fill: var(--screen-dark); }
.scope { fill: var(--scope); }
.lamp { fill: var(--lamp); }
.dim { fill: var(--dim); }
.hill { fill: rgba(70, 110, 80, 0.55); }
.drumhead { fill: #efe2c8; }
.seasky { fill: var(--seasky); }
.sea { fill: var(--sea); }
.sea2 { fill: var(--sea2); }
.sun { fill: #ffd27a; }
.cloud-paint { fill: #fffaf2; }
.boat { fill: #b0603c; }
.salt, .salt > * { fill: var(--salt); }
.nightsky { fill: var(--nightsky); }
.milky { fill: rgba(255, 246, 214, 0.08); }
.star circle { fill: var(--star); }
.planet { fill: #e9b679; }
.cork { fill: var(--cork); }
.case { fill: var(--case); }
.board { fill: var(--board); }
.chip { fill: var(--chip); }
.ram { fill: var(--ram); }
.fan { fill: #20222a; }
.slot { fill: rgba(0, 0, 0, 0.45); }
.glass-panel { fill: rgba(255, 255, 255, 0.08); }
.power { fill: #6ee7b7; }
.edge { fill: var(--gold); }
.ssd { fill: #2b2d33; stroke: var(--gold); stroke-width: 0.6; }
.device { fill: var(--device); }
.knob { fill: #d7d2c8; }
.sticky { fill: var(--sticky); }
.sticky2 { fill: var(--sticky2); }
.pegboard { fill: var(--pegboard); }
.peg-hole { fill: rgba(0, 0, 0, 0.25); }
.metal { fill: #b9bec6; }
.lens { fill: rgba(200, 230, 255, 0.25); }
.pin { fill: #c0392b; }
.house { fill: var(--ink2); }
.map-sea { fill: #8fc1e3; }
.shell { fill: #f4d9c6; }
.jar { fill: rgba(255, 255, 255, 0.75); }
.door { fill: var(--door); }
.globe { fill: #6fa8c8; }
.cal { fill: none; stroke: var(--guide); stroke-width: 0.6; }
.box { fill: none; stroke: var(--ink2); stroke-width: 1.2; }
.pot-c { fill: var(--terracotta); }
.pot-rim { fill: #c86a4a; }
.snake { fill: #3f7a45; }
.can { fill: #5f8fa8; stroke: #5f8fa8; stroke-width: 2; stroke-linejoin: round; }
.curtain-in { fill: var(--curtain-in); }
.blind rect { fill: var(--blind); }
.cat-eye { fill: #c9e265; }
.tv { fill: var(--tv); }
.tv-wash { fill: var(--tv); opacity: 0.12; }
.sofa { fill: #4a3f5c; }
.sofa2 { fill: #5a4e6e; }
.head-dark { fill: #241f2e; }
.note > * { fill: var(--ink); }
.led { fill: var(--acc, #818cf8); }
.lamp-head { fill: var(--post); }
.tank { fill: var(--tank); }
.dish { fill: #d7d4cc; }
.brick { fill: var(--brick); }
.tarp { fill: var(--tarp); }
.opening { fill: var(--opening); }
.sack { fill: #cfc2a4; }
.cart { fill: var(--cart); }
.awning { fill: var(--awning); }
.wheel { fill: var(--post); }
.hub { fill: #b9bec6; }
.ac-body { fill: var(--ac); stroke: rgba(0, 0, 0, 0.25); stroke-width: 1; }
.ac-fan { fill: rgba(0, 0, 0, 0.12); }
.sign { font: 700 9px "Work Sans", system-ui, sans-serif; fill: var(--ink); letter-spacing: 0.08em; }

/* ---------- Strokes ---------- */
.wp-line, .plank, .cord, .wood-line, .peg, .string-thin, .rug-border, .kurta-line, .sl-acc, .sl-acc2, .sl-shirt, .sl-shirt2,
.arm, .scribble, .clock-rim, .hand, .trace-gold, .lane-a, .cable, .shell2, .shell-line, .route, .bindle-stick, .salt-facet,
.fold, .limb, .line, .guide, .trace, .trace-acc, .string, .tick, .wire, .lane, .lane-base, .foam, .salt-limb, .leaf, .vine,
.mortar, .scaffold, .rib, .post, .kettle, .steam path, .tail, .glass-cup rect, .constel, .ring, .tripod, .eye-a, .eye-b,
.scope-grid, .bb-holes, .pins, .flow, .mug-h, .phones, .tool, .tool-ring, .lamp-arm, .lens-rim, .iron, .iron-tip, .globe-line,
.cross, .code, .tarp-fold, .ladder, .awning-stripe, .ac-grille, .drip, .dish-arm {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.wp-line { stroke: var(--wp); stroke-width: 1; }
.plank { stroke: rgba(0, 0, 0, 0.14); stroke-width: 0.8; }
.cord { stroke: var(--ink); stroke-width: 1; }
.wood-line { stroke: rgba(0, 0, 0, 0.22); stroke-width: 1; }
.peg { stroke: var(--wood2); stroke-width: 2; }
.string-thin { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.5; }
.rug-border { stroke: var(--acc2); stroke-width: 1.6; stroke-dasharray: 3 3; }
.kurta-line { stroke: rgba(0, 0, 0, 0.22); stroke-width: 1; }
.sl-acc, .sl-acc2, .sl-shirt, .sl-shirt2 { stroke-width: 7; }
.sl-acc { stroke: var(--acc); }
.sl-acc2 { stroke: var(--acc2); }
.sl-shirt { stroke: var(--shirt); }
.sl-shirt2 { stroke: var(--shirt2); }
.arm { stroke: var(--skin); stroke-width: 4.5; }
.scribble { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.clock-rim { stroke: var(--ink2); stroke-width: 2; }
.hand { stroke: var(--ink); stroke-width: 1.4; }
.trace-gold { stroke: var(--gold); stroke-width: 1; }
.lane-a { stroke: var(--acc); stroke-width: 2; stroke-dasharray: 6 3; }
.cable { stroke: #1c1215; stroke-width: 1.6; }
.shell2 { stroke: #f4d9c6; stroke-width: 2.2; }
.shell-line { stroke: rgba(0, 0, 0, 0.2); stroke-width: 0.7; }
.route { stroke: #c0392b; stroke-width: 1.4; stroke-dasharray: 2 2.5; }
.bindle-stick { stroke: var(--wood2); stroke-width: 1.6; }
.salt-facet { stroke: rgba(150, 170, 190, 0.45); stroke-width: 0.6; }
.fold { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.limb { stroke: var(--ink); stroke-width: 4; }
.line { stroke: var(--ink2); stroke-width: 1.4; }
.guide { stroke: var(--guide); stroke-width: 1; }
.trace { stroke: var(--trace); stroke-width: 1.6; }
.trace-acc { stroke: var(--acc, #60a5fa); stroke-width: 2.6; }
.string { stroke: var(--string); stroke-width: 1.2; }
.tick { stroke: var(--tick); stroke-width: 2; }
.wire { stroke-width: 2; }
.wire.w1 { stroke: var(--acc, #818cf8); }
.wire.w2 { stroke: var(--acc2, #c084fc); }
.lane-base { stroke: rgba(255, 255, 255, 0.1); stroke-width: 2.2; }
.lane { stroke: var(--acc, #c08af2); stroke-width: 2.2; stroke-dasharray: 8 6; }
.lane.l2, .lane.l4 { stroke: var(--acc2, #ff7aa0); }
.lane.l3 { stroke: #e8e2d4; }
.foam { stroke: var(--foam); stroke-width: 1.4; }
.salt-limb { stroke: var(--salt); stroke-width: 2; }
.leaf { stroke: var(--plant); stroke-width: 3; }
.vine { stroke: var(--plant); stroke-width: 4; stroke-dasharray: 1 3.5; }
.mortar { stroke: var(--mortar); stroke-width: 0.8; }
.scaffold { stroke: var(--scaffold); stroke-width: 2.2; }
.rib { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.2; }
.post { stroke: var(--post); stroke-width: 3; }
.kettle { fill: #b9bec6; stroke: #7d838d; stroke-width: 1.5; }
.steam path { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.tail { stroke: var(--ink); stroke-width: 4; }
.glass-cup rect { fill: rgba(255, 200, 120, 0.8); stroke: rgba(255, 255, 255, 0.7); stroke-width: 1; }
.constel { stroke: var(--ink2); stroke-width: 0.8; }
.ring { stroke: #e9b679; stroke-width: 1.2; }
.tripod { stroke: var(--ink); stroke-width: 2.2; }
.eye-a { stroke: var(--acc2, #fb923c); stroke-width: 1.6; }
.eye-b { stroke: var(--acc2, #fb923c); stroke-width: 1.2; opacity: 0.6; }
.scope-grid { stroke: rgba(95, 227, 155, 0.15); stroke-width: 0.6; }
.bb-holes { stroke: rgba(0, 0, 0, 0.3); stroke-width: 0.8; stroke-dasharray: 0.8 1.6; }
.pins { stroke: var(--gold); stroke-width: 1.2; }
.flow { stroke: var(--ink2); stroke-width: 1.2; }
.mug-h { stroke: var(--acc2); stroke-width: 1.6; }
.phones { stroke: var(--ink2); stroke-width: 2.4; }
.tool { stroke: #8d939c; stroke-width: 2; }
.tool-ring { stroke: var(--acc); stroke-width: 1.6; }
.lamp-arm { stroke: var(--ink2); stroke-width: 2; }
.lens-rim { stroke: var(--ink2); stroke-width: 2; }
.iron { stroke: #2b2d33; stroke-width: 3; }
.iron-tip { stroke: #b9bec6; stroke-width: 1.4; }
.globe-line { stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.8; }
.cross { stroke: var(--string); stroke-width: 0.8; }
.code { stroke-width: 2; }
.code.c1 { stroke: var(--acc); }
.code.c2 { stroke: var(--acc2); }
.tarp-fold { stroke: rgba(0, 0, 0, 0.18); stroke-width: 1; }
.ladder { stroke: #9a7a52; stroke-width: 2; }
.awning-stripe { stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; stroke-linecap: butt; }
.ac-grille { stroke: rgba(0, 0, 0, 0.3); stroke-width: 1; }
.drip { stroke: #7d7a72; stroke-width: 2; }

/* ---------- Window chrome ----------
   <button class="win" data-state="checking|live|down" style="--acc:…;--acc2:…">
     <span class="win-glass"> SVG <span class="curtain l"></span><span class="curtain r"></span> </span>
   </button> */
.win {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.win-glass {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; border: 6px solid var(--win-frame); border-radius: 3px;
  background: var(--room-wall);
  transition: box-shadow 0.6s, filter 0.6s, transform 0.25s;
}
.win-glass svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.win-glass::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(var(--win-frame), var(--win-frame)) 50% 0 / 3px 100% no-repeat;
}
.win-glass::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(120deg, transparent 0 38%, var(--glass-shine) 38% 46%, transparent 46% 58%, var(--glass-shine) 58% 61%, transparent 61%);
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 52%; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--curtain) 0 7px, var(--curtain-fold) 7px 8px, var(--curtain) 8px 14px);
  background-color: var(--curtain);
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}
.curtain.l { left: 0; transform: translateX(-90%); }
.curtain.r { right: 0; transform: translateX(90%); }
.win[data-state="down"] .curtain { transform: none; }
.win[data-state="checking"] .win-glass { filter: brightness(0.55) saturate(0.6); }
html[data-scene="night"] .win[data-state="checking"] .win-glass { filter: brightness(0.3) saturate(0.5); }
html[data-scene="night"] .win[data-state="live"] .win-glass { box-shadow: 0 0 30px 4px var(--glow); }
html[data-scene="night"] .win[data-state="down"] .win-glass { filter: brightness(0.45); }
.win.neighbour { cursor: default; }
html[data-scene="night"] .win.neighbour .win-glass { filter: brightness(0.6); }
.win:focus-visible { outline: none; }
.win:focus-visible .win-glass { outline: 3px solid #ffd36b; outline-offset: 4px; }
@media (hover: hover) {
  .win:not(.neighbour):hover .win-glass { transform: translateY(-3px); }
}

/* ---------- Small animations (all off with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.6s ease-in-out infinite alternate; }
  @keyframes flame { 0% { transform: scale(1, 1); } 50% { transform: scale(0.85, 1.12); } 100% { transform: scale(1.08, 0.92); } }
  .note { animation: note 3.6s ease-in-out infinite; }
  .note.n2 { animation-delay: -1.8s; }
  @keyframes note { 0% { transform: translateY(6px); opacity: 0; } 30%, 60% { opacity: 1; } 100% { transform: translateY(-12px); opacity: 0; } }
  .tw { animation: tw 3s ease-in-out infinite; }
  .tw.t1 { animation-delay: -1s; }
  .tw.t2 { animation-delay: -2s; }
  @keyframes tw { 50% { opacity: 0.25; } }
  .trace { stroke-dasharray: 60 20; animation: trace 2.4s linear infinite; }
  @keyframes trace { to { stroke-dashoffset: -80; } }
  .lane, .lane-a { animation: lane 1.8s linear infinite; }
  .lane.l2, .lane.l4 { animation-duration: 2.6s; }
  @keyframes lane { to { stroke-dashoffset: -28; } }
  .led { animation: led 3.2s steps(1) infinite; opacity: 0.3; }
  .led.d1 { animation-delay: 0.8s; }
  .led.d2 { animation-delay: 1.6s; }
  .led.d3 { animation-delay: 2.4s; }
  @keyframes led { 0% { opacity: 1; } 25% { opacity: 0.3; } }
  .tv { animation: tv 2.2s steps(4) infinite; }
  .tv-wash { animation: tvw 2.2s steps(4) infinite; }
  @keyframes tvw { 0% { opacity: 0.14; } 30% { opacity: 0.08; } 55% { opacity: 0.13; } 80% { opacity: 0.06; } }
  @keyframes tv { 0% { opacity: 1; } 30% { opacity: 0.7; } 55% { opacity: 0.95; } 80% { opacity: 0.6; } }
  .doll { animation: doll 1.2s ease-in-out infinite alternate; }
  @keyframes doll { to { transform: translateY(-1.2px); } }
  .steam path { animation: steam 2.4s ease-out infinite; }
  .steam .s2 { animation-delay: -1.2s; }
  @keyframes steam { 0% { transform: translateY(4px); opacity: 0; } 40% { opacity: 0.8; } 100% { transform: translateY(-8px); opacity: 0; } }
  .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: tail 3s ease-in-out infinite; }
  @keyframes tail { 50% { transform: rotate(-12deg); } }
  .win[data-state="checking"] .win-glass { animation: checking 1.4s ease-in-out infinite alternate; }
  @keyframes checking { to { filter: brightness(0.75) saturate(0.7); } }
}

/* ---------- Life: colours for the moving parts and the new props ---------- */
.blade, .meteor, .leg-w, .arm-thin, .spoke, .pg-bar, .pg-leg, .auto-stripe, .ac-blades path { fill: none; stroke-linecap: round; }
.blade { stroke: #5a5f6c; stroke-width: 1.3; }
.meteor { stroke: #fff6d6; stroke-width: 1.4; opacity: 0; }
.hat { fill: #f2c230; }
.leg-w { stroke: var(--pants); stroke-width: 2.2; }
.arm-thin { stroke: var(--skin); stroke-width: 1.8; }
.trowel-blade { fill: #b9bec6; }
.ac-blades path { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.6; }
.pg-body { fill: #8e95a5; }
.pg-wing { fill: #727a8b; }
.pg-tail { fill: #5f6676; }
.pg-bar { stroke: #3e4350; stroke-width: 1; }
.pg-leg { stroke: #d06a5a; stroke-width: 1.2; }
.pg-neck { fill: #4f9a86; }
.pg-beak { fill: #e5c9a3; }
.pg-eye { fill: #f08a3a; }
.auto-body { fill: #2f7d4f; }
.auto-roof { fill: #f2c230; }
.auto-dark { fill: #1f2128; }
.auto-glass { fill: rgba(190, 225, 255, 0.55); }
.auto-driver { fill: #2a1f25; }
.auto-stripe { stroke: #f2c230; stroke-width: 2; }
.spoke { stroke: #c9ced6; stroke-width: 1.6; }
.beam { fill: var(--lamp); opacity: 0; }
html[data-scene="night"] .beam { opacity: 0.22; }

/* ---------- Life: the animations (all off with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .person, .pendant, .work, .sway, .head-g, .reach, .hand-m, .hand-h, .leg, .work-lamp, .trowel { transform-box: view-box; }

  /* Everyone breathes. */
  .person { animation: breathe 3.8s ease-in-out infinite alternate; }
  @keyframes breathe { to { transform: translateY(-0.9px); } }

  /* What each person is doing. */
  .room-axi .work, .room-uvm .work, .room-fallback .work, .room-pam .work { animation: type 0.46s steps(2) infinite; }
  .room-harmonium .work { animation: type 0.62s steps(2) infinite; }
  @keyframes type { 50% { transform: translateY(-1.3px); } }
  .room-pam-course .work { animation: point 3.2s ease-in-out infinite alternate; }
  @keyframes point { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
  .room-i2c .work { animation: solder 1.7s ease-in-out infinite alternate; }
  @keyframes solder { to { transform: rotate(-3deg); } }
  .room-universe .work { animation: focus 4.5s ease-in-out infinite alternate; }
  @keyframes focus { to { transform: rotate(-5deg); } }
  .room-axi .head-g { animation: nod 0.9s ease-in-out infinite alternate; }
  @keyframes nod { to { transform: rotate(5deg); } }
  .room-uvm .head-g { animation: think 6s ease-in-out infinite; }
  @keyframes think { 0%, 70%, 100% { transform: none; } 78%, 92% { transform: rotate(-6deg); } }
  .sway { animation: sway 2.6s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
  .reach { animation: reach 2.8s ease-in-out infinite alternate; }
  @keyframes reach { to { transform: translate(3px, -1px); } }

  /* The salt doll walks; its footprints appear one by one. */
  .leg.a { animation: leg 0.9s ease-in-out infinite alternate; }
  .leg.b { animation: leg 0.9s ease-in-out infinite alternate-reverse; }
  @keyframes leg { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
  .steps ellipse { opacity: 0; animation: step 5s linear infinite; }
  .steps ellipse:nth-child(2) { animation-delay: 0.8s; }
  .steps ellipse:nth-child(3) { animation-delay: 1.6s; }
  .steps ellipse:nth-child(4) { animation-delay: 2.4s; }
  .steps ellipse:nth-child(5) { animation-delay: 3.2s; }
  @keyframes step { 0% { opacity: 0; } 6%, 70% { opacity: 0.6; } 85%, 100% { opacity: 0; } }

  /* Things in the rooms. */
  .pendant { animation: swing 5s ease-in-out infinite alternate; }
  .work-lamp { animation: swing 2.6s ease-in-out infinite alternate; }
  @keyframes swing { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
  .hand-m { animation: turn 60s linear infinite; }
  .hand-h { animation: turn 720s linear infinite; }
  @keyframes turn { to { transform: rotate(360deg); } }
  .spin, .ac-blades { transform-box: fill-box; transform-origin: center; animation: turn 0.5s linear infinite; }
  .ac-blades { animation-duration: 0.9s; }
  .leaves { transform-box: fill-box; transform-origin: 50% 100%; animation: leaves 4.2s ease-in-out infinite alternate; }
  @keyframes leaves { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
  .meteor { animation: meteor 9s linear infinite; }
  @keyframes meteor { 0% { transform: translate(0, 0); opacity: 0; } 2% { opacity: 1; } 10% { transform: translate(-46px, 23px); opacity: 0; } 100% { transform: translate(-46px, 23px); opacity: 0; } }
  .trace-draw { stroke-dasharray: 330; animation: draw 7s ease-in-out infinite; }
  @keyframes draw { 0% { stroke-dashoffset: 330; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -330; } }
  .tick-new { stroke-dasharray: 14; animation: tick-in 6s ease-in-out infinite; }
  @keyframes tick-in { 0%, 40% { stroke-dashoffset: 14; } 55%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
  .trowel { animation: trowel 0.8s ease-in-out infinite alternate; }
  @keyframes trowel { from { transform: rotate(-14deg); } to { transform: rotate(12deg); } }
  .pg-head { transform-box: view-box; transform-origin: 20px 12px; animation: peck 3.4s ease-in-out infinite; }
  @keyframes peck { 0%, 66%, 100% { transform: none; } 74% { transform: rotate(30deg) translate(1px, 2px); } 82% { transform: none; } 90% { transform: rotate(24deg) translate(1px, 2px); } }

  /* Curtains move a little in the breeze while a site is open. */
  .win[data-state="live"] .curtain.l { animation: breeze-l 6s ease-in-out infinite alternate; }
  .win[data-state="live"] .curtain.r { animation: breeze-r 7.4s ease-in-out infinite alternate; }
  @keyframes breeze-l { to { transform: translateX(-84%); } }
  @keyframes breeze-r { to { transform: translateX(84%); } }
}
