/* 01 The Fairlight, round 4: the whole system as it stands, after a front photo of a CMI Series II.
   Monitor on top of the mainframe, the light pen in its groove right of the tube and its coiled cord hanging
   in front of the mainframe, the black alphanumeric keyboard resting on the deep top of the 73-note music keyboard.
   The machine is laid out on a fixed 1440 x 900 stage and scaled to the window, like a photograph.
   No maker's logo is drawn anywhere. */

:root {
  --cream: #e9e1cd;
  --cream-2: #ddd3bb;
  --cream-3: #c8bd9f;
  --ink: #141312;
}
html, body { background: #050505; }
body { background: radial-gradient(70% 60% at 50% 40%, #1a1816, #070707 75%); }

/* ---------- stage ---------- */
.rig { position: relative; display: block; height: 100dvh; padding: 0; overflow: hidden; background: none; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1440px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: 50% 50%;
}
.stage > * { position: absolute; }

/* shared materials */
.mf-front, .face, .mk-deck, .mk-front, .mk-lip, .mf-lid {
  background-color: var(--cream);
  background-image: var(--tex), linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(0, 0, 0, 0) 40%, rgba(70, 52, 24, .12));
  background-blend-mode: soft-light, normal;
}

/* ---------- the mainframe ---------- */
.mf { left: 196px; top: 520px; width: 1048px; height: 270px; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: block; }
.mf-lid {   /* the top of the case, seen slightly from above */
  position: absolute; left: 10px; right: 10px; top: 0; height: 46px;
  border-radius: 4px 4px 0 0;
  background-image: var(--tex), linear-gradient(#f4eee0, #dfd6c0);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #2a2826;
  transform: perspective(600px) rotateX(38deg); transform-origin: 50% 100%;
}
.mf-front {
  position: absolute; left: 0; right: 0; top: 46px; bottom: 0;
  border: 7px solid var(--ink); border-top-width: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 24px 40px -14px rgba(0, 0, 0, .9);
}
.mf-clips i { position: absolute; top: 12px; width: 26px; height: 12px; background: var(--ink); border-radius: 1px; }
.mf-clips i:first-child { left: 30px; }
.mf-clips i:last-child { left: 650px; }
.mf-jacks { position: absolute; left: 100px; top: 62px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 6px 6px; }
.jbox { display: flex; gap: 16px; padding: 10px 14px; border: 1.5px solid #7d735d; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.jbox i { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle, #050505 35%, #c9c9c4 38%, #8c8b86 70%); box-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.jbox:nth-child(1) { grid-column: 1; grid-row: 1; }
.jbox:nth-child(2) { grid-column: 1; grid-row: 2; }
.jlamps { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-around; padding: 6px 10px; border: 1.5px solid #7d735d; border-radius: 3px; }
.lamp { display: block; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #3a3530, 0 1px 2px rgba(0, 0, 0, .5); }
.lamp.y { background: radial-gradient(circle at 40% 35%, #fff7b0, #e6c21a 55%, #8f7400); }
.lamp.r { background: radial-gradient(circle at 40% 35%, #ffb0a0, #d0361f 55%, #7a1408); }
.jleds { position: absolute; left: calc(100% + 12px); top: 6px; display: flex; flex-direction: column; gap: 9px; }
.jleds .led { position: static; display: block; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #7a2a20, #3a0f0b); box-shadow: 0 0 0 1.5px #2a2622; }
.jleds .led.on { background: radial-gradient(circle at 40% 35%, #fff3c8, #ffb12a 55%, #b06c00); box-shadow: 0 0 0 1.5px #2a2622, 0 0 6px 2px rgba(255, 177, 42, .45); }
.jleds .led.busy { animation: diskled .7s steps(2, jump-none) 1; }
/* the rating plate sits where the maker's badge would be */
.mf .plate {
  position: absolute; left: 400px; top: 40px; width: 300px; margin: 0; padding: 9px 12px 7px;
  font: 500 10px/1.3 var(--label);
}
.mf .plate p { margin: 0 0 4px; }
.mf-drives { position: absolute; right: 0; top: 0; bottom: 0; width: 320px; display: flex; border-left: 7px solid var(--ink); }
.bay { flex: 1; display: grid; grid-template-columns: 1fr 34px 1fr; border-right: 7px solid var(--ink); }
.bay:last-child { border-right: 0; }
.bay .door { background-image: var(--tex), linear-gradient(90deg, #efe8d6, #d9cfb6); background-blend-mode: soft-light, normal; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); }
.bay .slot { position: relative; background: linear-gradient(90deg, #050505, #1d1c1a 50%, #070707); }
.bay .slot::after { content: ""; position: absolute; left: 50%; top: 18%; bottom: 18%; width: 4px; margin-left: -2px; background: #000; box-shadow: 1px 0 0 #2e2c29; }
.mf-tape { position: absolute; left: 30px; bottom: 14px; padding: 3px 8px 2px; background: #1c1c1c; color: #f2f2ea; border-radius: 2px;
  font: 700 9.5px/1.1 var(--label); letter-spacing: .14em; box-shadow: 0 1px 1px rgba(0, 0, 0, .4); }

/* ---------- the monitor ---------- */
.mon { left: 314px; top: 6px; width: 812px; height: 590px; }
.mon-side { position: absolute; right: -24px; top: 6px; bottom: 30px; width: 30px; background: linear-gradient(90deg, #1b1a18, #0a0a09); transform: skewY(-14deg); transform-origin: 0 0; border-radius: 0 4px 4px 0; }
.face {
  position: absolute; left: 0; top: 0; right: 0; bottom: 30px;
  display: block; padding: 0;
  border: 10px solid var(--ink); border-radius: 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -2px 3px rgba(70, 54, 28, .25), 0 0 0 1px #000;
}
.face .recess {
  position: absolute; left: 34px; top: 30px; width: 650px; height: 500px; padding: 14px;
  border-radius: 46px / 42px;
  background: linear-gradient(#0b0b0a, #1c1b19 55%, #0b0b0a);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .9), 0 -1px 0 rgba(70, 54, 28, .35), 0 2px 0 rgba(255, 255, 255, .55), 0 0 0 3px rgba(60, 46, 22, .18);
}
.face .glass { width: 622px; height: 472px; border-radius: 34px / 30px; }
.penbay { position: absolute; left: 700px; top: 10px; width: 92px; height: 520px; }
.penbay .slot {
  position: absolute; left: 50%; top: 130px; bottom: 40px; width: 16px; margin-left: -8px; border-radius: 8px;
  background: linear-gradient(90deg, #a89b7c, #cbbf9f 45%, #ddd2b6);
  box-shadow: inset 3px 2px 5px rgba(60, 44, 20, .55), inset -1px -1px 1px rgba(255, 255, 255, .6), 0 1px 0 rgba(255, 255, 255, .7);
}
.penbay .slot::after {
  content: ""; position: absolute; left: 50%; top: 52%; width: 36px; height: 52px; margin: -26px 0 0 -18px; border-radius: 50%;
  background: radial-gradient(60% 55% at 40% 35%, #ddd2b6, #b9ac8b 80%);
  box-shadow: inset 3px 3px 6px rgba(60, 44, 20, .5), inset -1px -1px 1px rgba(255, 255, 255, .55);
}
.penbay .pen { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; overflow: visible; }
.badge-blank { position: absolute; right: 18px; bottom: 16px; width: 64px; height: 16px; border-radius: 2px; background: linear-gradient(#e9e9e4, #b8b8b0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .6); }
.plinth {
  position: absolute; left: 4px; right: 4px; bottom: 0; height: 32px;
  display: flex; align-items: center; gap: 9px; padding: 0 16px;
  background: linear-gradient(#232120, #0e0e0d); border-radius: 0 0 5px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 18px -6px rgba(0, 0, 0, .8);
}
.plinth .grow { flex: 1; }
.plinth .legend { color: #8f8a80; text-shadow: none; font-size: 8.5px; }
.plinth .knob { width: 22px; height: 22px; box-shadow: 0 0 0 2px #2c2a27, 0 0 0 3px #000, 0 2px 3px rgba(0, 0, 0, .7); }
.plinth .knob i { inset: 5px; }
.plinth .power { width: 26px; height: 15px; }
.plinth .power i { left: 3px; top: 3px; width: 20px; height: 9px; }

/* ---------- the music keyboard ---------- */
.mk { left: 26px; top: 712px; width: 1388px; height: 188px; }
.mk-deck {   /* the deep top surface the alphanumeric keyboard rests on */
  position: absolute; left: 12px; right: 12px; top: 0; height: 92px;
  border-radius: 3px 3px 0 0;
  background-image: var(--tex), linear-gradient(#f5efe2, #e4dbc6 70%, #d8ceb5);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(40, 32, 18, .45);
  transform: perspective(700px) rotateX(46deg); transform-origin: 50% 100%;
}
.mk-front {
  position: absolute; left: 0; right: 0; top: 92px; height: 74px;
  display: flex; align-items: stretch; gap: 0;
  padding: 8px 14px 6px;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(40, 32, 18, .5);
}
.mk-lip { left: 0; right: 0; top: 166px; height: 22px; border-radius: 0 0 4px 4px; background-image: var(--tex), linear-gradient(#ddd3bb, #b9ae92); box-shadow: 0 0 0 1px rgba(40, 32, 18, .5), 0 18px 30px -10px rgba(0, 0, 0, .9); }
.mk .octaves { flex: 1; padding: 0; background: #0e0d0c; box-shadow: inset 0 6px 6px -3px rgba(0, 0, 0, .8); border-radius: 0; }
.lpanel, .rpanel { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: linear-gradient(#1f1e1c, #0e0e0d); box-shadow: inset 0 2px 3px #000; }
.lpanel { width: 104px; border-radius: 2px 0 0 2px; }
.rpanel { width: 128px; border-radius: 0 2px 2px 0; justify-content: center; flex-direction: column; gap: 5px; padding: 6px 10px; }
.lpanel .sliders { display: flex; gap: 8px; padding: 0; background: none; box-shadow: none; }
.lpanel .sliders i { width: 4px; height: 38px; border-radius: 2px; background: #000; position: relative; display: block; box-shadow: none; }
.lpanel .sliders i::after { content: ""; position: absolute; left: -6px; width: 16px; height: 8px; top: var(--y, 12px); border-radius: 1px; background: linear-gradient(#f3efe4, #bdb6a5); box-shadow: 0 1px 1px #000; }
.lpanel .sliders i:nth-child(2)::after { --y: 22px; }
.lpanel .sliders i:nth-child(3)::after { --y: 4px; }
.lpanel .pads { display: grid; gap: 6px; }
.lpanel .pads i { display: block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2efe6, #a9a397); box-shadow: 0 1px 1px #000; }
.rpanel .calc { display: grid; grid-template-columns: repeat(4, 16px); grid-auto-rows: 8px; gap: 4px; }
.rpanel .calc i { display: block; border-radius: 2px; background: linear-gradient(#f4f1e8, #cbc5b6); box-shadow: 0 1px 1px #000; }
.rpanel .voice { padding: 2px; }
.rpanel .lcd { min-width: 0; width: 100px; font-size: 13px; padding: 2px 4px; }

/* ---------- the alphanumeric keyboard, standing on the music keyboard ---------- */
.ascii {
  left: 392px; top: 650px; width: 676px; height: 128px;
  display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: 16px 50px 16px; gap: 5px 14px; align-items: center;
  padding: 12px 16px 14px;
  border-radius: 5px 5px 3px 3px;
  background-color: #1d1c1a;
  background-image: var(--crinkle), linear-gradient(#2a2826, #121110);
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px #000, 0 14px 16px -4px rgba(0, 0, 0, .75);
  z-index: 3;
}
.ascii .arow { grid-column: 1; display: flex; gap: 4px; height: 16px; }
.ascii .arow i, .ascii .numpad i, .ascii .tallkey { display: block; flex: 1; border-radius: 2px; background: linear-gradient(#f6f2e6, #ddd3bb); box-shadow: inset 0 -3px 0 #cfc4a8, 0 1px 0 #4d4639, 0 2px 2px rgba(0, 0, 0, .6); }
.ascii .arow.bottom i { flex: 1; }
.ascii .arow.bottom i.space { flex: 6; }
.ascii .keys { grid-column: 1; grid-row: 2; display: flex; gap: 5px; padding: 0; background: none; box-shadow: none; }
.ascii .keys li { flex: 1; display: flex; }
.ascii .key { width: 100%; height: 50px; padding: 5px 5px 8px; border-radius: 4px 4px 5px 5px; }
.ascii .key b { font-size: 15px; }
.ascii .key span { font-size: 7.5px; letter-spacing: .02em; }
.ascii .numpad { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(4, 20px); grid-auto-rows: 16px; gap: 5px; align-self: center; }
.ascii .tallkey { grid-column: 3; grid-row: 1 / span 3; width: 20px; height: 40px; flex: none; align-self: center; }

/* the cord at rest and the pen in the hand live in one overlay above the stage */
.handpen { display: block; z-index: 20; }
.handpen #hpen { visibility: hidden; }
.handpen.live #hpen { visibility: visible; }
.pen .barrel, .handpen .barrel { fill: url(#pgAlu); }
.pen .grip, .handpen .grip { fill: url(#pgGrip); }
.pen .nib, .handpen .nib { fill: url(#pgChrome); }
.pen .boot, .handpen .boot { fill: #121110; }
.pen .btn, .handpen .btn { fill: #2a2724; }
.penbay .socket { fill: url(#pgChrome); filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .45)); }
.penbay .socket-in { fill: #1a1816; }
.pen.lifted g { visibility: hidden; }
.handpen .hcord { stroke: #0e0d0c; stroke-width: calc(3.2px * var(--s, 1)); }

/* the old builds are not drawn */
.monitor, .unit .pen, .unit .drive, .vents, .screw, .vent-top, .badge, .keyboard, .manual { display: none !important; }

/* ---------- phone: the tube fills the display, the menu keys and a short music keyboard below ---------- */
@media (max-width: 759px) {
  .rig { display: flex; flex-direction: column; overflow: hidden; }
  .stage { position: static; transform: none; width: auto; height: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .stage > * { position: relative; left: auto; top: auto; }
  .mf, .mon-side, .penbay, .badge-blank, .plinth, .handpen, .mk-deck, .mk-lip, .ascii .arow, .ascii .numpad, .ascii .tallkey, .lpanel, .rpanel .calc { display: none !important; }
  .mon { order: 1; width: auto; height: auto; flex: 1; min-height: 0; display: flex; }
  .face { position: relative; inset: auto; flex: 1; display: flex; border-width: 4px; padding: 6px; border-radius: 0; }
  .face .recess { position: relative; left: auto; top: auto; width: auto; height: auto; flex: 1; display: flex; padding: 6px; border-radius: 18px; }
  .face .glass { width: 100%; height: auto; flex: 1; border-radius: 14px / 12px; }
  .ascii { order: 2; width: auto; height: auto; display: block; padding: 6px; border-radius: 0; }
  .ascii .keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .ascii .key { height: 44px; padding: 4px 5px 7px; }
  .ascii .key b { font-size: 14px; }
  .ascii .key span { font-size: 8.5px; }
  .mk { order: 3; width: auto; height: auto; }
  .mk-front { position: relative; top: auto; height: 48px; padding: 5px 6px calc(4px + env(safe-area-inset-bottom)); }
  .rpanel { width: auto; padding: 0 6px; }
  .rpanel .lcd { width: auto; font-size: 11px; }
}

/* ---------- round 4b: the slanted housing of the monitor ----------
   The black shell is a wedge seen from the front: wider at the foot, leaning in toward the top,
   with the top of the case showing as a black band that slopes back. The cream face sits inside it. */
.mon-side { display: none; }
.mon-shell {
  position: absolute; left: -30px; right: -30px; top: -4px; bottom: 26px; z-index: 0;
  background: linear-gradient(90deg, #070707, #1b1a18 6%, #121110 50%, #1b1a18 94%, #070707);
  clip-path: polygon(4.2% 0, 95.8% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .8));
}
.mon-shell .top { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(#3a3835, #141312); }
.mon .face { z-index: 1; left: 0; right: 0; top: 14px; border-width: 6px; border-color: #0c0c0b; }
.mon .plinth { z-index: 1; left: -30px; right: -30px; height: 34px; border-radius: 0 0 4px 4px; }
.mon .face .recess { top: 24px; }
.penbay { top: 4px; }

/* lower the alphanumeric keyboard so the mainframe front shows, as in the photo */
.mf { top: 548px; height: 254px; }
.mk { top: 740px; height: 160px; }
.mk-deck { height: 80px; }
.mk-front { top: 80px; height: 64px; padding: 7px 14px 5px; }
.mk-lip { top: 144px; height: 16px; }
.ascii { top: 724px; height: 116px; grid-template-rows: 14px 46px 14px; padding: 10px 16px 12px; }
.ascii .arow { height: 14px; }
.ascii .key { height: 46px; }
.ascii .numpad { grid-auto-rows: 14px; }
.mf .plate { left: 420px; top: 30px; width: 280px; font-size: 8.5px; line-height: 1.25; padding: 7px 10px 6px; }
.mf .plate p { margin: 0 0 3px; }
.mf-jacks { top: 40px; }
.mf-tape { left: 26px; bottom: auto; top: 24px; }
.mf-clips { display: none; }

/* round 4c: the slant made visible. The cream face is itself a trapezoid, narrower at the top,
   set inside a black shell with the same lean, as the tilted-back monitor in the photo. */
.mon .face {
  border: 0; border-radius: 0; top: 16px; bottom: 34px;
  clip-path: polygon(2.8% 0, 97.2% 0, 100% 100%, 0 100%);
  background-image: var(--tex), linear-gradient(180deg, #d9cfb8 0%, #ebe3cf 22%, #efe8d6 60%, #ddd3bb 100%);
  box-shadow: none;
}
.mon-shell { left: -16px; right: -16px; top: -2px; bottom: 30px; clip-path: polygon(4.4% 0, 95.6% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #050505 0, #1e1d1b 3%, #141312 50%, #1e1d1b 97%, #050505 100%); }
.mon-shell .top { height: 20px; background: linear-gradient(#45423e, #1a1918 60%, #0c0c0b); }
.mon .plinth { left: -16px; right: -16px; }
.mon .face .recess { left: 40px; top: 26px; }
.penbay { left: 698px; }

/* round 4d: the black housing shows all round the cream face, thickest at the top, as in the photo */
.mon .face { left: 13px; right: 13px; top: 22px; }
.mon .face .recess { left: 30px; }
.penbay { left: 684px; }
.handpen .hcord { stroke-width: calc(2.1px * var(--s, 1)); filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .5)); }

/* phone: undo the stage positions of the desktop drawing */
@media (max-width: 759px) {
  .mon-shell, .mf, .plinth { display: none !important; }
  .mon, .ascii, .mk { top: auto !important; left: auto !important; }
  .mon .face { position: relative; left: auto; right: auto; top: auto; bottom: auto; clip-path: none; border: 4px solid #0c0c0b; }
  .mon .face .recess { left: auto; top: auto; }
  .mk-front { top: auto; }
  .ascii { height: auto; }
}
@media (max-width: 759px) {
  .rig { height: 100dvh; }
  .stage { flex: 1 1 auto; height: 100% !important; }
  .mon { flex: 1 1 auto !important; height: auto !important; min-height: 0; }
}

/* ================= round 5: no mainframe, a bigger tube, the plate standing beside it,
   the Big Room at Real World blurred behind the machine ================= */
.room {
  position: fixed; inset: -40px; z-index: -1; pointer-events: none;
  background: url("/shared/img/place-real-world-big-room-01-2000.jpg") 50% 40% / cover no-repeat;
  filter: blur(12px) brightness(.55) saturate(.9);
  transform: scale(1.06);
}
.room::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, transparent 30%, rgba(0, 0, 0, .55) 100%); }
html, body { background: #050505; }
body { background: transparent; }

.mf { display: none !important; }

/* the monitor, much larger */
.mon { left: 236px; top: 6px; width: 968px; height: 712px; }
.mon .face .recess { left: 30px; top: 26px; width: 786px; height: 598px; padding: 15px; border-radius: 54px / 48px; }
.mon .face .glass { width: 756px; height: 568px; border-radius: 40px / 34px; }
.penbay { left: 828px; top: 6px; height: 620px; }
.penbay .slot { top: 150px; bottom: 50px; }

/* keyboards below */
.ascii { left: 382px; top: 734px; }
.mk { top: 776px; height: 124px; }
.mk-deck { height: 50px; }
.mk-front { top: 50px; height: 60px; padding: 6px 14px 5px; }
.mk-lip { top: 110px; height: 14px; }

/* the brushed aluminium plate, standing on the dark to the right of the monitor */
.standplate {
  display: flex !important; flex-direction: column; gap: 10px;
  left: 1236px; top: 150px; width: 176px; height: auto;
  padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.standplate .plate {
  position: relative; margin: 0; padding: 16px 14px 14px;
  font: 500 10.5px/1.38 var(--label); color: #24211c;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .35), 0 18px 30px -10px rgba(0, 0, 0, .8);
}
.standplate .plate p { margin: 0 0 9px; }
.standplate .plate::before, .standplate .plate::after { top: 6px; box-shadow: 0 calc(100% - 2px) 0 #8f8d84; }
.standplate .plate .maker { margin-top: 4px; }
.standplate .mf-tape { position: static; align-self: flex-start; left: auto; top: auto; }

/* disk lamps on the monitor base now */
.pleds { display: flex; gap: 6px; }
.pleds .led { position: static; display: block; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #7a2a20, #3a0f0b); box-shadow: 0 0 0 1.5px #2a2622; }
.pleds .led.busy { animation: diskled .7s steps(2, jump-none) 1; }

@media (max-width: 759px) {
  .standplate { display: none !important; }
  .room { filter: blur(10px) brightness(.35); }
}

/* phone, round 5: the desktop stage sizes must not reach the phone layout */
@media (max-width: 759px) {
  .mon { width: auto !important; height: auto !important; left: auto !important; top: auto !important; }
  .mon .face .recess { left: auto !important; top: auto !important; width: auto !important; height: auto !important; padding: 6px !important; border-radius: 18px !important; }
  .mon .face .glass { width: 100% !important; height: auto !important; border-radius: 14px / 12px !important; }
  .ascii { left: auto !important; top: auto !important; width: auto !important; }
  .mk { left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
  .mk-front { top: auto !important; height: 48px !important; }
}

/* ================= round 6: the tube nearly fills the window; the menu keyboard overlaps its foot;
   the music keyboard is folded away and comes out with the KEYS key ================= */
.mon { left: 128px; top: 4px; width: 1124px; height: 812px; }
.mon .face .recess { left: 30px; top: 24px; width: 948px; height: 694px; padding: 16px; border-radius: 60px / 54px; }
.mon .face .glass { width: 916px; height: 662px; border-radius: 44px / 38px; }
.penbay { left: 992px; top: 4px; height: 720px; }
.penbay .slot { top: 170px; bottom: 60px; }
.standplate { left: 1270px; top: 170px; width: 158px; }
.standplate .plate { font-size: 10px; padding: 14px 12px 12px; }

.ascii { left: 382px; top: 776px; z-index: 4; }

.mk { top: 776px; z-index: 3; transform: translateY(150px); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s; }
html.mkopen .mk { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
html.mkopen .ascii { top: 666px; }
.ascii { transition: top .38s cubic-bezier(.2, .8, .2, 1); }

/* the tall key on the right of the keyboard is the switch for the music keyboard */
.ascii .tallkey { width: 26px; height: 74px; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.ascii .tallkey span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 9px/1 var(--label); letter-spacing: .14em; color: #3b352b; }
.ascii .tallkey[aria-expanded="true"] { transform: translateY(2px); background: linear-gradient(#e7dfca, #cfc4a8); box-shadow: inset 0 -2px 0 #bfb394, 0 1px 0 #4d4639; }
.ascii .tallkey[aria-expanded="true"]::after { content: ""; position: absolute; }
.ascii .tallkey:focus-visible { outline: 3px solid #33ff66; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mk, .ascii { transition: none !important; } }

@media (max-width: 759px) {
  .mk { transform: none; transition: none; display: none; }
  html.mkopen .mk { display: block; visibility: visible; }
  .ascii { position: relative !important; }
  .ascii .tallkey { display: grid !important; position: absolute; right: 8px; top: -30px; width: 54px; height: 24px; border-radius: 4px 4px 0 0; background: linear-gradient(#f6f2e6, #ddd3bb); }
  .ascii .tallkey span { writing-mode: horizontal-tb; transform: none; }
  html.mkopen .ascii { top: auto !important; }
}

/* ================= round 7: the menu is one low row of wide keys; the tube grows into the room it leaves ================= */
.mon { height: 852px; }
.mon .face .recess { height: 734px; }
.mon .face .glass { height: 702px; }
.penbay { height: 760px; }

.ascii {
  left: 170px; top: 840px; width: 1100px; height: 56px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px;
  grid-template-columns: none; grid-template-rows: none;
}
.ascii .arow, .ascii .numpad { display: none !important; }
.ascii .keys { flex: 1; gap: 7px; }
.ascii .keys li { flex: 1; }
.ascii .key {
  height: 40px; padding: 0 10px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px;
  border-radius: 4px 4px 5px 5px;
}
.ascii .key b { font-size: 15px; min-width: 1ch; }
.ascii .key span { font-size: 12.5px; letter-spacing: .05em; font-weight: 700; }
.ascii .key.down::after { top: 50%; margin-top: -2px; right: 9px; }
.ascii .tallkey { flex: none; width: 72px; height: 40px; border-radius: 4px 4px 5px 5px; }
.ascii .tallkey span { writing-mode: horizontal-tb; transform: none; font-size: 11px; }
html.mkopen .ascii { top: 728px; }

@media (max-width: 1179px) and (min-width: 760px) {
  .ascii .key span { font-size: 11px; letter-spacing: .02em; }
}
@media (max-width: 759px) {
  .ascii { width: auto !important; height: auto !important; display: block; padding: 6px; }
  .ascii .key { flex-direction: column; align-items: flex-start; justify-content: space-between; height: 44px; padding: 4px 5px 7px; gap: 0; }
  .ascii .key span { font-size: 8.5px; letter-spacing: 0; }
  .ascii .tallkey { width: 54px; height: 24px; }
}
/* keep the monitor base, with its knobs, clear of the key row */
.ascii { top: 853px; height: 47px; padding: 6px 10px 5px; border-radius: 5px 5px 0 0; }
.ascii .key, .ascii .tallkey { height: 36px; }
html.mkopen .ascii { top: 730px; height: 50px; border-radius: 5px 5px 3px 3px; }

/* ================= round 8: widescreen tube, more cream face left of it, no plate;
   the key row flush with the monitor on both sides; video plays inside the glass ================= */
.standplate { display: none !important; }
.mon { left: 56px; width: 1328px; }
.mon .face .recess { left: 76px; width: 1112px; }
.mon .face .glass { width: 1080px; }
.penbay { left: 1200px; }
/* the tape label lives on the cream face, under the tube, where a studio would stick it */
.facetape { position: absolute !important; left: 76px; bottom: 14px; top: auto !important; right: auto; }

/* the key row: exactly as wide as the monitor's black shell */
.ascii { left: 40px; width: 1360px; }
html.mkopen .ascii { left: 40px; }

/* the colophon now sits at the foot of every page on the screen */
.colophon { display: block; }
.scroll .colophon { font-size: 17px; }

/* ---------- the video on the tube: a blip, a line, the picture opens; and back to a dot when it closes ---------- */
.tv {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-rows: auto 1fr;
  background: #000; border-radius: inherit; overflow: hidden;
}
.tv[hidden] { display: none; }
.tvbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 34px 10px; background: var(--glass); border-bottom: 2px solid var(--phos-faint); font-size: 22px; text-shadow: 0 0 6px rgba(51, 255, 102, .35); zoom: var(--z, 1); }
.tvbar h2 { font-size: 26px; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvframe { position: relative; min-height: 0; background: #000; }
.tvframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv::after {   /* the flash of the blip, over everything */
  content: ""; position: absolute; inset: 0; pointer-events: none; background: #e8fff0; opacity: 0;
}
.tv.on { animation: tvOn .52s cubic-bezier(.2, .8, .25, 1) both; }
.tv.on::after { animation: tvFlash .52s ease-out both; }
.tv.off { animation: tvOff .34s cubic-bezier(.6, 0, .8, .4) both; }
.tv.off::after { animation: tvFlashOff .34s ease-in both; }
@keyframes tvOn {
  0% { transform: scale(.015, .004); }
  30% { transform: scale(1, .006); }
  62% { transform: scale(1, 1.03); }
  80% { transform: scale(1, .985); }
  100% { transform: none; }
}
@keyframes tvFlash { 0% { opacity: 1; } 40% { opacity: .85; } 100% { opacity: 0; } }
@keyframes tvOff {
  0% { transform: none; }
  55% { transform: scale(1, .006); }
  85% { transform: scale(.02, .004); }
  100% { transform: scale(0, 0); }
}
@keyframes tvFlashOff { 0% { opacity: 0; } 50% { opacity: .9; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tv.on, .tv.off, .tv.on::after, .tv.off::after { animation: none; } }

@media (max-width: 759px) {
  .facetape { display: none; }
  .ascii { left: auto !important; width: auto !important; }
  .tvbar { padding: 10px 14px 8px; }
}

/* the page letters after PAGE: can be clicked as well as typed */
.cmd .pagekeys { display: flex; gap: 4px; letter-spacing: 0; }
.cmd .pagekeys a { display: inline-block; min-width: 1.5ch; padding: 0 5px; text-align: center; color: var(--phos-dim); text-decoration: none; }
.cmd .pagekeys a:hover, .cmd .pagekeys a:focus-visible { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; outline: none; }
.cmd .pagekeys a[aria-current="page"] { color: var(--phos); text-decoration: underline; text-underline-offset: 3px; }
.vframe { cursor: pointer; }

/* the sound list that comes up from the display: an LCD panel in the same green-grey */
.rpanel { position: relative; }
.voicemenu {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 10; width: 250px;
  display: grid; gap: 2px; padding: 8px;
  background: linear-gradient(#1f1e1c, #0e0e0d); border-radius: 4px;
  box-shadow: 0 0 0 1px #000, 0 14px 24px rgba(0, 0, 0, .7);
}
.voicemenu[hidden] { display: none; }
.voicemenu button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 9px 5px; border: 0; border-radius: 2px; cursor: pointer; text-align: left;
  background: #9fae76; color: #1d2410; font: 15px/1 var(--mono); letter-spacing: .05em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.voicemenu button span { font-size: 13px; letter-spacing: .02em; opacity: .75; }
.voicemenu button:hover { background: #b0bf86; }
.voicemenu button[aria-pressed="true"] { background: #1d2410; color: #b7c98a; box-shadow: none; }
.voicemenu button:focus-visible { outline: 2px solid #33ff66; outline-offset: 1px; }
@media (max-width: 759px) { .voicemenu { width: min(250px, 90vw); } }
/* the list opens to the left of the display, clear of the pen cord, and above the key row */
.voicemenu { right: calc(100% + 10px); bottom: -4px; }
html.vmopen .mk { z-index: 6; }
@media (max-width: 759px) { .voicemenu { right: 0; bottom: calc(100% + 8px); } }

/* the start-up print-out on the tube */
.os { position: absolute; inset: 0; z-index: 3; background: radial-gradient(130% 120% at 50% 45%, #06170b 0%, var(--glass) 55%, #020904 100%); padding: 40px 52px; border-radius: inherit; }
.os pre { display: inline; margin: 0; font: 26px/1.3 var(--mono); color: var(--phos); white-space: pre-wrap; text-shadow: 0 0 1px rgba(80, 255, 120, .8), 0 0 7px rgba(51, 255, 102, .35); }
.os .oscur { display: inline-block; width: .6em; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--phos); box-shadow: 0 0 6px rgba(51, 255, 102, .6); animation: oscur .9s steps(1) infinite; }
@keyframes oscur { 50% { opacity: 0; } }
@media (max-width: 759px) { .os { padding: 18px 16px; } .os pre { font-size: 15px; } }

/* Watch: clips from the same concert under one heading */
.vgroup { margin: 26px 0 0; }
.vgroup .subdir { margin: 0 0 4px; }
.vgroup .gnote { margin: 0 0 14px; color: var(--phos-dim); max-width: 70ch; }
/* the machine never scrolls, whatever asks it to */
.rig, .stage, .mon, .face, .recess { overflow: clip; }
@media (max-width: 759px) { .mon, .face, .recess { overflow: visible; } }

/* the pen in the hand: shorter and steeper, see-through while it moves, solid when it touches the glass */
.handpen #hpen, .handpen .hcord { opacity: .72; transition: opacity .12s; }
.handpen.press #hpen, .handpen.press .hcord { opacity: 1; transition: none; }
.os .osskip { position: absolute; left: 52px; bottom: 34px; margin: 0; font: 20px/1 var(--mono); color: var(--phos-dim); letter-spacing: .06em; }
@media (max-width: 759px) { .os .osskip { left: 16px; bottom: 16px; font-size: 13px; } }

/* ---------- links as on the machine: what the light pen can pick is an inverse field ----------
   Internal links: a dim green block with dark text, full green when pointed at.
   Links that leave the site: underlined, with an arrow. */
.scroll a[href^="/"], .scroll a[href^="#"], .lb a[href^="/"] {
  text-decoration: none; color: #031207; background: #1fa84a; text-shadow: none;
  padding: 0 .28em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.scroll a[href^="/"]:hover, .scroll a[href^="/"]:focus-visible, .scroll a[href^="#"]:hover, .scroll a[href^="#"]:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
/* rows, the index, the newest record and the gallery already have their own way of showing they open */
.scroll a.vol, .scroll .index a, .scroll a.newlink, .scroll .gallery a { background: none; color: var(--phos); padding: 0; }
.scroll a.vol:hover, .scroll a.vol:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
.scroll .index a:hover, .scroll .index a:focus-visible, .scroll a.newlink:hover, .scroll a.newlink:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
/* leaving the site */
.scroll a[target="_blank"]::after, .lb a[target="_blank"]::after, .tvbar a[target="_blank"]::after { content: "\2009\2197"; text-decoration: none; display: inline-block; }
.scroll a.src[target="_blank"]::after { content: "\2009\2197"; }
/* the source as a small arrow at the end of a line */
.scroll a.src.mini { color: var(--phos-dim); text-decoration: none; padding: 0 .15em; }
.scroll a.src.mini::after { content: "\2197"; }
.scroll a.src.mini:hover, .scroll a.src.mini:focus-visible { background: var(--phos); color: var(--ink-on-phos); }
/* Honours: the WON field alone marks a win; the rest of the row reads like any other */
.awards tr.w td, .awards tr.n td { color: var(--phos); font-weight: 400; }
.awards tr.n td a.src { color: var(--phos-dim); }
/* no PAGE: line at the foot of the screen; the letters still work from the keyboard */
.glass .cmd { display: none; }

/* the PAGE field opens the page list, in inverse video like the machine's own menus */
.topline .pageid { position: relative; display: flex; gap: 22px; align-items: baseline; margin: 0; }
#pageno { border: 0; cursor: pointer; font: inherit; line-height: 1; background: var(--phos); color: var(--ink-on-phos); padding: 0 6px; text-shadow: none; }
#pageno::after { content: " \25BE"; }
#pageno:hover, #pageno[aria-expanded="true"] { background: #b9ffcc; }
#pageno:focus-visible { outline: 2px dashed var(--phos); outline-offset: 3px; }
.pagemenu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 4; min-width: 330px; padding: 6px 0; background: #031207; box-shadow: 0 0 0 2px var(--phos), 0 18px 40px rgba(0, 0, 0, .8); }
.pagemenu[hidden] { display: none; }
.pagemenu a { display: grid; grid-template-columns: 1.6em 1fr; gap: 12px; padding: 4px 14px; color: var(--phos); text-decoration: none; font-size: 24px; line-height: 1.15; }
.pagemenu a b { font-weight: 400; background: var(--phos); color: var(--ink-on-phos); text-align: center; text-shadow: none; }
.pagemenu a:hover, .pagemenu a:focus-visible, .pagemenu a[aria-current] { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; outline: none; }
.pagemenu a:hover b, .pagemenu a:focus-visible b, .pagemenu a[aria-current] b { background: var(--ink-on-phos); color: var(--phos); }
@media (max-width: 759px) { .pagemenu { min-width: 250px; } .pagemenu a { font-size: 19px; } }
@media (max-width: 759px) {
  .topline .pageid { overflow: visible; gap: 10px; white-space: nowrap; }
  #pageno { font-size: 20px; padding: 1px 6px; }
  #pagename { background: none; color: var(--phos); }
}

/* ---------- round 9: KEYS at the left end, away from the pen cord; nothing hidden when the keyboard is out ---------- */
html.mkopen .scroll { padding-bottom: 130px; }
html.mkopen .tv { bottom: 100px; }

@media (max-width: 759px) {
  /* KEYS is a tall key beside the menu keys, not a tab over the screen */
  .ascii { display: flex !important; gap: 5px; align-items: stretch; }
  .ascii .tallkey { position: static !important; display: grid !important; width: 42px !important; height: auto !important; border-radius: 4px; }
  .ascii .tallkey span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .ascii .keys { flex: 1; }
  html.mkopen .scroll { padding-bottom: 24px; }
  html.mkopen .tv { bottom: 0; }
  /* an open album row keeps its running time; the number of tracks gives way */
  .dir .vol, .dirhead { grid-template-columns: 40px minmax(0, 1fr) 4.4ch 5ch; }
  .dir .fl, .dirhead span:nth-child(4) { display: none; }
  .dir .tm, .dirhead span:last-child { display: block; }
}

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact p, .sources p { max-width: 64ch; }
.contact .dirh:first-child, .sources .dirh { margin-top: 6px; }
.contact-side .dirh:not(:first-child) { margin-top: 30px; }
.contact-mail { font-size: 34px; margin: 14px 0 20px; }
.scroll a.mail[href^="mailto:"] { text-decoration: none; color: #031207; background: #1fa84a; text-shadow: none; padding: 0 .28em; }
.scroll a.mail[href^="mailto:"]:hover, .scroll a.mail[href^="mailto:"]:focus-visible { background: var(--phos); }
.webby { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.webby .io img { height: 14px; width: auto; display: block; }
/* no arrow on the logo link or the donate key */
.scroll a.io::after, .scroll a.donate::after { content: none !important; }
.scroll a.io { padding: 0; background: none; }
.scroll a.donate { display: inline-block; font-size: 26px; padding: 8px 16px 6px; text-decoration: none; letter-spacing: .04em; background: var(--phos); color: var(--ink-on-phos); }
.scroll a.donate:hover, .scroll a.donate:focus-visible { background: #b9ffcc; color: var(--ink-on-phos); }
.srclink { margin-top: 26px; }
.scroll .srclink a, .scroll .sources > p:first-child a { background: none; color: var(--phos); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.scroll .srclink a:hover, .scroll .sources > p:first-child a:hover { background: var(--phos); color: var(--ink-on-phos); text-decoration: none; }
@media (max-width: 1000px) { .contact { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 759px) { .contact-mail { font-size: 22px; } .ascii .keys { grid-template-columns: repeat(6, 1fr) !important; } }

/* menu keys: just the word, centred; KEYS at the right end */
.ascii .key b { display: none; }
.ascii .key { justify-content: center; }
.ascii .key span { text-align: center; }
.ascii .key.down::after { display: none; }
@media (max-width: 759px) { .ascii .key { align-items: center; justify-content: center; } .ascii .key span { font-size: 9px; } }

/* the pen bay sits a little further in, clear of the slanted edge of the face */
.penbay { left: 1172px; }
