:root {
  --orbit-blue: #2839e6;
  --orbit-yellow: #f4e73e;
}

/* The four prints keep their original positions. A sliver of the current
   negative sits beside them, like a second exposure from the same window. */
.scene-board {
  --window-image: url("assets/windows/city.webp");
  --window-ink: #bab2c9;
}
.scene-board[data-scene="snow"] {
  --window-image: url("assets/windows/snow.webp");
  --window-ink: #c7d8e9;
}
.scene-board[data-scene="train"] {
  --window-image: url("assets/windows/train.webp");
  --window-ink: #c7d4ac;
}
.scene-board[data-scene="rain"] {
  --window-image: url("assets/windows/rain.webp");
  --window-ink: #c8b8d3;
}
.scene-art { isolation: isolate; }
.scene-art::before, .scene-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.scene-art::before {
  inset: 14% 6% 13% auto;
  width: 13%;
  background: var(--window-image) 68% 57% / auto 161% no-repeat;
  filter: grayscale(1) contrast(1.24);
  opacity: .59;
  clip-path: polygon(0 0, 33% 0, 33% 15%, 41% 15%, 41% 8%, 100% 8%, 100% 86%, 65% 86%, 65% 100%, 55% 100%, 55% 93%, 0 93%);
}
.scene-art::after {
  z-index: -1;
  inset: 20% -10% 14% -6%;
  border: 1px solid color-mix(in srgb, var(--window-ink) 48%, transparent);
  border-radius: 50%;
  transform: rotate(-16deg);
}
.scene-story h3 { text-wrap: balance; }
.scene-choice[aria-checked="true"] { border-color: var(--window-ink); }
.scene-heading, .project-chapters #worksTitle { position: relative; }
.scene-heading::before, .project-chapters #worksTitle::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 1px;
  width: 31px;
  height: 2px;
  background: linear-gradient(to right,var(--orbit-blue) 0 72%,transparent 72% 83%,#797991 83%);
}

/* Miniatures are measured from the two recordings. The level matches the
   volume control; the native range remains the only interactive element. */
.rc-rail label { display: flex; align-items: center; gap: 12px; }
.rc-rail label::after {
  content: "";
  display: block;
  width: clamp(38px, 6vw, 76px);
  height: 18px;
  background: #686295;
  mask: url("assets/radio-case/music-wave.png") left center / 100% 100% no-repeat;
  transform: scaleY(var(--rc-amplitude, .75));
  transform-origin: center;
}
.rc-rail label[for="rc-rain"]::after {
  background: #726883;
  mask-image: url("assets/radio-case/rain-wave.png");
}
.rc-art { position: relative; isolation: isolate; }
.rc-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28%;
  left: -14%;
  width: 127%;
  height: 43%;
  opacity: .25;
  background: #f9f6ed;
  mask: url("assets/radio-case/music-wave.png") center / 100% 100% no-repeat;
}
.site-head a:focus-visible, .scene-heading a:focus-visible,
.resume-sheet a:focus-visible { outline-color: var(--orbit-blue); }
body[data-view="radio"] .site-head a:focus-visible { outline-color: #cdd1ff; }

@media (max-width: 640px) {
  .scene-art::before { right: 7.5%; width: 11%; top: 19%; bottom: 14%; }
  .scene-art::after { inset: 23% 0 12% 1%; }
  .scene-heading::before, .project-chapters #worksTitle::before { top: -11px; width: 24px; }
  .rc-art::before { top: 34%; height: 32%; }
}
@media (forced-colors: active) {
  .scene-art::before, .scene-art::after, .rc-art::before, .rc-rail label::after { display:none; }
}
