/* 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%); }
body.panned-left .track { transform: translateX(50%); }

/* ---------- the view to the left: a big wall display showing a document ---------- */
.view.view-left { position: absolute; top: 0; bottom: 0; right: 100%; width: 50%; }   /* sits left of the rack view */
.stage-left .floor { -webkit-mask-image: linear-gradient(to left, transparent, #000 18%); mask-image: linear-gradient(to left, transparent, #000 18%); }
.bigscreen {
  --doc: #f29f33;
  position: absolute; left: 50%; top: 78px; bottom: 13vh; transform: translateX(-50%); z-index: 1;
  width: min(1180px, 92vw); padding: 14px 14px 26px; border-radius: 10px;
  background: #0e0f11; box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--doc) 12%, transparent);
}
.bigscreen::after {   /* scan lines and a little glare over the glass; doesn't scroll with the text */
  content: ""; position: absolute; left: 14px; right: 14px; top: 14px; bottom: 26px; border-radius: 4px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), linear-gradient(135deg, rgba(255,255,255,.05), transparent 45%);
}
.bigscreen-led { position: absolute; right: 22px; bottom: 10px; width: 5px; height: 5px; border-radius: 50%; background: #5ee38a; box-shadow: 0 0 5px rgba(94, 227, 138, .6); }
.glass { height: 100%; overflow: auto; border-radius: 4px; background: #0a0d11; outline: none; scrollbar-color: #2c3440 transparent; }
.terminal { padding: 1.4rem 1.8rem 1.2rem; color: #d6dde3; font-size: 14px; line-height: 1.6; }
.con-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 2.4rem; margin-bottom: 1.2rem; }
.con-logo { margin: 0; color: var(--doc); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--doc) 45%, transparent)); }
.logo-svg { display: block; width: 330px; max-width: 100%; height: auto; fill: currentColor; }
.logo-shadow { opacity: .3; }
.con-ver { display: block; margin-top: .5em; text-align: right; color: #8a96a3; text-shadow: none; font-size: 11px; }
.glass:focus, .glass:focus-visible { outline: none; }
.con-info { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.con-info div { display: flex; gap: .8rem; }
.con-info dt { min-width: 5.5rem; color: var(--doc); }
.con-info dd { margin: 0; }
.con-colors { margin-top: .6rem; }
.con-colors i { display: inline-block; width: 18px; height: 12px; }
.con-cmd { margin: 0 0 .6rem; color: #aab6c2; white-space: pre-wrap; word-break: break-word; }
.con-out { margin: 0 0 .9rem; color: #c3ccd5; white-space: pre-wrap; word-break: break-word; }
.con-err { color: #ff7a6b; }
.con-dim { color: #6b7684; }
.con-file { all: unset; cursor: pointer; color: var(--doc); text-decoration: underline dotted; text-underline-offset: 3px; }
.con-file:hover, .con-file:focus-visible { text-decoration-style: solid; }
.con-line { display: flex; flex-wrap: wrap; gap: 0 1ch; align-items: baseline; }
.con-input { flex: 1 1 10ch; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #d6dde3; font: inherit; caret-color: var(--doc); }
.con-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.con-input:focus, .con-input:focus-visible { outline: none; }
.pan-console { left: 10px; }

/* the "egg" command: the screen glitches out, denies everything, and reboots */
.glass.shake { animation: screen-glitch 1.1s steps(1, end) both; }
@keyframes screen-glitch {
  0%   { transform: none; filter: none; }
  8%   { transform: translate(-8px, 0) skewX(-2deg); clip-path: inset(10% 0 55% 0); filter: hue-rotate(90deg) saturate(3); }
  16%  { transform: translate(6px, 2px); clip-path: inset(50% 0 5% 0); }
  24%  { transform: translate(-3px, -2px); clip-path: inset(0); filter: invert(1); }
  32%  { transform: translate(10px, 0); clip-path: inset(30% 0 30% 0); filter: hue-rotate(200deg) contrast(2); }
  40%  { transform: none; clip-path: inset(0 0 80% 0); }
  48%  { transform: translate(-6px, 0) scaleY(1.02); clip-path: inset(0); filter: none; }
  56%  { transform: translate(4px, 0); clip-path: inset(65% 0 0 0); }
  64%  { clip-path: inset(0); filter: invert(1) hue-rotate(45deg); }
  72%  { transform: translate(-10px, 0); clip-path: inset(20% 0 60% 0); }
  80%  { transform: none; clip-path: inset(0); filter: brightness(2); }
  88%  { filter: brightness(.2); }
  100% { transform: none; filter: brightness(0); }
}
.boot {
  position: absolute; left: 14px; right: 14px; top: 14px; bottom: 26px; overflow: hidden;
  padding: 1.4rem 1.8rem; border-radius: 4px; background: #000;
  color: #bfc7cf; font: 14px/1.5 "IBM Plex Mono", ui-monospace, monospace;
}
.boot[hidden] { display: none !important; }
.boot.is-msg, .boot.is-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem; text-align: center; }
.boot-msg {
  margin: 0; font-size: clamp(18px, 3vw, 34px); font-weight: 600; letter-spacing: .08em; color: #ff5a4f;
  text-shadow: -3px 0 rgba(0, 220, 255, .7), 3px 0 rgba(255, 0, 90, .7);
  animation: egg-flash .5s steps(2, jump-none) 4, egg-shift .25s steps(1, end) 8;
}
@keyframes egg-flash { 50% { opacity: 0; } }
@keyframes egg-shift { 0% { transform: translate(-4px, 0); } 50% { transform: translate(5px, 1px); } }
.boot-post { margin: 0; white-space: pre-wrap; }
.boot-post b { color: #5ee38a; font-weight: 400; }
.boot-logo { margin: 0; color: var(--doc); }
.boot-logo .logo-svg { width: 330px; }
.boot-bar { display: flex; gap: 3px; width: min(360px, 70%); height: 20px; padding: 3px; border: 2px solid #6b7684; border-radius: 2px; }
.boot-bar i { flex: 1; background: var(--doc); opacity: 0; }
.boot-bar i.on { opacity: 1; }
.boot-note { margin: 0; font-size: 12px; color: #8a96a3; }
.con-prompt { color: #5ee38a; }
.con-caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #d6dde3; animation: caret 1s steps(2, jump-none) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.con-doc { max-width: 76ch; margin-bottom: 1.2rem; opacity: 0; transition: opacity .35s; }
.con-doc.shown { opacity: 1; }
.con-doc h1 { margin: 0 0 .8rem; font-size: 1.35em; font-weight: 600; color: var(--doc); }
.con-doc h1::before { content: "# "; color: #5b6673; }
.con-doc p { margin: 0 0 .9rem; }
.con-doc ul { margin: 0 0 .9rem; padding-left: 1.4em; list-style: "- "; }
.con-doc a { color: var(--doc); }
.con-doc .photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.2rem 0; }
.con-doc .photo { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1rem; text-align: center; font-size: 12px; color: #6b7684; border: 1px dashed #34404d; border-radius: 4px; }
.con-doc .photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.con-foot { margin: 1.4rem 0 0; }
.con-doc h2 { margin: 1.4rem 0 .7rem; font-size: 1em; font-weight: 600; color: var(--doc); }
.con-doc h2::before { content: "## "; color: #5b6673; }
.steam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.steam-tile { display: block; overflow: hidden; border: 1px solid #2a323c; border-radius: 4px; text-decoration: none; background: #0f141a; transition: border-color .15s; }
.con-doc .steam-tile { color: inherit; }
.steam-tile:hover, .steam-tile:focus-visible { border-color: var(--doc); }
.steam-tile img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; background: #151b22; }
.steam-meta { display: block; padding: .5rem .7rem .6rem; font-size: 12px; line-height: 1.45; }
.steam-name { display: block; color: #d6dde3; font-weight: 500; }
.steam-sub { display: block; color: #6b7684; }
.con-back { all: unset; cursor: pointer; color: #8a96a3; }
.con-back:hover, .con-back:focus-visible { color: var(--doc); }
.con-back:focus-visible { outline: 1px solid var(--doc); outline-offset: 3px; }
.pan-return { right: 10px; }

/* glitching repair emblem in the top-right corner of the big display */
.glitch {
  position: absolute; top: 30px; right: 34px; z-index: 2; width: 150px; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  color: var(--doc); font: 12px/1.3 "IBM Plex Mono", monospace;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--doc) 55%, transparent));
}
.glitch[hidden] { display: none; }
.glitch-art { width: 96px; height: 96px; }
.glitch-cap { font-weight: 600; letter-spacing: .06em; }
.glitch-sub { font-size: 11px; color: #8a96a3; }
.glitch.in  { animation: glitch-in .9s steps(1, end) both, twitch 3.2s 1.4s steps(1, end) infinite; }
.glitch.out { animation: glitch-out .45s steps(1, end) both; }
@keyframes glitch-in {
  0%   { opacity: 0; }
  8%   { opacity: 1; clip-path: inset(38% 0 48% 0); transform: translate(-7px, 0); filter: drop-shadow(3px 0 rgba(255, 0, 90, .8)) drop-shadow(-3px 0 rgba(0, 220, 255, .8)); }
  18%  { clip-path: inset(8% 0 72% 0); transform: translate(6px, -2px); }
  28%  { clip-path: inset(62% 0 8% 0); transform: translate(-4px, 1px); }
  38%  { opacity: 0; }
  46%  { opacity: 1; clip-path: inset(0 0 82% 0); transform: translate(3px, 0); }
  58%  { clip-path: inset(24% 0 30% 0); transform: translate(-5px, 0); }
  70%  { clip-path: inset(0); transform: translate(2px, 0); }
  80%  { transform: none; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--doc) 55%, transparent)); }
  100% { opacity: 1; clip-path: inset(0); transform: none; }
}
@keyframes twitch {   /* a small relapse now and then while it's showing */
  0%, 88%, 100% { transform: none; clip-path: inset(0); }
  90% { transform: translate(-4px, 0); clip-path: inset(30% 0 45% 0); }
  93% { transform: translate(3px, 0); clip-path: inset(60% 0 12% 0); }
  96% { transform: translate(-1px, 0); clip-path: inset(0); }
}
@keyframes glitch-out {
  0%   { opacity: 1; }
  20%  { clip-path: inset(20% 0 55% 0); transform: translate(6px, 0); filter: drop-shadow(3px 0 rgba(255, 0, 90, .8)) drop-shadow(-3px 0 rgba(0, 220, 255, .8)); }
  45%  { clip-path: inset(70% 0 5% 0); transform: translate(-6px, 0); }
  70%  { clip-path: inset(0 0 90% 0); transform: translate(3px, 0); }
  100% { opacity: 0; }
}
.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: .3rem 0; }
.row .when { color: var(--silk); }
.row .items > span { display: block; padding-left: 2ch; text-indent: -2ch; }
.row .items > span::before { content: "- "; color: var(--dim); }
.row .items > span + span { margin-top: .25rem; }

/* 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; }

/* srv-01: live gauges from the real server */
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1.2rem; align-items: end; }
.gauge { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gauge .win { align-self: flex-start; }
.gbar { height: 4px; border-radius: 2px; background: #2f2d29; overflow: hidden; }
.gbar i { display: block; width: 0; height: 100%; background: var(--seg); transition: width .6s; }
.gauge.warn { --seg: #f2b233; }
.gauge.hot { --seg: #ff5a4f; }
.srv-note { font-size: 11px; line-height: 1.4; color: var(--dim); }

/* 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 chips and "open ... .doc" links on the rack */
.chips-hint { margin: 0 0 .7rem; font-size: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.chips .mod-open { flex-direction: row; align-items: center; gap: 9px; padding: .5rem .75rem; font-size: 14px; }
.chip-go { margin-left: auto; color: var(--dim); transition: color .15s; }
.chips li:hover .chip-go, .chips .mod-open:focus-visible .chip-go { color: var(--led-on); }
.doc-link { all: unset; cursor: pointer; display: inline-block; margin-top: .4rem; font-size: 12px; color: var(--dim); }
.doc-link:hover, .doc-link:focus-visible { color: var(--seg); }
.doc-link:focus-visible { outline: 1px solid var(--seg); outline-offset: 3px; }

/* 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; background: #1e1d1a; transition: border-color .15s; }
.mods li:hover { border-color: var(--led-on); }
.mod-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; padding: .6rem .8rem; cursor: pointer; }
.mod-open:focus-visible { outline: 2px solid var(--led-on); outline-offset: 2px; }
.mods .desc { display: block; margin: .3rem 0 .5rem; font-size: 13px; color: var(--silk); }
.mod-hint { margin-top: auto; font-size: 11px; color: var(--dim); transition: color .15s; }
.mods li:hover .mod-hint, .mod-open:focus-visible .mod-hint { color: var(--led-on); }
.mods .name { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* patch panel */
.ports, .ports-taped { display: flex; gap: 1.1rem 1.3rem; flex-wrap: wrap; }
.ports-taped { display: contents; }
.jack-wrap { position: relative; display: block; }
.jack-wrap .jack { display: block; }
.port.live .led { background: var(--led-on); box-shadow: 0 0 5px color-mix(in srgb, var(--led-on) 60%, transparent); }
.port.live { color: var(--text); }
.port.taped { color: var(--dim); cursor: default; }
.tape {   /* a strip of masking tape over a port that isn't connected yet */
  position: absolute; left: -7px; right: -7px; top: 5px; padding: 1px 0;
  transform: rotate(-7deg); background: #d9c9a0; box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  font: 600 9px/1.2 "IBM Plex Mono", monospace; letter-spacing: .06em; text-align: center; color: #5a4a2a; opacity: .92;
}
.port.taped:nth-child(even) .tape { transform: rotate(5deg); top: 7px; }
.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.taped:hover { color: var(--dim); }
a.port:hover .led, a.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: 42px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 18px; border-radius: 2px; background: var(--window);
  box-shadow: 0 0 0 2px #57534c, inset 0 2px 3px rgba(0, 0, 0, .8);
}
.nic::before {   /* link (green) and activity (amber) lights above the port */
  content: ""; position: absolute; top: -8px; left: 2px; width: 6px; height: 3px; border-radius: 1px;
  background: #7fd1a0; box-shadow: 14px 0 0 #f29f33;
}
.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)));
}

/* red LED status sign above the rack */
.sign { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
.sign .win { padding: .4em .7em .35em; border: 3px solid #2a2825; border-radius: 4px; background: #0b0a09; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.sign .seg { --seg: #ff3b2f; font-size: clamp(15px, 2.6vw, 26px); }

/* start screen: the camera begins above the room and pans down on Start */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(200, 222, 248, .14), transparent 75%), var(--wall);
  transition: transform 1.3s cubic-bezier(.65, 0, .35, 1);
}
.splash[hidden] { display: none; }
.splash.leaving { transform: translateY(-100%); }
.splash-panel {
  display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
  padding: 2.4rem 3.4rem 2rem; border-radius: 6px; border-top: 1px solid var(--edge);
  background:
    radial-gradient(circle at 14px 14px, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--screw) 0 3.5px, #1a1917 4px, transparent 4.5px),
    var(--face);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.splash-panel .seg { --seg: #f29f33; font-size: clamp(16px, 3vw, 24px); }
.splash-panel .lit { animation: blink-slow 1.6s steps(2, jump-none) infinite; }
@keyframes blink-slow { 50% { opacity: .15; } }
.splash-sub { font-size: 11px; color: var(--dim); }
.start-btn {
  min-width: 200px; padding: 1rem 2.2rem; cursor: pointer; border-radius: 6px;
  border: 3px solid #1b3b28; background: linear-gradient(#6ff0a0, #3fb86e);
  font: 600 22px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: #0f2a1a;
  box-shadow: 0 5px 0 #1b3b28, 0 0 22px rgba(94, 227, 138, .35);
  animation: glow 2.4s ease-in-out infinite;
}
.start-btn:hover { filter: brightness(1.08); }
.start-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1b3b28, 0 0 22px rgba(94, 227, 138, .35); }
.start-btn:focus-visible { outline: 2px solid #f29f33; outline-offset: 5px; }
@keyframes glow { 50% { box-shadow: 0 5px 0 #1b3b28, 0 0 34px rgba(94, 227, 138, .6); } }

/* while the start screen is up: no scrolling, no pan tab; the room slides up into view when it leaves */
body.splashing { overflow: hidden; }
body { overflow-anchor: none; }   /* no automatic scroll jumps while the rack boots */
body.splashing .pan-btn { display: none; }
.pan { transition: transform 1.3s cubic-bezier(.65, 0, .35, 1); }
body.splashing .pan { transform: translateY(100vh); }   /* the room sits right below the start screen, so both move as one camera pan */

/* 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; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 42px; padding: 14px 0 16px; border-radius: 21px;
  border: 1px solid rgba(242, 159, 51, .5); background: rgba(16, 19, 23, .85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  color: #f29f33; font: 26px/1 "IBM Plex Mono", monospace;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pb-label { writing-mode: vertical-rl; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: #e4ddd0; }
.pan-left .pb-label, .pan-console .pb-label { transform: rotate(180deg); }   /* left-hand tabs read upwards */
.pan-btn:hover, .pan-btn:focus-visible { border-color: #f29f33; background: rgba(28, 24, 18, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 16px rgba(242, 159, 51, .35); }
.pan-btn:focus-visible { outline: 2px solid #f29f33; outline-offset: 3px; }
/* once the rack has booted, the tabs wave for attention a few times */
.pan-btn.nudge { animation: nudge 1.4s ease-in-out 3; }
.pan-right.nudge, .pan-return.nudge { animation-name: nudge-right; }
@keyframes nudge { 0%, 100% { transform: translateY(-50%); box-shadow: 0 6px 18px rgba(0,0,0,.45); } 50% { transform: translate(6px, -50%); box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(242,159,51,.55); } }
@keyframes tab-glow { 50% { box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(242,159,51,.6); } }
@keyframes nudge-right { 0%, 100% { transform: translateY(-50%); box-shadow: 0 6px 18px rgba(0,0,0,.45); } 50% { transform: translate(-6px, -50%); box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(242,159,51,.55); } }
.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: 195px; }   /* room for the LED sign under the smaller AC */
  .tl { width: 55%; left: 38%; }
  .desk-scene { width: min(170vw, calc((87vh - 80px) * 1.45)); }
  .bigscreen { top: 60px; bottom: 10vh; width: 96vw; padding: 8px 8px 18px; }
  .bigscreen::after { left: 8px; right: 8px; top: 8px; bottom: 18px; }
  .terminal { padding: 1rem 1rem; font-size: 13px; }
  .logo-svg { width: 190px; }
  .con-info { font-size: 12px; }
  .glitch { top: 16px; right: 14px; width: 92px; font-size: 10px; }
  .boot { left: 8px; right: 8px; top: 8px; bottom: 18px; padding: 1rem; font-size: 12px; }
  .boot-logo .logo-svg { width: 190px; }
  .glitch-art { width: 52px; height: 52px; }
  .glitch-sub { display: none; }
  .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; }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pan-btn { width: 34px; padding: 10px 0 12px; gap: 7px; font-size: 22px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }   /* bottom corners, clear of the text */
  .pan-btn.nudge, .pan-right.nudge, .pan-return.nudge { animation-name: tab-glow; }
  .pb-label { font-size: 11px; }
  .pan-right, .pan-return { right: 4px; } .pan-left, .pan-console { left: 4px; }
  .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) { .pan-btn.nudge { animation: none; } .glass.shake, .boot-msg { animation: none; } .glitch.in, .glitch.out { animation: none; } .splash, .pan, .con-doc { transition: none; } .con-caret { animation: none; } .start-btn, .splash-panel .lit { animation: none; }
 .fan .blades { animation: none; } .track { transition: none; } .code, .steam { animation: none; } .steam { opacity: .5; }
  .led { transition: none; } .ac-air path { animation: none; opacity: .6; } }
