.coffee-story{
  --coffee-header:82px;
  --coffee-height:min(620px,calc(100vh - var(--coffee-header) - 22px));
  --coffee-height:min(620px,calc(100svh - var(--coffee-header) - 22px));
  position:relative;
  max-width:1550px;
  margin:auto;
  padding-inline:var(--pad);
  scroll-margin-top:var(--coffee-header);
}
.coffee-sticky{padding-block:8px}
.coffee-story.has-scene{height:calc(var(--coffee-height) + 16px + clamp(440px,105svh,940px))}
.has-scene .coffee-sticky{position:sticky;top:var(--coffee-header)}
.coffee-panel{
  display:grid;
  grid-template-columns:35% minmax(0,1fr);
  align-items:center;
  height:max(1px,var(--coffee-height));
}
.coffee-copy{padding-inline:clamp(6px,4vw,60px) 0;pointer-events:none}
.coffee-copy h2{color:#492923;font:normal clamp(36px,5.7vw,94px)/.95 Georgia,serif;letter-spacing:-.06em;margin:0}
.coffee-copy em{color:#8e3450}
.coffee-stage{position:relative;min-width:0;height:100%;overflow:hidden}
.coffee-stage canvas,.coffee-still{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:700px){.coffee-story{--coffee-header:68px}}
@media (max-width:700px) and (min-height:470px){
  .coffee-panel{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .coffee-copy{padding:8px 4% 0}
  .coffee-copy h2{font-size:clamp(32px,9vw,52px)}
}
@media(max-height:469px){
  .coffee-copy h2{font-size:clamp(24px,5vw,55px)}
}
@media (max-width:380px) and (max-height:469px){
  .coffee-copy h2{font-size:23px}
}
@media (min-width:701px){
  .coffee-stage{mask-image:linear-gradient(to right,transparent,#000 12%,#000 98%,transparent)}
  .coffee-copy h2{font-size:clamp(30px,4.7vw,76px)}
}
@media (min-width:701px) and (max-height:469px){
  .coffee-copy h2{font-size:clamp(24px,4.4vw,55px)}
}
@media (min-width:701px) and (hover:hover) and (pointer:fine){
  .coffee-story.has-scene{height:calc(var(--coffee-height) + 16px + clamp(1250px,210svh,2100px))}
}
.coffee-stage canvas.espresso-steam{
  position:absolute;height:auto;aspect-ratio:7/8;transform:translate(-50%,-99%);
  pointer-events:none
}
.coffee-stage canvas.espresso-steam[hidden]{display:none}
