/* Static rows remain the compact layout and fallback without JavaScript. */
.stamp-story-stage,.stamp-film-motion,.stamp-copy-motion{display:contents}
.stamp-summary{grid-column:1/-1;width:min(1100px,100%);justify-self:center;text-align:center}
@media(min-width:768px){
 .stamp-pair[data-stamp-story=scroll]{display:block;max-width:none!important;padding:0!important;scroll-margin-top:76px}
 .stamp-pair[data-stamp-story=scroll] .stamp-story-stage{display:block;position:sticky;top:76px;height:calc(100vh - 76px);width:100%;overflow:clip}
 .stamp-pair[data-stamp-story=scroll] .stamp-scene{position:absolute;inset:0;width:calc(min(100%,var(--story-width,1280px)) - 80px);height:100%;margin:auto;pointer-events:none;align-content:center}
 .stamp-pair[data-stamp-story=scroll] .stamp-copy-motion{display:block;grid-column:1;grid-row:1;min-width:0;will-change:transform,opacity}
 .stamp-pair[data-stamp-story=scroll] .stamp-film-motion{display:grid;place-items:center;grid-column:2;grid-row:1;min-width:0;transform-origin:center;will-change:transform,opacity}
 .stamp-pair[data-stamp-story=scroll] .stamp-film-motion .film-sheet{grid-column:1;grid-row:1}
 .stamp-pair[data-stamp-story=scroll] .brew-scene .stamp-copy-motion{grid-column:2}
 .stamp-pair[data-stamp-story=scroll] .brew-scene .stamp-film-motion{grid-column:1}
 .stamp-pair[data-stamp-story=scroll] .stamp-summary{position:absolute;left:50%;width:min(1100px,calc(100% - 80px));z-index:5;pointer-events:none;will-change:transform,opacity}
}
/* Give wide desktops more breathing room, then contract the centered pair
   with the viewport. Use the same gap in both track sizing and composition width. */
@media(min-width:1200px){
 .stamp-pair[data-stamp-story=scroll] .stamp-scene{--story-column-gap:clamp(64px,calc(20vw - 176px),160px);width:min(calc(100% - 96px),calc(420px + var(--story-paper-width,340px) + var(--story-column-gap)));grid-template-columns:minmax(0,420px) minmax(0,var(--story-paper-width,340px));column-gap:var(--story-column-gap)}
 .stamp-pair[data-stamp-story=scroll] .brew-scene{grid-template-columns:minmax(0,var(--story-paper-width,340px)) minmax(0,420px)}
}
