/* 01 The Fairlight. Colours sit on parts of the machine: phosphor, glass, cream case, keycaps. */
:root {
  --phos: #33ff66;
  --phos-dim: #1fa84a;
  --phos-faint: #0f5a26;
  --glass: #041007;
  --glass-lift: #08200f;
  --ink-on-phos: #021006;
  --case: #e4d9bf;
  --case-hi: #f3ecda;
  --case-shade: #b8a982;
  --case-deep: #8d7f5f;
  --key: #d6c9a8;
  --key-brown: #5b4231;
  --room: #1b1714;
  --drive: #26221e;
  --alu: #c9c8bf;
  --label: 'Archivo', 'Arial Narrow', sans-serif;
  --mono: 'VT323', ui-monospace, 'Lucida Console', monospace;
  --kbd-h: 146px;
  --pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M2 2 L9 5.5 L31 27.5 L27.5 31 L5.5 9 Z' fill='%23161412' stroke='%23e4d9bf' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M18 14.5 L21.5 18' stroke='%23e4d9bf' stroke-width='1.3'/%3E%3Cpath d='M2 2 L6.5 4 L4 6.5 Z' fill='%2333ff66'/%3E%3C/svg%3E") 2 2;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; background: var(--room); }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  background: var(--room);
  color: var(--phos);
  font-family: var(--mono);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--phos); color: var(--ink-on-phos); font: 22px/1 var(--mono); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ================= the rig ================= */
.rig {
  --bez-t: 26px; --bez-b: 50px; --bez-s: 30px; --ring: 10px; --unit-w: 300px;
  --glass-h: calc(100dvh - 14px - var(--kbd-h) - var(--bez-t) - var(--bez-b) - 2 * var(--ring) - 14px);
  --glass-w: min(calc(var(--glass-h) * 1.42), calc(100vw - var(--unit-w) - 2 * var(--bez-s) - 2 * var(--ring) - 60px));
  height: 100dvh;
  display: grid;
  grid-template-columns: auto var(--unit-w);
  grid-template-rows: 1fr var(--kbd-h);
  column-gap: 18px;
  row-gap: 14px;
  justify-content: center;
  padding: 14px 18px 0;
}

/* monitor case */
.monitor {
  position: relative;
  align-self: start;
  background: var(--case);
  border-radius: 16px 16px 12px 12px;
  padding: var(--bez-t) var(--bez-s) 0;
  box-shadow:
    inset 0 2px 0 var(--case-hi), inset 2px 0 0 var(--case-hi),
    inset 0 -3px 0 var(--case-shade), inset -2px 0 0 #d2c6a8,
    0 22px 40px -10px rgba(0, 0, 0, .7);
}
.recess {
  padding: var(--ring);
  border-radius: 54px / 46px;
  background: #cdc1a1;
  box-shadow: inset 0 3px 6px rgba(70, 56, 30, .45), inset 0 -1px 0 var(--case-hi), 0 1px 0 var(--case-hi);
}
.glass {
  position: relative;
  width: var(--glass-w);
  height: var(--glass-h);
  border-radius: 46px / 38px;
  background: radial-gradient(130% 120% at 50% 45%, #06170b 0%, var(--glass) 55%, #020904 100%);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 0 0 2px #0b0a08, inset 0 0 0 1px #000;
  cursor: var(--pen), auto;
}
.glass * { cursor: inherit; }
.glass input { cursor: text; }
.glass-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; border-radius: inherit; }
.glass-fx::before {   /* scan lines, drawn */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px);
}
.glass-fx::after {    /* curved glass: dark edges, one soft reflection */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 70px 14px rgba(0, 0, 0, .88), inset 0 0 18px 3px rgba(0, 0, 0, .95);
  background:
    radial-gradient(60% 34% at 24% 10%, rgba(225, 255, 235, .085), transparent 70%),
    radial-gradient(40% 18% at 80% 96%, rgba(225, 255, 235, .035), transparent 70%);
}

.controls {
  height: var(--bez-b);
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px;
}
.legend { font: 700 9.5px/1 var(--label); font-stretch: 85%; letter-spacing: .08em; color: #6e6249; }
.knob {
  width: 26px; height: 26px; border-radius: 50%;
  background: repeating-conic-gradient(#3a332b 0 6deg, #2a241e 6deg 12deg);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .35), 0 0 0 3px #cbbf9f;
  position: relative;
}
.knob i { position: absolute; inset: 5px; border-radius: 50%; background: #3d352c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.knob i::after { content: ""; position: absolute; left: 50%; top: 1px; width: 2px; height: 6px; margin-left: -1px; background: var(--case); }
.knob + .legend { margin-right: 14px; }
.grille { flex: 1; height: 14px; margin: 0 18px; background: repeating-linear-gradient(90deg, #a89a77 0 3px, transparent 3px 9px); border-radius: 2px; opacity: .7; }
.power { width: 30px; height: 18px; border-radius: 3px; background: #2b2622; box-shadow: inset 0 2px 3px #000, 0 1px 0 var(--case-hi); position: relative; }
.power i { position: absolute; left: 4px; top: 4px; width: 22px; height: 10px; border-radius: 2px; background: #d7392b; box-shadow: inset 0 -2px 0 #8e1d14; }

.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #cbbe9c; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35), 0 1px 0 var(--case-hi); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 2px; background: #8d7f5f; transform: rotate(35deg); }
.screw.tl { left: 10px; top: 8px; } .screw.tr { right: 10px; top: 8px; }
.screw.bl { left: 10px; bottom: 8px; } .screw.br { right: 10px; bottom: 8px; }

/* disk unit beside the monitor */
.unit {
  position: relative;
  align-self: stretch;
  margin-bottom: 0;
  background: var(--case);
  border-radius: 12px;
  padding: 22px 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: inset 0 2px 0 var(--case-hi), inset 0 -3px 0 var(--case-shade), inset -2px 0 0 #d2c6a8, 0 22px 40px -10px rgba(0, 0, 0, .7);
  color: #2b261f;
  overflow: hidden;
}
.drive {
  position: relative; height: 74px; border-radius: 4px;
  background: var(--drive);
  box-shadow: inset 0 0 0 2px #15120f, inset 0 3px 0 #3a342d, 0 2px 0 var(--case-hi);
}
.drive .slot { position: absolute; left: 14px; right: 52px; top: 30px; height: 8px; border-radius: 2px; background: #050404; box-shadow: 0 1px 0 #3a342d, inset 0 2px 2px #000; }

.drive .led { position: absolute; left: 16px; top: 52px; width: 9px; height: 5px; border-radius: 1px; background: #4b1410; }
.drive .led.busy { animation: diskled .7s steps(2, jump-none) 1; }
@keyframes diskled { 0%, 100% { background: #ff3b24; } }
.drive .dlabel { position: absolute; left: 32px; top: 51px; font: 700 9px/1 var(--label); color: #8a8172; letter-spacing: .1em; }
.pen { width: 100%; height: auto; margin: 4px 0 -6px; }
.pen .cord { fill: none; stroke: #1a1714; stroke-width: 3; stroke-linecap: round; }
.pen .clip { fill: #b3a582; }
.pen .barrel { fill: #191613; }
.pen .grip { fill: #2c2723; }
.pen .btn { fill: #8f1f16; }
.pen .nib { fill: #a8a29a; }
.pen .tipring { fill: var(--phos); }
.pen .boot { fill: #191613; }
.plate {
  position: relative;
  margin-top: auto;
  padding: 12px 14px 10px;
  border-radius: 3px;
  background-color: var(--alu);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .3);
  font: 500 11.5px/1.35 var(--label);
  font-stretch: 90%;
  color: #24211c;
}
.plate::before, .plate::after { content: ""; position: absolute; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #8f8d84; box-shadow: 0 calc(100% + 0px) 0 #8f8d84; }
.plate::before { left: 5px; } .plate::after { right: 5px; }
.plate p { margin: 0 0 6px; }
.plate a { color: #1c1a16; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.plate a:hover { color: #000; text-decoration-thickness: 2px; }
.plate .maker { display: flex; align-items: center; gap: 8px; margin: 0; }
.plate .maker img, .colophon .maker img { height: 14px; width: auto; }
.vents { display: block; height: 22px; background: repeating-linear-gradient(90deg, #a89a77 0 4px, transparent 4px 10px); border-radius: 2px; opacity: .65; flex: none; }

/* keyboard edge */
.keyboard {
  grid-column: 1 / -1;
  background: var(--case);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 2px 0 var(--case-hi), 0 -6px 20px rgba(0, 0, 0, .35);
  padding: 12px 18px 0;
  display: flex; justify-content: center;
}
.keys {
  list-style: none; margin: 0; padding: 8px 10px 0;
  display: flex; gap: 8px;
  background: #b9ab88;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 3px 5px rgba(60, 48, 26, .5);
}
.keys li { display: flex; }
.key {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 92px; height: 62px; padding: 6px 8px 7px;
  border: 0; border-radius: 5px 5px 6px 6px;
  background: var(--key);
  color: #2e2820;
  text-decoration: none;
  box-shadow:
    inset 0 -6px 0 #b6a782,      /* the keycap skirt */
    inset 0 2px 0 #eee5cf,
    0 2px 0 #7d6f50, 0 4px 6px rgba(0, 0, 0, .35);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
  cursor: pointer;
}
.key b { font: 700 19px/1 var(--label); font-stretch: 85%; }
.key span { font: 700 11px/1 var(--label); font-stretch: 85%; letter-spacing: .06em; }
.key:hover { background: #e2d6b8; }
.key:active, .key.down {
  transform: translateY(3px);
  box-shadow: inset 0 -3px 0 #b6a782, inset 0 2px 0 #eee5cf, 0 0 0 #7d6f50, 0 1px 2px rgba(0, 0, 0, .35);
}
.key.down { background: var(--key-brown); color: var(--case-hi); box-shadow: inset 0 -3px 0 #3f2d21, inset 0 2px 0 #7a5d48, 0 1px 2px rgba(0, 0, 0, .35); }
.key:focus-visible { outline: 3px solid var(--phos); outline-offset: 3px; }

/* ================= on the glass ================= */
.topline {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 28px 6px;
  font-size: 26px; line-height: 1;
  text-shadow: 0 0 2px rgba(51, 255, 102, .5);
}
.topline p { margin: 0; display: flex; gap: 22px; white-space: nowrap; }
.topline #pageno { background: var(--phos); color: var(--ink-on-phos); padding: 0 6px; text-shadow: none; }
.dim { color: var(--phos-dim); }
.topline, .scroll, .cmd { zoom: var(--z, 1); }
.scroll {
  position: relative; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px 28px 28px;
  scrollbar-width: thin; scrollbar-color: var(--phos-faint) transparent;
  scroll-padding-top: 12px;
  font-size: 22px; line-height: 1.22;
  text-shadow: 0 0 1px rgba(51, 255, 102, .7), 0 0 7px rgba(51, 255, 102, .28);
  outline: none;
}
.scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--phos-dim); }
.cmd {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 28px 10px;
  font-size: 22px;
}
.cmd label { color: var(--phos); }
.cmd input {
  width: 1.6ch; padding: 0 2px; border: 0; border-radius: 0;
  background: var(--phos-faint); color: var(--phos);
  font: inherit; text-transform: uppercase; caret-color: var(--phos);
}
.cmd input:focus { outline: 2px solid var(--phos); outline-offset: 1px; }
.cmd .dim { letter-spacing: .2em; }

.scroll a { color: var(--phos); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scroll a:hover, .scroll a:focus-visible, .lb a:hover, .lb a:focus-visible { background: var(--phos); color: var(--ink-on-phos); text-decoration: none; text-shadow: none; outline: none; }
.scroll a:focus-visible, .lb a:focus-visible { box-shadow: 0 0 0 2px var(--phos); }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 .5em; }
.small, .src { font-size: .82em; }
.scroll a.src { color: var(--phos-dim); }
.scroll a.src:hover, .scroll a.src:focus-visible { color: var(--ink-on-phos); }

/* light-pen targets: inverse video */
.inv {
  border: 0; border-radius: 0; background: var(--phos); color: var(--ink-on-phos);
  font: 24px/1 var(--mono); padding: 4px 10px 3px; cursor: inherit; text-shadow: none;
}
.inv:hover { background: #b9ffcc; }
.inv:focus-visible, .linkbtn:focus-visible, .solo:focus-visible { outline: 2px dashed var(--phos); outline-offset: 3px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--phos); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: inherit; }
.linkbtn:hover { background: var(--phos); color: var(--ink-on-phos); text-decoration: none; }

/* phosphor pictures: a monochrome image tinted by the green tube; in view it flickers into colour and stays */
.ph { position: relative; display: block; background: #000; overflow: hidden; }
.ph img { width: 100%; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.ph::after { content: ""; position: absolute; inset: 0; background: var(--phos); mix-blend-mode: multiply; pointer-events: none; }
.ph.none { aspect-ratio: 1; background: var(--glass-lift); display: grid; place-items: center; }
.ph.none::after { display: none; }
.nodisk { width: 64%; fill: none; stroke: var(--phos-dim); stroke-width: 2; }

.dirh { font-size: 34px; line-height: 1; margin: 30px 0 12px; }
.dirh.small { font-size: 24px; margin: 18px 0 8px; color: var(--phos-dim); }
.subdir { font-size: 26px; margin: 24px 0 8px; }

/* ---------- HOME, page 1 ---------- */
.home {
  display: grid;
  grid-template-columns: minmax(200px, 30%) 1fr;
  gap: 30px;
}
.hero { margin: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.hero .ph { flex: 1; min-height: 0; }
.hero img { height: 100%; object-fit: cover; }
.hero figcaption { font-size: 16px; line-height: 1.2; color: var(--phos-dim); }
.home .name { font-size: clamp(56px, 10vh, 112px); line-height: .8; letter-spacing: .01em; margin: 0 0 8px; }
.home .sub { font-size: 28px; line-height: 1; margin: 0 0 4px; }
.home .born { font-size: 23px; line-height: 1; color: var(--phos-dim); margin: 0 0 16px; }
.homecols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 34%); gap: 26px; }
.index h2, .homeside h2 { font-size: 24px; color: var(--phos-dim); margin: 0 0 6px; }
.index ol { list-style: none; margin: 0; padding: 0; }
.index a { display: grid; grid-template-columns: 1.4em 1fr; column-gap: 10px; text-decoration: none; padding: 1px 0; }
.scroll[data-sec="home"] { padding-bottom: 10px; }
.index a b { grid-row: span 2; font-weight: 400; background: var(--phos); color: var(--ink-on-phos); text-align: center; align-self: start; text-shadow: none; line-height: 1.05; }
.index .pn { font-size: 23px; line-height: 1; }
.index .pl { font-size: 17px; color: var(--phos-dim); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index a:hover .pl, .index a:focus-visible .pl { color: var(--ink-on-phos); }
.index a:hover b, .index a:focus-visible b { background: var(--ink-on-phos); color: var(--phos); }
.newest { margin-bottom: 18px; }
.newlink { display: grid; grid-template-columns: 96px 1fr; gap: 12px; text-decoration: none !important; align-items: start; }
.newlink > span:last-child { display: flex; flex-direction: column; font-size: 20px; line-height: 1.1; }
.newlink .big, .otd .big { font-size: 30px; line-height: 1; }
.otd p { margin: 0 0 4px; }
.otd .dim { font-size: 18px; line-height: 1.1; }

/* ---------- TIMELINE, page R ---------- */
.transport { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 14px; }
.transport .inv { font-size: 28px; min-width: 4.2ch; }
.readout { margin: 0; font-size: 26px; }
.readout b { font-weight: 400; display: inline-block; min-width: 2.4ch; font-variant-numeric: tabular-nums; margin: 0 14px 0 6px; }
.solohint { margin: 0; }
.seq { position: relative; --name: 6.4em; }
.trk { display: grid; grid-template-columns: var(--name) 1fr; align-items: stretch; }
.trk + .trk { border-top: 1px solid rgba(51, 255, 102, .12); }
.solo {
  border: 0; background: none; text-align: left; padding: 0 8px 0 0;
  font: 20px/1 var(--mono); color: var(--phos); cursor: inherit; text-shadow: inherit;
}
.solo:hover { background: var(--phos-faint); }
.solo[aria-pressed="true"] { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; padding-left: 6px; }
.solo.blank { pointer-events: none; }
.lane {
  position: relative;
  height: calc(var(--lanes) * 11px + 10px);
  background: repeating-linear-gradient(90deg, rgba(51, 255, 102, .16) 0 1px, transparent 1px calc(100% / 77));
}
.lane .note {
  position: absolute; top: calc(5px + var(--l) * 11px);
  width: max(4px, .9%); height: 9px; padding: 0; border: 0; border-radius: 0;
  background: var(--phos-dim); cursor: inherit;
}
.lane .note.hl { background: var(--phos); }
.lane .note:hover, .lane .note.on { background: #d8ffe2; box-shadow: 0 0 0 2px var(--glass), 0 0 0 3px var(--phos); z-index: 2; }
.trk.muted .lane { opacity: .22; }
.trk.muted .solo { color: var(--phos-dim); }
.rulerrow { height: 26px; }
.ruler { position: relative; height: 26px; cursor: inherit; }
.ruler span { position: absolute; top: 2px; font-size: 18px; transform: translateX(-1px); padding-left: 3px; border-left: 1px solid var(--phos-dim); line-height: 1.2; color: var(--phos-dim); }
.headwrap { position: absolute; top: 0; bottom: 0; left: var(--name); right: 0; pointer-events: none; overflow: hidden; }
.head { position: absolute; inset: 0; transform: translateX(0); will-change: transform; }
.head::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: #d8ffe2; box-shadow: 0 0 6px var(--phos); }
.head::after { content: ""; position: absolute; left: -7px; top: 0; border: 7px solid transparent; border-top-color: #d8ffe2; }
.insp { min-height: 3.7em; margin: 14px 0 0; padding: 8px 12px; background: var(--glass-lift); }
.insp b { font-weight: 400; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 7.4em 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 8px 0; border-top: 1px solid rgba(51, 255, 102, .14); content-visibility: auto; contain-intrinsic-size: auto 84px; }
.ev .d, .ev .age { font-variant-numeric: tabular-nums; }
.ev .age, .ev .c { color: var(--phos-dim); grid-column: 1; font-size: 19px; line-height: 1.1; }
.ev .tx { grid-column: 2; grid-row: 1 / span 3; }
.ev h3 { font-size: 24px; line-height: 1.05; margin-bottom: 2px; }
.ev.hl h3 { display: inline; background: var(--phos); color: var(--ink-on-phos); text-shadow: none; padding: 0 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ev.hl h3 + p { margin-top: 4px; }
.ev p { margin: 0 0 2px; max-width: 70ch; }

/* ---------- LIFE ---------- */
.life { display: grid; grid-template-columns: minmax(0, 66ch) minmax(240px, 1fr); gap: 44px; align-items: start; }
.bio { font-size: 23px; line-height: 1.28; }
.bio h2 { font-size: 36px; line-height: 1; margin: 34px 0 10px; scroll-margin-top: 12px; }
.bio p { margin: 0 0 .8em; }
.chapters ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; font-size: 20px; }
.chapters li { margin: 0 0 3px; break-inside: avoid; }
.chapters .dirh { margin-top: 4px; }
.side h3 { font-size: 22px; color: var(--phos-dim); margin: 18px 0 6px; }
.side .dirh { margin-top: 6px; }
.side .dirh ~ .dirh { margin-top: 36px; }
.people, .places { list-style: none; margin: 0; padding: 0; font-size: 19px; line-height: 1.15; }
.people li, .places li { margin: 0 0 10px; }
.people b, .places b { font-weight: 400; font-size: 21px; }

.people .relation { color: var(--phos); }
.note { display: block; color: var(--phos-dim); }

/* ---------- MUSIC directory ---------- */
.diridx ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 28px; font-size: 21px; }
.diridx li { margin: 0 0 3px; }
.diridx .dirh { margin-top: 2px; }
.dirsec { scroll-margin-top: 10px; }
.dir { list-style: none; margin: 0; padding: 0; }
.dir .vol, .dirhead {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 5.2ch 7ch 7ch; gap: 14px; align-items: center;
}
.dirhead { color: var(--phos-dim); font-size: 18px; padding: 0 4px 4px; }
.dirhead span:nth-child(n+3), .dir .yr, .dir .fl, .dir .tm { text-align: right; font-variant-numeric: tabular-nums; }
.dir .vol { padding: 3px 4px; text-decoration: none !important; min-height: 44px; }
.dir .th { width: 44px; }
.dir .th .ph { width: 44px; }
.dir .th .ph img { aspect-ratio: 1; object-fit: cover; }
.dir .nm { font-size: 24px; line-height: 1.05; }
.dir .row { content-visibility: auto; contain-intrinsic-size: auto 50px; }
.dir .row.open { content-visibility: visible; }
.dir .row.open > .vol { background: var(--phos); color: var(--ink-on-phos); text-shadow: none; }
.dir .row.open > .vol .dim { color: #0b4a1c; }
.dir .vol:hover .dim, .dir .vol:focus-visible .dim { color: #0b4a1c; }
.tours .vol, .tours .dirhead { grid-template-columns: 0 minmax(0, 1fr) 10ch 6ch 5ch; }
.songs .vol { min-height: 0; grid-template-columns: 0 minmax(0, 1fr) 0 7ch 7ch; gap: 0 14px; }
.findrow { display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; }
.findrow input, .lb input {
  font: inherit; color: var(--phos); background: var(--glass-lift); border: 0; border-bottom: 2px solid var(--phos-dim);
  padding: 2px 6px; width: min(22ch, 100%); border-radius: 0;
}
.findrow input::placeholder { color: var(--phos-faint); }
.findrow input:focus { outline: none; border-bottom-color: var(--phos); background: #0c2c15; }

.panel { padding: 18px 4px 26px 62px; background: var(--glass-lift); margin-bottom: 8px; }
.rel { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.rel.tour { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.relart .ph { max-width: 300px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 14px 0 0; font-size: 19px; line-height: 1.12; }
.facts dt { color: var(--phos-dim); }
.facts dd { margin: 0; }
.relart .dirh.small:first-child { margin-top: 0; }
.reltracks .dirh.small:first-child { margin-top: 0; }
.sidehd { margin: 10px 0 4px; font-size: 20px; color: var(--phos-dim); }
.tracks { list-style: none; margin: 0; padding: 0; }
.tracks li { display: grid; grid-template-columns: 2.2ch minmax(0, 1fr) auto; gap: 12px; padding: 2px 0; align-items: baseline; }
.tracks .n, .tracks .len { font-variant-numeric: tabular-nums; color: var(--phos-dim); }
.tracks .n { text-align: right; }
.tracks .tt .w { display: block; font-size: 18px; color: var(--phos-dim); line-height: 1.05; }
.total { margin: 6px 0 0; text-align: right; color: var(--phos-dim); }
.relmore { max-width: 100%; }
.notes p { max-width: 70ch; }
.peaks { border-collapse: collapse; margin: 16px 0 10px; font-variant-numeric: tabular-nums; font-size: 20px; }
.peaks caption { text-align: left; color: var(--phos-dim); padding-bottom: 2px; }
.peaks th { font-weight: 400; color: var(--phos-dim); padding: 0 10px 0 0; text-align: right; }
.peaks td { padding: 0 10px 0 0; text-align: right; min-width: 2.6ch; }
.personnel { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 18px; line-height: 1.12; }
.personnel li { break-inside: avoid; margin: 0 0 5px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 4px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 6px; }
.appear { list-style: none; margin: 0; padding: 0; }
.appear li { display: grid; grid-template-columns: 5ch 7ch 1fr; gap: 12px; padding: 2px 0; }
.appear .yr { font-variant-numeric: tabular-nums; }
.appear .k { color: var(--phos-dim); }
.songs .panel { padding-left: 18px; }
.collabs { list-style: none; margin: 0; padding: 0; }
.collabs li { display: grid; grid-template-columns: 5ch 1fr; gap: 14px; padding: 6px 0; border-top: 1px solid rgba(51, 255, 102, .12); content-visibility: auto; contain-intrinsic-size: auto 70px; }
.collabs b { font-weight: 400; font-size: 24px; }
.collabs .yr { font-variant-numeric: tabular-nums; color: var(--phos-dim); }
.kind { color: var(--phos-dim); }

/* videos */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 22px; }
.vid { min-width: 0; }
.vid h3, .vid h4 { font-size: 24px; line-height: 1.05; margin: 8px 0 2px; }
.vid p { margin: 0 0 3px; font-size: 19px; line-height: 1.12; }
.vframe { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vframe .ph { position: absolute; inset: 0; }
.vframe .ph img { height: 100%; object-fit: cover; }
.vframe .play { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fan { background: var(--phos-faint); padding: 0 4px; }

/* stage */
.landmarks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.landmarks li { break-inside: avoid; margin: 0 0 4px; }
.landmarks .d, .perf .d { color: var(--phos-dim); font-variant-numeric: tabular-nums; }
.perfs { list-style: none; margin: 0; padding: 0; }
.perf { display: grid; grid-template-columns: 7.4em 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(51, 255, 102, .14); content-visibility: auto; contain-intrinsic-size: auto 140px; scroll-margin-top: 10px; }
.perf h3 { font-size: 26px; line-height: 1.05; margin-bottom: 2px; }
.perf.lm h3 { display: inline; background: var(--phos); color: var(--ink-on-phos); text-shadow: none; padding: 0 5px; }
.perf.lm h3 + p { margin-top: 4px; }
.perf p { max-width: 72ch; }
.perf:target { background: var(--glass-lift); }
.songsline { font-size: 19px; line-height: 1.15; }
.setlist li { grid-template-columns: 2.4ch 1fr 0; }
.band li { font-size: 19px; line-height: 1.12; }

/* words */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px 40px; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0; font-size: 27px; line-height: 1.12; }
.quotes figcaption { font-size: 19px; line-height: 1.15; }
.quotes figcaption .d { display: block; color: var(--phos-dim); }
.quotes figcaption .dim { display: block; margin-top: 3px; }

/* world */
.world { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cause { margin: 0 0 28px; }
.cause h3 { font-size: 28px; line-height: 1.02; margin-bottom: 6px; }
.events.mini li { display: grid; grid-template-columns: 7.4em 1fr; gap: 12px; padding: 3px 0; font-size: 19px; line-height: 1.12; }
.events.mini .d { color: var(--phos-dim); font-variant-numeric: tabular-nums; }
.linkcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 36px; }
.linklist li { margin-bottom: 10px; }
.linklist .dim { display: block; font-size: 18px; line-height: 1.1; }

/* honours */
.awards { border-collapse: collapse; width: 100%; font-size: 20px; line-height: 1.15; }
.awards th { font-weight: 400; color: var(--phos-dim); text-align: left; padding: 0 14px 4px 0; }
.awards td { padding: 5px 14px 5px 0; vertical-align: top; border-top: 1px solid rgba(51, 255, 102, .12); }
.awards .yr { font-variant-numeric: tabular-nums; width: 5ch; }
.awards td:last-child { white-space: nowrap; width: 1%; }
.awards tr.n td { color: var(--phos-dim); }
.awards tr.n td a.src { color: var(--phos-faint); }
.won { background: var(--phos); color: var(--ink-on-phos); padding: 0 5px; text-shadow: none; }
.nom { color: var(--phos-dim); }

/* photos */
.gallery { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 18px; }
.gallery li { break-inside: avoid; margin: 0 0 18px; }
.gallery a { display: block; text-decoration: none !important; }
.gallery .cap { display: block; font-size: 19px; line-height: 1.1; padding: 4px 2px 0; }

/* colophon on the glass (narrow screens, where the disk unit is not drawn) */
.colophon { display: none; margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--phos-faint); font-size: 18px; line-height: 1.2; color: var(--phos-dim); }
.colophon p { margin: 0 0 6px; }
.colophon .maker { display: flex; align-items: center; gap: 10px; }
.scroll .colophon a { color: var(--phos-dim); }

/* lightbox: the same glass, filling the room */
dialog#lightbox {
  width: min(1320px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 32px)); max-height: none;
  padding: 0; border: 14px solid var(--case); border-radius: 18px;
  background: var(--glass); color: var(--phos); font: 22px/1.22 var(--mono);
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .8);
  text-shadow: 0 0 1px rgba(51, 255, 102, .7), 0 0 7px rgba(51, 255, 102, .25);
}
dialog#lightbox::backdrop { background: rgba(10, 8, 6, .82); }
.lb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; height: 100%; padding: 22px; overflow: auto; overscroll-behavior: contain; }
.lbfig { margin: 0; min-height: 0; display: grid; place-items: center; }
.lbfig .ph { max-height: 100%; }
.lbfig img { max-height: calc(min(860px, 100dvh - 32px) - 72px); width: auto; object-fit: contain; }
.lbtext h2 { font-size: 36px; line-height: 1; margin-bottom: 8px; }
.lbtext .d { color: var(--phos-dim); }
.lb a { color: var(--phos); }
.lbnav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }

/* ================= sizes ================= */
@media (max-width: 1179px) {
  .rig { --unit-w: 0px; grid-template-columns: auto; column-gap: 0; --glass-w: calc(100vw - 2 * var(--bez-s) - 2 * var(--ring) - 36px); }
  .unit { display: none; }
  .colophon { display: block; }
  .key { width: auto; flex: 1 1 0; min-width: 0; }
  .keys { width: 100%; }
  .keys li { flex: 1 1 0; min-width: 0; }
  .key span { font-size: 10px; letter-spacing: .03em; }
}
@media (max-width: 1000px) {
  .life { grid-template-columns: 1fr; }
  .world { grid-template-columns: 1fr; }
  .diridx ul { columns: 2; }
}

/* phone: the screen fills the display, the keyboard becomes two rows of keys */
@media (max-width: 759px) {
  :root { --kbd-h: auto; }
  .rig {
    --bez-t: 6px; --bez-s: 6px; --ring: 0px;
    display: flex; flex-direction: column;
    padding: env(safe-area-inset-top) 0 0; height: 100dvh; row-gap: 0;
  }
  .monitor { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0; padding: 6px 6px 6px; box-shadow: none; }
  .recess { flex: 1; min-height: 0; display: flex; padding: 0; border-radius: 16px; box-shadow: none; background: none; }
  .glass { width: 100%; height: auto; flex: 1; border-radius: 14px / 12px; }
  .screw, .controls, .cmd { display: none; }
  .keyboard { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 0; }
  .keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px; border-radius: 6px; }
  .manual { display: none; }
  .keys li { min-width: 0; }
  .key { width: 100%; height: 46px; padding: 4px 5px 7px; }
  .key b { font-size: 15px; }
  .key span { font-size: 9px; letter-spacing: 0; }
  .topline { padding: 10px 14px 6px; font-size: 20px; }
  .topline .who { display: none; }
  .topline .pageid { min-width: 0; overflow: hidden; }
  html, body { background: var(--case); }
  .topline p { gap: 10px; }
  .scroll { padding: 10px 14px 24px; font-size: 20px; }
  .home { grid-template-columns: 1fr; gap: 14px; }
  .hero .ph { aspect-ratio: 4 / 3.4; flex: none; }
  .hero img { aspect-ratio: 4 / 3.4; }
  .home .name { font-size: 64px; }
  .homecols { grid-template-columns: 1fr; gap: 18px; }
  .dirh { font-size: 28px; margin-top: 24px; }
  .diridx ul { columns: 1; }
  .dir .vol, .dirhead { grid-template-columns: 40px minmax(0, 1fr) 4.4ch 4ch; gap: 8px; }
  .dir .tm, .dirhead span:last-child { display: none; }
  .songs .vol { grid-template-columns: 0 minmax(0, 1fr) 0 4ch 5ch; gap: 0 8px; }
  .songs .tm { display: block; }
  .dir .th, .dir .th .ph { width: 40px; }
  .dir .nm { font-size: 21px; }
  .panel { padding: 14px 10px 20px; }
  .rel, .rel.tour { grid-template-columns: 1fr; gap: 16px; }
  .relart .ph { max-width: 220px; }
  .personnel { columns: 1; }
  .ev { grid-template-columns: 1fr auto; gap: 0 10px; }
  .ev .d { grid-column: 1; }
  .ev .age { grid-column: 2; text-align: right; }
  .ev .c { display: none; }
  .ev .tx { grid-column: 1 / -1; }
  .seq { --name: 5.6em; }
  .solo { font-size: 16px; }
  .ruler span { font-size: 14px; }
  .ruler span:nth-child(even) { display: none; }
  .transport { gap: 14px; }
  .readout { font-size: 20px; }
  .perf { grid-template-columns: 1fr; gap: 2px; }
  .landmarks { columns: 1; }
  .quotes { grid-template-columns: 1fr; }
  .quotes blockquote { font-size: 23px; }
  .awards thead { display: none; }
  .awards, .awards tbody, .awards tr, .awards td { display: block; width: auto; }
  .awards tr { padding: 6px 0; border-top: 1px solid rgba(51, 255, 102, .12); }
  .awards td { border: 0; padding: 0; }
  .awards td:last-child { width: auto; }
  .gallery { columns: 2; column-gap: 10px; }
  .chapters ul { columns: 1; }
  .tours .vol, .tours .dirhead { grid-template-columns: 0 minmax(0, 1fr) 10ch 5ch; }
  .life { gap: 10px; }
  dialog#lightbox { width: 100vw; height: 100dvh; max-height: none; border-width: 6px; border-radius: 0; }
  .lb { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .lbfig img { max-height: 55dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .key { transition: none; }
  .drive .led.busy { animation: none; }
}

/* ================= realism pass ================= */
/* the glass: phosphor bloom on everything lit; ruled top and command lines as on the machine */
.scroll { text-shadow: 0 0 1px rgba(80, 255, 120, .8), 0 0 6px rgba(51, 255, 102, .32), 0 0 18px rgba(51, 255, 102, .12); }
.topline { border-bottom: 2px solid var(--phos-faint); margin: 0 22px; padding-left: 8px; padding-right: 8px; }
.cmd { border-top: 2px solid var(--phos-faint); margin: 0 22px; padding-left: 8px; padding-right: 8px; }

/* moulded case details */
.monitor::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 4px; bottom: 4px; border-radius: 12px 12px 9px 9px;
  box-shadow: inset 0 0 0 1px rgba(120, 104, 70, .28); pointer-events: none;
}
.vent-top { position: absolute; top: 8px; left: 50%; width: 220px; height: 8px; margin-left: -110px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #a2946f 0 10px, transparent 10px 16px); opacity: .75; }
.badge { font: 700 9px/1 var(--label); letter-spacing: .14em; color: #3b352c; background: linear-gradient(#d9d8cf, #b9b8ae); padding: 4px 8px; border-radius: 2px; box-shadow: inset 0 1px 0 #f2f1ea, 0 1px 1px rgba(0, 0, 0, .3); margin-right: 14px; white-space: nowrap; }
.pled { width: 6px; height: 6px; border-radius: 50%; background: #39ff6a; box-shadow: 0 0 0 1px #1e5a2c; margin-left: 4px; }

/* drive 0 holds a disk with its lever turned down; drive 1 is empty, lever across */
.drive .lever { position: absolute; top: 22px; right: 22px; width: 12px; height: 26px; border-radius: 3px; background: #4a4239; box-shadow: inset 0 1px 0 #6b6154, 0 2px 2px rgba(0, 0, 0, .5); transform: rotate(90deg); }
.drive .lever.down { transform: none; }
.drive .disk { position: absolute; left: 22px; right: 60px; top: 10px; height: 24px; background: #121110; border-radius: 1px 1px 0 0; box-shadow: inset 0 1px 0 #2c2a27; overflow: hidden; }
.drive .disk .dlab { position: absolute; left: 10px; right: 26%; top: 3px; height: 16px; padding: 0 5px; background: #f1ead6; border-top: 3px solid #c8432f;
  font: 700 9px/13px var(--label); letter-spacing: .05em; color: #2a2620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive.a .slot { top: 33px; }

/* the keyboard: function keys on top, the six-octave music keyboard in front */
.keyboard { flex-direction: column; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 8px; background: linear-gradient(var(--case), #d8cbab); }
.manual { display: flex; align-items: stretch; gap: 14px; width: min(100%, 1180px); height: 36px; flex: none; }
.sliders { display: flex; gap: 8px; align-items: center; padding: 0 10px; background: #2c2622; border-radius: 3px 3px 0 0; box-shadow: inset 0 2px 3px #000; }
.sliders i { width: 13px; height: 28px; border-radius: 3px; background: repeating-linear-gradient(to bottom, #3b3631 0 2px, #1a1714 2px 4px); box-shadow: inset 0 0 0 1px #0a0908, 0 1px 0 #4a433b; }
.sliders i:nth-child(3) { display: none; }
.octaves { position: relative; flex: 1; display: flex; background: #0e0c0b; padding: 2px 2px 0; border-radius: 3px 3px 0 0; box-shadow: inset 0 2px 3px #000; }
.octaves .wk { flex: 1; background: linear-gradient(#e9e4d6, #faf7ee 70%, #d9d2c0); margin-right: 1px; border-radius: 0 0 2px 2px; }
.octaves .bk { width: 0; position: relative; z-index: 1; }
.octaves .bk::before { content: ""; position: absolute; left: -5px; width: 10px; top: 0; height: 58%; background: linear-gradient(#2a2622, #0b0a09); border-radius: 0 0 2px 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .6); }

/* the tube warming up: the raster opens from a bright line */
.boot { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; overflow: hidden; }
.boot i { position: absolute; left: 0; right: 0; }
.boot .bt, .boot .bb { height: 50%; background: #010402; }
.boot .bt { top: 0; }
.boot .bb { bottom: 0; }
.boot .bl { top: 50%; height: 2px; margin-top: -1px; background: #d8ffe2; box-shadow: 0 0 12px 3px rgba(51, 255, 102, .7); opacity: 0; }
.boot.run .bt { animation: bootT .55s cubic-bezier(.6, 0, .2, 1) .25s forwards; }
.boot.run .bb { animation: bootB .55s cubic-bezier(.6, 0, .2, 1) .25s forwards; }
.boot.run .bl { animation: bootL .8s ease-out forwards; }
@keyframes bootT { to { transform: translateY(-101%); } }
@keyframes bootB { to { transform: translateY(101%); } }
@keyframes bootL { 0% { opacity: 0; transform: scaleX(.02); } 25% { opacity: 1; transform: scaleX(1); } 60% { opacity: .8; } 100% { opacity: 0; transform: scaleX(1) scaleY(30); } }

/* green, colour, green, colour ... then colour */
.ph.held img { filter: none; }
.ph.held::after { opacity: 0; }
.ph.lit img { animation: glImg .5s steps(1, end) var(--gd, 0ms) forwards; }
.ph.lit::after { animation: glTint .5s steps(1, end) var(--gd, 0ms) forwards; }
.ph::before { content: ""; position: absolute; left: 0; right: 0; top: var(--gy, 40%); height: 9%; z-index: 2; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(to bottom, rgba(190, 255, 205, .55) 0 1px, rgba(51, 255, 102, .18) 1px 3px); mix-blend-mode: screen; }
.ph.lit::before { animation: glBand .5s steps(1, end) var(--gd, 0ms) forwards; }
.ph.none::before { display: none; }
@keyframes glTint {
  0% { opacity: 1; } 12% { opacity: 0; } 19% { opacity: 1; } 31% { opacity: 0; } 37% { opacity: 1; }
  52% { opacity: 0; } 56% { opacity: 1; } 66%, 100% { opacity: 0; }
}
@keyframes glImg {
  0% { filter: grayscale(1) contrast(1.15) brightness(1.05); transform: none; }
  12% { filter: none; transform: translateX(2.5%); }
  19% { filter: grayscale(1) contrast(1.3) brightness(1.2); transform: translateX(-1.5%) skewX(-4deg); }
  31% { filter: saturate(1.4); transform: none; }
  37% { filter: grayscale(1) contrast(1.15) brightness(1.05); transform: translateX(1.2%); }
  52% { filter: none; transform: translateX(-.6%); }
  56% { filter: grayscale(1) contrast(1.4) brightness(1.3); transform: skewX(3deg); }
  66%, 100% { filter: none; transform: none; }
}
@keyframes glBand {
  0% { opacity: 0; } 12% { opacity: 1; transform: translateY(0); } 19% { opacity: 1; transform: translateY(260%); }
  31% { opacity: 0; } 37% { opacity: 1; transform: translateY(-180%); } 52% { opacity: 0; } 56% { opacity: 1; transform: translateY(420%); } 66%, 100% { opacity: 0; }
}

/* the player: the video takes the whole window */
dialog#player {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: var(--phos); font: 22px/1.2 var(--mono);
  grid-template-rows: auto 1fr; overscroll-behavior: contain;
}
dialog#player[open] { display: grid; }
dialog#player::backdrop { background: #000; }
.plbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 18px; background: var(--glass); border-bottom: 2px solid var(--phos-faint); text-shadow: 0 0 6px rgba(51, 255, 102, .35); }
.plbar h2 { font-size: 26px; line-height: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plframe { position: relative; min-height: 0; }
.plframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1179px) { .manual { width: 100%; } }
@media (max-width: 759px) { .vent-top, .badge { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ph.lit img, .ph.lit::after, .ph.lit::before { animation: none; }
  .ph.lit img { filter: none; }
  .ph.lit::after { opacity: 0; }
}

/* short windows: the music keyboard steps aside so the screen keeps its height */
@media (max-height: 820px) and (min-width: 760px) {
  :root { --kbd-h: 100px; }
  .manual { display: none; }
}

/* ================= photo-real pass: light, material and depth instead of flat fills ================= */
:root {
  /* fine moulded-plastic texture, generated here (no downloaded textures) */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='300' height='60' filter='url(%23b)'/%3E%3C/svg%3E");
}

/* the room: a dim studio, light falling from above onto the desk */
html, body { background: #120f0c; }
body {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 236, 200, .10), transparent 70%),
    linear-gradient(#1d1915 0%, #14110e 62%, #0b0908 100%);
}

/* cream ABS plastic, lit from above-left, darker toward the floor */
.monitor, .unit, .keyboard {
  background-color: #ddd2b5;
  background-image:
    var(--tex),
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .08) 14%, rgba(0, 0, 0, 0) 45%, rgba(60, 44, 20, .14) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .06));
  background-blend-mode: soft-light, normal, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(90, 70, 40, .18),
    inset 0 -2px 0 rgba(90, 70, 40, .28),
    inset 0 -18px 26px -14px rgba(70, 52, 24, .32),
    0 1px 0 rgba(0, 0, 0, .55),
    0 3px 2px rgba(0, 0, 0, .35),
    0 22px 26px -14px rgba(0, 0, 0, .8),
    0 46px 80px -24px rgba(0, 0, 0, .7);
}
.monitor::before { box-shadow: inset 0 0 0 1px rgba(90, 72, 40, .22), inset 0 1px 0 1px rgba(255, 255, 255, .25); }
.keyboard { border-radius: 14px 14px 0 0; }

/* the bezel slopes into the tube: lit top edge, shadowed lower lip */
.recess {
  background:
    linear-gradient(180deg, #a99a76 0%, #c8bb9a 22%, #d8ccae 60%, #e4d9be 100%);
  box-shadow:
    inset 0 10px 14px -6px rgba(40, 30, 12, .65),
    inset 0 -3px 4px rgba(255, 255, 255, .55),
    inset 8px 0 12px -8px rgba(40, 30, 12, .35),
    inset -8px 0 12px -8px rgba(40, 30, 12, .25),
    0 1px 0 rgba(255, 255, 255, .7),
    0 -1px 0 rgba(90, 72, 40, .35);
}
.glass {
  box-shadow: 0 0 0 3px #0b0a08, 0 0 0 5px rgba(20, 16, 10, .55), 0 2px 0 5px rgba(255, 255, 255, .18);
}
/* a real tube: dark corners, a soft window reflection, the faint grey of unlit phosphor */
.glass-fx::after {
  box-shadow: inset 0 0 90px 20px rgba(0, 0, 0, .9), inset 0 0 22px 4px #000;
  background:
    linear-gradient(118deg, rgba(235, 245, 238, .07) 0%, rgba(235, 245, 238, .03) 22%, transparent 23%, transparent 100%),
    radial-gradient(55% 30% at 26% 9%, rgba(235, 255, 240, .09), transparent 70%),
    radial-gradient(80% 70% at 50% 50%, rgba(120, 140, 125, .05), transparent 75%);
}
.glass-fx::before { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }

/* screws: plated, cross-head, slightly sunk */
.screw {
  width: 11px; height: 11px;
  background: radial-gradient(circle at 35% 30%, #f4f1e8 0%, #b9b3a3 45%, #6f695d 100%);
  box-shadow: 0 0 0 1.5px rgba(80, 64, 36, .35), inset 0 -1px 1px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .6);
}
.screw::after { background: #4b463d; height: 1.6px; top: 4.7px; box-shadow: 0 0 0 .3px rgba(0, 0, 0, .3); }
.screw::before { content: ""; position: absolute; left: 4.7px; top: 1px; bottom: 1px; width: 1.6px; background: #4b463d; transform: rotate(35deg); }

/* moulded vents: real slots with depth */
.grille, .vents, .vent-top {
  opacity: 1;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, .45) 0 1px, #2a241b 1px 2px, #3a3226 2px 4px, rgba(0, 0, 0, .25) 4px 5px, transparent 5px 9px);
  box-shadow: none;
}
.grille { height: 16px; }

/* knobs: knurled black plastic with a lit top */
.knob {
  width: 28px; height: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .28), transparent 55%),
    repeating-conic-gradient(#2d2823 0 5deg, #15120f 5deg 10deg);
  box-shadow: 0 0 0 3px #bfb293, 0 0 0 4px rgba(80, 64, 36, .35), 0 3px 4px rgba(0, 0, 0, .55);
}
.knob i { inset: 6px; background: radial-gradient(circle at 45% 35%, #4a4339, #1d1915 75%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 1px rgba(0, 0, 0, .6); }
.legend { color: #5d523c; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.power { background: linear-gradient(#1c1916, #2e2925); }
.power i { background: linear-gradient(#ef5a45, #b8281b 60%, #8e1d14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 1px rgba(0, 0, 0, .5); }
.pled { background: radial-gradient(circle at 40% 35%, #dcffe6, #39ff6a 45%, #128a34); box-shadow: 0 0 6px 1px rgba(57, 255, 106, .55), 0 0 0 1px #1e5a2c; }
.badge { background: var(--brush), linear-gradient(#e6e5dd, #b4b3a9); background-blend-mode: soft-light, normal; }

/* the key well and the keycaps: sculpted tops, tall skirts, real shadows */
.keys {
  background: linear-gradient(#8f8166, #a89a7b 30%, #b7a988);
  box-shadow: inset 0 6px 10px rgba(30, 22, 10, .65), inset 0 -1px 0 rgba(255, 255, 255, .35), 0 1px 0 rgba(255, 255, 255, .6);
  padding: 9px 11px 6px;
}
.key {
  background:
    radial-gradient(110% 80% at 50% 18%, #f3ebd6 0%, #e2d7bb 50%, #d1c4a4 100%);
  color: #332c22;
  border-radius: 7px 7px 9px 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -7px 0 #b8a884,
    inset 0 -8px 5px rgba(60, 44, 20, .18),
    inset 2px 0 2px rgba(255, 255, 255, .35),
    inset -2px 0 2px rgba(60, 44, 20, .12),
    0 1px 0 #8f8061,
    0 3px 0 #6c5e43,
    0 6px 8px rgba(0, 0, 0, .5);
}
.key b, .key span { color: #3a3328; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.key:hover { background: radial-gradient(110% 80% at 50% 18%, #f8f1de 0%, #e7dcc1 50%, #d6c9a9 100%); }
.key:active, .key.down {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -4px 0 #b8a884, inset 0 -5px 4px rgba(60, 44, 20, .2), 0 1px 0 #6c5e43, 0 2px 3px rgba(0, 0, 0, .5);
}
.key.down {
  background: radial-gradient(110% 80% at 50% 18%, #7a5d47 0%, #5b4231 55%, #452f22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 #35241a, inset 0 -5px 4px rgba(0, 0, 0, .3), 0 1px 0 #2a1d14, 0 2px 3px rgba(0, 0, 0, .55);
}
.key.down b, .key.down span { color: #f1e8d4; text-shadow: 0 -1px 0 rgba(0, 0, 0, .4); }

/* the music keyboard: ivory-coloured keys under the case lip */
.octaves { box-shadow: inset 0 7px 7px -3px rgba(0, 0, 0, .75), inset 0 0 0 1px #000; }
.octaves .wk { background: linear-gradient(#cfc8b6 0%, #f4f0e4 18%, #fbf8ef 78%, #ddd6c4 92%, #b9b19c 100%); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .18); }
.octaves .bk::before { background: linear-gradient(90deg, #0b0a09, #2c2824 30%, #2c2824 70%, #0b0a09), linear-gradient(#1a1714, #0b0a09); box-shadow: 0 2px 2px rgba(0, 0, 0, .7), inset 0 -3px 0 #3a3530; }
.sliders { background: linear-gradient(#1b1815, #2c2622); }
.sliders i { background: repeating-linear-gradient(to bottom, #45403a 0 1.5px, #15120f 1.5px 3.5px); box-shadow: inset 2px 0 2px rgba(0, 0, 0, .6), inset -2px 0 2px rgba(0, 0, 0, .6), 0 0 0 1px #050404; }

/* disk drives: textured dark plastic, deep slots, ribbed levers */
.drive {
  background-color: #2a2622;
  background-image: var(--tex), linear-gradient(#36312b, #24201c 40%, #1b1815);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px #0f0d0b, inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(70, 54, 28, .35), 0 3px 6px rgba(0, 0, 0, .35);
}
.drive .slot { background: linear-gradient(#000, #0c0b0a); box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255, 255, 255, .12), 0 -1px 0 rgba(0, 0, 0, .6); }
.drive .lever { background: repeating-linear-gradient(to bottom, #5a5147 0 2px, #3b342c 2px 4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 3px rgba(0, 0, 0, .6); }
.drive .led { background: radial-gradient(circle at 40% 35%, #8a2a20, #3a0f0b); }
.drive .disk { background: linear-gradient(#1d1b19, #0d0c0b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 -1px 2px rgba(0, 0, 0, .5); }
.drive .disk .dlab { background-image: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(70, 110, 170, .18) 4px 5px); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }

/* brushed aluminium rating plate */
.plate { background-color: #c7c6bd; background-image: var(--brush), linear-gradient(#dcdbd3, #b5b4aa); background-blend-mode: soft-light, normal; }

@media (max-width: 759px) {
  .monitor { background-color: #ddd2b5; box-shadow: none; }
  .keyboard { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 -6px 14px rgba(0, 0, 0, .35); }
}

/* the light pen: a lit cylinder, a plated nib, a rubber cord with a sheen */
.pen .cord { stroke: #141210; stroke-width: 3.4; }
.pen .clip { fill: url(#pgClip); }
.pen .barrel { fill: url(#pgBarrel); }
.pen .grip { fill: url(#pgGrip); }
.pen .nib { fill: url(#pgNib); }
.pen .btn { fill: #a32418; }
.pen .boot { fill: #121110; }

/* the desk the machine stands on, and the keyboard lying on it, seen at an angle */
@media (min-width: 760px) {
  .rig {
    background:
      linear-gradient(to top, rgba(0, 0, 0, .55), transparent calc(var(--kbd-h) + 14px)),
      linear-gradient(to top, #2b231c 0, #3a2f25 calc(var(--kbd-h) + 13px), rgba(255, 236, 200, .18) calc(var(--kbd-h) + 14px), transparent calc(var(--kbd-h) + 15px));
  }
  .keyboard {
    transform: perspective(1000px) rotateX(26deg);
    transform-origin: 50% 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(90, 70, 40, .28), 0 -2px 0 rgba(0, 0, 0, .25), 0 -18px 30px -10px rgba(0, 0, 0, .55);
  }
  .monitor, .unit { background-color: #d8cba9; }
}

/* ================= the tube behaves like a tube ================= */
/* BRIGHTNESS and CONTRAST act on the whole picture; brightness also lifts the black level */
.glass { filter: brightness(var(--bri, 1)) contrast(var(--con, 1)); }
.glass-fx { background: rgba(70, 100, 80, var(--lift, 0)); mix-blend-mode: screen; }
.knob { border: 0; padding: 0; cursor: grab; touch-action: none; position: relative; }
.knob:active { cursor: grabbing; }
.knob:focus-visible { outline: 2px solid #2b7a3e; outline-offset: 4px; }
.knob i { transition: transform .06s linear; }
.knob i::after { background: #efe7d2; width: 2px; height: 7px; top: 1px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); }
.pled.off { background: #164a22; box-shadow: 0 0 0 1px #1e5a2c; }

/* warming up: after the raster opens, the picture rises out of the dark, soft at first */
.boot .bdot { left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #eafff0; box-shadow: 0 0 14px 5px rgba(51, 255, 102, .75); opacity: 0; }
.boot.run .bdot { animation: bootDot .5s ease-out .12s forwards; }
.boot.run .bl { animation: bootL .7s ease-out .45s forwards; }
.boot.run .bt { animation: bootT .55s cubic-bezier(.6, 0, .2, 1) .75s forwards; }
.boot.run .bb { animation: bootB .55s cubic-bezier(.6, 0, .2, 1) .75s forwards; }
@keyframes bootDot { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(.6); } }
.glass.warming .topline, .glass.warming .scroll, .glass.warming .cmd { animation: warm 2.1s cubic-bezier(.2, .6, .3, 1) .95s both; }
@keyframes warm {
  0% { opacity: .08; filter: blur(3px) brightness(.4); transform: scale(1.02, 1.03); }
  35% { opacity: .55; filter: blur(1.4px) brightness(.75); }
  70% { opacity: .9; filter: blur(.4px) brightness(1.08); transform: scale(1.003); }
  100% { opacity: 1; filter: none; transform: none; }
}

/* between pages: a jolt of the vertical hold, the old frame goes out, the beam draws the new one top to bottom */
.redraw { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; border-radius: inherit; visibility: hidden; }
.redraw::before { content: ""; position: absolute; inset: 0; background: #020904; }
.redraw::after { content: ""; position: absolute; inset: 0; background: rgba(200, 255, 215, .22); opacity: 0; }
.redraw .rbeam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #e2ffe9; box-shadow: 0 0 12px 4px rgba(51, 255, 102, .6), 0 -24px 30px rgba(51, 255, 102, .14); opacity: 0; }
.redraw.go { visibility: visible; animation: rdHold .28s linear forwards; }
.redraw.go::before { animation: rdCover .2s cubic-bezier(.35, 0, .65, 1) .04s forwards; }
.redraw.go::after { animation: rdFlash .06s steps(2, end) forwards; }
.redraw.go .rbeam { animation: rdBeam .2s cubic-bezier(.35, 0, .65, 1) .04s forwards; }
@keyframes rdHold { to { visibility: hidden; } }
@keyframes rdCover { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes rdBeam { 0% { opacity: 1; transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--gh, 600px)); } }
@keyframes rdFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
/* the vertical-hold jolt at page changes is gone: the beam is enough */
@keyframes vslip { 0% { transform: translateY(-10px); } 25% { transform: translateY(7px) skewX(1deg); } 50% { transform: translateY(-3px); } 75% { transform: translateY(1px); } 100% { transform: none; } }

/* the music keyboard plays */
.octaves { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.octaves .wk.on { background: linear-gradient(#b9b19c 0%, #e6e0d0 22%, #efe9da 80%, #cfc7b2 100%); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25), inset 0 3px 4px rgba(0, 0, 0, .35); }
.octaves .bk.on::before { height: 55%; background: linear-gradient(90deg, #050404, #1d1a17 30%, #1d1a17 70%, #050404); box-shadow: inset 0 -1px 0 #2a2622; }
.voice {
  border: 0; padding: 3px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(#1b1815, #2c2622); box-shadow: inset 0 2px 3px #000, 0 1px 0 rgba(255, 255, 255, .5);
  display: flex; align-items: center;
}
.voice .lcd { display: block; min-width: 9.2ch; padding: 3px 6px 2px; border-radius: 2px; background: #9fae76; color: #1d2410; font: 15px/1 var(--mono); letter-spacing: .06em; text-align: center; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
.voice:hover .lcd { background: #aebd84; }
.voice:active { transform: translateY(1px); }
.voice:focus-visible { outline: 2px solid #2b7a3e; outline-offset: 2px; }

/* the light pen in the hand */
.handpen { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; overflow: visible; display: none; }
.handpen.live { display: block; }
.handpen .hcord { fill: none; stroke: #141210; stroke-width: 3.2; stroke-linejoin: round; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .45)); }
.handpen g { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .5)); }
.handpen .barrel { fill: url(#pgBarrel); }
.handpen .grip { fill: url(#pgGrip); }
.handpen .nib { fill: url(#pgNib); }
.handpen .btn { fill: #a32418; }
.handpen .boot { fill: #121110; }
.handpen .tipring { fill: var(--phos); }
.handpen .tipring.fire { animation: tipFire .22s ease-out; }
@keyframes tipFire { 0% { fill: #f4fff6; r: 5; } 100% { fill: #33ff66; r: 2.2; } }
.pen.lifted g, .pen.lifted .cord { visibility: hidden; }
html.penhand .glass, html.penhand .glass * { cursor: none !important; }
html.penhand .glass input { cursor: text !important; }

@media (prefers-reduced-motion: reduce) {
  .redraw, .boot { display: none; }
  .glass.vslip .topline, .glass.vslip .scroll, .glass.vslip .cmd, .glass.warming .topline, .glass.warming .scroll, .glass.warming .cmd { animation: none; }
}
@media (max-width: 759px) {
  .voice .lcd { min-width: 0; font-size: 12px; padding: 2px 4px; }
  .manual { gap: 6px; }
}
