/* The WebGL room behind every page (room.js). Light sections let it show through; dark
   sections ("Recent work", footer) keep their own background. */
.ec-room {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  /* phones: as tall as the screen with the address bar hidden, so it never shows a gap or
     needs resizing while the bar slides away during scrolling */
  height: 100lvh;
  bottom: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ec-room.is-live { opacity: 1; }
/* html.ec-boot is set in <head> before anything paints (WebGL2 available): a still of the room
   from the first frame, so no page shows a flat colour while three.js loads. Its own fixed layer
   (not background-attachment: fixed), so it costs nothing while scrolling. */
html.ec-boot::before {
  content: "";
  position: fixed;
  inset: 0;
  bottom: auto;
  height: 100lvh;
  z-index: -2;
  background: url("/assets/brand/room/room-bg.jpg") center / cover no-repeat;
  pointer-events: none;
}
html.ec-boot,
html.ec-room-on { background: #e5e5e5; }
html.ec-boot body,
html.ec-room-on body { background-color: transparent; }
/* No WebGL (html.ec-room-static, set by work-boot.js): a still of the room behind the page. */
html.ec-room-static { background: #e5e5e5 url("/assets/brand/room/room-bg.jpg") center / cover no-repeat fixed; }
html.ec-room-static body { background-color: transparent; }
html.ec-room-static .bp-section_hero:not(.theme-dark):not(.theme-blue):not(.theme-orange):not(.theme-pink),
html.ec-boot .bp-section_hero:not(.theme-dark):not(.theme-blue):not(.theme-orange):not(.theme-pink),
html.ec-room-on .bp-section_hero:not(.theme-dark):not(.theme-blue):not(.theme-orange):not(.theme-pink) {
  background-color: transparent;
}
