.room-stage picture { display: block; }
.room-photo { aspect-ratio: 16 / 9; }
.room-window { left: 19.4%; top: 15.9%; width: 47.8%; height: 21.6%; }
.room-flight { width: 52%; top: 18%; }
.room-stage > .rack-lights:not(.office-indicators),
.room-illumination, .room-tree-lights { display: none; }
.room-stage .office-indicators { display: block; }
.office-indicators i { width: max(2px, .24cqw); }

.room-stage .office-decor {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: center / 100% 100% no-repeat url("athens-christmas-office.webp");
  opacity: 0; transition: opacity .65s ease;
}
.is-lit .office-decor { opacity: 1; }
.tree-remembered .office-decor { transition: none; }
.office-startup {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  transition: opacity .55s ease;
}
.tree-remembered .office-startup { display: none; }

/* Each mask tracks a different set of bulbs in the same two photographs. */
.office-bulbs {
  position: absolute; inset: 0;
  background: center / 100% 100% no-repeat url("office-unlit-strands.webp");
  mask: var(--lamp-mask) center / 100% 100% no-repeat;
  opacity: 0;
}
.office-bulbs:nth-child(1) { --lamp-mask: url("office-lamps-1.png"); --phase: 0s; }
.office-bulbs:nth-child(2) { --lamp-mask: url("office-lamps-2.png"); --phase: -1.2s; }
.office-bulbs:nth-child(3) { --lamp-mask: url("office-lamps-3.png"); --phase: -2.4s; }
@keyframes office-bulb-dimming {
  0%, 20%, 100% { opacity: 0; }
  52%, 62% { opacity: .96; }
}
@supports (mask-image: linear-gradient(black, transparent)) {
  @media (prefers-reduced-motion: no-preference) {
    .is-lit .office-bulbs { animation: office-bulb-dimming 3.6s ease-in-out var(--phase) infinite; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .room-stage .office-decor { transition: none; }
}
