[data-pg-scene] {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
}
.pg-scene__canvas,
.pg-scene__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pg-scene__canvas canvas { display: block; width: 100%; height: 100%; }
.pg-scene__canvas { visibility: hidden; }
[data-pg-scene][data-scene-ready="true"] .pg-scene__canvas { visibility: visible; }
[data-pg-scene][data-scene-state="error"] .pg-scene__canvas,
[data-pg-scene][data-scene-state="context-lost"] .pg-scene__canvas { visibility: hidden; }
.pg-scene__poster { object-fit: contain; object-position: center; transition: opacity 180ms ease; }
[data-pg-scene][data-scene-ready="true"] .pg-scene__poster { opacity: 0; pointer-events: none; }
[data-pg-scene][data-scene-state="error"] .pg-scene__poster,
[data-pg-scene][data-scene-state="context-lost"] .pg-scene__poster { opacity: 1; }
.pg-scene__controls { position: absolute; z-index: 2; right: max(20px, calc((100% - 1240px) / 2)); bottom: 20px; display: flex; gap: 8px; }
[data-pg-scene] [data-scene-action] {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #c8ccca;
  border-radius: 6px;
  background: #ffffffee;
  color: #171a1b;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
[data-pg-scene] [data-scene-action]:hover { background: #ffcf73; border-color: #c18618; }
[data-pg-scene] [data-scene-action]:focus-visible { outline: 3px solid #bd7a08; outline-offset: 3px; }
[data-pg-scene] [data-scene-action] svg { width: 19px; height: 19px; }
/* "Turn off the fire": a small switch on the fireplace. The engine adds, places and shows it. */
[data-pg-scene] .pg-scene__fire {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 34px;
  min-width: 0;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111718;
  color: #e5a128;
  box-shadow: 0 0 0 2px #ffffffcc, 0 3px 8px #00000059;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
  animation: pgSceneFireIn 420ms cubic-bezier(.2, .9, .3, 1.25) both;
}
[data-pg-scene] .pg-scene__fire[hidden] { display: none; }
[data-pg-scene] .pg-scene__fire::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
[data-pg-scene] .pg-scene__fire::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #e5a128;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: pgSceneFirePing 1.8s ease-out 700ms 3;
}
[data-pg-scene] .pg-scene__fire svg { display: block; width: 17px; height: 17px; }
@media (hover: hover) {
  [data-pg-scene] .pg-scene__fire:hover { background: #e5a128; color: #111718; }
}
[data-pg-scene] .pg-scene__fire:active { transform: scale(.9); }
[data-pg-scene] .pg-scene__fire:focus-visible { outline: 3px solid #bd7a08; outline-offset: 4px; }
[data-pg-scene] .pg-scene__fire[aria-disabled="true"] { background: #3d4548; color: #9aa3a5; transform: scale(.9); cursor: default; }
@keyframes pgSceneFireIn { from { opacity: 0; transform: scale(.5); } }
@keyframes pgSceneFirePing { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(2); } }
@media (max-width: 600px) {
  [data-pg-scene] .pg-scene__fire { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  [data-pg-scene] .pg-scene__fire::before { inset: -8px; }
  [data-pg-scene] .pg-scene__fire svg { width: 15px; height: 15px; }
}
@media (min-width: 1800px) { [data-pg-scene] { height: 620px; } }
@media (max-width: 900px) { [data-pg-scene] { height: 460px; } }
@media (max-width: 600px) {
  [data-pg-scene] { height: 380px; }
  .pg-scene__controls { right: 16px; bottom: 12px; gap: 6px; }
  [data-pg-scene] [data-scene-action] { width: 40px; height: 40px; }
}
@media (max-width: 350px) { [data-pg-scene] { height: 340px; } }
@media (prefers-reduced-motion: reduce) { .pg-scene__poster { transition: none; } }

.pg-site .pg-home-intro .pg-scene { min-width: 0; width: 100%; }
.pg-site .pg-home-intro:has(.pg-scene) { min-height: 0; grid-template-rows: auto auto; }
html body.pg-site #main-content .pg-home-intro:has(.pg-scene) .et_pb_row.pg-home-intro__visual {
  margin-top: 0 !important;
  min-height: 0;
}
.pg-site .pg-home-intro:has(.pg-scene) .pg-home-intro__row { padding-bottom: 24px; }
.pg-site .pg-home-intro:has(.pg-scene) .pg-home-intro__visual :is(.et_pb_text, .et_pb_text_inner) { line-height: 0; }
.pg-site:has(.pg-scene) .pg-service-index--home { padding-top: 24px !important; }
.pg-site:has(.pg-scene) .pg-service-index--home .pg-service-picker__row { padding-top: 16px; }
html body.pg-site #main-content .pg-home-intro .pg-scene { height: 480px; }
@media (max-width: 900px) {
  html body.pg-site #main-content .pg-home-intro .pg-scene { height: 420px; }
}
@media (max-width: 600px) {
  .pg-site .pg-home-intro:has(.pg-scene) .pg-home-intro__row { padding-block: 20px; }
  .pg-site .pg-home-intro:has(.pg-scene) .pg-home-intro__lead { font-size: 16px; line-height: 1.5; }
  html body.pg-site #main-content .pg-home-intro .pg-scene { height: 330px; }
}
@media (max-width: 359px) {
  html body.pg-site #main-content .pg-home-intro .pg-scene { height: 300px; }
}
