/* ============================================================
   THE RACK + PRINTER · site styles
   Single dark theme on purpose: the page is a lit rack in a dark room.
   ============================================================ */
:root {
  --bg: #12161b;
  --panel: #1a1f26;
  --chassis: #262c34;
  --chassis-2: #20262d;
  --chassis-3: #1d2229;
  --line: #343c46;
  --line-2: #2e3640;
  --text: #d6dde5;
  --white: #e8edf2;
  --muted: #8a95a3;
  --dim: #8592a0;
  --tape: #efe8d0;
  --tape-ink: #1a1d21;
  --green: #37d67a;
  --blue: #3aa0ff;
  --amber: #f5a524;
  --red: #e0443e;
  --pla: #ff7a1a;
  --lcd-bg: #0a1a2a;
  --lcd: #7fd0ff;
  --lcd-line: #1e3a52;
  --oled-bg: #061410;
  --oled: #9fe0c9;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --header-h: 72px;
  --max: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 700px at 22% 30%, rgba(58,160,255,.10), transparent 60%);
  z-index: 0;
}
a { color: var(--lcd); }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.mono { font-family: var(--font-mono); }
h1, h2, h3 { margin: 0; color: var(--white); text-wrap: balance; }
p { margin: 0 0 12px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #0b0e12; padding: 8px 12px; border-radius: 4px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(18,22,27,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.top-inner { max-width: var(--max); margin: 0 auto; height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--white); min-width: 0; }
.brand-name { font-weight: 800; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.unav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.unav::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; text-decoration: none; font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.chip:hover { color: var(--white); }
.u { display: inline-block; padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; color: #c9d2dc; font-weight: 700; font-family: var(--font-mono); font-size: 11px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s; }
.chip.active .u { background: var(--blue); border-color: var(--blue); color: #0b0e12; }
.chip.now .u { color: var(--pla); border-color: var(--pla); }
.chip.now.active .u { background: var(--pla); color: #0b0e12; }
.actions { display: flex; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pill:hover { border-color: var(--muted); color: var(--white); transform: translateY(-1px); }
.pill.go { background: var(--green); color: #0b0e12; border-color: var(--green); box-shadow: 0 0 18px rgba(55,214,122,.35); }
.pill.go:hover { box-shadow: 0 0 26px rgba(55,214,122,.55); color: #0b0e12; }
.pill[hidden] { display: none; }

/* ---------- layout ---------- */
.layout { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 32px 32px 80px; display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); gap: 56px; align-items: start; }
.rackcol { position: sticky; top: calc(var(--header-h) + 20px); min-width: 0; max-width: 100%; }
.rack-box { position: relative; max-width: 100%; overflow: hidden; }
.rack-scale { width: 560px; height: 776px; transform-origin: top left; }

/* ---------- the rack ---------- */
.rack { position: relative; width: 560px; height: 776px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.03); font-family: var(--font-mono); }
.rack-cap { position: absolute; left: 0; top: 0; width: 558px; height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 8px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.now-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 3px; background: var(--pla); color: #12161b; font-weight: 700; letter-spacing: .1em; text-decoration: none; transform: translateY(1px); background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.now-tag:hover { color: #12161b; box-shadow: 0 0 12px rgba(255,122,26,.5); }
.now-tag .led { width: 5px; height: 5px; }
.rail { position: absolute; top: 22px; }
.rail-l { left: 0; }
.rail-r { left: 532px; }
.rack-foot { position: absolute; left: 0; bottom: 0; width: 558px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 8px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.rack-overlay { position: absolute; left: 0; top: 0; pointer-events: none; }

.dev { position: absolute; left: 28px; width: 504px; display: block; background: var(--chassis); border: 1px solid var(--line); border-radius: 3px; color: var(--text); text-decoration: none; transition: box-shadow .25s, filter .5s; }
a.dev:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.14); color: var(--text); }
.dev.active { box-shadow: 0 0 0 2px var(--blue), 0 0 22px rgba(58,160,255,.3); }
.tapehead { position: absolute; left: 12px; top: 6px; }
.tape { display: inline-block; background: var(--tape); color: var(--tape-ink); font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.5); line-height: 1.3; text-align: center; white-space: nowrap; }
.tape.pla { background: var(--pla); color: #12161b; }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2a323a; flex: none; }
.led.g { background: var(--green); box-shadow: 0 0 6px 1px rgba(55,214,122,.8); }
.led.b { background: var(--blue); box-shadow: 0 0 6px 1px rgba(58,160,255,.8); }
.led.a { background: var(--amber); box-shadow: 0 0 6px 1px rgba(245,165,36,.8); }
.led.r { background: var(--red); box-shadow: 0 0 6px 1px rgba(224,68,62,.8); }
.led.o { background: var(--pla); box-shadow: 0 0 6px 1px rgba(255,122,26,.8); }
.ledrow { position: absolute; display: flex; align-items: center; gap: 14px; font-size: 7px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ledrow > span { display: inline-flex; align-items: center; gap: 5px; }
.ledcol { position: absolute; display: flex; flex-direction: column; gap: 8px; font-size: 7px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ledcol > span { display: inline-flex; align-items: center; gap: 5px; }
.pwr { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); box-shadow: 0 0 8px rgba(58,160,255,.7); }
.oled { position: absolute; background: var(--oled-bg); border: 1px solid #1c3a30; border-radius: 3px; padding: 6px 8px; color: var(--oled); font-size: 9px; line-height: 1.5; text-shadow: 0 0 6px rgba(159,224,201,.6); white-space: nowrap; }
.lcd { position: absolute; background: var(--lcd-bg); border: 1px solid var(--lcd-line); border-radius: 3px; padding: 8px 10px; color: var(--lcd); font-family: var(--font-mono); font-size: 10px; line-height: 1.6; text-shadow: 0 0 6px rgba(127,208,255,.6); box-shadow: inset 0 0 20px rgba(58,160,255,.15); white-space: nowrap; }
.dev-ups .lcd { font-size: 8px; line-height: 1.9; }
.brandplate { position: absolute; right: 16px; top: 92px; font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .24em; color: #aab4c0; text-transform: uppercase; }
.ports { position: absolute; left: 16px; right: 16px; top: 28px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.port { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.jack { width: 52px; height: 30px; background: #0b0e12; border-radius: 3px; border: 1px solid #3a434e; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; }
.jack .hole { width: 30px; height: 18px; background: #04060a; border-radius: 2px; }
.jack .hole.blank { background: var(--pla); background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.jack .led { position: absolute; right: 4px; top: 4px; width: 5px; height: 5px; }
.jack .plug { position: absolute; left: 15px; top: 5px; width: 22px; height: 24px; background: var(--blue); border-radius: 2px 2px 3px 3px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.swports { position: absolute; left: 100px; top: 9px; display: grid; grid-template-columns: repeat(12, 22px); grid-auto-rows: 16px; gap: 4px 6px; }
.sp { width: 22px; height: 16px; background: #0b0e12; border: 1px solid #39424c; border-radius: 2px; }
.sp.on { box-shadow: inset 0 -3px 0 var(--green), 0 0 5px rgba(55,214,122,.5); }
.sp.act { box-shadow: inset 0 -3px 0 var(--amber), 0 0 5px rgba(245,165,36,.5); }
.tray { position: absolute; left: 14px; width: 476px; height: 42px; background: #2b323a; border: 1px solid #3d4650; border-radius: 3px; display: flex; align-items: center; gap: 12px; padding: 0 12px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.tray.pulled, .tray:hover { transform: translateX(26px); box-shadow: -30px 0 0 -1px #0b0e12, 0 8px 16px rgba(0,0,0,.5); }
.handle { width: 10px; height: 26px; border-radius: 3px; background: linear-gradient(90deg, #aab4c0, #7c8792); flex: none; }
.tray .desc { font-size: 9px; color: #aab4c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tray .tape.right { margin-left: auto; }
.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--pla); background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); border-radius: 0 0 3px 3px; box-shadow: 0 0 12px rgba(255,122,26,.25); }
.mini-pcs { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.mini-pc { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mini-pc .tape { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mini-svg { flex: none; overflow: visible; transition: transform .35s ease, filter .35s ease; }
.mini-1 .mini-case { fill: #889aaa; }
.mini-2 .mini-case { fill: #c3b8a4; }
.mini-3 .mini-case { fill: #99aaa5; }
.mini-pc:is(:hover, .selected) .mini-svg { transform: translateY(-4px); filter: drop-shadow(0 4px 6px rgba(58,160,255,.28)); }
.upsbtns { position: absolute; left: 298px; top: 44px; display: flex; gap: 8px; }
.upsbtns span { width: 26px; height: 26px; border-radius: 6px; background: #2a323a; border: 1px solid #3d4650; }
.upsmodel { position: absolute; right: 16px; bottom: 8px; font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }

/* boot sequence: only while JS is driving it */
body.js.boot .dev:not(.on) { filter: brightness(.45); }
body.js.boot .dev:not(.on) .led, body.js.boot .dev:not(.on) .sp { background: #2a323a !important; box-shadow: none !important; }
body.js.boot .dev:not(.on) .oled, body.js.boot .dev:not(.on) .lcd { color: transparent; text-shadow: none; }

/* ambient blink */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.blink { animation: blink var(--d, 1.6s) steps(2, start) infinite; animation-delay: var(--delay, 0s); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.flow { stroke-dasharray: 5 19; animation: flow 1.4s linear infinite; }

/* ---------- content column ---------- */
.content { min-width: 0; }
.sec { padding: 8px 0 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.sec + .sec { border-top: 1px solid var(--line-2); padding-top: 40px; }
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow .tape { font-size: 9px; padding: 4px 9px; }
.sec h2 { font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -.015em; margin: 16px 0 10px; }
.lead { color: var(--muted); font-size: 16px; max-width: 62ch; margin: 0 0 24px; }
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 3px 7px; }
.small { font-size: 12px; color: var(--dim); }

/* reveal on scroll (JS only; resting state stays visible) */
body.js .rv { opacity: .55; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
body.js .sec.in .rv { opacity: 1; transform: none; }

/* about: the monitor */
.monitor { background: #0a0c0f; border-radius: 10px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.05); }
.screen { background: #0b0e12; border-radius: 4px; padding: 18px 22px; min-height: 320px; box-shadow: inset 0 0 40px rgba(58,160,255,.06); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; overflow-x: auto; }
.neofetch { display: flex; gap: 28px; align-items: flex-start; }
.avatar { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.15; color: var(--green); text-shadow: 0 0 8px rgba(55,214,122,.35); }
.term .k { color: var(--lcd); }
.term .h { color: var(--green); font-weight: 700; }
.term .c { color: var(--dim); }
.term .p { color: var(--green); }
.term .line { min-height: 1.6em; }
.swatches { margin-top: 8px; display: flex; gap: 2px; }
.swatches i { display: inline-block; width: 14px; height: 10px; }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
.motd { margin-top: 14px; }
@keyframes terminal-line { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.terminal-enter .line { animation: terminal-line .28s ease both; animation-delay: var(--line-delay, 0ms); }
.term a { text-decoration-color: rgba(127,208,255,.35); text-underline-offset: 4px; }

/* career: ports */
.port-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; transition: transform .25s, border-color .25s; }
.port-card:hover { transform: translateY(-2px); border-color: var(--line); }
.jack-ico { display: block; width: 52px; height: 30px; background: #0b0e12; border-radius: 3px; border: 1px solid #3a434e; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.8); }
.jack-ico::before { content: ""; position: absolute; left: 11px; top: 6px; width: 30px; height: 18px; background: #04060a; border-radius: 2px; }
.jack-ico.live::before { background: var(--blue); left: 15px; top: 3px; width: 22px; height: 24px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.jack-ico::after { content: ""; position: absolute; right: 4px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: #2a323a; }
.jack-ico.live::after { background: var(--green); box-shadow: 0 0 6px 1px rgba(55,214,122,.8); }
.port-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dates { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.role { font-family: var(--font-mono); font-size: 12px; color: var(--lcd); margin: 4px 0 10px; }
.hl { margin: 0; padding-left: 18px; color: var(--text); }
.hl li { margin: 4px 0; }
.hl li::marker { color: var(--dim); }
.education-card h3 { margin-top: 12px; }
.education-card .dates { margin: 4px 0 0; }
.credentials h3 { font-size: 15px; }
.credentials ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.credentials li::marker { color: var(--green); }

/* highlighted: trays */
.tray-card { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 18px; padding-left: 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s; }
.tray-card:hover { transform: translateX(10px); border-color: var(--line); }
.tray-handle { display: block; width: 10px; height: 100%; min-height: 60px; border-radius: 3px; background: linear-gradient(90deg, #aab4c0, #7c8792); align-self: stretch; }
.tray-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sev { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; }
.sev.sev1 { background: rgba(224,68,62,.18); color: #ff8a84; }
.sev.sev2 { background: rgba(245,165,36,.18); color: #ffc45c; }
.sev.sev3 { background: rgba(58,160,255,.18); color: #8ec6ff; }
.sev.change { background: rgba(55,214,122,.16); color: #7ee6a6; }
.year { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: auto; }
.facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; margin: 12px 0 0; }
.facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { margin: 0; }
.mttr { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.mttr b { color: var(--white); font-weight: 700; }
.mttr .after { color: var(--green); }
.mttr .arrow { color: var(--dim); }
.more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }

/* side: nodes */
.node-card { display: flex; flex-direction: column; gap: 8px; transition: transform .25s, border-color .25s; }
.node-card:hover { transform: translateY(-2px); border-color: var(--line); }
.node-top { display: flex; align-items: center; gap: 10px; }
.node-top .state { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.node-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; font-size: 13px; overflow-wrap: anywhere; }
.node-foot a { text-decoration: none; font-weight: 600; }
.node-foot .meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }

/* now: printer */
.now-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 22px; align-items: start; }
.printer { padding: 10px 0; }
.printer svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 24px rgba(0,0,0,.6)); }
@keyframes spin { to { transform: rotate(360deg); } }
.spool { animation: spin 40s linear infinite; }
.printer.idle .fil, .printer.idle .spool { animation-play-state: paused; }
.printer.idle #layer-trace, .printer.idle .extrusion { visibility: hidden; }
.extrusion { filter: drop-shadow(0 0 3px #ff7a1a); }
.printer-caption, .rack-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.printer-caption { margin-top: 12px; }
.printer-caption > span { flex: 1 1 180px; }
.rack-controls { padding: 10px 0 0; }
.motion-toggle { min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: color .2s, border-color .2s; }
.motion-toggle:is(:hover, :focus-visible) { color: var(--white); border-color: var(--lcd); }
.motion-toggle:disabled { cursor: default; color: var(--muted); }
.print-extra { margin-top: 6px; color: var(--dim); }
.print-extra b { color: var(--muted); }
[hidden] { display: none !important; }
.fil { stroke-dasharray: 4 6; animation: flow 1.1s linear infinite; }
.now-side { display: flex; flex-direction: column; gap: 14px; }
.print-card .job { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--white); margin-top: 10px; word-break: break-all; }
.bar { height: 6px; background: #0b0e12; border-radius: 3px; overflow: hidden; margin: 10px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--pla); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.print-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.print-meta b { color: var(--pla); font-size: 14px; }
.queue { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 12px; }
.queue li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.queue li.active { color: var(--text); }
.queue li .st { margin-left: auto; color: var(--dim); }
.queue li.active .st { color: var(--pla); }
.note { color: var(--dim); font-size: 12px; margin: 0; }

/* status: the UPS face */
.ups-face { background: #15191e; border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.lcd.big { position: static; font-size: 14px; line-height: 1.75; padding: 14px 18px; white-space: normal; }
.lcd.big b { font-weight: 700; color: #b9e4ff; }
.lcd.big .off { color: #90bad5; }
.ups-leds { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.ups-leds span { display: inline-flex; align-items: center; gap: 8px; }
.ups-leds .led { width: 8px; height: 8px; }
.linkports { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.linkport { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px; background: var(--chassis); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.linkport:hover { transform: translateY(-2px); border-color: var(--muted); color: var(--text); }
.linkport:hover .jack-ico::before { background: var(--green); left: 15px; top: 3px; width: 22px; height: 24px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.linkport:hover .jack-ico::after { background: var(--green); box-shadow: 0 0 6px 1px rgba(55,214,122,.8); }
.updated { margin-top: 14px; }

/* The keyboard follows the same physical cues as the pointer. */
a.dev:focus-visible { box-shadow: 0 0 0 2px var(--blue), 0 0 22px rgba(58,160,255,.3); }
.dev-nas:focus-visible .tray { transform: translateX(12px); }
.dev-mini:focus-visible .mini-svg { transform: translateY(-3px); }
body.js .sec.in .port-card:is(:hover, :focus-within), body.js .sec.in .node-card:is(:hover, :focus-within) { transform: translateY(-3px); border-color: #536270; }
body.js .sec.in .tray-card:is(:hover, :focus-within) { transform: translateX(6px); border-color: #536270; }
.node-card:is(:hover, :focus-within) .mini-svg { transform: translateY(-2px); }
.linkport:focus-visible { transform: translateY(-2px); border-color: var(--lcd); }
.linkport:focus-visible .jack-ico::before { background: var(--green); }
.jack-ico::before, .jack-ico::after { transition: background .2s, box-shadow .2s; }
.pill:active { transform: translateY(1px); }
.port .tape { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
.tray > .tape:not(.right) { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after,
.page-hidden *, .page-hidden *::before, .page-hidden *::after,
.motion-out-of-view *, .motion-out-of-view *::before, .motion-out-of-view *::after { animation-play-state: paused !important; }
.motion-paused .terminal-enter .line { animation: none; }
.motion-paused .rv, .motion-paused .bar i { transition: none; }
html:has(.motion-paused) { scroll-behavior: auto; }

/* footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line-2); padding: 24px 32px 40px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--green); }

/* ---------- 404 ---------- */
.inc { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; z-index: 1; }
.inc .card { max-width: 520px; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 20px 16px 60px; }
  .rackcol { position: static; }
  .rack-box { margin: 0 auto; }
  .brand-sub { display: none; }
  .top-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 4px 12px; }
  .brand { order: 1; flex: 1 1 auto; }
  .actions { order: 2; }
  .unav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; }
  .chip { min-height: 40px; }
  .now-grid { grid-template-columns: 1fr; }
  .sec h2 { font-size: 30px; }
  .foot { padding: 20px 16px 32px; }
}
@media (max-width: 720px) {
  :root { --header-h: 144px; }
  .top-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; row-gap: 4px; }
  .brand { order: 1; flex: 1 1 auto; }
  .actions { order: 2; }
  .unav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; overflow: visible; }
  .chip { justify-content: flex-start; padding: 4px 6px; }
  .brand-name { font-size: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .actions .pill { padding: 0 12px; height: 36px; font-size: 11px; }
  .port-card { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { padding-top: 6px; }
  .ups-face { grid-template-columns: 1fr; }
  .screen { padding: 14px; font-size: 12px; }
  .neofetch { flex-direction: column; gap: 14px; }
  .node-foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .motion-toggle { min-height: 40px; }
}
@media (max-width: 480px) {
  .actions .pill { padding: 0 10px; font-size: 10px; }
  .sec h2 { font-size: 26px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.js .rv { opacity: 1; transform: none !important; }
  .mini-svg, .tray, .linkport, .pill { transform: none !important; }
}
