.motion-story {
  --motion-bar: 0px;
  --motion-h: calc(100svh - var(--motion-bar));
  color: var(--folio-ink);
  background: var(--folio-paper);
  position: relative;
}
.admin-bar .motion-story { --motion-bar: 32px; }
@media (max-width: 782px) { .admin-bar .motion-story { --motion-bar: 46px; } }
@media (max-width: 600px) { .admin-bar .motion-story { --motion-bar: 0px; } }
.motion-pin {
  display: grid;
  grid-template-columns: minmax(0,.68fr) minmax(0,1.52fr);
  align-items: center;
  gap: clamp(20px,3vw,64px);
  padding: clamp(20px,3.8vw,72px);
  min-height: min(80svh,840px);
}
.motion-copy h1 {
  font: inherit;
  font-size: clamp(52px,6.6vw,128px);
  line-height: .89;
  letter-spacing: -.066em;
  margin: .25em 0;
}
.motion-copy .folio-cap { margin: 0; font: 600 .73rem/1.3 DM,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.motion-copy p:not(.folio-cap) { max-width: 34ch; }
.motion-copy a { display: inline-block; padding-block: .45em; }
.motion-scene { margin: 0; min-width: 0; }
.motion-screen { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #231d19; }
.motion-screen img,.motion-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.motion-screen video:not(.ready),.motion-screen video[hidden] { visibility: hidden; }
.motion-caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem;
  padding-top: 12px; font: 500 .85rem/1.3 DM,sans-serif;
}
.motion-caption label { flex: 1 1 5rem; min-width: 48px; }
.motion-caption input { display: block; width: 100%; height: 30px; margin: 0; accent-color: currentColor; cursor: ew-resize; }
.motion-caption output { font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.motion-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.aguja .motion-story { background:#e96243; color:#191817; }
.aguja .motion-copy h1 { font-weight:700; text-transform:uppercase; }
.aguja .motion-screen { border:4px solid #25211e; }
.trama .motion-screen { outline:1px solid #ac9e84; border:clamp(4px,.65vw,12px) solid #e1d6c3; }
.trama .motion-copy h1 { font-style:italic; color:#213c72; }
.patio .motion-story { background:#200d15; color:#fff1d7; }
.patio .motion-copy h1 { font-style:italic; }
.patio .motion-screen { box-shadow:0 12px 45px #10050a70; }
.motion-story.is-scrubbable { min-height: calc(265svh - var(--motion-bar)); }
.motion-story.is-scrubbable .motion-pin { position: sticky; top:var(--motion-bar); height:var(--motion-h); min-height:0; }
@media(max-width:740px) and (orientation:portrait) {
  .motion-pin { grid-template-columns:1fr; align-content:center; gap:clamp(18px,3.5vh,36px); padding:22px 0; }
  .motion-copy { padding:0 6vw; }
  .motion-copy h1 { font-size:clamp(52px,14vw,85px); }
  .motion-copy p:not(.folio-cap) { margin:.6em 0; }
  .motion-caption { padding:10px 6vw 0; gap:0 9px; font-size:.8rem; }
  .motion-screen { aspect-ratio:4/3; }
  .trama .motion-screen { margin:0 4vw; }
}
@media (max-height:520px) {
  .motion-pin { padding:10px 3vw; gap:2vw; }
  .motion-copy h1 { font-size:clamp(37px,7vw,65px); }
  .motion-copy p:not(.folio-cap) { margin:.5em 0; font-size:14px; }
  .motion-screen { max-height:calc(var(--motion-h) - 65px); }
}
@media(prefers-reduced-motion:reduce) {
  .motion-story.is-scrubbable { min-height:0; }
  .motion-story.is-scrubbable .motion-pin { position:relative; top:auto; height:auto; }
}

.trama main { position:relative; isolation:isolate; }
.selvedge { position:absolute; inset:0; width:100%; height:100%; overflow:visible; z-index:2; pointer-events:none; }
.selvedge path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.selvedge .yarn-guide { stroke:#bb9777; stroke-width:1; opacity:.34; }
.selvedge .yarn { stroke:#ce7141; stroke-width:2.6px; filter:drop-shadow(.6px 1px 0 #572d2460); }
.seat-sightline { margin:0 0 1rem; text-align:left; }
.seat-sightline canvas { display:block; width:100%; height:auto; background:#271820; }
.seat-sightline figcaption { margin-top:.4em; font:500 .79rem/1.35 DM,sans-serif; }
.auditorium .stage-line { text-transform:uppercase; font:12px DM,sans-serif; letter-spacing:.2em; border-bottom:3px double; padding:6px 0; margin-bottom:12px; }
@media(max-width:740px) { .seat-sightline canvas {max-height:22svh;object-fit:contain;} .selvedge .yarn {stroke-width:2px;} }
.selvedge .yarn { stroke:var(--thread-color,#ce7141); }
.cloth-presentation { position:relative; isolation:isolate; overflow:hidden; background:repeating-linear-gradient(90deg,#d9ccb1 0 2px,#9c8c7166 2px 3px,#ede3ce 3px 6px); }
.cloth-presentation canvas { display:block; clip-path:inset(calc((1 - var(--woven,1)) * 100%) 0 0); }
.weft-shuttle { position:absolute; width:15%; height:3.5%; left:calc(85% * var(--shuttle,0)); bottom:calc(var(--woven,1) * 96%); border-radius:70% 22% 70% 22%; background:linear-gradient(0deg,#613d27,#cb9c60 45%,#63412c); box-shadow:0 2px 4px #62472d70; }
.weft-shuttle::after { content:''; position:absolute; inset:24% 21%; border-radius:60%; background:repeating-linear-gradient(90deg,#324574 0 2px,#6a7790 2px 3px); }
.finished .weft-shuttle,html:not(.scrub) .weft-shuttle { display:none; }
@media(prefers-reduced-motion:reduce) { .cloth-presentation canvas {clip-path:none} .weft-shuttle{display:none} }
