.machine-story { position:relative; height:310svh; margin-top:38px; }
.machine-sticky { position:sticky; top:0; height:100svh; min-height:400px; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 50% 44%,#fff 0%,#f5f5f4 45%,#efeeec 100%); border-radius:32px; }
.machine-visual { position:absolute; inset:0; }
#coffee-machine-canvas { width:100%; height:100%; display:block; opacity:0; transition:opacity .35s; }
.machine-ready #coffee-machine-canvas { opacity:1; }
.machine-fallback { position:absolute; inset:5%; width:90%; height:90%; object-fit:contain; transition:opacity .25s; }
.machine-ready .machine-fallback { opacity:0; }
.machine-static { height:auto; }
.machine-static .machine-sticky { position:relative; height:85svh; }
@media(max-width:680px) {
  .machine-story { height:280svh; margin-top:24px; }
  .machine-sticky { border-radius:22px; }
  .machine-static { height:auto; }
}
@media(prefers-reduced-motion:reduce) {
  .machine-story { height:auto; }
  .machine-sticky { position:relative; height:90svh; }
  #coffee-machine-canvas,.machine-fallback { transition:none; }
}
