/* Cenas animadas pela rolagem. Sem .fx, cada cena mostra o serviço já concluído. */
.scene{position:relative}
.scene-stage{position:relative;overflow:hidden;min-height:540px}
.fx .scene{height:240vh}
.fx .scene-stage{position:sticky;top:76px;height:calc(100vh - 76px);height:calc(100svh - 76px)}
.scene h2{font-size:clamp(2.2rem,4.8vw,4.4rem);font-weight:850;font-stretch:112%;line-height:1.03}
.scene :focus-visible{outline-color:var(--navy)}

/* Pintura */
.paint-stage{display:grid;place-items:center}
.coat{grid-area:1/1;width:100%;height:100%;display:grid;place-items:center;padding:0 24px 130px;text-align:center}
.coat h2{font-size:clamp(2.5rem,7.2vw,6.5rem);max-width:11ch}
.coat.old{background:
  radial-gradient(ellipse at 14% 24%,#8f9690aa 0,#a9aea866 10%,#0000 23%),
  radial-gradient(ellipse at 88% 70%,#8d948faa 0,#a9aea855 9%,#0000 20%),
  radial-gradient(ellipse at 72% 8%,#a3a39a88 0,#0000 18%),
  #d3d8d6}
.coat.new{background:
  repeating-linear-gradient(90deg,#ffffff09 0 2px,#0000 2px 7px,#00184009 7px 9px,#0000 9px 15px),
  linear-gradient(160deg,#0a6bd6,#075fc3);color:#fff;position:relative;z-index:1}
.cracks{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#68736f;stroke-width:2.5}
.paint-stage .coat.old{position:relative}
.coat.old h2{position:relative}
.baseboard{position:absolute;z-index:2;inset:auto 0 0;height:34px;background:linear-gradient(#fff 0 6px,#dfe7ed 6px 9px,#f7fafc 9px);box-shadow:0 -3px 6px #071d2e30}
.roller{display:none}
.fx .roller{display:block;position:absolute;z-index:3;left:0;top:0;overflow:visible;pointer-events:none;will-change:transform;filter:drop-shadow(8px 14px 9px #071d2e55)}
.paint .btn{grid-area:1/1;align-self:end;margin-bottom:66px;z-index:4}

/* Fotos dos serviços: cada uma se revela com um efeito do próprio serviço */
.shot>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mini-roller,.dark-room,.shot-water{display:none}
.fx .mini-roller,.fx .dark-room,.fx .shot-water{display:block;position:absolute;left:0;top:0;pointer-events:none}
.shot-paint{background:radial-gradient(ellipse at 25% 65%,#55636a,#0000 45%),radial-gradient(ellipse at 85% 25%,#64727a,#0000 40%),#87959b}
.mini-roller{overflow:visible;filter:drop-shadow(4px 7px 5px #071d2e66)}
.fx .dark-room{width:100%;height:100%;--p:1;background:radial-gradient(circle at 44% 37%,#0000 calc(var(--p)*150% - 45%),var(--navy) calc(var(--p)*150%))}
.fx .shot-water{width:100%;height:100%}
.shot-leak{background:
  linear-gradient(#a9c7d9 2px,#0000 2px) 0 0/100% 46px,linear-gradient(90deg,#a9c7d9 2px,#0000 2px) 0 0/46px 100%,#dcebf4}
.shot-build{background:repeating-linear-gradient(0deg,#0000 0 60px,#c9a87a 60px 62px),repeating-linear-gradient(90deg,#0000 0 60px,#c9a87a 60px 62px),#f3e6d1}
.fx .service li{transition:opacity .35s,transform .5s cubic-bezier(.2,.7,.2,1),background-size .6s;transition-delay:0s}
.fx .service li:not(.on){opacity:.15;transform:translateX(14px);background-size:0 1px}

/* Cenas com texto e desenho */
.story .scene-stage{display:grid;place-items:center}
.story-grid{position:relative;height:100%;display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center}
.story-copy{position:relative;z-index:2}
.swap{display:grid}
.swap h2{grid-area:1/1;align-self:end;transition:opacity .45s,transform .6s cubic-bezier(.2,.7,.2,1)}
.swap .before{opacity:0}
.fx .scene:not(.done) .before{opacity:1}
.fx .scene:not(.done) .after{opacity:0;transform:translateY(24px)}
.fx .scene.done .before{transform:translateY(-24px)}
.story-copy p{margin:20px 0 28px;max-width:38ch;font-size:1.15rem}
.art{display:block;width:100%;height:100%;max-height:680px;min-height:0;overflow:visible}

.light-scene{background:var(--navy);color:#fff;--l:1}
.light-scene .scene-stage{background:var(--navy)}
.light-scene .scene-stage::before{content:"";position:absolute;inset:0;opacity:var(--l);background:radial-gradient(circle at 72% 38%,#8b7040 0,#31536a 32%,#12405f 75%)}
.light-scene .after{color:#ffd58a}
.light-scene :focus-visible{outline-color:#fff}
#lampGlow,#lampCone,#bulbLit{opacity:var(--l)}
#room{opacity:calc(.1 + var(--l)*.9)}

.leak-scene .scene-stage{background:
  linear-gradient(#bed2df 2px,#0000 2px) 0 0/100% 92px,
  linear-gradient(90deg,#bed2df 2px,#0000 2px) 0 0/92px 100%,#e8f2f8}
.leak-scene .story-copy p{font-weight:500}
.shelf-scene .scene-stage{background:linear-gradient(#f9f3e9,#f3e6d1)}

@media(max-width:760px){
  .fx .scene{height:210vh}
  .scene-stage{min-height:500px}
  .fx .scene-stage{min-height:0;height:calc(100svh - 152px)}
  .paint .btn{margin-bottom:54px}
  .story-grid{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px;padding-block:24px 0}
  .story-copy p{font-size:1rem;margin:10px 0 14px}
  .light-scene .scene-stage::before{background:radial-gradient(circle at 63% 63%,#8b7040 0,#31536a 32%,#12405f 75%)}
}
@media(max-height:560px){
  .fx .scene{height:auto}
  .fx .scene-stage{position:relative;top:0;height:560px}
}
