/* The marquee follows the blank panel on all four registered facades. */
.cinema-facade{position:relative;container-type:inline-size;overflow:hidden;aspect-ratio:3/2;border-radius:12px;background:#352531}
.cinema-facade img,.finale-panorama img{display:block;width:100%;height:100%;object-fit:cover}
.cinema-before{position:absolute;inset:0;visibility:hidden}
.cinema-lettering{position:absolute;top:38.8%;left:50%;width:45%;transform:translate(-50%,-50%);font-size:min(4.5cqw,calc(47cqw / var(--letters)));line-height:1;text-align:center;font-family:Georgia,serif;font-weight:700;color:var(--marquee);text-shadow:0 0 .3cqw var(--marquee),0 0 1.2cqw var(--marquee);white-space:nowrap}
.cinema-card{padding:0;overflow:hidden}
.cinema-card .cinema-facade{border-radius:0}
.cinema-copy{padding:16px 18px 18px}
.cinema-copy h2{margin:4px 0 6px}
.cinema-copy .btn{margin-top:12px}
.cinema-pin .pin-symbol{color:#201622;background:#ffd5a0;border-color:#fff1ce}
.marquee-swatches{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0 16px}
.marquee-swatches label{display:inline-flex;gap:6px;align-items:center}
.marquee-swatches input{width:auto;accent-color:var(--neon)}
.cinema-foyer{padding-top:18px;margin-top:16px;border-top:1px solid var(--stroke)}
.foyer-reel{display:flex;gap:12px;overflow-x:auto;padding:8px 5px 12px;scroll-snap-type:x proximity}
.foyer-poster{flex:0 0 32%;min-width:108px;aspect-ratio:2/3;scroll-snap-align:start;border:1px solid #e2bc86;padding:0;border-radius:3px;overflow:hidden}
.chapter-art{display:flex;width:100%;height:100%;flex-direction:column;justify-content:space-between;position:relative;isolation:isolate;overflow:hidden;container-type:inline-size;text-align:left;color:#fff5d9;background:linear-gradient(0deg,#231223 0%,#261426a6 37%,transparent 72%),var(--poster-art) center/cover}
.chapter-art::after{content:"";position:absolute;inset:4%;border:1px solid #ffe7b97a;pointer-events:none}
.chapter-imprint,.chapter-type{display:block;margin:8%;line-height:1.1}
.chapter-imprint,.chapter-type small{font-family:ui-monospace,monospace;font-size:5cqw;font-weight:700;text-transform:uppercase;letter-spacing:.08em;text-shadow:0 1px 4px #241327}
.chapter-type small,.chapter-type b{display:block}
.chapter-type small:last-child{font-size:4.3cqw;letter-spacing:.02em}
.chapter-type b{font-family:Georgia,serif;font-size:11cqw;letter-spacing:-.055em;line-height:.99;margin:.3em 0 .45em;overflow-wrap:anywhere}
.wall-chapter{overflow:hidden}
.print-option>.print-chapter{height:52px;display:block}
.print-chapter .chapter-art{background-position:center 55%}
.print-chapter .chapter-imprint,.print-chapter .chapter-type{margin:3% 8%}
.print-chapter .chapter-type small{display:none}
.print-chapter .chapter-type b{font-size:7cqw}
dialog:has(.chapter-finale),dialog:has(.cinema-foyer){width:min(610px,calc(100% - 24px))}
.chapter-finale{position:relative;isolation:isolate;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 50% 5%,#654050,#211922)}
.finale-panorama,.chapter-finale>.cinema-facade{height:clamp(160px,23vh,230px);border-radius:0;position:relative;overflow:hidden}
.chapter-finale>.cinema-facade{height:auto;aspect-ratio:3/2}
.finale-panorama::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#201322c7,transparent 75%)}
.finale-panorama span,.finale-panorama b{position:absolute;z-index:1;bottom:12px;color:#ffebca;text-shadow:0 2px 5px #241127}
.finale-panorama span{left:14px;font:italic 700 clamp(20px,4vw,30px) Georgia,serif}
.finale-panorama b{right:12px;font-size:.72rem}
.finale-ticket{width:clamp(122px,22vh,183px);aspect-ratio:2/3;margin:18px auto;padding:4px;background:#edcda3;box-shadow:0 6px 22px #100911ab;transform:rotate(-3deg)}
#demo-controls .button-row{margin:0}
@media(max-width:510px){#demo-controls{flex-wrap:wrap}#demo-controls .btn{padding:6px 10px}.chapter-finale>.cinema-facade{max-height:260px}}
@media(prefers-reduced-motion:no-preference){
  .celebrate .finale-panorama img{transform-origin:82% 70%;animation:chapter-pullback 1.55s cubic-bezier(.16,.73,.24,1) both}
  .celebrate .finale-panorama b{animation:marquee-on .7s .65s both}
  .celebrate .finale-ticket{animation:ticket-arrives .82s .7s cubic-bezier(.17,.83,.25,1.05) both}
  .renovation .cinema-before{visibility:visible;animation:cinema-restore 1.28s .1s cubic-bezier(.5,.04,.2,1) both}
  .renovation .cinema-lettering{animation:marquee-on .86s .5s both}
  .foyer-poster{transition:transform .2s}.foyer-poster:hover{transform:translateY(-3px)}
  @keyframes chapter-pullback{from{transform:scale(2.45);filter:brightness(.72)}to{transform:scale(1);filter:brightness(1)}}
  @keyframes ticket-arrives{from{opacity:0;transform:perspective(620px) translateY(44px) rotateY(-48deg) rotate(-11deg)}to{opacity:1;transform:perspective(620px) translateY(0) rotateY(0) rotate(-3deg)}}
  @keyframes cinema-restore{from{clip-path:inset(0)}to{clip-path:inset(0 100% 0 0)}}
  @keyframes marquee-on{0%{opacity:.05}30%{opacity:.72}48%{opacity:.38}100%{opacity:1}}
}
