/* Calder Street, motion edition: hanging and arranging art.
   Static final states first (shown with JS off, in screenshots, with reduced motion);
   .m-on / .m-stage / .m-h are added by js/motion.js only when the full motion runs. */

html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
main{overflow-x:clip}

.m-pre .hero-h span,.m-pre .hero-side,.m-pre .hero-img figcaption,.m-pre .mat{visibility:hidden}

/* ---------- hero stage: the empty wall plus the three frames that get hung on load ---------- */
.mat{position:relative}
.stage{display:none}
.m-stage .stage{display:block;position:absolute;left:0;top:0;pointer-events:none}
.mat .stage img{position:absolute;max-width:none;object-fit:fill;object-position:0 0;aspect-ratio:auto}
.mat .stage .wall-empty{left:0;top:0;object-fit:cover;object-position:50% 46%}
.stage .hook{box-shadow:0 2px 3px rgba(0,0,0,.18),0 22px 26px -18px rgba(0,0,0,.55);will-change:transform}
.m-stage .wall-final{position:relative;z-index:2;opacity:0}

/* ---------- the wall: static salon layout for the four extra pieces ---------- */
.w4{grid-column:7 / span 5;grid-row:3;margin-top:40px}
.w-note{grid-row:3}
.w5{grid-column:2 / span 3;grid-row:4;margin-top:20px}
.w6{grid-column:6 / span 2;grid-row:4;margin-top:110px}
.w7{grid-column:9 / span 3;grid-row:4;margin-top:50px}
.w .label{position:relative}

/* horizontal gallery (desktop, full motion only) */
.m-h .wall{height:100vh;min-height:720px;padding:96px 0 0;display:flex;flex-direction:column;overflow:hidden}
.m-h .wall-head{padding:0 var(--pad);margin-bottom:34px}
.m-h .hang{display:flex;align-items:flex-start;gap:clamp(60px,6vw,110px);width:max-content;padding:0 18vw 0 var(--pad);will-change:transform}
.m-h .w{margin:0;flex:none;display:flex;flex-direction:column}
.m-h .w img{width:auto;height:var(--h)}
.m-h .w .label{max-width:min(420px,100%);min-width:300px}
.m-h .w1{--h:50vh}
.m-h .w2{--h:36vh;margin-top:7vh}
.m-h .w3{--h:31vh;margin-top:2vh}
.m-h .w4{--h:34vh;margin-top:10vh}
.m-h .w5{--h:40vh;margin-top:1vh}
.m-h .w6{--h:24vh;margin-top:15vh}
.m-h .w7{--h:38vh;margin-top:5vh}
.m-h .w-note{flex:none;width:min(30vw,440px);margin:12vh 0 0}
.m-h .w-rail{position:absolute;left:var(--pad);right:var(--pad);bottom:34px;height:2px;background:var(--line)}
.m-h .w-rail i{position:absolute;inset:0;background:var(--red);transform-origin:0 50%;transform:scaleX(0)}
.w-rail{display:none}
.m-h .w-rail{display:block}
.m-h .wall{position:relative}

/* ---------- moulding corner that snaps onto the preview frame ---------- */
.try-stage{position:relative}
.corner{position:absolute;left:0;top:0;width:96px;height:96px;opacity:0;pointer-events:none;--w:16px;--c:#e2cfac;transform-origin:0 0}
.corner::before,.corner::after{content:"";position:absolute;left:0;top:0;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12),inset 3px 3px 0 rgba(255,255,255,.3),inset -2px -2px 0 rgba(0,0,0,.14),0 12px 18px -10px rgba(0,0,0,.5)}
.corner::before{width:100%;height:var(--w);clip-path:polygon(0 0,100% 0,100% 100%,var(--w) 100%)}
.corner::after{width:var(--w);height:100%;clip-path:polygon(0 0,100% var(--w),100% 100%,0 100%)}

/* ---------- price by size: the outline that grows to the picked size ---------- */
.sizes rect.grow{stroke:var(--red);opacity:1;stroke-width:3}
.sizes .grow-t{fill:var(--red);font-weight:500}
@media (min-width:1051px){.prices-head{position:sticky;top:70px;align-self:start}}

/* ---------- counter assistant: prints like a till slip ---------- */
.bot-body{position:relative}
.cur{position:absolute;left:22px;font-family:var(--m);font-size:15px;color:var(--red);opacity:0;padding:2px 0 2px 14px;border-left:2px solid var(--red)}
.bot-in span.typed{color:var(--ink)}
.bot-in b.hit{color:var(--red)}

/* ticket handwriting */
.tk .hw{display:inline-block}

@media (max-width:700px){
  .w4,.w5,.w6,.w7{margin:0 0 54px}
  .w5{margin-left:14%}
  .w6{width:62%}
  .w7{margin-right:12%}
  .corner{width:70px;height:70px}
  .cur{left:22px}
}
