/* One continuous photograph: never blend independently scaled consoles. */
#top::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to right, #0008, #0003 38%, transparent 65%); pointer-events: none; }
#top .ps-scene { position: absolute; width: auto; height: 100%; aspect-ratio: 2170 / 725; right: 0; top: 0; translate: 7% 0; mask-image: linear-gradient(to right, transparent, #000 10%); }
#top .ps-scene > picture { display: block; width: 100%; height: 100%; }
#top .ps-photo { width: 100%; height: 100%; display: block; }
#top .ps-stage-lighting { position: absolute; left: 0; top: 0; width: 100%; height: 32.5%; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
#top .ps-stage-beam { position: absolute; width: 7%; height: 112%; transform-origin: 50% 0; filter: blur(6px); animation: ps-stage-breathe 8s ease-in-out infinite; }
#top .ps-stage-beam::before { content: ""; position: absolute; inset: 0; clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); background: linear-gradient(to bottom, rgba(255, 225, 171, .9), rgba(249, 186, 89, .32) 64%, transparent); }
#top .ps-stage-beam.s1 { left: 47.25%; top: 6.7%; --ps-angle: -24deg; animation-delay: -2s; }
#top .ps-stage-beam.s2 { left: 51.05%; top: 10.7%; --ps-angle: -17deg; animation-delay: -7s; }
#top .ps-stage-beam.s3 { left: 60.4%; top: 6.8%; --ps-angle: -9deg; animation-delay: -4s; }
#top .ps-stage-beam.s4 { left: 72.7%; top: -1%; --ps-angle: 24deg; animation-delay: -10s; }
/* Floor beams pivot at the photographed fixtures along the stage edge. */
#top .ps-floor-beam { position: absolute; bottom: .2%; width: 5.4%; height: 66%; transform-origin: 50% 100%; filter: blur(2.5px); animation: ps-floor-sweep 7.4s ease-in-out infinite; }
#top .ps-floor-beam::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 52% 100%, 48% 100%); background: linear-gradient(to top, #fff1cddd, #ffd48570 26%, #efb35824 64%, transparent); }
#top .ps-floor-beam.f1 { left: 56.7%; --ps-angle: -8deg; animation-delay: -1s; }
#top .ps-floor-beam.f2 { left: 63.7%; --ps-angle: 5deg; animation-delay: -4s; animation-duration: 8.2s; }
#top .ps-floor-beam.f3 { left: 72.9%; --ps-angle: -5deg; animation-delay: -2s; animation-duration: 6.8s; }
#top .ps-floor-beam.f4 { left: 86.4%; --ps-angle: 8deg; animation-delay: -5s; }
#top .ps-floor-beam.f5 { left: 92.7%; --ps-angle: 12deg; animation-delay: -3s; animation-duration: 8.6s; }
#top .ps-projection { position: absolute; left: 61.5%; top: 9.1%; width: 31%; height: 15.5%; display: grid; place-items: center; transform: skewY(-3deg); color: #fff; text-align: center; font-family: Arial, sans-serif; filter: drop-shadow(0 0 1px #9aaabd); }
#top .ps-stage-slide { position: absolute; width: 100%; opacity: 0; transition: opacity 750ms ease; }
#top .ps-stage-slide.is-current { opacity: 1; }
#top .ps-stage-label { margin: 0 0 8px; color: #e9ad50; font-size: 14px; line-height: 1.15; }
#top .ps-stage-lines { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.15; }
#top .ps-stage-lines span { display: block; white-space: nowrap; }
#top .ps-laptop-space { position: absolute; inset: 0; pointer-events: none; }
#top .ps-laptop-plane { position: absolute; width: 1000px; height: 640px; transform-origin: 0 0; overflow: hidden; clip-path: inset(0); background: #202122; color: #fff; font: 16px Arial, sans-serif; text-rendering: optimizeLegibility; font-kerning: normal; }
/* Paint the entire glass so the photographed interface cannot peek between panels. */
#top .ps-laptop-toolbar { position: absolute; inset: 0 0 auto; height: 6%; display: flex; align-items: center; gap: 16px; padding: 2px 10px; background: #41464b; border-bottom: 2px solid #17191b; }
#top .ps-laptop-toolbar > span { display: grid; justify-items: center; gap: 1px; min-width: 27px; font-size: 8px; line-height: 1; color: #cbd0d3; }
#top .ps-laptop-toolbar > span.is-active { color: #fff; }
#top .ps-laptop-toolbar svg { width: 17px; height: 17px; }
#top .ps-laptop-toolbar-spacer { flex: 1; }
#top .ps-laptop-window-dots { display: flex; gap: 5px; align-self: flex-start; margin-top: 6px; }
#top .ps-laptop-window-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d56d69; }
#top .ps-laptop-window-dots span:nth-child(2) { background: #dbb755; }
#top .ps-laptop-window-dots span:nth-child(3) { background: #69a575; }
#top .ps-laptop-plane::before, #top .ps-laptop-plane::after { content: ''; position: absolute; top: 6%; bottom: 0; background: #292a2c; }
#top .ps-laptop-plane::before { left: 16.8%; width: 1.2%; }
#top .ps-laptop-plane::after { left: 77%; width: 1%; }
#top .ps-laptop-presentation { position: absolute; left: 18%; top: 6%; bottom: 24.5%; width: 59%; overflow: hidden; background: #202122; color: #fff; font: 16px Arial, sans-serif; text-rendering: optimizeLegibility; font-kerning: normal; }
#top .ps-laptop-heading { height: 28px; padding: 2px 8px; background: #1a1b1c; font-size: 18px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#top .ps-laptop-library { position: absolute; left: 0; top: 6%; width: 16.8%; height: 25.5%; background: #393b3d; color: #fff; font-size: 14px; }
#top .ps-laptop-library > small { display: block; padding: 5px; font-size: 11px; color: #e0e0e0; }
#top .ps-laptop-library > span { display: block; padding: 8px 6px; border-left: 5px solid #e7a23a; }
#top .ps-laptop-library > span:nth-of-type(2) { background: #626366; }
#top .ps-laptop-song { position: absolute; left: 0; top: 31.5%; width: 16.8%; height: 44%; background: #393b3d; color: #f3f3f3; font-size: 14px; white-space: nowrap; overflow: hidden; }
#top .ps-laptop-song > span { display: block; padding: 6px 5px; overflow: hidden; text-overflow: ellipsis; }
#top .ps-laptop-song > small { display: block; padding: 4px 5px; font-size: 11px; background: #292a2b; }
#top .ps-laptop-song .is-selected { background: #0874b5; color: #fff; }
#top .ps-laptop-cues { height: calc(100% - 28px); overflow: hidden; background: #202122; }
#top .ps-laptop-media { display: block; position: absolute; left: 18%; top: 75.5%; width: 59%; height: 24.5%; background: #202122; border-top: 2px solid #111; padding: 0 12px 12px; }
#top .ps-laptop-media > small { display: block; height: 26px; font-size: 11px; line-height: 26px; color: #ccc; }
#top .ps-laptop-media > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
#top .ps-laptop-media span { display: block; aspect-ratio: 16/9; background-position: center; background-size: cover; }
#top .ps-laptop-media span:nth-child(1) { background-image: url('./assets/backgrounds/aurora-lake.webp'); }
#top .ps-laptop-media span:nth-child(2) { background-image: url('./assets/backgrounds/morning-clouds.webp'); }
#top .ps-laptop-media span:nth-child(3) { background-image: url('./assets/backgrounds/alpine-dusk.webp'); }
#top .ps-laptop-media span:nth-child(4) { background-image: url('./assets/backgrounds/forest-mist.webp'); }
#top .ps-laptop-row { height: 33.3333%; display: grid; grid-template-columns: 15px 174px minmax(0,1fr); gap: 9px; align-items: center; padding: 6px 10px 6px 0; border: 2px solid transparent; border-bottom-color: #343536; background: #202122; }
#top .ps-laptop-row.is-current { border-color: #e5a53b; background: #463726; }
#top .ps-laptop-cue-number { align-self: stretch; display: block; background: #047bc0; color: #fff; font-size: 14px; padding: 2px; }
#top .ps-laptop-thumbnail { aspect-ratio: 16 / 9; width: 174px; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; padding: 5px; background: #111213; text-align: center; }
#top .ps-laptop-thumbnail p { margin: 0; width: 100%; min-width: 0; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
#top .ps-laptop-row span[data-lyric-line] { display: block; white-space: nowrap; }
#top .ps-laptop-row-copy { min-width: 0; }
#top .ps-laptop-row-copy strong { display: block; color: #ededed; font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
#top .ps-laptop-row-copy p { margin: 0; color: #fff; font-size: 22px; font-weight: 500; line-height: 1.3; }
#top .ps-laptop-output { position: absolute; left: 78%; top: 8%; width: 21%; aspect-ratio: 16/9; overflow: hidden; padding: 8px; display: grid; place-items: center; background: var(--preview-background); color: #fff; text-align: center; }
#top .ps-laptop-slide { position: absolute; left: 8px; right: 8px; opacity: 0; transition: opacity 750ms ease; }
#top .ps-laptop-slide.is-current { opacity: 1; }
#top .ps-laptop-label { margin: 0 0 8px; font-size: 13px; color: #f8c76c; line-height: 1.15; }
#top .ps-laptop-lines { margin: 0; font-size: 19px; line-height: 1.15; font-weight: 600; }
#top .ps-laptop-lines span { display: block; white-space: nowrap; }
#top .ps-laptop-playlists { position: absolute; left: 0; top: 75.5%; width: 16.8%; bottom: 0; background: #353739; border-top: 2px solid #242527; }
#top .ps-laptop-playlists > small { display: block; padding: 7px 6px; font-size: 11px; color: #ccc; }
#top .ps-laptop-playlists > span { display: flex; align-items: center; gap: 5px; padding: 6px; font-size: 12px; }
#top .ps-laptop-playlists svg { width: 13px; height: 13px; color: #b2b6bb; }
#top .ps-laptop-inspector { position: absolute; left: 78%; top: 6%; width: 22%; bottom: 0; background: #333537; }
#top .ps-laptop-output-tools { position: absolute; top: 23%; left: 0; right: 0; border-top: 1px solid #505255; border-bottom: 1px solid #242527; padding: 6px 8px; }
#top .ps-laptop-output-tools > small { font-size: 10px; color: #c9cacc; }
#top .ps-laptop-output-tools > span { display: flex; justify-content: center; gap: 15px; margin-top: 8px; }
#top .ps-laptop-output-tools svg { width: 15px; height: 15px; color: #a5a9ac; }
#top .ps-laptop-audio { position: absolute; top: 39%; left: 0; right: 0; bottom: 4%; background: #303234; border-top: 2px solid #232527; }
#top .ps-laptop-audio > div { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; background: #45484b; }
#top .ps-laptop-audio svg { width: 15px; height: 15px; color: #8abfdb; }
#top .ps-laptop-audio small { font-size: 10px; }
#top .ps-laptop-audio > span { display: block; margin: 8px 0; padding: 5px 8px; background: #414346; font-size: 11px; color: #c8cbcd; }
#top .ps-laptop-status { position: absolute; inset: auto 0 0; height: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: #282a2c; border-top: 1px solid #141516; color: #aeb3b7; font-size: 9px; }
#top .ps-console-space { position: absolute; inset: 0; pointer-events: none; }
#top :is(.ps-console-meters,.ps-console-faders) { position: absolute; transform-origin: 0 0; overflow: hidden; }
#top .ps-console-meters { width: 720px; height: 240px; padding: 19px 22px 21px; display: flex; justify-content: space-between; background: #071012; border: 5px solid #161d1b; box-shadow: inset 0 0 18px #000; }
#top .ps-console-meter { position: relative; display: block; width: 21px; height: 100%; background: #142a23; }
#top .ps-meter-level { position: absolute; inset: 0; background: linear-gradient(to top,#44b57e 0 68%,#bed279 68% 88%,#dda254 88%); mask-image: repeating-linear-gradient(to top,#000 0 8px,transparent 8px 12px); clip-path: inset(var(--meter-low) 0 0); animation: ps-meter-signal var(--meter-duration) steps(8,end) infinite var(--meter-delay); }
#top .ps-meter-peak { position: absolute; left: 0; right: 0; height: 3px; top: var(--meter-low); background: #d7d8ae; opacity: .65; animation: ps-meter-hold calc(var(--meter-duration) * 1.4) steps(5,end) infinite var(--meter-delay); }
#top .ps-console-faders { inset: 0; overflow: visible; }
#top .ps-console-channel { position: absolute; width: 46px; height: 46px; transform-origin: 0 0; overflow: hidden; mask-image: radial-gradient(ellipse,#000 48%,transparent 74%); }
/* Reuse the photographed caps at their native size, with only a tiny trim. */
#top .ps-fader-cap { position: absolute; inset: 0; background-image: url('./assets/hero-panorama-v6.webp'); background-size: 2170px 725px; background-position: var(--fader-x) var(--fader-y); }
#top .ps-console-channel.is-moving .ps-fader-cap { animation: ps-fader-trim 14s ease-in-out infinite var(--fader-delay); }
#top[data-running="false"] :is(.ps-meter-level,.ps-meter-peak,.ps-fader-cap,.ps-stage-beam,.ps-floor-beam) { animation-play-state: paused; }
#top[data-running="false"] .ps-console-channel.is-moving .ps-fader-cap { animation-play-state: paused; }
@keyframes ps-meter-signal { 0%,100% { clip-path: inset(var(--meter-low) 0 0); } 18% { clip-path: inset(var(--meter-high) 0 0); } 36% { clip-path: inset(48% 0 0); } 53% { clip-path: inset(23% 0 0); } 76% { clip-path: inset(62% 0 0); } }
@keyframes ps-meter-hold { 0%,100% { top: var(--meter-low); } 18%,35% { top: var(--meter-high); } 65% { top: 23%; } 85% { top: 49%; } }
@keyframes ps-fader-trim { 0%,16%,100% { transform: translate(0,0); } 34%,50% { transform: translate(3px,-2px); } 72%,86% { transform: translate(-2px,1px); } }
@keyframes ps-stage-breathe { 0%, 100% { opacity: .07; transform: rotate(calc(var(--ps-angle) - 9deg)); } 50% { opacity: var(--ps-stage-strength, .38); transform: rotate(calc(var(--ps-angle) + 9deg)); } }
@keyframes ps-floor-sweep { 0%, 100% { opacity: .22; transform: rotate(calc(var(--ps-angle) - 13deg)) scaleY(.88); } 50% { opacity: .78; transform: rotate(calc(var(--ps-angle) + 13deg)) scaleY(1); } }
@media (min-width: 761px) {
  #top .ps-laptop-media { display: block; }
  #top .ps-projection { left: 65%; top: 8%; width: 24%; height: 17%; }
  #top .ps-stage-lighting { height: 34.5%; }
  #top .ps-stage-beam.s1 { left: 53%; }
  #top .ps-stage-beam.s2 { left: 59%; }
  #top .ps-stage-beam.s3 { left: 66%; }
  #top .ps-stage-beam.s4 { left: 75%; }
  #top .ps-floor-beam.f1 { left: 64%; }
  #top .ps-floor-beam.f2 { left: 68.5%; }
  #top .ps-floor-beam.f3 { left: 73.4%; }
  #top .ps-floor-beam.f4 { left: 86.2%; }
  #top .ps-floor-beam.f5 { left: 91.8%; }
}
@media (max-width: 760px) {
  #top .ps-console-space { display: none; }
  #top::before { display: none; }
  #top .ps-scene { width: max(100%, 510px); height: auto; aspect-ratio: 1672 / 941; left: auto; right: 0; top: 176px; translate: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  #top :is(.ps-meter-level,.ps-meter-peak,.ps-fader-cap) { animation: none !important; }
  #top .ps-stage-slide, #top .ps-laptop-slide { transition: none; }
}
