/* Original Signal artwork + independent optical layers. All actionable glyphs
   remain above the art, with the same geometry and puzzle-controlled rotation. */
.atelier-room { position: fixed; inset: -12px; z-index: 0; overflow: hidden; pointer-events: none; contain: paint; }
.atelier-chamber { position: absolute; inset: 0; opacity: .64; transition: opacity 1.6s ease, filter 1.6s ease; }
.atelier-chamber img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.atelier-room::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#03060a4d, transparent 25%, #03060a38 75%, #03060ab3), radial-gradient(ellipse at 50% 38%, #04060a80 20%, transparent 72%); }
#nxCanvas { opacity: .55; }
#nxStrata { opacity: .55; }
.nx .nx-veil { display: none; }
.atelier-light { position: absolute; inset: -25%; opacity: .18; mix-blend-mode: screen; transform-origin: top center; }
.atelier-light-cold { background: conic-gradient(from 158deg at 25% 0%, transparent 0deg, #a7eaff38 4deg, transparent 10deg); animation: atelier-light 21s ease-in-out infinite alternate; }
.atelier-light-gold { background: conic-gradient(from 190deg at 75% 0%, transparent 0deg, #f0ce9538 4deg, transparent 12deg); animation: atelier-light 27s -10s ease-in-out infinite alternate-reverse; }
.atelier-haze { position: absolute; inset: 52% -20% -16%; background: radial-gradient(ellipse at 25% 50%, #9ccfd014, transparent 45%), radial-gradient(ellipse at 75% 60%, #f0cd9821, transparent 48%); opacity: .6; animation: atelier-haze 26s ease-in-out infinite alternate; }
.atelier-horizon { position: absolute; left: 10%; right: 10%; height: 1px; top: 76%; background: linear-gradient(90deg, transparent, #9ecad530, #f3d9a845, transparent); box-shadow: 0 3px 24px #c6c4ae35; }
.atelier-grain { position: absolute; inset: 0; background-image: radial-gradient(circle, #c3d8db80 .6px, transparent 1px), radial-gradient(circle, #e4c48f66 .7px, transparent 1px); background-size: 137px 173px, 211px 257px; mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); opacity: .25; animation: atelier-dust 32s linear infinite; }
.atelier-apparition { position: absolute; right: 1%; bottom: -16%; width: min(34vw, 470px); opacity: 0; transform: translateY(12px); transition: opacity 2s, transform 3s; }
.atelier-apparition img { width: 100%; height: auto; mask-image: linear-gradient(#000 45%, transparent 94%); }
.s-stageTwo .atelier-chamber { filter: saturate(.5); opacity: .53; }
.s-stageThree .atelier-chamber { filter: sepia(.3); opacity: .48; }
.s-stageFour .atelier-chamber { filter: saturate(.25); opacity: .66; }
.s-stageFive .atelier-chamber { opacity: .36; }
.s-stageFive .atelier-apparition { opacity: .38; transform: none; }
.s-completed .atelier-chamber { opacity: .36; }
.s-mirror .atelier-room { opacity: .24; transition: opacity 2s; }
.atelier-motion { position: fixed; top: 19px; left: 18px; z-index: 46; border: 0; border-bottom: 1px solid #8fa6b05c; background: #04060a85; color: #a9b8bd; padding: 5px 2px; font: 9px ui-monospace, monospace; letter-spacing: 1.5px; cursor: pointer; }
.atelier-motion::before { content: 'Ⅱ'; margin-right: 7px; color: #d7c49c; }
.atelier-motion[aria-pressed='true']::before { content: '▷'; }
.atelier-motion:hover, .atelier-motion:focus-visible { color: #fff0cc; outline: 1px solid #d7c49c; outline-offset: 5px; }

/* Native decorative receivers: no waveform, no clue-bearing cadence. */
.atelier-prop { position: relative; isolation: isolate; width: 164px; height: 112px; margin: -2px auto 20px; pointer-events: none; }
.atelier-prop-metal { position: absolute; width: 110px; height: 110px; left: 27px; top: -3px; object-fit: contain; mix-blend-mode: screen; filter: saturate(.2) brightness(.9); animation: atelier-turn 80s linear infinite; }
.atelier-prop-metal { mask-image: radial-gradient(circle, #000 62%, transparent 68%); }
.atelier-prop-heart { position: absolute; width: 22px; height: 22px; left: calc(50% - 11px); top: 41px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #ddf7ff, #36616c 23%, #0e191f 56%, #020406 72%); box-shadow: 0 0 20px #8ec8d83d, inset -2px -2px 8px #000; }
.atelier-prop-orbit { position: absolute; left: 1px; right: 1px; top: 22px; height: 60px; border: 1px solid #9bbbc64f; border-radius: 50%; transform: rotate(-24deg); animation: atelier-orbit 14s ease-in-out infinite alternate; }
.atelier-prop-orbit-inner { left: 15px; right: 15px; top: 10px; height: 86px; border-style: dashed; border-color: #bba26b38; transform: rotate(32deg); animation-direction: alternate-reverse; animation-duration: 19s; }
.atelier-prop-reflection { position: absolute; left: -32px; right: -32px; bottom: -9px; height: 23px; border: 1px solid #bdd7db18; border-radius: 50%; background: radial-gradient(ellipse, #b6d5df16, transparent 70%); transform: scaleY(.4); }
.nx-wave-row { perspective: 1000px; }
.nx-wave { border-radius: 3px; border-color: #9dcbd433; background: radial-gradient(ellipse at 50% 35%, #36515d3d, transparent 70%), linear-gradient(160deg, #101f28ee, #060d13f5); }
.nx-wave::before { border-radius: 0; border-color: #b1dae118; }
.nx-wave::after { opacity: .25; }
.nx-wave-tag { color: #bdd5dc; opacity: .8; }
.nx-lead { opacity: .9; color: #b1c3ca; }
.nx-sub { opacity: .88; }
.nx-h { text-shadow: 0 2px 24px #000; letter-spacing: 2px; }
.nx-head { padding: 10px 20px 15px; background: radial-gradient(ellipse, #04060a94, transparent 73%); }
.nx-core { box-sizing: border-box; transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1); }
.atelier-arrival { animation: atelier-arrive .8s var(--atelier-delay, 0ms) cubic-bezier(.22,1,.36,1) backwards; }

/* Archaeological specimens. The photograph turns with the entire record;
   the fragment glyph stays the brightest, thickest line in every quadrant. */
.atelier-relic-metal { opacity: .38; }
.nx-relic-echo { opacity: .08; }
.nx-frag[data-art='tablet'] .atelier-relic-metal { filter: sepia(.6) saturate(.45); opacity: .3; }
.nx-frag[data-art='starmap'] .atelier-relic-metal { filter: saturate(.5); }
.nx-frag[data-art='sequence'] .atelier-relic-metal { filter: sepia(.2); opacity: .42; }
.nx-frag[data-art='mechanism'] .atelier-relic-metal { filter: saturate(.25); }
.nx-frag:not(.placed) { box-shadow: 0 12px 35px #0008, inset 0 1px 2px #d9d6be24; }
.nx-disc-dress { filter: brightness(1.35); }
.nx-disc-glyph { color: #d6f2f7; filter: drop-shadow(0 0 1px #04060a); }
.nx-frag.placed .atelier-relic-metal { opacity: .12; }
.nx-frag.placed .nx-disc-dress { opacity: .36; }
.nx-lightbox { background-color: #050a0ddd; box-shadow: 0 0 80px #91b5bf0a, inset 0 0 70px #0009; }

/* A physical instrument behind the live dial. CSS masks split one photograph
   into independent material rings without touching the playable canvas. */
.nx-conv-stage { border-radius: 50% 50% 8px 8px / 12% 12% 8px 8px; background: radial-gradient(ellipse, #18160fb3, #030508eb 74%); overflow: hidden; border-color: #d6bd773d; }
.nx-conv-stage::before { inset: -12%; background-image: url('../assets/signal-atelier/instrument-1200.webp'); opacity: .5; filter: saturate(.65); mask-image: radial-gradient(circle, transparent 0 30%, #000 31% 46%, transparent 47%); animation: atelier-turn 140s linear infinite; }
.nx-conv-stage::after { background: radial-gradient(ellipse, transparent 40%, #02040785 100%); }
.nx-conv-telemetry { background: #080c0ed9; }

.atelier-resonator { width: 220px; height: 145px; margin: 5px auto 26px; }
.atelier-resonator .atelier-prop-metal { width: 142px; height: 142px; left: 39px; top: -7px; filter: saturate(.25); animation-direction: reverse; }
.atelier-resonator .atelier-prop-heart { top: 53px; }
.atelier-resonator .atelier-prop-orbit { top: 36px; height: 60px; border-color: #dbd8c454; }
.atelier-resonator .atelier-prop-orbit-inner { top: 22px; height: 94px; }
.nx-mirror::before { background-image: url('../assets/signal-atelier/observer-640.webp'), url('../assets/signal-atelier/observer-640.webp'); opacity: .33; background-size: auto 115%; }
.nx-cell { border-radius: 3px; background: linear-gradient(155deg, #333b3de8, #080e13f5 62%); border-color: #d7cfad4a; }
.nx-cell::after { background: linear-gradient(130deg, transparent 24%, #e9e8d914 45%, transparent 61%); transform: translateX(-100%); animation: atelier-key-glint 11s ease-in-out infinite; animation-delay: calc(var(--atelier-key, 0) * .3s); }
.nx-cell.on { background: linear-gradient(150deg, #5d5743, #151916); }
.nx-cell.echo { background: linear-gradient(150deg, #215363, #07131b); }
.nx-cell.live { background: linear-gradient(150deg, #5d5743, #151916); }
.nx-cell i { width: 10px; height: 20px; border-radius: 2px; }

.atelier-witness { width: 140px; height: 112px; margin: -10px auto 12px; overflow: hidden; }
.atelier-witness-art { position: absolute; height: 128px; width: auto; left: 50%; top: 0; transform: translateX(-50%); opacity: .83; mask-image: linear-gradient(#000 60%, transparent); }
.atelier-witness .atelier-prop-orbit { inset: 8px 15px 4px; height: auto; transform: none; border-color: #d6c79f45; }
.atelier-witness .atelier-prop-orbit-inner { inset: 0 7px; border-style: solid; }
.atelier-witness-scan { position: absolute; inset: 0; background: linear-gradient(transparent, #d8e1d740, transparent); height: 20%; transform: translateY(-100%); animation: atelier-witness-scan 7s ease-in-out infinite; mix-blend-mode: screen; }
.nx-dossier::before { display: none; }
.nx-you, .nx-transcript { background-color: #060a0ddd; border-radius: 2px; }
.nx-rec { border-radius: 2px; background: linear-gradient(145deg, #20282ceb, #080d12f5); }
.nx-rec::before { border-style: dashed; animation: atelier-turn 60s linear infinite; }
.nx-rec::after { height: 30%; top: -30%; background: linear-gradient(transparent, #b8d5db0c, transparent); animation: atelier-witness-scan 13s linear infinite; }
.nx-rec dt { opacity: .67; }
.nx-rec dl { font-size: .65rem; letter-spacing: 1px; gap: 5px 8px; }
.nx-transcript h3 { opacity: 1; }

/* Chapters dissolve through the same room; no full-screen white hit. */
.nx-chapter { background: radial-gradient(ellipse, #04060af5 5%, #04060ad9 40%, #04060a94); transition: opacity .55s ease; }
.nx-chapter-plate { background-image: url('../assets/signal-atelier/instrument-640.webp'); opacity: .34; }
.nx-chapter-roman i { filter: none; animation: atelier-chapter-glyph .7s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(var(--i) * .05s); }
.nx-chapter.out { transition: opacity .8s ease; }
@keyframes atelier-chapter-glyph { from { opacity: 0; transform: translateY(.12em) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes atelier-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes atelier-turn { to { rotate: 360deg; } }
@keyframes atelier-orbit { from { transform: rotate(-24deg) scaleY(.72); } to { transform: rotate(24deg) scaleY(1); } }
@keyframes atelier-light { from { transform: rotate(-3deg); opacity: .2; } to { transform: rotate(4deg); opacity: .45; } }
@keyframes atelier-haze { to { transform: translate3d(6%, -4%, 0); opacity: 1; } }
@keyframes atelier-dust { to { transform: translateY(-173px); } }
@keyframes atelier-key-glint { 0%, 70% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
@keyframes atelier-witness-scan { 0%, 12% { transform: translateY(-100%); opacity: 0; } 25% { opacity: .6; } 82% { opacity: .6; } 100% { transform: translateY(650%); opacity: 0; } }
.atelier-offscreen, .atelier-offscreen *, .atelier-offscreen::before, .atelier-offscreen::after { animation-play-state: paused !important; }
/* Entry reveals finish even below the fold. Only continuous decoration pauses
   there, so a full-page view or a fast scroll never reveals blank records. */
.atelier-arrival.atelier-offscreen { animation-play-state: running !important; }
.atelier-still .atelier-room *, .atelier-still .atelier-prop *, .atelier-still .nx-cell::after, .atelier-still .nx-rec::before, .atelier-still .nx-rec::after, .atelier-still .nx-conv-stage::before, .atelier-still .nx-wave::after { animation-play-state: paused !important; }
.atelier-still .atelier-arrival { animation: none; }
/* The site's search dock belongs to the surface, outside the fiction. */
body:has(#nexus) .argo-dock { display: none; }
body.has-argo-dock:has(#nexus) { padding-bottom: 0; }
@media (max-width: 820px) {
  .atelier-chamber { opacity: .5; }
  .atelier-chamber img { object-position: center; }
  .atelier-grain { display: none; }
  .atelier-prop { scale: .85; margin-top: -12px; margin-bottom: 5px; }
  .atelier-apparition { display: none; }
  .nx-mirror::before { opacity: .16; }
  .nx-conv-stage::before { background-image: url('../assets/signal-atelier/instrument-640.webp'); }
  .nx-wave { height: 170px; }
  .nx-head { padding-inline: 0; }
}
@media (max-width: 480px) {
  .atelier-motion { left: 12px; top: 23px; font-size: 8px; letter-spacing: .5px; }
  .nx-h { letter-spacing: .6px; }
  .nx-mirror::before { display: none; }
  .atelier-witness { height: 94px; margin-bottom: 0; }
  .nx-core { padding-inline: 16px; }
  .nx-rec dl { font-size: .6rem; gap: 4px 5px; letter-spacing: .5px; }
  .nx-rec dd { overflow-wrap: anywhere; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-room *, .atelier-prop *, .nx-cell::after, .nx-rec::before, .nx-rec::after, .nx-conv-stage::before { animation: none !important; }
  .atelier-arrival { animation: none; }
  .atelier-chamber, .atelier-apparition, .nx-core { transition: opacity .15s !important; transform: none; }
}

/* The archive's women are full-length foreground cutouts. Their feet are
   anchored to the floor; only reflected light moves, never their position. */
.atelier-room { transition: opacity 1s ease; }
.atelier-room::after { z-index: 1; }
.atelier-chamber { z-index: 0; }
.nx .atelier-gallery { opacity: 0; visibility: hidden; filter: none; }
#nexus .nx-veil { display: none !important; }
.atelier-light, .atelier-haze, .atelier-grain, .atelier-horizon { z-index: 1; }
.atelier-attendants, .atelier-circle { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.atelier-figure { position: absolute; left: var(--figure-x); bottom: calc(100% - var(--figure-foot)); height: var(--figure-height); width: calc(var(--figure-height) * .666667); transform: translateX(-50%); isolation: isolate; }
.atelier-figure img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 12px #0007); animation: atelier-figure-light 15s ease-in-out infinite alternate; }
.atelier-figure::after { content: ''; position: absolute; left: 23%; right: 17%; bottom: 1%; height: 3%; border-radius: 50%; background: #010204b3; box-shadow: 0 2px 14px 5px #0009, 0 0 16px #d1bd9133; }
.s-stageOne .atelier-attendants, .s-stageFour .atelier-attendants, .s-stageFive .atelier-attendants, .s-stageTwo .atelier-circle { opacity: 1; visibility: visible; }
.s-stageTwo .atelier-circle-1, .s-stageTwo .atelier-circle-4 { filter: brightness(.9); }
.s-stageTwo .atelier-circle-2, .s-stageTwo .atelier-circle-3 { filter: brightness(.78); }
.s-stageFour .atelier-pool, .s-stageFive .atelier-pool { opacity: 0; visibility: hidden; transition: none; }
.nx.s-stageFour .atelier-gallery, .nx.s-stageFive .atelier-gallery { opacity: .72; visibility: visible; filter: none; }
.s-stageFour .atelier-horizon, .s-stageFive .atelier-horizon { display: none; }
.s-stageFive .atelier-attendants { opacity: .76; }
/* The tower owns its entire screen. The previous room must never bleed
   through its partially transparent artwork, even during its entrance. */
.s-completed .atelier-room, .s-convergence .atelier-room, .s-mirror .atelier-room { opacity: 0; visibility: hidden; transition: none; }
.nx-reveal { box-sizing: border-box; background-color: #03050a; }
.nx-mirror::before { display: none; background-image: none; }
.atelier-apparition { display: none; }
.nx-conv-stage { border-radius: 12px; }
.nx-conv-stage::before { display: none; background: none; animation: none; }
@keyframes atelier-figure-light { from { filter: drop-shadow(0 5px 12px #0007) brightness(.94); } to { filter: drop-shadow(0 5px 12px #0007) brightness(1.06); } }
.atelier-still .atelier-figure img { animation-play-state: paused; }
@media (min-width: 1200px) {
  .nx.s-stageOne .nx-stage { max-width: 820px; }
  .nx.s-stageOne .nx-wave { height: 190px; }
}
@media (max-width: 1100px) {
  .atelier-attendants .atelier-figure { height: 57vh; width: 38vh; }
  .atelier-attendants .atelier-figure:first-child { left: 5%; }
  .atelier-attendants .atelier-figure:last-child { left: 95%; }
}
@media (max-width: 820px) {
  .atelier-attendants { opacity: .7; }
  .atelier-attendants .atelier-figure { height: 45vh; width: 30vh; }
  .s-stageTwo .atelier-circle .atelier-figure { display: none; }
  .s-stageTwo .atelier-circle .atelier-circle-0, .s-stageTwo .atelier-circle .atelier-circle-5 { display: block; height: 39vh; width: 26vh; bottom: 10%; }
  .atelier-circle-0 { left: 4%; }
  .atelier-circle-5 { left: 96%; }
  .s-stageFive .atelier-attendants { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-figure img { animation: none; }
  .atelier-attendants, .atelier-circle, .atelier-room { transition: none; }
}
@media (max-width: 600px) {
  .atelier-attendants .atelier-figure { height: 34vh; width: 22.6667vh; }
  .atelier-attendants .atelier-figure:first-child { left: 22%; }
  .atelier-attendants .atelier-figure:last-child { left: 78%; }
  .s-stageTwo .atelier-circle .atelier-circle-0, .s-stageTwo .atelier-circle .atelier-circle-5 { height: 31vh; width: 20.6667vh; }
  .atelier-circle-0 { left: 20%; }
  .atelier-circle-5 { left: 80%; }
}

/* Unidentified presences etched in the room's own metal and light. Skin and
   portrait detail are absent in the assets; the lower silhouette dissolves
   into the floor's haze without lifting its ground anchor. */
.atelier-figure { opacity: .6; }
.atelier-figure img { mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 76%, #000b 89%, transparent 100%); filter: brightness(.86) saturate(.72); }
.atelier-figure::after { opacity: .3; }
.atelier-figure::before { content: ''; position: absolute; left: 9%; right: 7%; bottom: 1%; height: 7%; border-radius: 50%; background: radial-gradient(ellipse, #bfc4b51a, transparent 68%); }
.s-stageTwo .atelier-circle-0, .s-stageTwo .atelier-circle-5 { opacity: .55; }
.s-stageTwo .atelier-circle-1, .s-stageTwo .atelier-circle-4 { opacity: .38; }
.s-stageTwo .atelier-circle-2, .s-stageTwo .atelier-circle-3 { opacity: .23; }
.s-stageFour .atelier-figure { opacity: .5; }
.s-stageFive .atelier-figure { opacity: .45; }
@keyframes atelier-figure-light {
  from { filter: brightness(.78) saturate(.64); }
  to { filter: brightness(.94) saturate(.8); }
}
.s-mirror .nx-mirror-screen { justify-content: flex-start; box-sizing: border-box; }
