/* style.css — one warm wall; windows set into it; real objects mounted on it; engraved labels. */
:root {
  --wall: #e7e2d8; --wall2: #ddd6ca; --ink: #39342d; --ink2: rgba(57, 52, 45, .62); --hi: rgba(255, 255, 255, .72);
  --shadow: 52, 38, 20;
  --cols: 3; --namespan: 1; --gx: clamp(22px, 3.6vw, 64px); --gy: clamp(34px, 4.4vw, 70px); --pad: clamp(18px, 4.4vw, 80px);
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
:root.night { --wall: #2b2925; --wall2: #24221f; --ink: #d9d1c4; --ink2: rgba(217, 209, 196, .55); --hi: rgba(0, 0, 0, .55); --shadow: 0, 0, 0; color-scheme: dark; }
@media (min-width: 1580px) { :root { --cols: 4; --namespan: 2; } }
@media (min-width: 2300px) { :root { --cols: 5; --namespan: 4; } }
@media (max-width: 1000px) { :root { --cols: 2; --namespan: 2; } }
@media (max-width: 780px) { :root { --cols: 2; --gx: 14px; --gy: 30px; --pad: 16px; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--wall); overflow-x: hidden; }
body {
  min-height: 100vh; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;   /* clip, not hidden: hidden made the body its own 2 px scroller, and a phone's first swipe caught on it */
  background:
    radial-gradient(120% 80% at 18% -10%, rgba(255, 252, 244, .55), transparent 60%),
    radial-gradient(90% 60% at 100% 110%, rgba(120, 100, 70, .10), transparent 70%),
    var(--wall);
  background-attachment: fixed;
}
:root.night body { background: radial-gradient(120% 80% at 18% -10%, rgba(255, 240, 210, .06), transparent 60%), var(--wall); background-attachment: fixed; }
body::before {   /* powder-coat grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root.night body::before { mix-blend-mode: screen; opacity: .35; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* ---------- the wall ---------- */
.wall { position: relative; z-index: 1; overflow-x: clip; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gy) var(--gx); padding: calc(var(--pad) * .8) var(--pad) calc(var(--pad) * 1.4); max-width: 1900px; margin: 0 auto; }
.mod { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mod.name { grid-column: span var(--namespan); }

/* ---------- the window: set into the wall ---------- */
.win { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #141311; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(var(--shadow), .16), 0 1.5px 0 1px var(--hi), 0 -1px 0 1px rgba(var(--shadow), .10); }
.win .still, .win .vid, .win .sl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.win .still { transition: filter .5s, opacity .5s; }
.screen { position: absolute; inset: 0; }
.vid { opacity: 0; transition: opacity .35s; background: transparent; }
.vid.on { opacity: 1; }
.vid.contain { object-fit: contain; background: transparent; }
.bgblur { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.2); transition: opacity .4s; }
.live .bgblur { animation: fadein .4s both; }
@keyframes fadein { from { opacity: 0; } }
.slides { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: #0f0f0e; }
.slides.on { opacity: 1; }
.sl { opacity: 0; transition: opacity .6s; }
.sl.on { opacity: 1; }
.sl.zoom.on { animation: kb 9s ease-out both; }
.sl.page { object-fit: cover; object-position: 50% 0%; }
.sl.fit { object-fit: contain; padding: 4%; background: radial-gradient(circle at 50% 40%, #2a2724, #121110); }
.sl.page.on { animation: page 16s linear both; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.08); } }
@keyframes page { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
.glass { position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
  background: linear-gradient(162deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 0 3px #121110, inset 0 5px 10px -2px rgba(0, 0, 0, .55), inset 0 0 22px rgba(0, 0, 0, .25); }
.open-btn { position: absolute; inset: 0; z-index: 4; cursor: zoom-in; }
.mod:not(.live) .win .still { filter: saturate(.92) brightness(.97); }
.mod.live .win { box-shadow: 0 0 0 1px rgba(var(--shadow), .16), 0 1.5px 0 1px var(--hi), 0 0 28px -6px color-mix(in srgb, var(--c) 55%, transparent); }
.dot { position: absolute; z-index: 2; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #ff2a2a; opacity: 0; transition: left .18s cubic-bezier(.3, 1.6, .5, 1), top .18s cubic-bezier(.3, 1.6, .5, 1), opacity .15s; box-shadow: 0 0 6px 2px rgba(255, 30, 30, .8), 0 0 18px 6px rgba(255, 0, 0, .35); }
.dot.on { opacity: 1; }

/* ---------- the stage where the object is mounted ---------- */
.stage { position: relative; container-type: inline-size; aspect-ratio: 100 / 44; margin-top: 10px; }
.rig { position: absolute; left: 0; width: 100%; top: calc((44 - var(--h, 40)) / 2 * 1cqw); height: calc(var(--h, 40) * 1cqw); }
.stage.big { aspect-ratio: 100 / var(--h, 40); }
.stage.big .rig { top: 0; }
.lay { position: absolute; inset: 0; pointer-events: none; --lift: 0;
  filter: drop-shadow(calc(.18cqw + var(--lift) * .5cqw) calc(.55cqw + var(--lift) * 1.6cqw) calc(.45cqw + var(--lift) * 1.3cqw) rgba(var(--shadow), .36))
          drop-shadow(0 calc(1.6cqw + var(--lift) * 2.2cqw) calc(2.6cqw + var(--lift) * 2cqw) rgba(var(--shadow), .15)); }
:root.night .lay { filter: drop-shadow(calc(.18cqw + var(--lift) * .5cqw) calc(.55cqw + var(--lift) * 1.6cqw) calc(.45cqw + var(--lift) * 1.3cqw) rgba(0, 0, 0, .6)) drop-shadow(0 calc(1.6cqw + var(--lift) * 2.2cqw) calc(2.6cqw + var(--lift) * 2cqw) rgba(0, 0, 0, .3)); }
.lay img { position: absolute; left: 0; top: 0; height: auto; max-width: none; will-change: transform; }
:root.night .lay img { filter: brightness(.82) saturate(.95); }
.cv { position: absolute; pointer-events: none; }
.cv.fadeb { -webkit-mask: linear-gradient(#000 62%, transparent 96%); mask: linear-gradient(#000 62%, transparent 96%); }
.hit { position: absolute; z-index: 20; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.hit:active { cursor: grabbing; }
.rig.hover .lay { --lift: .35; }
@property --lift { syntax: '<number>'; inherits: true; initial-value: 0; }
.lay { transition: --lift .22s ease-out; }
.rig.stir .lay { --lift: .22; }
.mod.blip .led { animation: pilot .55s linear both; }
.txt { position: absolute; white-space: nowrap; line-height: 1; transform: translateX(-50%); pointer-events: none; z-index: 5; }
.txt[data-align=left] { transform: none; }
.eng { color: var(--ink2); font-weight: 650; font-stretch: 116%; letter-spacing: .16em; text-shadow: 0 1px 0 var(--hi); transition: opacity .3s; }
.eng.dim { opacity: .35; }
.act { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.act:focus-visible { position: absolute; left: 0; right: 0; bottom: 34px; top: auto; width: auto; height: 6px; clip: auto; outline: 2px solid var(--ink); border-radius: 3px; }

/* ---------- labels ---------- */
.lab { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .6em; row-gap: 2px; margin-top: 12px; cursor: pointer; padding-left: 15px; position: relative; }
.led { position: absolute; left: 0; top: .28em; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 45%), color-mix(in srgb, var(--c, #888) 30%, #6f685e);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35), 0 1px 0 var(--hi); transition: background .25s, box-shadow .25s; }
.live .led, .dir .led { background: radial-gradient(circle at 35% 30%, #fff, transparent 50%), var(--c); box-shadow: 0 0 5px var(--c), 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.dir .led { box-shadow: 0 0 3px var(--c); }
.cl { font-size: 10.5px; font-weight: 640; font-stretch: 116%; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); text-shadow: 0 1px 0 var(--hi); }
.cl.px svg { height: 1.05em; vertical-align: -.12em; }
.ti { font-size: 16.5px; font-weight: 640; letter-spacing: -.005em; text-shadow: 0 1px 0 var(--hi); }
@media (max-width: 780px) { .cl { font-size: 9px; letter-spacing: .13em; } .ti { font-size: 14px; } .lab { padding-left: 12px; } .led { width: 6px; height: 6px; } }

/* ---------- the name plate ---------- */
.mod.name .plate { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(14px, 3vw, 44px); height: 100%; }
@media (min-width: 1001px) and (max-width: 1579px) {
  .mod.name .plate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; justify-items: center; text-align: center; gap: 22px; }
  .mod.name .bigbtn { max-width: 230px; }
  .mod.name .keys { justify-content: center; }
  .mod.name .title { font-size: clamp(30px, 3.3vw, 48px); }
}
.bigbtn { position: relative; aspect-ratio: 1; width: 100%; max-width: 290px; justify-self: center; cursor: pointer; filter: drop-shadow(1px 4px 4px rgba(var(--shadow), .35)) drop-shadow(0 18px 26px rgba(var(--shadow), .18)); transition: transform .12s, filter .12s; -webkit-tap-highlight-color: transparent; }
.bigbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bigbtn.down, .bigbtn:active { transform: translateY(2px) scale(.975); filter: drop-shadow(0 1px 1.5px rgba(var(--shadow), .4)) drop-shadow(0 8px 14px rgba(var(--shadow), .15)); }
.title { margin: 0; font-weight: 800; font-stretch: 122%; font-size: clamp(28px, 3.7vw, 66px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1.5px 0 var(--hi), 0 -1px 0 rgba(var(--shadow), .18); }
.keys { display: flex; align-items: flex-end; gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(14px, 2.2vw, 30px); }
.keys .key, .keys .tog { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.keys .tog span, .keys .key span { white-space: nowrap; }
@media (max-width: 780px) { .keys span { letter-spacing: .1em; font-size: 8.5px; } .keys { gap: 18px; } }
.keys span, .topbar span, .sheet .x span { font-size: 9.5px; font-weight: 700; font-stretch: 116%; letter-spacing: .18em; color: var(--ink2); text-shadow: 0 1px 0 var(--hi); }
.key img { width: clamp(42px, 4.4vw, 60px); filter: drop-shadow(1px 3px 2px rgba(var(--shadow), .3)) drop-shadow(0 8px 10px rgba(var(--shadow), .15)); transition: transform .08s, filter .08s; }
.key.down img, .key:active img { transform: translateY(2px) scale(.97); filter: drop-shadow(0 1px 1px rgba(var(--shadow), .35)); }
.keys .key span { position: static; }
.tog { width: clamp(30px, 3vw, 40px); }
.tog img { width: 100%; filter: drop-shadow(1px 3px 2px rgba(var(--shadow), .3)); }
.tog .d { display: none; } .tog.off .u { display: none; } .tog.off .d { display: block; }
.tog .u { margin-bottom: 0; }

/* ---------- the opening: one button ---------- */
.hero { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; align-content: center; gap: clamp(18px, 3vh, 34px); pointer-events: none; }
body.off .hero, body.growing .hero { display: grid; }
.hb { width: min(40vmin, 330px); aspect-ratio: 1; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hb img { width: 100%; display: block; filter: drop-shadow(2px 7px 6px rgba(var(--shadow), .38)) drop-shadow(0 30px 40px rgba(var(--shadow), .2)); transition: transform .12s ease, filter .12s; transform-origin: 50% 50%; }
.hb.down img { transform: translateY(4px) scale(.965); filter: drop-shadow(0 2px 2px rgba(var(--shadow), .45)) drop-shadow(0 12px 18px rgba(var(--shadow), .18)); }
.hero.go .hb img { transition: transform .78s cubic-bezier(.5, 0, .1, 1), filter .78s; }
.hn { margin: 0; font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 3.2vw, 44px); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); text-shadow: 0 1.5px 0 var(--hi), 0 -1px 0 rgba(var(--shadow), .2); transition: opacity .35s; }
.hero.go .hn { opacity: 0; }
.hero.gone { visibility: hidden; }
body.off .wall, body.growing .mod { opacity: 0; }
body.off .wall { pointer-events: none; }
body.growing .mod.name { opacity: 1; }
body.growing .mod.name .bigbtn img, body.growing .mod.name .title, body.growing .mod.name .keys { opacity: 0; }
body.growing .mod.name.here .bigbtn img { opacity: 1; }
body.growing.boot .mod.name.here .title, body.growing.boot .mod.name.here .keys { opacity: 1; transition: opacity .5s .1s; }
body.boot .mod:not(.name) { animation: mount .62s cubic-bezier(.2, 1.35, .35, 1) var(--d, 0ms) both; }
body.boot .mod:not(.name) .still { animation: power .9s ease-out var(--d, 0ms) both; }
body.boot .mod:not(.name) .led { animation: pilot .5s linear calc(var(--d, 0ms) + 180ms) both; }
@keyframes mount { from { opacity: 0; transform: translateY(22px) scale(.965); } to { opacity: 1; transform: none; } }
@keyframes power { 0% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3) saturate(0); } 35% { clip-path: inset(49% 0 49% 0); filter: brightness(2.5) saturate(0); } 70% { clip-path: inset(0 0 0 0); filter: brightness(1.4) saturate(.6); } 100% { clip-path: inset(0); filter: saturate(.92) brightness(.97); } }
@keyframes pilot { 0%, 100% { background: radial-gradient(circle at 35% 30%, #fff, transparent 50%), color-mix(in srgb, var(--c) 30%, #6f685e); } 30%, 60% { background: radial-gradient(circle at 35% 30%, #fff, transparent 50%), var(--c); box-shadow: 0 0 8px var(--c); } }

/* ---------- individual controls ---------- */
.groove { position: absolute; border-radius: 99px; background: linear-gradient(180deg, rgba(var(--shadow), .55), rgba(var(--shadow), .22) 55%, rgba(255, 255, 255, .25)); box-shadow: inset 0 1.5px 2px rgba(0, 0, 0, .45), 0 1px 0 var(--hi); }
.groove.snow { }
.tick { position: absolute; width: 3cqw; height: .35cqw; background: var(--ink2); opacity: .5; transform: translateY(-50%); border-radius: 1px; box-shadow: 0 1px 0 var(--hi); }
.tick.big { width: 4.2cqw; opacity: .8; }
.starglow { position: absolute; width: 13.5cqw; height: 13.5cqw; transform: translate(-50%, -50%); pointer-events: none; z-index: 4; opacity: 0; transition: opacity .18s;
  clip-path: polygon(50% 3%, 61% 37%, 97% 37%, 68% 58%, 79% 92%, 50% 71%, 21% 92%, 32% 58%, 3% 37%, 39% 37%);
  background: radial-gradient(circle at 50% 55%, rgba(255, 246, 200, .95), rgba(255, 196, 64, .55) 45%, rgba(255, 160, 20, .0) 75%); mix-blend-mode: screen; }
.starglow.on { opacity: 1; }
.starglow.press { opacity: .45; }
.starglow.twinkle { animation: tw .32s ease-in-out infinite alternate; }
@keyframes tw { to { filter: brightness(1.8); } }
.echoring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from 0deg, #0ff 0deg, #2c7bff 90deg, #00e5ff 180deg, #1a5cff 270deg, #0ff 360deg);
  -webkit-mask: radial-gradient(circle, transparent 46.6%, #000 47.4%, #000 49.2%, transparent 50%); mask: radial-gradient(circle, transparent 46.6%, #000 47.4%, #000 49.2%, transparent 50%);
  filter: drop-shadow(0 0 3px #38d8ff) drop-shadow(0 0 8px rgba(40, 180, 255, .8)); }
.echoring.on { opacity: 1; }
.echoring.spin { animation: spin 1.1s linear 2; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.kevin { font-weight: 800; letter-spacing: .04em; color: rgba(120, 112, 104, .55); transition: color .15s, transform .1s; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.kevin.lit { background: linear-gradient(90deg, #a24cff, #ff3e88 60%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.kevin.press { transform: translateX(-50%) translateY(.4cqw); }
.tape { position: absolute; z-index: 2; pointer-events: none; border-radius: .3cqw;
  background: linear-gradient(90deg, rgba(196, 160, 100, .42), rgba(255, 236, 190, .58) 30%, rgba(210, 172, 112, .44) 55%, rgba(255, 240, 205, .5) 80%, rgba(186, 150, 96, .4));
  box-shadow: 0 0 0 .1cqw rgba(140, 100, 50, .15), inset 0 0 1cqw rgba(255, 255, 255, .25); }
.micglow { position: absolute; width: 4.6cqw; height: 4.6cqw; transform: translate(-50%, -50%); border-radius: 50%; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .2s;
  box-shadow: 0 0 0 .45cqw #39a7ff, 0 0 1.4cqw .5cqw rgba(57, 167, 255, .8); }
.micglow.on { opacity: 1; animation: listen 1.2s ease-in-out infinite alternate; }
@keyframes listen { to { box-shadow: 0 0 0 .45cqw #7cc6ff, 0 0 2.4cqw .9cqw rgba(57, 167, 255, .9); } }
.dial { position: absolute; z-index: 2; border-radius: 1.4cqw; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 120%, #ffcf73, #f2c069 40%, #d9a24f 75%, #b98436); box-shadow: inset 0 0 0 .9cqw #2b1d14, inset 0 0 0 1.2cqw rgba(255, 220, 160, .25), inset 0 1.4cqw 2cqw rgba(0, 0, 0, .45), 0 .5cqw .6cqw rgba(var(--shadow), .35), 0 1.4cqw 2.4cqw rgba(var(--shadow), .15); }
:root.night .dial { filter: brightness(1.05); box-shadow: inset 0 0 0 .9cqw #2b1d14, inset 0 1.4cqw 2cqw rgba(0, 0, 0, .45), 0 0 3cqw rgba(255, 180, 80, .22), 0 .5cqw .6cqw rgba(0, 0, 0, .5); }
.dial .glass { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%); z-index: 3; pointer-events: none; }
.dial .ticks { position: absolute; left: 3.5cqw; right: 3.5cqw; top: 2.6cqw; height: 2cqw; background: repeating-linear-gradient(90deg, rgba(60, 30, 8, .8) 0 .22cqw, transparent .22cqw 1.9cqw); }
.dial u { position: absolute; top: 5.2cqw; transform: translateX(-50%); text-decoration: none; font-size: 2.4cqw; font-weight: 700; font-stretch: 88%; color: rgba(60, 30, 8, .82); font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.dial em { position: absolute; bottom: 2.4cqw; width: 1.6cqw; height: 1.6cqw; margin-left: -.8cqw; border-radius: 50%; background: rgba(70, 36, 10, .55); box-shadow: inset 0 .2cqw .3cqw rgba(0, 0, 0, .4); transition: background .2s, box-shadow .2s; }
.dial em.on { background: #ff4a1c; box-shadow: 0 0 1cqw rgba(255, 90, 30, .95); }
.dial .needle { position: absolute; top: 1.1cqw; bottom: 1.1cqw; width: .55cqw; margin-left: -.27cqw; background: #c4140a; box-shadow: .2cqw 0 .5cqw rgba(0, 0, 0, .35); border-radius: .25cqw; z-index: 2; }
.now { letter-spacing: .14em; color: var(--ink); opacity: .8; }

.hands { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; filter: drop-shadow(.2cqw .5cqw .4cqw rgba(var(--shadow), .35)); }
.hands i { position: absolute; left: 50%; bottom: 50%; background: #161412; border-radius: 1cqw; transform-origin: 50% 100%; }
.hands .hr { width: 1.5cqw; height: 24%; margin-left: -.75cqw; }
.hands .mn { width: 1cqw; height: 37%; margin-left: -.5cqw; }
.hands b { position: absolute; left: 50%; top: 50%; width: 2.2cqw; height: 2.2cqw; margin: -1.1cqw; border-radius: 50%; background: #c8102e; box-shadow: 0 0 0 .4cqw #161412; }
.loopring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 3;
  background: conic-gradient(from 0deg, rgba(255, 170, 60, 0) 0deg, rgba(255, 170, 60, 0) 250deg, rgba(255, 190, 90, .95) 340deg, rgba(255, 240, 200, 1) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 37%, #000 38.5%, #000 48%, transparent 49.5%); mask: radial-gradient(circle, transparent 37%, #000 38.5%, #000 48%, transparent 49.5%);
  animation: chase 1.25s linear infinite; mix-blend-mode: screen; filter: blur(.25cqw); }
.loopring.broken { animation: none; background: rgba(110, 230, 140, .9); filter: blur(.35cqw) drop-shadow(0 0 1.2cqw rgba(90, 220, 120, .9)); }
@keyframes chase { to { transform: translate(-50%, -50%) rotate(360deg); } }
.tank { position: absolute; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; clip-path: ellipse(40% 33% at 50% 42%); }
.fish { position: absolute; left: 31%; top: 30%; width: 38%; height: auto; opacity: .95; filter: saturate(1.1) drop-shadow(0 .2cqw .2cqw rgba(0, 0, 0, .2)); }
:root.night .fish { filter: brightness(.8); }
.stage .seg { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 1.2cqw; padding: 0 2cqw; pointer-events: none; background: none; box-shadow: none; width: auto; height: auto; border-radius: 0; }
.stage .seg svg { height: 62%; width: auto; overflow: visible; filter: drop-shadow(0 0 .5cqw rgba(255, 40, 20, .55)); }
.stage .seg b { font-size: 1.7cqw; font-weight: 800; color: #ff3b24; letter-spacing: .1em; align-self: flex-end; margin-bottom: 1.4cqw; opacity: .9; text-shadow: 0 0 .5cqw rgba(255, 40, 20, .5); }
.stage .seg .colon { animation: blink 1s steps(1) infinite; }
.stage .seg.blink { animation: blink .18s steps(1) 5; }
.stage .seg.lock svg { animation: blink .14s steps(1) 6; }
@keyframes blink { 50% { opacity: .15; } }
.scale { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.scale i { position: absolute; left: 50%; top: 0; width: .4cqw; height: 50%; margin-left: -.2cqw; transform-origin: 50% 100%; }
.scale i::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2.4cqw; background: var(--ink2); border-radius: .2cqw; box-shadow: 0 1px 0 var(--hi); }
.url { font-size: 3.4cqw; font-weight: 600; font-stretch: 100%; letter-spacing: .01em; color: var(--ink); text-shadow: 0 1px 0 var(--hi); }
.url b { color: #d6111e; font-weight: 800; }
.amason .pixel, .cl .pixel { display: block; height: 1em; width: auto; }
.pixel rect { fill: #44b55a; } .pixel .sq { fill: #c99a2e; }
.amason { opacity: .38; transition: opacity .2s; }
.amason.lit { opacity: 1; filter: drop-shadow(0 0 .6cqw rgba(68, 181, 90, .5)); }
.lamplight { position: absolute; width: 70cqw; height: 46cqw; transform: translate(-50%, 0); pointer-events: none; z-index: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 214, 120, .75), rgba(255, 190, 90, .25) 45%, transparent 75%); mix-blend-mode: soft-light; }
:root.night .lamplight { mix-blend-mode: screen; background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 200, 110, .45), rgba(255, 180, 80, .12) 45%, transparent 75%); }
.lampon .lamplight { opacity: 1; }
.lampon .win .glass { box-shadow: inset 0 0 0 3px #121110, inset 0 5px 10px -2px rgba(0, 0, 0, .55), inset 0 -30px 60px -30px rgba(255, 200, 100, .35); }
.lightson .rig::before { content: ''; position: absolute; inset: -20% -10%; background: radial-gradient(closest-side, rgba(255, 220, 160, .55), transparent); mix-blend-mode: soft-light; pointer-events: none; }
:root.night .lightson .rig::before { mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(255, 210, 140, .22), transparent); }
.spark .rig::after { content: ''; position: absolute; left: 63%; top: 30%; width: 10cqw; height: 10cqw; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 220, .95), rgba(120, 190, 255, .4) 35%, transparent 70%); border-radius: 50%; animation: spark .35s ease-out both; pointer-events: none; z-index: 9; }
@keyframes spark { from { opacity: 1; transform: translate(-50%, -50%) scale(.4); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
.lay.ring img { animation: ring .09s linear 14 alternate; }
@keyframes ring { from { translate: -.3cqw 0; } to { translate: .3cqw 0; } }
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }

/* ---------- the project, opened ---------- */
body.opened { overflow: hidden; }
.open { position: fixed; inset: 0; z-index: 50; background: transparent; transition: background .45s ease; }
.open.in { background: var(--wall); }
.open.leave { background: transparent; transition: background .45s ease .05s; }
.ov-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ov { position: relative; max-width: 1560px; margin: 0 auto; padding: 0 var(--pad) 90px; }
.topbar { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; padding: 14px 0 18px; background: linear-gradient(var(--wall) 78%, transparent); }
.back { display: flex; align-items: center; gap: 10px; }
.back img { width: 40px; filter: drop-shadow(1px 3px 2px rgba(var(--shadow), .3)); transition: transform .08s; }
.back:active img { transform: translateY(1.5px) scale(.96); }
.nav { display: flex; gap: 10px; }
.nav .key { position: relative; display: grid; place-items: center; }
.nav .key img { width: 46px; }
.nav .key span { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; letter-spacing: 0; color: rgba(40, 36, 30, .75); text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.top { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(260px, 1fr); gap: clamp(22px, 3.4vw, 56px); align-items: start; }
.herobox .win { width: 100%; will-change: transform; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; }
.lab.big { margin-top: 0; cursor: default; padding-left: 18px; }
.lab.big .led { width: 9px; height: 9px; top: .3em; }
.lab.big .cl { font-size: 12px; width: 100%; }
.lab.big .ti { font-size: clamp(26px, 2.6vw, 40px); font-weight: 720; letter-spacing: -.015em; line-height: 1.02; margin-top: 4px; }
.line { margin: 14px 0 6px; font-size: 16px; line-height: 1.45; max-width: 34em; color: var(--ink); opacity: .86; }
.side .stage { width: 100%; max-width: 440px; margin-top: 18px; }
.open:not(.in) .topbar, .open:not(.in) .side, .open:not(.in) .work { opacity: 0; transform: translateY(16px); }
.open .topbar, .open .side, .open .work { transition: opacity .45s .2s, transform .55s cubic-bezier(.2, .9, .2, 1) .2s; }
.open.leave .topbar, .open.leave .side, .open.leave .work { transition: opacity .2s, transform .3s; }
.ov.swap .top, .ov.swap .work { animation: swap .5s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); } to { opacity: 1; transform: none; } }
.work { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: clamp(34px, 4.5vw, 64px); }
.ws h3 { margin: 0 0 6px; font-size: 11px; font-weight: 700; font-stretch: 116%; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); text-shadow: 0 1px 0 var(--hi); }
.ws .sc { margin: 0 0 18px; max-width: 46em; font-size: 15px; line-height: 1.5; opacity: .85; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px 22px; }
.films:has(.film.tall) { grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); }
.film { margin: 0; }
.fw { position: relative; display: block; width: 100%; border-radius: 8px; overflow: hidden; background: #141311; box-shadow: 0 0 0 1px rgba(var(--shadow), .16), 0 1.5px 0 1px var(--hi); }
.fw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #121110, inset 0 5px 10px -2px rgba(0, 0, 0, .55); border-radius: inherit; pointer-events: none; }
.fw .play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: rgba(20, 18, 16, .55); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .15s, background .15s; }
.fw .play::after { content: ''; position: absolute; left: 21px; top: 17px; border: 10px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.fw:hover .play { transform: scale(1.08); background: rgba(20, 18, 16, .75); }
.film.playing .play, .film.playing img { display: none; }
.fw iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.film figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 14px; }
.film figcaption b { font-weight: 620; }
.film figcaption span { color: var(--ink2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.film.nofilm .fw { animation: nudge .3s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.imgs { display: grid; gap: 18px; align-items: start; }
.imgs.full { grid-template-columns: minmax(0, 1fr); }
.imgs.full .im { max-width: min(100%, 1100px); }
.imgs.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.imgs.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.im { margin: 0; border-radius: 6px; overflow: hidden; background: #141311; box-shadow: 0 0 0 1px rgba(var(--shadow), .14), 0 1.5px 0 1px var(--hi); }
.im img { display: block; width: 100%; height: auto; }
.imgs + .imgs { margin-top: 18px; }
.radio { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.radio li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(80px, 34%); align-items: center; gap: 14px; }
.rb img { width: 40px; display: block; filter: drop-shadow(1px 3px 2px rgba(var(--shadow), .3)); transition: transform .08s; }
.radio li.on .rb img { transform: translateY(1.5px) scale(.96); filter: drop-shadow(0 1px 1px rgba(var(--shadow), .35)) drop-shadow(0 0 8px color-mix(in srgb, var(--c) 70%, transparent)); }
.rt { font-size: 15px; font-weight: 600; }
.radio .prog { position: relative; display: block; height: 4px; border-radius: 4px; background: rgba(var(--shadow), .2); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25), 0 1px 0 var(--hi); padding: 0; }
.radio .prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--c); border-radius: 4px; }
.credits p { margin: 0; max-width: 60em; font-size: 14px; line-height: 1.6; opacity: .8; }
@media (max-width: 900px) {
  .top { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side .stage { max-width: 360px; align-self: center; }
  .imgs.row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .imgs.row-2 { grid-template-columns: minmax(0, 1fr); } .films { gap: 20px; } }

/* ---------- index and about ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(30, 24, 16, 0); transition: background .35s; }
.sheet.in { background: rgba(30, 24, 16, .32); }
.sh-in { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 16px; padding: 30px 30px 26px;
  background: linear-gradient(180deg, #f1ede5, #e4ded3); color: #39342d; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px -20px rgba(30, 20, 10, .55), 0 0 0 1px rgba(60, 50, 40, .14);
  transform: translateY(20px) scale(.98); opacity: 0; transition: transform .4s cubic-bezier(.2, 1.2, .3, 1), opacity .25s; }
:root.night .sh-in { background: linear-gradient(180deg, #34312c, #2b2925); color: #e2dacd; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.sheet.in .sh-in { transform: none; opacity: 1; }
.sheet .x { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 8px; }
.sheet .x img { width: 34px; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .25)); }
.dir { list-style: none; margin: 34px 0 0; padding: 0; columns: 2 280px; column-gap: 30px; }
.dir li { break-inside: avoid; }
.dir button { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 8px 8px 8px 22px; border-radius: 8px; }
.dir button:hover { background: rgba(var(--shadow), .07); }
.dir .led { left: 8px; top: 13px; }
.dir .cl { font-size: 9.5px; }
.dir b { font-size: 15.5px; font-weight: 640; }
.ab h2 { margin: 6px 0 2px; font-size: clamp(30px, 5vw, 46px); font-weight: 800; font-stretch: 122%; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.ab .role { margin: 10px 0 0; font-size: 13px; font-weight: 700; font-stretch: 116%; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.ab .bio { font-size: 18px; line-height: 1.45; margin: 16px 0; max-width: 32em; }
.ab .contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; margin: 0 0 22px; }
.ab .contact a { color: inherit; text-underline-offset: 3px; }
.ab .contact span { opacity: .7; }
.xp { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; border-top: 1px solid rgba(var(--shadow), .18); padding-top: 18px; }
.xp li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.xp b { font-size: 14.5px; font-weight: 680; }
.xp span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; opacity: .6; align-self: center; }
.xp p { grid-column: 1 / -1; margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; opacity: .78; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loopring { animation: none !important; }
}

/* tuning view */
.labmode .wall { --cols: 2; }
.labmode .hit { outline: 1px dashed rgba(255, 0, 120, .5); }
.labmode .stage { outline: 1px solid rgba(0, 160, 255, .35); }
.labmode .rig { outline: 1px dotted rgba(0, 200, 120, .5); }

/* the moon fader turns gravity down for the whole wall */
.lowg .lay img { animation: bob 3.4s ease-in-out infinite alternate; }
.lowg .mod:nth-child(3n) .lay img { animation-duration: 4.1s; animation-delay: -1.3s; }
.lowg .mod:nth-child(3n+1) .lay img { animation-duration: 2.9s; animation-delay: -.6s; }
@keyframes bob { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -1.6cqw; rotate: .8deg; } }
.lowg .lay { --lift: .8; }

/* ---------- the site build: if data.json can't be read ---------- */
.nodata { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink2); }
body.off .wall:has(.nodata) { opacity: 1; }
