/* the original prototype stage rules from css/project.css */
/* ---- each prototype on its own page sits in ~30% more space (Louis, 2026-10-03): more air above and below, the object ~1/1.3 the size ---- */
.demo { padding-block: clamp(48px, 7vw, 112px); }
@media (min-width: 601px) {
  .demo.am01 { --S: min(230px, calc((min(100vw, 1280px) - 2 * var(--gutter)) / 6.62 / 1.3)); }
  .demo.opus .opus__room { max-width: 760px; }
  .dialspec .dialspec__ring { --dsize: clamp(150px, 17vw, 200px); }
  .dialspec .dialspec__dial { --size: clamp(150px, 17vw, 200px); }
}
/* Opus One: the screen centred, the dial below it, not to the side (Louis, 2026-10-03) */
.demo.opus .opus__room { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--s-4); }
.demo.opus .opus__scene { width: min(100%, 720px); }
.demo.opus .opus__remote { padding-bottom: 0; margin: 0; }
.next-project__all { font: 500 var(--fs-caption)/1.2 var(--sans); letter-spacing: var(--track-caption); text-transform: uppercase; }

/* ---- from drawing to render (2026-10-03): arriving from Work or Home, the same line drawing lands where the product will
   be, holds, then the render rises in over a second while the drawing lifts away. Transform and opacity only. ---- */
.pj-sketch { display: none; }
.is-sketching .pj-sketch { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.pj-sketch svg { width: 100%; height: auto; fill: none; stroke: #1A1712; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pj-sketch .la-soft { stroke-width: 1.3; opacity: .7; }
.pj-sketch .la-fill { fill: none; }
.pj-sketch .la-speck { fill: #1A1712; stroke: none; opacity: .55; }
.pj-sketch--am01 svg { width: calc(var(--S) * 6.5 * 612 / 572); }
.pj-sketch--dial svg { width: calc(var(--block) * 1.894); transform: translateY(calc(var(--block) * -.267)) scaleY(1.09); }   /* the drawn cube (224 of 300 units) as wide as the real one (1.414 blocks): they used to differ by half (feedback 2026-10-06) */
.is-sketching .pj-sketch--am01 svg { view-transition-name: product-am01; }
.is-sketching .pj-sketch--opus svg { view-transition-name: product-opus; }
.is-sketching .pj-sketch--dial svg { view-transition-name: product-dial; }
/* the render waits underneath, then rises */
.is-sketching :is(.am01__world, .opus__scene > :not(.pj-sketch), .dialspec__block, .dialspec__dial, .dialspec__ring, .dialspec__sides) { opacity: 0; }

/* ---- one stage for every product (2026-10-03): the same box on all four pages, the product centred and fitted inside
   it. Opus One's screen sits higher so the screen, the bar and the dial all fit the same box. ---- */
.pj-band--object { --stage-h: clamp(400px, 60vh, 620px); }
.pj-band--object .project-landing__title { font-size: clamp(40px, 5.2vw, 76px); }
.pj-band--object .demo { display: grid; place-items: center; height: var(--stage-h); padding-block: 0; margin-top: var(--s-5); }
.pj-band--object .demo > * { max-height: 100%; }
/* AM-01: the bar across the box */
.pj-band--object .demo.am01 { --S: min(200px, calc(min(100vw, 1280px) / 6.62 / 1.45)); }
/* Opus One: screen, bar and dial stacked to fit the box height */
.pj-band--object .demo.opus .opus__room { row-gap: var(--s-2); }
.pj-band--object .demo.opus .opus__scene { width: 100%; }
/* The Dial and the Speaker Cover studio, sized to the same box */
.pj-band--object .demo.am01 { justify-items: stretch; }   /* the bar needs the full width: centring shrank the track to nothing and broke the drag (2026-10-03) */
.pj-band--object .demo.am01 .am01__stage { width: 100%; }
.pj-band--object .demo { position: relative; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; transition: background-color .4s ease; }
.pj-band--object:has(.demo.opus) { --stage-h: clamp(620px, 96vh, 940px); }
.pj-band--object .demo.opus .opus__room { width: min(100%, 760px, calc((var(--stage-h) - 190px) * 1.08)); }
.pj-band--object .demo.opus .opus__remote { --block: clamp(120px, 11vw, 160px); }
