/* Page integration only. Models, room, lighting and framing use the original studio. */
.cassette-scroll-track { position:relative; }
.cassette-scroll-track.is-scroll-enabled > .wicky-cassettes {
  position:sticky;
  top:var(--cassette-pin-top, 0px);
}
.wicky-page .wicky-cassettes {
  --gutter:var(--editorial-gutter);
  width:100%;
  height:max(850px,calc(var(--journey-vh,1svh) * 100));
  min-height:850px;
  background:#101418;
  color:var(--paper);
  font:400 12px/1.4 Arial;
  letter-spacing:normal;
  isolation:isolate;
}
.wicky-page .wicky-cassettes.has-studio-scene { height:max(850px,calc(var(--journey-vh,1svh) * 100)); min-height:850px; }
.wicky-page .wicky-cassettes .archive-index p { margin:0 0 18px; }
.wicky-page .wicky-cassettes .cassette-counter { margin:0 0 12px; }
.wicky-page .wicky-cassettes .cassette-meta { margin:8px 0 14px; }
.wicky-page .wicky-cassettes .cassette-title { margin:0; }
.wicky-page .wicky-cassettes .cassette-instructions,
.wicky-page .wicky-cassettes .studio-status { margin:0; }
.wicky-page .wicky-cassettes .cassette-instructions { bottom:65px; }
.wicky-page .wicky-cassettes .studio-feedback { bottom:92px; }
.wicky-cassettes::before,
.wicky-cassettes .cassette-continue {
  position:absolute; z-index:4; left:var(--gutter); right:var(--gutter);
}
.wicky-cassettes::before { content:""; top:0; height:1px; background:var(--editorial-rule); }
.wicky-cassettes .cassette-continue {
  bottom:12px; min-height:44px; display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid #41413d; font:10px/1.4 Arial; color:#c3c0b7;
}
@media(max-width:800px) {
  .wicky-page .wicky-cassettes,
  .wicky-page .wicky-cassettes.has-studio-scene { height:max(850px,calc(var(--journey-vh,1svh) * 100)); min-height:850px; }
}

/* One passive poster, above the carousel; the room and its inputs remain visible. */
.wicky-cassettes .cassette-film-preview {
  position:absolute; z-index:2; left:50%; top:20%;
  translate:-50% 0; width:min(420px,38vw); height:40%;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.wicky-cassettes .cassette-film-preview img {
  display:block; width:auto; height:auto; max-width:100%; max-height:100%;
  object-fit:contain; box-shadow:0 12px 36px #0003;
}
.wicky-cassettes .cassette-preview-unavailable {
  color:#c3c0b7; font:9px Arial; letter-spacing:.06em;
}
.wicky-cassettes[data-studio-state]:not([data-studio-state="idle"]) .cassette-film-preview,
.wicky-cassettes[data-camera-view="crt"] .cassette-film-preview { visibility:hidden; }
.wicky-page .wicky-cassettes .cassette-details { text-shadow:none; }
.wicky-page .wicky-cassettes .cassette-title {
  font-family:Arial, Helvetica, sans-serif !important;
  font-size:clamp(22px,2.15vw,32px); font-weight:500;
  line-height:1.18; letter-spacing:-.025em; color:#f2f0e9;
  text-shadow:none; -webkit-text-stroke:0; text-wrap:balance;
  overflow-wrap:anywhere; min-height:0; display:block;
}
@media(max-width:800px) {
  .wicky-cassettes .cassette-film-preview { top:19%; width:min(360px,64vw); height:31%; }
  .wicky-page .wicky-cassettes .cassette-title { font-size:clamp(20px,3.5vw,26px); }
}
@media(max-width:480px) {
  .wicky-cassettes .cassette-film-preview { top:18%; width:72vw; height:28%; }
}

/* The original photograph becomes a compositor-only portal. No image pixels are
   changed. The single existing room canvas remains behind the black match cut. */
.cassette-scroll-track { box-sizing:border-box; }
.wicky-page .cassette-scroll-track > .wicky-cassettes.is-archive-entering {
  position:fixed; top:var(--cassette-pin-top,0px); left:0; right:0; z-index:30;
}
.is-archive-entering .archive-index,
.is-archive-entering .cassette-details,
.is-archive-entering .cassette-instructions,
.is-archive-entering .cassette-continue,
.is-archive-entering .cassette-film-preview { opacity:var(--archive-entry-ui,0); pointer-events:none; }
.wicky-cassettes.is-archive-entering::before { visibility:hidden; }
.archive-entry { position:fixed; inset:0; z-index:31; overflow:hidden; pointer-events:none; }
.archive-entry[hidden] { display:none; }
.archive-entry-signal,.archive-entry-crop,.archive-entry-noise { position:absolute; inset:0; }
.archive-entry-signal { transform-origin:50% 50%; will-change:transform; }
.archive-entry-crop { overflow:hidden; }
.archive-entry img { position:absolute; max-width:none; transform-origin:0 0; will-change:transform; }
.archive-entry-noise {
  opacity:var(--signal-noise,0); transform:translateX(var(--signal-shift,0px));
  background-size:auto,96px 96px;
  mix-blend-mode:screen;
}
.archive-entry-phosphor {
  position:absolute; left:50%; top:50%; height:2px; opacity:0; border-radius:50%;
  background:#f1fff8; box-shadow:0 0 5px 2px #c2ffe3aa,0 0 14px 4px #88e2bc44;
}
@media(prefers-reduced-motion:reduce) { .archive-entry { display:none; } }
.wicky-page .wicky-cassettes.is-archive-entering { opacity:var(--archive-room-visible,0); }
[data-archive-entry-photo] img.is-archive-source { visibility:hidden; }
.wicky-page [data-archive-entry-photo] .archive-image img { transform:none; transition:none; }
