/* DSEG14 Classic Italic by keshikan, SIL Open Font License 1.1 (see fonts/DSEG-LICENSE.txt). */
@font-face {
  font-family: "DSEG14";
  src: url("../fonts/DSEG14Classic-Italic.woff2") format("woff2");
  font-display: block;
}

:root {
  --wall:    #2d353c;  /* painted concrete, cool blue-grey */
  --frame:   #151412;  /* rack frame */
  --face:    #23221f;  /* faceplates */
  --edge:    #34322e;
  --window:  #0b0a09;  /* display glass */
  --seg:     #f29f33;  /* lit segments: try #ff3b2f for a red alarm clock */
  --text:    #d9d0bf;
  --silk:    #9a9182;  /* silkscreened labels */
  --dim:     #6d665b;
  --led-on:  #7fd1a0;
  --screw:   #4a4640;
}
/* --light is the room's fluorescent tube: 1 = on, 0 = off. Registered so it can animate. */
@property --light { syntax: "<number>"; inherits: true; initial-value: 1; }
:root { transition: --light .25s ease; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--wall);
  color: var(--text);
  font: 15px/1.6 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}
/* pool of light the tube throws on the wall */
/* how much the room darkens when the tube flickers; used by walls, floor and the desk scene */
:root { --dark: calc((1 - var(--light)) * 45%); }

/* ---------- panning: two views side by side, the track slides left ---------- */
.pan { overflow-x: clip; }
.track { display: flex; width: 200%; transition: transform 1.4s cubic-bezier(.65, 0, .35, 1); }
body.panned .track { transform: translateX(-50%); }
.view { width: 50%; flex: none; position: relative; background: color-mix(in srgb, var(--wall), #000 var(--dark)); }

.view-rack::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1300px; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 40px, rgba(200, 222, 248, calc(.22 * var(--light))), transparent 75%);
}
.wrap { padding: 0 1rem; position: relative; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--seg); outline-offset: 3px; }

/* ---------- rack ---------- */
.rack {
  max-width: 920px; margin: 0 auto;
  background: var(--frame);
  z-index: 2;   /* above the room dimming: the rack stays fully readable when the tube flickers */
  border-radius: 6px;
  padding: 14px 30px;
  position: relative;
}
/* mounting rails with square holes */
.rack::before, .rack::after {
  content: ""; position: absolute; top: 14px; bottom: 14px; width: 12px;
  background: repeating-linear-gradient(to bottom, #2b2926 0 6px, transparent 6px 15px);
}
.rack::before { left: 9px; }
.rack::after  { right: 9px; }

/* ---------- units ---------- */
.unit {
  position: relative;
  background:
    radial-gradient(circle at 12px 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    var(--face);
  border-top: 1px solid var(--edge);
  border-radius: 3px;
  margin-bottom: 8px;
  padding: 1.1rem 5rem 1.1rem 2.5rem;   /* extra room on the right for the network port and cables */
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
}
.unit:last-child { margin-bottom: 0; }
.side { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.leds { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--dim); }
.leds span { display: flex; align-items: center; gap: 5px; }

.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2f2d29; display: inline-block; flex: none;
}
.led.on  { background: var(--led-on); box-shadow: 0 0 5px color-mix(in srgb, var(--led-on) 60%, transparent); }
.led.act.lit { background: var(--seg); box-shadow: 0 0 5px color-mix(in srgb, var(--seg) 70%, transparent); }

/* ---------- segment displays ---------- */
.win {
  display: inline-block;
  background: var(--window);
  border-radius: 3px;
  padding: .35em .55em .3em;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04);
  line-height: 1;
  max-width: 100%;
}
.seg {
  font-family: "DSEG14", "IBM Plex Mono", monospace;
  font-weight: normal;
  color: var(--seg);
  text-shadow: 0 0 6px color-mix(in srgb, var(--seg) 45%, transparent);
  white-space: nowrap;
  position: relative; display: inline-block;
  margin: 0; font-size: 1.05rem; letter-spacing: .04em;
}
.seg .ghost { position: absolute; inset: 0; color: color-mix(in srgb, var(--seg) 8%, transparent); text-shadow: none; }
.seg .lit   { position: relative; }

.silk { font-size: 12px; color: var(--silk); letter-spacing: .02em; }

/* ---------- identity unit ---------- */
.ident { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: 1.6rem; }
/* The name scales to fit its column. --cells is set by the script (number of characters);
   each cell is ~0.86em wide, and 40px covers the display window's padding. */
.ident .side { container-type: inline-size; width: 100%; }
.ident h1.seg { font-size: clamp(12px, calc((100cqi - 40px) / (var(--cells, 16) * 0.86)), 30px); }
.readouts { display: grid; grid-template-columns: auto auto; gap: .5rem .8rem; align-items: center; justify-items: start; }
.readouts .silk { justify-self: end; }
.readouts .seg { font-size: clamp(12px, 1.9vw, 17px); }

/* ---------- content ---------- */
.body p { margin: 0 0 .8em; max-width: 64ch; }
.body p:last-child { margin-bottom: 0; }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0 1.5rem; padding: .15rem 0; }
.row .when { color: var(--silk); }

/* drive bays */
.bays { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.bay {
  border: 1px solid var(--edge); border-radius: 3px; padding: .7rem .8rem;
  background: repeating-linear-gradient(to right, transparent 0 5px, rgba(0,0,0,.18) 5px 7px) left bottom / 100% 8px no-repeat, #1e1d1a;
  padding-bottom: 1.3rem;
}
.bay .name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.bay p { margin: .35rem 0 0; font-size: 13px; color: var(--silk); }
.bay .tag { color: var(--dim); font-size: 12px; }
.bay .name a { color: inherit; text-decoration: none; }
.bay .name a:hover, .bay .name a:focus-visible { color: var(--seg); }
.bay .ext { color: var(--seg); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hot-swap drive bays filling the Interests unit's side column */
.drives { display: grid; gap: 5px; width: 100%; margin-top: .5rem; --seg: #6aa8ff; }   /* blue disk-activity LEDs */
.drive {
  height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 8px;
  border: 1px solid var(--edge); border-radius: 2px; background: #1b1a18;
}
.drive::before { content: ""; width: 4px; height: 16px; border-radius: 1px; background: #3d3a35; }   /* release latch */
.drive .grille { flex: 1; height: 12px; background-image: radial-gradient(circle, #0c0b0a 1.2px, transparent 1.6px); background-size: 5px 5px; }
.drive .led { width: 6px; height: 6px; }

/* front I/O under the Projects fans, with a forgotten USB stick */
.io { display: flex; align-items: center; gap: 12px; margin-top: .6rem; width: 178px; }
.vga {
  width: 32px; height: 14px; background: var(--window);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background-image: radial-gradient(circle, #4a4640 1px, transparent 1.4px); background-size: 5px 4.5px; background-position: 3px 1px;
}
.usb { position: relative; width: 22px; height: 9px; background: var(--window); border-radius: 1px; }
.usb::after { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 3px; background: #3a6fd0; }  /* USB 3 blue tongue */
.stick {
  position: absolute; left: -4px; top: -4px; width: 30px; height: 17px; z-index: 1;
  background: #c8463d; border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.stick::before {  /* keyring loop */
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 7px; height: 7px; transform: translateX(-50%);
  border: 1.5px solid #9a9182; border-radius: 50%;
}
.rst { width: 6px; height: 6px; border-radius: 50%; background: #0b0a09; margin-left: auto; box-shadow: 0 0 0 2px #2e2c29; }
.pwr { width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #2e2c29 0 45%, #121110 46% 58%, #6aa8ff 59% 68%, #2e2c29 69%);
  box-shadow: 0 0 6px rgba(106, 168, 255, .4); }

/* RAID status readout under the drive bays */
.raid { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: .2rem; }
.raid .seg { --seg: #5ee38a; font-size: .78rem; }

/* intake fans under the About and Projects displays */
.fans { display: flex; gap: 10px; margin-top: .5rem; }
.fan {
  position: relative; width: 84px; height: 84px; border-radius: 6px;
  background: #181715; border: 1px solid var(--edge); overflow: hidden;
}
.fan .blades {
  position: absolute; inset: 7px; border-radius: 50%;
  background:
    radial-gradient(circle, #242320 0 17%, transparent 18%),
    repeating-conic-gradient(from 0deg, #2f2d29 0 22deg, #121110 22deg 51.43deg);
  animation: spin 2.4s linear infinite;
}
.fan:nth-child(2) .blades { animation-duration: 2.9s; }
.fan::after {   /* finger guard: rings and cross bars */
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background:
    linear-gradient(transparent calc(50% - 1px), #3d3a35 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), #3d3a35 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-radial-gradient(circle, transparent 0 6px, #3d3a35 6px 7.5px);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* UPS */
.ups { --face: #1f1f1d; align-items: center; padding-block: 1.3rem; }
.ups .leds { gap: 12px; }
.ups .silk { line-height: 1.5; }
.ups-model { color: var(--dim); font-size: 11px; }
.ups-panel { display: flex; align-items: center; gap: 1.2rem; }
.ups-panel .seg { font-size: 1rem; }
.batt { display: flex; align-items: center; gap: 5px; }
.batt .silk { margin-right: 4px; }
.ups-grille { flex: 1; min-width: 40px; height: 34px; border-radius: 2px;
  background: repeating-linear-gradient(to right, #121110 0 3px, transparent 3px 7px); }
.ups-btn { width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #2e2c29 0 45%, #121110 46% 58%, #5ee38a 59% 66%, #2e2c29 67%);
  box-shadow: 0 0 6px rgba(94, 227, 138, .35); }

/* interest modules */
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.mods li { border: 1px solid var(--edge); border-radius: 3px; padding: .6rem .8rem; background: #1e1d1a; }
.mods .name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mods p { margin: .3rem 0 0; font-size: 13px; color: var(--silk); }

/* patch panel */
.ports { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.port { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; color: var(--silk); }
.jack {
  width: 34px; height: 26px; background: var(--window); position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 72% 78%, 72% 100%, 28% 100%, 28% 78%, 0 78%);
}
.port .led { margin-top: -2px; }
.port:hover, .port:focus-visible { color: var(--text); }
.port:hover .led, .port:focus-visible .led { background: var(--led-on); box-shadow: 0 0 5px color-mix(in srgb, var(--led-on) 60%, transparent); }

/* blank vented panel */
.vent {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 1.4rem 2.5rem;
  background:
    radial-gradient(circle at 12px 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 12px) 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    repeating-linear-gradient(to right, transparent 0 14px, #1b1a17 14px 17px) center / calc(100% - 7rem) 10px no-repeat,
    var(--face);
}
.vent .silk { background: var(--face); padding: 0 .5rem; }

/* ---------- network: NICs, switch, cables ---------- */
.nic {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 12px; background: var(--window);
  clip-path: polygon(0 0, 100% 0, 100% 75%, 70% 75%, 70% 100%, 30% 100%, 30% 75%, 0 75%);
}
.switch { padding-block: 2rem; align-items: center; }
.switch .seg { font-size: .9rem; }
.sw-front { display: flex; justify-content: flex-end; align-items: center; gap: 1.4rem; }
.swports { display: grid; gap: 10px; }
.sw-row { display: flex; gap: 6px; }
.swport { display: flex; align-items: flex-start; gap: 3px; }
.swport .jack { width: 22px; height: 17px; }
.sw-row.bottom .swport { align-items: flex-end; }
.sw-row.bottom .jack { transform: scaleY(-1); }        /* bottom row is mounted upside down, like real switches */
.sw-meta { display: flex; align-items: center; gap: 12px; }
.sw-meta .silk { font-size: 11px; line-height: 1.35; }
.console { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.console .jack { width: 22px; height: 17px; background: #2b5570; }   /* light-blue console port */
.console .silk { font-size: 10px; }
.sfp-block { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sfp-block .silk { font-size: 10px; }
.sfp-leds { display: flex; gap: 26px; }
.sfp-cages { display: flex; gap: 6px; }
.sfp { position: relative; width: 30px; height: 13px; background: var(--window); box-shadow: 0 0 0 2px #6d7780; border-radius: 1px; }
.sfp .module { position: absolute; inset: 2px; background: #a9b1b8; border-radius: 1px; }
.sfp .module::after { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 3px; background: #3a6fd0; border-radius: 1px; }  /* pull tab */
.cables { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }

/* ---------- the room ---------- */
.ceiling { height: 22px; background: color-mix(in srgb, #1d2226, #000 var(--dark)); border-bottom: 1px solid #343b41; }
.scene-top { position: relative; max-width: 920px; height: 170px; margin: 0 auto; }
.tl {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  width: min(520px, 60%); height: 14px; background: #3a3f44; border-radius: 3px;
}
.tl::before, .tl::after { content: ""; position: absolute; bottom: 100%; width: 1px; height: 26px; background: #4a5057; }
.tl::before { left: 12%; } .tl::after { right: 12%; }
.tube {
  position: absolute; left: 8px; right: 8px; bottom: -5px; height: 7px; border-radius: 4px;
  background: color-mix(in srgb, #eef6ff calc(25% + 75% * var(--light)), #454b51);
  box-shadow: 0 0 calc(40px * var(--light)) calc(8px * var(--light)) rgba(200, 225, 255, calc(.5 * var(--light)));
}

/* emergency reboot button, wall-mounted like a datacenter EPO switch */
.epo {
  position: absolute; left: 0; top: 56px; width: 78px; height: 96px; padding: 8px 0 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 0; border-radius: 6px; background: #d9b53a;
  box-shadow: inset 0 0 0 4px #d9b53a, inset 0 0 0 7px #1c1c1c, 0 6px 14px rgba(0, 0, 0, .45);
  font: 500 9px/1.15 "IBM Plex Mono", monospace; color: #1c1c1c;
  filter: brightness(calc(.68 * (1 - (1 - var(--light)) * .45)));   /* sits in the dim part of the room */
}
/* on wide screens it hangs on the wall to the left of the rack */
@media (min-width: 1160px) { .epo { left: -116px; top: 780px; } }
.epo-label { background: #f1ead6; padding: 2px 5px; border-radius: 2px; }
.epo-knob {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ff8a7a 0 12%, #e0342a 36%, #8e1b15 100%);
  box-shadow: 0 4px 0 #5e120e, 0 6px 10px rgba(0, 0, 0, .5); transition: transform .1s, box-shadow .1s;
}
.epo:hover { filter: brightness(calc(.85 * (1 - (1 - var(--light)) * .45))); }
.epo:active .epo-knob, .epo.pressed .epo-knob { transform: translateY(3px); box-shadow: 0 1px 0 #5e120e, 0 2px 4px rgba(0, 0, 0, .5); }
.epo:focus-visible { outline: 2px solid var(--seg); outline-offset: 4px; }

/* reboot states: power off, loading bars (booting), then a lamp test (every LED and segment lit), then back to normal */
.unit.off .led, .unit.booting .led { background: #2f2d29 !important; box-shadow: none !important; }
.unit.off .seg .lit { visibility: hidden; }
.unit.off .fan .blades { animation-play-state: paused; }
.unit.post .led:not(.act) { background: var(--led-on) !important; }
.unit.post .led.act { background: var(--seg) !important; }
.unit.post .seg .lit { visibility: hidden; }
.unit.post .seg .ghost { color: var(--seg); text-shadow: 0 0 6px color-mix(in srgb, var(--seg) 45%, transparent); }

.ac { position: absolute; right: 0; top: 58px; width: 200px; }
.ac-body, .ac-air { filter: brightness(calc(1 - (1 - var(--light)) * .45)); }
.ac-body {
  position: relative; height: 62px; border-radius: 10px 10px 16px 16px;
  background: linear-gradient(#a3a9ad, #858b90);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.ac-body::before {  /* condensate pipe running up to the ceiling */
  content: ""; position: absolute; right: 22px; bottom: 100%; width: 9px; height: 70px; background: #7c8287;
}
.ac-brand { position: absolute; left: 14px; top: 10px; font-size: 10px; color: #4b5156; letter-spacing: .08em; }
.ac .win { position: absolute; right: 14px; top: 9px; padding: .3em .45em; font-size: 11px; }
.ac .seg { --seg: #7fd4ff; font-size: 11px; }
.ac .led { position: absolute; right: 16px; top: 33px; --led-on: #7fd4ff; }
.ac-flap {
  position: absolute; left: 10px; right: 10px; bottom: 7px; height: 11px; border-radius: 3px;
  background: repeating-linear-gradient(to bottom, #2b3035 0 2px, #3c4247 2px 4px);
}
.ac-air { display: block; width: 180px; height: 60px; margin: 2px auto 0; overflow: visible; }
.ac-air path { fill: none; stroke: rgba(170, 215, 255, .22); stroke-width: 1.5; stroke-linecap: round; animation: blow 6s linear infinite; }
.ac-air path:nth-child(2) { animation-delay: -2s; }
.ac-air path:nth-child(3) { animation-delay: -4s; }
@keyframes blow { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }

/* the rack catches some of the tube's light at the top */
.sheen { position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  background: linear-gradient(to bottom, rgba(200, 225, 255, calc(.07 * var(--light))), transparent 35%); }

/* raised floor */
.floor { filter: brightness(calc(1 - (1 - var(--light)) * .45)); }
.floor { position: relative; height: 170px; background: linear-gradient(#2a3137, #1b2024); border-top: 3px solid #3a4248; overflow: hidden; }
.floor::before {
  content: ""; position: absolute; left: -50%; right: -50%; top: 0; height: 340px;
  background-image: linear-gradient(#3a4248 1px, transparent 1px), linear-gradient(90deg, #3a4248 1px, transparent 1px);
  background-size: 90px 90px; background-position: center top;
  transform: perspective(380px) rotateX(62deg); transform-origin: top;
}
.floor::after {  /* the rack's shadow */
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(980px, 100%); height: 40px; background: radial-gradient(ellipse at top, rgba(0, 0, 0, .7), transparent 70%);
}

/* dimming and vignette over the whole scene; darkens when the tube flickers */
.ambience {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(ellipse 85% 80% at 50% 40%, transparent 62%, rgba(0, 0, 0, .2) 100%);
}

/* ---------- the view to the right: someone at a triple-monitor desk ---------- */
.stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(ellipse 55% 45% at 50% 40px, rgba(200, 222, 248, calc(.22 * var(--light))), transparent 75%);
  /* scene colors darken with the room; the monitors don't */
  --c-desk:     color-mix(in srgb, #3a3f45, #000 var(--dark));
  --c-desk-dk:  color-mix(in srgb, #262a2f, #000 var(--dark));
  --c-bezel:    color-mix(in srgb, #1b1e22, #000 var(--dark));
  --c-hair:     color-mix(in srgb, #1e1a17, #000 var(--dark));   /* nearly black */
  --c-hair-lt:  color-mix(in srgb, #3a342f, #000 var(--dark));
  --c-skin:     color-mix(in srgb, #a87c62, #000 var(--dark));
  --c-shirt:    color-mix(in srgb, #17181b, #000 var(--dark));   /* black shirt */
  --c-shirt-lt: color-mix(in srgb, #2a2c31, #000 var(--dark));
  --c-phones:   color-mix(in srgb, #1d2024, #000 var(--dark));
  --c-chair:    color-mix(in srgb, #1c1f24, #000 var(--dark));
  --c-chair-lt: color-mix(in srgb, #262a31, #000 var(--dark));
  --c-chair-ac: color-mix(in srgb, #3f7fd0, #000 var(--dark));
  --c-metal:    color-mix(in srgb, #4a5057, #000 var(--dark));
  --c-mug:      color-mix(in srgb, #d0584f, #000 var(--dark));
  --c-pc:       color-mix(in srgb, #181b1f, #000 var(--dark));
  --c-jeans:    color-mix(in srgb, #3a4d70, #000 var(--dark));
  --c-shoes:    color-mix(in srgb, #121315, #000 var(--dark));
  --c-pc-face:  color-mix(in srgb, #2b3036, #000 var(--dark));
}
.stage .tl { top: 26px; }
.stage .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 16vh;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%); mask-image: linear-gradient(to right, transparent, #000 18%); }
.desk-scene {
  position: absolute; left: 50%; bottom: 13vh; transform: translateX(-50%); z-index: 1;
  width: min(1100px, 94vw, calc((87vh - 80px) * 1.45)); aspect-ratio: 1200 / 560;
  background: radial-gradient(ellipse 57% 41% at 50% 27%, rgba(95, 180, 255, .22), transparent 70%);  /* screen light on the wall */
}
.desk-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.desk-scene { container-type: inline-size; }

/* joke posters on the wall above the monitors; sized in cqw so they scale with the scene */
.posters {
  position: absolute; left: 11%; right: 11%; bottom: 93%;
  display: flex; justify-content: space-between; align-items: flex-end;
  filter: brightness(calc(1 - (1 - var(--light)) * .45));
}
.poster {
  position: relative; width: 13cqw; padding: 1.1cqw 1cqw; text-align: center;
  font: 500 1.05cqw/1.35 "IBM Plex Mono", monospace;
  box-shadow: 0 .4cqw .9cqw rgba(0, 0, 0, .4);
}
.poster::before {  /* a strip of tape */
  content: ""; position: absolute; top: -.6cqw; left: 50%; width: 4cqw; height: 1.2cqw;
  transform: translateX(-50%) rotate(-3deg); background: rgba(225, 215, 180, .55);
}
.poster p { margin: 0 0 .4cqw; }
.poster p:last-child { margin: 0; }
.poster strong { display: block; font-size: 1.45cqw; line-height: 1.15; margin: .3cqw 0; }
.poster small { display: block; font-size: .85cqw; }
.p-dns    { background: #1f2a44; color: #e8e6df; width: 14cqw; transform: rotate(-2deg) translateY(-.5cqw); }
.p-dns svg { display: block; width: 100%; margin-top: .4cqw; }
.p-print  { background: #d9d4c7; color: #1c1c1c; transform: rotate(1.5deg) translateY(-4cqw); }
.p-print svg { width: 6cqw; height: 6cqw; display: block; margin: 0 auto .3cqw; }
.p-days   { background: #e2bd3e; color: #1c1c1c; transform: rotate(-1deg) translateY(-1cqw); }
.p-days .win { margin-top: .6cqw; }
.p-days .seg { --seg: #ff3b2f; font-size: 2.6cqw; }
.p-friday { background: #a93a35; color: #f4ece4; transform: rotate(2deg) translateY(-6.5cqw); }
.p-friday .struck { text-decoration: line-through; text-decoration-thickness: .25cqw; opacity: .75; }

/* monitors: HTML so the side screens can turn toward the person with real perspective */
.monitors { position: absolute; inset: 0; perspective: 1800px; perspective-origin: 50% 30%; }
.mon { position: absolute; top: 8.93%; width: 26.667%; height: 50%; }   /* 320 x (190 + 90 stand) of 1200 x 560 */
.mon-l { left: 9.667%;  transform-origin: 100% 50%; transform: rotateY(18deg); }
.mon-c { left: 36.667%; }
.mon-r { left: 63.667%; transform-origin: 0 50%;    transform: rotateY(-18deg); }
.mon .bezel { position: absolute; left: 0; right: 0; top: 0; height: 67.86%; padding: 2.5% 2.5% 4.4%; border-radius: 5px; background: var(--c-bezel); }
.mon .screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2px; }
.mon .screen svg { display: block; width: 100%; height: 100%; opacity: .85; }
.mon .screen::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 1px, transparent 1px 3px), linear-gradient(135deg, rgba(255,255,255,.06), transparent 50%); }
.mon .pled { position: absolute; right: 4%; bottom: 1.6%; width: 4px; height: 4px; border-radius: 50%; background: #5ee38a; }
.mon .neck { position: absolute; left: 50%; transform: translateX(-50%); top: 67.86%; bottom: 2%; width: 6.25%; background: var(--c-bezel); }
.mon .foot { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 31.25%; height: 2.2%; border-radius: 3px; background: var(--c-bezel); }
.code { animation: scroll-up linear infinite; }

/* crash: the middle screen blue-screens, the side screens lose signal */
.mon { cursor: pointer; }
.desk-scene > svg { pointer-events: none; }
.crash { display: none; position: absolute; inset: 0; z-index: 1; }
.desk-scene.crashed .crash, .desk-scene.restarting .crash { display: block; }
.desk-scene.restarting .crash { background: #000 !important; }
.desk-scene.restarting .crash > * { visibility: hidden; }
.bsod { background: #1f6fc5; color: #fff; padding: 1.6cqw 2cqw; font: 400 .8cqw/1.35 "Segoe UI", system-ui, sans-serif; }
.bsod .frown { font-size: 4.2cqw; line-height: 1; margin-bottom: .9cqw; }
.bsod p { margin: 0 0 .7cqw; max-width: 20cqw; }
.bsod-foot { display: flex; align-items: center; gap: .8cqw; margin-top: .4cqw; }
.bsod .qr { width: 2.6cqw; height: 2.6cqw; flex: none; background: #fff
  repeating-conic-gradient(#1f6fc5 0 25%, #fff 0 50%) 0 0 / .65cqw .65cqw; box-shadow: 0 0 0 .2cqw #fff; }
.bsod small { font-size: .6cqw; }
.nosignal { background: #000; color: #6d6d6d; font: 400 .8cqw "IBM Plex Mono", monospace; display: none; place-items: center; }
.desk-scene.crashed .nosignal { display: grid; }
@keyframes scroll-up { to { transform: translateY(calc(-1 * var(--b))); } }
.steam { animation: steam 4.5s ease-in-out infinite; }
.steam:nth-of-type(2) { animation-delay: -1.5s; }
.steam:nth-of-type(3) { animation-delay: -3s; }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 35% { opacity: .9; } 100% { transform: translateY(-22px); opacity: 0; } }

.pan-btn {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 60;
  width: 34px; height: 64px; border-radius: 17px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(18, 22, 26, .6);
  color: #cfd6dc; font: 26px/1 "IBM Plex Mono", monospace; opacity: .4;
  transition: opacity .2s, color .2s;
}
.pan-btn:hover, .pan-btn:focus-visible { opacity: 1; color: #f29f33; }
.pan-right { right: 10px; }
.pan-left  { left: 10px; }
.pan-btn[hidden] { display: none; }

@media (max-width: 960px) {
  .ident { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .readouts { justify-self: start; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .wrap { padding: 0 .5rem; }
  .scene-top { height: 150px; }
  .tl { width: 55%; left: 38%; }
  .desk-scene { width: min(170vw, calc((87vh - 80px) * 1.45)); }
  .epo { transform: scale(.72); transform-origin: top left; left: 4px; }
  .ac { transform: scale(.72); transform-origin: top right; right: 4px; }
  .rack { padding: 10px; }
  .rack::before, .rack::after { display: none; }
  .unit { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.6rem; }
  .nic, .cables, .drives, .fans, .raid, .io { display: none; }
  .ups-panel { flex-wrap: wrap; }            /* no room for cabling on a phone */
  .sw-front { justify-content: flex-start; flex-wrap: wrap; }
  .readouts .silk { justify-self: start; }
  .row { grid-template-columns: minmax(0, 1fr); padding: .3rem 0; }
  .vent { background: radial-gradient(circle at 12px 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px), radial-gradient(circle at calc(100% - 12px) 50%, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px), var(--face); }
}
@media (prefers-reduced-motion: reduce) { .fan .blades { animation: none; } .track { transition: none; } .code, .steam { animation: none; } .steam { opacity: .5; }
  .led { transition: none; } .ac-air path { animation: none; opacity: .6; } }
