@font-face { font-family: Michroma; src: url("./Michroma-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Arimo; src: url("./Arimo-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: IBMVGA; src: url("./WebPlus_IBM_VGA_8x16.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inconsolata; src: url("./Inconsolata-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --mono: Inconsolata, "Lucida Console", monospace;
  --body: Bahnschrift, "Arial Narrow", sans-serif;
  --ink-face: Michroma, sans-serif;
  --grain: url("./grain.png");
  --steel: url("./steel.png");
  --crt: #97e59a;
  --crt-bright: #c4f6ad;
  --crt-amber: #f4a759;
  --crt-font: IBMVGA;
  --amber: #ffc174;
  --cream: #eadcc3;
  --black: #07080a;
}

* { box-sizing: border-box; }
html { background: #08090b; }
body {
  margin: 0; min-height: 100vh; padding: 0 0 34px; color: var(--cream);
  font: 17px/1.42 var(--body);
  background:
    radial-gradient(ellipse at 7% 22%, #3a1525 0, transparent 34%),
    radial-gradient(ellipse at 93% 70%, #173a33 0, transparent 36%),
    radial-gradient(ellipse at 50% 20%, #443020 0, #181015 40%, #08090b 78%);
}
h1,h2,p { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff0b2; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; z-index: 8; left: 16px; top: -98px; background: #181316; color: #ffe8b4; padding: 10px; }
.skip:focus { top: 16px; }

.cabinet {
  position: relative; isolation: isolate; max-width: 1192px; margin: 26px auto 0; width: calc(100% - 50px);
  padding: 13px 34px 0;
  border: 1px solid #6a4546;
  border-bottom-color: #291c20;
  border-radius: 23px 23px 17px 17px;
  background: var(--grain), linear-gradient(154deg,#53343b 0,#252125 15%,#161719 56%,#221a20 91%,#412b36 100%);
  box-shadow: 0 31px 77px #000d, 0 0 74px #33172664, inset 0 2px 0 #81515e, inset 0 0 0 7px #141215, inset 0 0 0 8px #50363d;
}
.cabinet::before, .cabinet::after {
  content: ""; position: absolute; inset-block: 39px 23px; width: 11px; pointer-events: none;
  background: linear-gradient(90deg,#121115,#583b4a 44%,#2e2229 60%,#141014);
  box-shadow: 2px 0 3px #08070a;
}
.cabinet::before { left: 15px; }
.cabinet::after { right: 15px; transform: scaleX(-1); }

.identity {
  min-height: 70px; padding: 0 10px 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 78px; height: auto; display: block;
  border: 1px solid #8c685056; box-shadow: 0 2px 6px #080608;
}
.brand span { color: #fff0ce; font: 600 17px/.99 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.brand b { color: #e4bb98; font: 14px/1.1 var(--mono); letter-spacing: .21em; }
.activity { color: #e5c8ad; margin-left: auto; font: 16px/1.15 var(--mono); }
.language {
  display: flex; align-items: center; flex: none; gap: 2px; padding: 3px;
  border: 1px solid #9a73534f; border-bottom-color: #170e15;
  background: #120e14; box-shadow: inset 0 3px 4px #000b, 0 1px #704e46;
}
.language button {
  border: 1px solid #563742; border-radius: 2px; min-width: 40px; min-height: 37px;
  background: linear-gradient(#332630,#1f171e); color: #e2c7b2; font: 15px/1 var(--mono);
}
.language [aria-pressed="true"] {
  color: #261610; background: linear-gradient(#fff0b8,#f7b973 31%,#c2814d);
  border-color: #e5a764; box-shadow: inset 0 1px #fff4c8,0 0 11px #ffc55d52; font-weight: bold;
}

.marquee {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; min-height: 160px;
  display: grid; place-items: center; align-content: center; gap: 3px; padding: 22px 25px 18px;
  border: 5px solid #181317; border-top: 6px solid #20151c; border-radius: 7px;
  background:
    radial-gradient(ellipse at 47% 0,#fc943968,transparent 63%),
    radial-gradient(ellipse at 49% 123%,#b85a3dbe,transparent 68%),
    linear-gradient(93deg,#2e142d 0,#742b36 20%,#7a2f27 56%,#51233c 83%,#25172b 100%);
  box-shadow: inset 0 0 0 1px #b67253, inset 0 4px 11px #140e18b0, inset 0 -5px 18px #231016d4, 0 1px #765151, 0 4px 10px #000b;
}
.marquee::before {
  content:""; position:absolute; inset: 0; z-index: -1; pointer-events: none; opacity:.55;
  background: repeating-linear-gradient(120deg,transparent 0 53px,#fca66b17 54px 55px,transparent 55px 79px),var(--grain);
}
.edge-stripe {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(111deg, #ffc16f7a 0 3px, #381d2f94 3px 6px, transparent 6px 14px);
  mask-image: linear-gradient(90deg,#000 0,#000 8%,transparent 21%,transparent 80%,#000 96%);
}
.marquee h1 {
  font: 700 clamp(29px,4.2vw,56px)/.95 Michroma, var(--body); letter-spacing: .047em;
  color: #fff0b8;
  text-shadow: 1px 2px #28101b,2px 3px #28101b,3px 5px #29151f,-1px -1px #8b462a,0 0 21px #ffd4858c;
}
.marquee h1 span:last-child { color: #ffcb82; }
.marquee p {
  color: #fff0d5; font: 500 clamp(16px,1.9vw,25px)/1.25 var(--body); letter-spacing: .035em;
  text-shadow: 0 2px 3px #38191b,0 3px 9px #170b13;
}

.monitor-outer {
  position: relative; display: grid; grid-template-columns: 27px minmax(0,1fr) 27px; align-items: center; gap: 13px;
  padding: 20px 16px; margin-top: 9px;
  background: var(--grain), linear-gradient(172deg,#42343a,#201e23 21%,#15151a 74%,#28242d);
  border: 1px solid #635059; border-bottom: 1px solid #141218; border-radius: 8px 8px 4px 4px;
  box-shadow: inset 0 2px #6c5660, 0 7px 16px #000b;
}
.screw {
  position: absolute; border-radius: 50%; width: 11px; height: 11px;
  background: radial-gradient(circle at 34% 29%,#cfb29f,#7c645d 47%,#2a2125 65%,#121115 82%);
  box-shadow: 0 1px 3px #000,0 0 0 1px #1c141a;
}
.screw::after { content:""; position:absolute; inset: 5px 2px 5px; background:#2f262a; transform:rotate(-35deg); }
.s1 { top: 9px; left: 9px; } .s2 { top: 9px; right: 9px; }
.s3 { bottom: 9px; left: 9px; } .s4 { bottom: 9px; right: 9px; }
.speaker {
  width: 24px; align-self: center; height: 154px;
  background: repeating-linear-gradient(0deg,#080a0c 0 2px,#161517 2px 3px,#4c3a47 3px 4px,transparent 4px 8px);
  mask-image: radial-gradient(ellipse at center,#000 30%,transparent 80%); opacity:.85;
}
.speaker-left { grid-column: 1; grid-row: 1; }
.speaker-right { grid-column: 3; grid-row: 1; }
.bezel {
  grid-column: 2; grid-row: 1;
  padding: 20px 22px 19px;
  border: 2px solid #0c0a10; border-bottom-color: #4d414e; border-radius: 32px / 26px;
  box-shadow: inset 0 8px 12px #020307,inset 3px -3px 6px #4c5557,0 1px 2px #070709;
  background: linear-gradient(158deg,#0b0a10 9%,#141b1e 47%,#42534f 86%,#1c2224);
}
.screen {
  position: relative; isolation: isolate; min-height: 344px; overflow: hidden; border-radius: 45px / 28px;
  border: 1px solid #87aa86; padding: 21px 26px 22px; color: var(--crt);
  background:
    radial-gradient(ellipse at 34% 0,#577e5c8c,transparent 32%),
    radial-gradient(ellipse at 44% 58%,#243a30 0,#152920 45%,#0e211a 69%,#071513 91%);
  box-shadow: 0 0 25px 5px #598b6a48,inset 0 0 31px 7px #030b0a,0 2px 2px #20332a;
}
.screen::after {
  content:""; position: absolute; inset: 0; pointer-events:none; border-radius: inherit;
  background: repeating-linear-gradient(0deg,#0004 0 1px,transparent 1px 4px);
  opacity:.52; z-index: 2;
}
.screen-label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: 17px/1.12 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #dfefbd;
  padding: 2px 2px 12px; border-bottom: 1px solid #acc5926e;
}
.tube-lamp {
  height: 6px; width: 6px; border-radius: 1px; background: #ecffd1;
  box-shadow: 0 0 11px 2px #b9ff874f; margin-right: 4px;
}
.screen-layout { display: grid; grid-template-columns: minmax(0,1.38fr) minmax(0,.86fr); gap: 25px; padding: 17px 2px 0; }
.readout { padding: 0 3px 0 0; }
.readout-type {
  color: #e3f2b8; font: 16px/1.15 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.readout h2 {
  color: #e2ffc5; font: 700 clamp(31px,4.4vw,59px)/.97 var(--mono); letter-spacing: -.045em;
  margin: 8px 0 10px; text-shadow: 0 0 14px #caff8859;
}
.readout #project-line { max-width: 44ch; font: 19px/1.33 var(--mono); color: #dcf1cc; }
.index { display: grid; gap: 5px; align-content: start; border-left: 1px solid #8cb69a58; padding: 0 0 0 17px; }
.index > p {
  color: #e6f2c8; font: 15px/1.2 var(--mono); margin: 0 0 2px;
  text-transform: uppercase; letter-spacing:.07em;
}
.index button {
  appearance: none; display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; min-height: 43px;
  color: #d8eec9; text-align: left; border: 1px solid #7f9f7745; border-radius: 1px;
  background: #14251fbb; padding: 5px 10px 5px 8px; font: 18px/1.18 var(--mono);
}
.index-number { color: #b2cfac; font: 13px/1 var(--mono); }
.index i { display: block; width: 5px; height: 5px; background:#60836a; border-radius:50%; }
.index [aria-pressed="true"] {
  background: #a4d68e36; color: #f0ffd4; border-color: #bad5a3; text-shadow: 0 0 11px #cbff8d5d;
}
.index [aria-pressed="true"] i { background: #d9ffb3; box-shadow: 0 0 8px 1px #c4ffa285; }
.index button:hover { border-color: #b5d79b; }

.deck {
  position: relative; margin-top: 7px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 17px;
  border: 1px solid #715967; border-top: 2px solid #aa826d; border-bottom: 6px solid #141319; border-radius: 4px 4px 12px 12px;
  background: var(--steel), radial-gradient(ellipse at 30% 0,#57444a,#272830 62%,#202027 93%);
  padding: 11px 31px 14px; box-shadow: inset 0 1px #94747b,inset 0 -1px #6c5663,0 3px 3px #0a0a0e;
}
.drive { display: grid; grid-template-columns: minmax(144px,.83fr) minmax(95px,.55fr); align-items: start; justify-content: start; gap: 15px; }
.shift,.fire,.aux { position: relative; }
.shift,.fire { display: flex; align-items: center; flex-direction: column; }
.engraving {
  display: block; color: #f2d9ba; letter-spacing: .12em; text-transform: uppercase;
  font: 16px/1.1 var(--mono); text-shadow: 0 1px 2px #191319; margin: 0 0 9px;
}
.shift-controls { display: flex; gap: 10px; justify-content: center; }
.arrow-key, .fire-key, .action-key { position: relative; appearance: none; isolation: isolate; display:grid; place-items: center; }
.arrow-key {
  width: 70px; height: 65px; padding: 0; border: 1px solid #100b10;
  background: #2b242e; border-radius: 10px;
  box-shadow: 0 2px #9c7a7b80,inset 0 5px #120d14,0 5px 7px #0b0b11bb;
}
.arrow-key::before {
  content:"";position: absolute;inset: 5px 5px 9px;z-index: -1;border-radius:7px;
  background: radial-gradient(ellipse at 50% 61%,#3a3940,#544656 60%,#786577 97%);
  border: 1px solid #9a8293; border-bottom-color:#28252f;
  box-shadow: inset 0 6px 6px #a6858e6a,inset 0 -5px 9px #191418,0 4px #18151f,0 7px 5px #08060a;
}
.arrow-key b {
  width: 22px; height: 19px; transform: translate(-1px,-3px);
  background: linear-gradient(175deg,#f5d8bb,#bda38e); clip-path: polygon(2% 50%,98% 0,98% 100%);
  filter: drop-shadow(1px 1px 1px #100a0d);
}
.arrow-key.next b { transform: translate(1px,-3px) scaleX(-1); }
.arrow-key:hover::before { filter:brightness(1.19); }
.arrow-key:active::before { transform: translateY(3px); box-shadow: inset 0 2px 10px #191418; }
.arrow-key:active b { margin-top: 6px; }

.fire-key {
  width: 89px; height: 89px; margin: -3px 0 -5px 0; padding: 0; border-radius: 50%;
  border: 1px solid #10080c;
  background: radial-gradient(circle at 50% 42%,#201414 66%,#0f0a10 68%,#322330 78%);
  box-shadow: 0 3px 5px #000c,inset 0 2px #bb9b79,inset 0 -1px #4d292a;
}
.fire-key::before {
  content: ""; position:absolute; z-index:-1; inset: 7px 8px 12px; border-radius:50%;
  background: radial-gradient(ellipse at 50% 23%,#fff7cb 1%,#ffd281 25%,#ffab51 55%,#c45b24 85%,#7b280d);
  box-shadow: 0 7px 0 #8a3c29, 0 0 22px #ff993f68, 0 4px 9px 6px #130e15, inset 0 0 0 1px #fff1a9, inset 0 4px 6px #ffeab6b0, inset 0 -5px 14px #8f270d9c;
}
.fire-key:hover::before { filter: brightness(1.15); }
.fire-key:active::before { transform:translateY(4px);box-shadow: 0 3px 0 #8a3c29, inset 0 2px 12px #c0522d; }

.aux { display: grid; align-content: start; border-left: 1px solid #9b6f6e73; padding-left: 22px; }
.aux-keys { display: grid; grid-template-columns: 1fr 1fr 1.17fr; gap: 9px; }
.action-key {
  min-width: 0; min-height: 66px; padding: 8px 3px 12px; border:1px solid #100d14; border-radius:4px;
  background: #17151b; box-shadow: inset 0 4px 3px #100e13, 0 2px #6d515c, 0 5px 8px #0009;
}
.action-key::before {
  content:""; position:absolute; inset: 5px 5px 11px; z-index: -1; border-radius:3px;
  background: radial-gradient(ellipse at 50% 72%,var(--plastic-mid) 0,var(--plastic-top) 75%); border: 1px solid var(--plastic-edge);
  box-shadow: inset 0 3px 4px #fff8e96e,inset 0 -5px 8px #4840297a, 0 5px 0 var(--plastic-side),0 7px 6px #0b0811;
}
.action-key:hover::before { filter: brightness(1.14); }
.action-key:active::before { transform:translateY(3px);box-shadow:inset 0 3px 8px #2416178e; }

footer {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 53px;
  padding: 7px 5px 8px; color: #ddc2b0; font: 15px/1.25 var(--mono);
}
footer span:first-child { color:#f0ddbb; letter-spacing:.08em; }
.field-file {
  width: min(580px,calc(100% - 32px)); max-height: 88vh; padding: 23px 25px 29px; color: #e0f3d6;
  background: radial-gradient(ellipse at 50% 33%,#263e32,#0b1612);
  border: 1px solid #9fc597; box-shadow: 0 0 0 6px #192320,0 15px 80px #000,0 0 18px #c3f2a64c;
  border-radius: 13px; font: 21px/1.35 var(--mono);
}
.field-file::backdrop { background: #08070be0; }
.field-file h2 { font: 800 38px/1.06 var(--mono); margin: 12px 0; }
.field-file form { display:flex;justify-content:flex-end;margin-bottom:12px; }
.file-close { color:#f1e2bf; background:#2a392b; border:1px solid #b6cd98; padding:10px 12px;font:16px var(--mono); }
.file-close:hover { background:#3e553a; }

@media (max-width: 930px) {
  .cabinet { padding-inline: 26px; }
  .cabinet::before { left: 11px; }
  .cabinet::after { right: 11px; }
  .cabinet::before,.cabinet::after { width: 7px; }
  .monitor-outer { gap: 9px; grid-template-columns: 15px minmax(0,1fr) 15px; padding-inline: 11px; }
  .speaker { width: 15px; }
  .bezel { padding: 14px 15px; }
  .screen-layout { gap: 15px; }
  .index { padding-left: 11px; }
  .deck { gap: 13px; padding-inline: 19px; }
  .aux { padding-left: 13px; }
}
@media (max-width: 650px) {
  body { padding: 0 0 17px; background: radial-gradient(ellipse at 0 15%,#331822 0,#141014 51%,#08090b 87%); }
  .cabinet { margin-top: 9px; width: calc(100% - 18px); padding: 7px 9px 0; border-radius: 12px 12px 9px 9px; box-shadow: 0 13px 35px #000b,inset 0 1px #81515e,inset 0 0 0 3px #151217,inset 0 0 0 4px #50363d; }
  .cabinet::before,.cabinet::after { display:none; }
  .identity { min-height: 57px; gap: 4px 12px; padding: 1px 5px 6px; flex-wrap: wrap; }
  .brand { gap: 7px; }
  .brand img { width: 62px; }
  .brand span { font-size: 13px; }
  .brand b { font-size: 12px; }
  .activity { order: 3; margin: 0; width: 100%; font-size: 12px; }
  .language { padding: 2px; gap: 1px; }
  .language button { min-width: 33px; min-height: 35px; font-size: 14px; }
  .marquee { min-height: 88px; padding: 13px 8px 11px; gap: 5px; border-width: 3px; }
  .marquee h1 { font-size: clamp(23px,6.6vw,32px); line-height:.91; letter-spacing:.041em; }
  .marquee h1 span { display:block; }
  .marquee h1 span:last-child { font-size: 1.12em; }
  .marquee p { font-size: 14px; max-width: 31ch; letter-spacing: .005em; line-height: 1.08; }
  .monitor-outer { display:block; padding:8px; margin-top:6px; }
  .monitor-outer .speaker, .monitor-outer .screw { display:none; }
  .bezel { padding:8px; border-width:1px; border-radius:15px; }
  .screen { padding:12px 12px 37px; min-height: 0; border-radius:23px / 15px; box-shadow: 0 0 14px #598b6a45,inset 0 0 20px 3px #030b0a; }
  .screen-label { font-size: 13px; letter-spacing:.115em; padding:1px 0 9px; }
  .screen-layout { grid-template-columns: 1fr; gap: 12px; padding: 11px 0 0; }
  .readout-type { font-size: 12px; }
  .readout h2 { font-size: clamp(28px,8.7vw,41px); margin: 6px 0 7px; line-height: .94; }
  .readout #project-line { font-size: 15px; line-height: 1.24; }
  .index { border-left: 0; border-top: 1px solid #8cb69a63; padding: 6px 0 0; gap: 3px; }
  .index > p { font-size: 11px; letter-spacing:.065em; margin: 0 0 1px; }
  .index button { min-height: 31px; padding: 3px 6px; font-size: 15px; }
  .index-number { font-size: 11px; }
  .deck { grid-template-columns: 1fr; gap: 8px; border-bottom-width:4px; padding: 9px 12px 10px; margin-top:6px; }
  .deck .screw { width:7px; height:7px; top:6px; }
  .deck .screw::after { inset:3px 1px 3px; }
  .deck .s1 { left:5px; } .deck .s2 { right:5px; }
  .drive { grid-template-columns: 1fr 1fr; align-items: start; gap: 8px; }
  .shift-controls { gap:7px; }
  .engraving { font-size:11px; letter-spacing: .065em; margin: 0 0 5px; }
  .arrow-key { width: 53px; height: 45px; border-radius:6px; }
  .arrow-key::before { inset: 4px 4px 7px; border-radius:4px; box-shadow: inset 0 3px 5px #a6858e6a, inset 0 -4px 6px #191418,0 3px #18151f,0 5px 4px #08060a; }
  .arrow-key b { width:17px; height:14px; }
  .fire-key { width: 59px; height: 59px; margin:-2px 0 -3px; }
  .fire-key::before { inset:5px 6px 8px; box-shadow: 0 4px 0 #8a3c29,0 0 16px #ff993f68,0 3px 6px 3px #130e15,inset 0 0 0 1px #fff1a9,inset 0 4px 5px #ffeab6b0,inset 0 -5px 9px #8f270d81; }
  .aux { border-left: 0; border-top: 1px solid #9b6f6e73; padding: 6px 0 0; }
  .aux > p { text-align: center; }
  .aux-keys { gap: 5px; }
  .action-key { min-height:44px; padding: 5px 2px 8px; border-radius:3px; }
  .action-key::before { inset:4px 4px 8px; box-shadow:inset 0 3px 4px #fff8e96e,inset 0 -4px 7px #4840297a,0 3px 0 var(--plastic-side),0 5px 5px #0b0811; }
  footer { min-height: 0; gap: 5px 10px; justify-content: flex-start; flex-wrap: wrap; padding: 8px 4px 9px; font-size: 11px; }
}
@media (max-width: 365px) {
  .marquee h1 { font-size: 23px; }
  .marquee p { font-size: 13px; }
  .readout h2 { font-size: 27px; }
  .screen { padding-inline: 9px; }
  .shift-controls { gap:5px; }
  .engraving { font-size:10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .action-key::before,.arrow-key::before,.fire-key::before,.fire-key::after,.action-key .tape { transition: transform 65ms ease-out; }
}

/* Painted steel. Keep the wear maps distinct and catch light along serviced seams. */
body {
  background: radial-gradient(ellipse at 11% 23%, #2b2d30 0, transparent 43%),
              radial-gradient(ellipse at 93% 71%, #15302a 0, transparent 39%),
              radial-gradient(ellipse at 50% 20%, #2b2b2a 0,#14171a 46%,#090a0c 83%);
}
.cabinet {
  background:
    radial-gradient(ellipse at 14% -10%, #c3a37137, transparent 51%),
    linear-gradient(174deg, #adaba525, transparent 23%, #10131935 77%, #080a0f65),
    url("./armor-case.webp") center/100% 100% no-repeat;
  border-color: #77736a;
  border-bottom-color: #2b2b29;
  box-shadow: 0 31px 77px #000e, 0 0 64px #2227305c,
              inset 0 1px #a59b8e, inset 0 3px 2px #baa7866b, inset 0 0 0 7px #191b1e, inset 0 0 0 8px #746959;
}
.cabinet::before, .cabinet::after {
  background: linear-gradient(90deg, #151616, #85817a 36%, #4f4f4c 48%, #2b2d2c 64%, #131415);
}
.monitor-outer {
  background:
    url("./panel-wear.svg") center/100% 100% no-repeat,
    radial-gradient(ellipse at 88% -8%, #d7a87529, transparent 55%),
    linear-gradient(168deg, #b4a18a2f, transparent 35%, #11141976),
    url("./armor-monitor.webp") center/100% 100% no-repeat;
  border-color: #746d61;
  border-bottom-color: #26241f;
  box-shadow: inset 0 1px #afaa9b, inset 1px 0 #72645762,
              inset 0 3px 4px #8f7a5954, inset 0 -2px 3px #101312, 0 7px 16px #000b;
}
.deck {
  background:
    url("./deck-wear.svg") center/100% 100% no-repeat,
    radial-gradient(ellipse at 33% 54%, #c3b09817, transparent 48%),
    radial-gradient(ellipse at 71% -15%, #89878044, transparent 61%),
    linear-gradient(174deg, #a7a9b31a, transparent 42%, #0a0d1362),
    url("./armor-deck.webp") center/100% 100% no-repeat;
  border-color: #716b60;
  border-top-color: #918b7f;
  border-bottom-color: #191b1e;
  box-shadow: inset 0 1px #a19c91, inset 0 3px 4px #b9ac9429, inset 0 -1px #6c685d, 0 3px 3px #0a0d11;
}
.aux { border-color: #a6a8ad68; }
.speaker {
  background: repeating-linear-gradient(0deg, #080a0e 0 2px, #1c1f23 2px 3px, #716a5b 3px 4px, transparent 4px 8px);
}

/* Retaining rails clamp a thick sheet of smoked, rear-printed acrylic. */
.marquee {
  min-height: 100px;
  padding-block: 10px;
  border-color: #222321 #101112 #101112 #202120;
  background:
    radial-gradient(ellipse at 31% 72%, #c58d4550, transparent 53%),
    radial-gradient(ellipse at 71% 40%, #b07e4941, transparent 51%),
    linear-gradient(90deg, #171614, #35291f 25%, #2d211b 67%, #181614);
  box-shadow: inset 0 0 0 1px #97825f8e, inset 0 2px #b9a47e65,
              inset 0 -3px #211a13, inset 0 -5px #8a6e4334,
              inset 0 0 11px 4px #100d0bc7, 0 1px #81786a, 0 3px 6px #000c;
}
.marquee::before {
  opacity: .44;
  background:
    radial-gradient(ellipse at 22% -31%, #d2bf9556, transparent 56%),
    linear-gradient(178deg, #c3b7a014, transparent 32%),
    url("./plexiglas.svg") center/100% 100% no-repeat;
}
.marquee::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px #bca58050, inset 0 -1px #ada18a32;
  background:
    radial-gradient(ellipse at 18% 117%, #c0a26b71, transparent 27%),
    radial-gradient(ellipse at 95% -12%, #ad946954, transparent 17%);
  opacity: .62;
}
.edge-stripe {
  background: repeating-linear-gradient(111deg, #88745024 0 3px, #1d19166b 3px 6px, transparent 6px 14px);
}
.marquee h1 {
  color: #cfb895;
  text-shadow: none;
}
.marquee h1 span:last-child { color: inherit; }
@supports (background-clip: text) {
  .marquee h1 {
    color: transparent;
    background: linear-gradient(98deg, #bca682, #dbc29a 27%, #e1cda8 37%, #ccb18a 55%, #d8bd94 74%, #bfa781);
    background-clip: text;
  }
}
@media (forced-colors: active) {
  .marquee h1 { color: CanvasText; background: none; }
}

.screw {
  width: 14px;
  height: 14px;
  background:
    radial-gradient(ellipse at 69% 65%, #98785c35, transparent 48%),
    radial-gradient(circle at 34% 26%, #bfb8a7, #7a776f 48%, #44423f 65%, #28241f 77%, #151515 90%);
  box-shadow: 0 2px 3px #080809, 0 0 0 1px #24211d, -1px -1px 0 2px #a0875d57;
}
.s2, .s3 {
  box-shadow: 0 2px 3px #080809, -1px 0 0 1px #24211d, 1px 1px 1px 2px #9f754462;
}
.screw::after, .deck .screw::after {
  inset: 23%;
  background: linear-gradient(135deg, #090b0d, #2b2824);
  clip-path: polygon(46% 0,54% 0,65% 26%,92% 22%,99% 36%,82% 50%,99% 64%,92% 78%,65% 74%,54% 100%,46% 100%,35% 74%,8% 78%,1% 64%,18% 50%,1% 36%,8% 22%,35% 26%);
  transform: rotate(-18deg);
}
.s2::after, .s3::after { transform: rotate(12deg); }

@media (max-width: 650px) {
  .cabinet { box-shadow: 0 13px 35px #000b,inset 0 1px #a49a88,inset 0 0 0 3px #191b1e,inset 0 0 0 4px #686155; }
  .marquee { min-height: 88px; padding: 0 7px; }
  .monitor-outer .screw { display: block; width: 7px; height: 7px; }
  .monitor-outer .s1, .monitor-outer .s2 { top: 3px; }
  .monitor-outer .s3, .monitor-outer .s4 { bottom: 3px; }
  .monitor-outer .s1, .monitor-outer .s3 { left: 3px; }
  .monitor-outer .s2, .monitor-outer .s4 { right: 3px; }
}

/* ABS grows satin where fingers land. Tool marks stay near the lip. */
.arrow-key, .action-key {
  --rub-x: 41%;
  --rub-y: 69%;
  --wear-x: 20%;
  --wear-y: 80%;
  --scratch-angle: 162deg;
  --cap-light: #35373a;
  --cap-dark: #202224;
  background: linear-gradient(#101113, #232426);
  border-color: #101112;
  box-shadow: inset 0 4px 5px #08090b, 0 1px #686863, 0 4px 7px #080a0ecc;
}
.arrow-key { border-radius: 6px; }
.action-key { border-radius: 5px; }
.arrow-key.next { --rub-x: 64%; --rub-y: 49%; --wear-x: 83%; --wear-y: 19%; --scratch-angle: 34deg; --cap-light: #38393a; }
.action-key[data-view="workshop"] { --rub-x: 34%; --wear-x: 33%; --wear-y: 89%; --cap-dark: #242425; }
.action-key[data-view="videos"] { --rub-x: 59%; --rub-y: 51%; --wear-x: 18%; --wear-y: 16%; --scratch-angle: 145deg; }
.action-key[data-view="patches"] { --rub-x: 69%; --rub-y: 79%; --wear-x: 85%; --wear-y: 82%; --scratch-angle: 18deg; --cap-light: #303237; }
.arrow-key::before, .action-key::before {
  inset: 5px 5px 12px;
  border: 1px solid #4c4e51;
  border-bottom-color: #212329;
  border-radius: 4px 4px 3px 3px;
  background:
    radial-gradient(ellipse at var(--rub-x) var(--rub-y), #b4b2ac3a 1%, #adaaa31a 37%, transparent 66%),
    radial-gradient(ellipse at var(--rub-x) 0%, #bbb7a642, transparent 53%),
    var(--grain) var(--wear-x) var(--wear-y) / 122px,
    linear-gradient(173deg, var(--cap-light), var(--cap-dark) 54%, #282a2d);
  background-blend-mode: normal, normal, soft-light, normal;
  box-shadow: inset 0 2px 3px #8a89835e, inset 0 -3px 4px #090a0d,
              0 4px #1c1e21, 0 7px #111315, 0 9px 5px #08090be8;
}
.arrow-key::after, .action-key::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 8px 9px 16px;
  border-radius: 3px;
  background:
    linear-gradient(var(--scratch-angle), transparent 47%, #c5c0b046 50%, transparent 53%) var(--wear-x) var(--wear-y) / 24% 20% no-repeat,
    radial-gradient(ellipse at var(--rub-x) 100%, #ccc6b24f, transparent 73%) bottom / 100% 6px no-repeat;
}
.arrow-key b { background: linear-gradient(172deg, #e4e0d5, #b7b7af); }
.arrow-key:active::before, .action-key:active::before {
  box-shadow: inset 0 2px 5px #171719, 0 2px #101115;
}
.arrow-key:active::after, .action-key:active::after { transform: translateY(3px); }

@media (max-width: 650px) {
  .arrow-key::before, .action-key::before {
    inset: 4px 4px 9px;
    box-shadow: inset 0 2px 3px #70737d59,inset 0 -2px 3px #090a0d,
                0 3px #141519,0 5px #101115,0 6px 4px #08090b;
  }
  .arrow-key::after, .action-key::after { inset: 6px 7px 12px; }
}

/* Permanent legends share the same broad, rounded geometric lettering. */
.brand span, .brand b, .activity, .language button, .engraving, footer {
  font-family: var(--ink-face);
  font-weight: 400;
  letter-spacing: 0;
}
.brand span, .brand b, .activity, .engraving, footer, footer span:first-child {
  color: #ddd9cc;
  text-shadow: 0 1px 1px #121313;
}
.brand span { font-size: 15px; line-height: 1.29; text-transform: none; }
.brand b { font-size: 11px; }
.activity, footer { font-size: 11px; }
footer span:first-child { letter-spacing: 0; }
.engraving {
  font-size: 12px;
  line-height: 1.28;
  text-align: center;
  justify-self: center;
}
.language {
  border-color: #605d55;
  border-bottom-color: #202121;
  background: #141718;
  box-shadow: inset 0 2px 4px #000b, 0 1px #5d5b53;
}
.language button {
  min-width: 44px;
  min-height: 39px;
  color: #ddd9cd;
  border-color: #505152;
  background:
    radial-gradient(ellipse at var(--lang-wear, 32%) 72%, #c3b8a12b, transparent 62%),
    var(--grain) center / 88px,
    linear-gradient(#343638, #1c1f20);
  background-blend-mode: normal, soft-light, normal;
  box-shadow: inset 0 1px #a6a29449, inset 0 -2px 3px #090b0d;
  font-size: 12px;
}
.language button + button { --lang-wear: 66%; }
.language button:hover { border-color: #8b8980; }
.language [aria-pressed="true"] {
  color: #151715;
  background:
    radial-gradient(ellipse at var(--lang-wear, 32%) 70%, #efead887, transparent 58%),
    var(--grain) center / 88px,
    linear-gradient(#c6beaa, #a69f8d 53%, #8e887b);
  border-color: #bdb9a7;
  box-shadow: inset 0 1px #dad6c7, inset 0 -2px 3px #443b3149, 0 0 5px #c6be9e25;
}

.language button:active { box-shadow: inset 0 2px 5px #0b0d0e; }

#open-legend {
  color: #e1dbcb;
  text-shadow: 0 1px 1px #202224;
  /* Two small breaks in the silkscreen ink along the edge of the finger path. */
  mask-image:
    linear-gradient(103deg, #000 36%, #000a 37%, #000 41%),
    linear-gradient(0deg, #0000 0 23%, #000 24%);
  mask-composite: add;
}

/* Molded cap, recessed dust line and a raised, aged retaining ring. */
.fire-key {
  border-color: #101113;
  background:
    radial-gradient(ellipse at 78% 81%, #9d826845, transparent 44%),
    radial-gradient(ellipse at 50% 41%, #100e0f 0 57%, #514638 62%, #1b1817 65%, transparent 67%),
    radial-gradient(ellipse at 41% 20%, #4e4b46, #272728 48%, #121315 72%, #302f2d 94%);
  box-shadow: 0 4px 5px #050609, inset 0 1px #7a786e, inset 0 -2px #151418;
}
.fire-key::before {
  background:
    radial-gradient(ellipse at 39% 63%, #c5a99153, #ad8b7426 32%, transparent 66%),
    radial-gradient(ellipse at 23% 0%, #ba9d824f, transparent 46%),
    var(--grain) 31% 41% / 91px,
    radial-gradient(ellipse at 44% 33%, #854d50, #703e45 53%, #542c36 78%, #371b24);
  background-blend-mode: normal, normal, soft-light, normal;
  box-shadow: 0 6px #46252c, 0 5px 7px 2px #120f118f,
              inset 0 1px 2px 1px #bd9a8d65, inset 0 -5px 9px #2e192490;
}
.fire-key::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 7px 8px 12px;
  border-radius: 50%;
  background:
    linear-gradient(161deg, transparent 45%, #dfb6a84f 49%, transparent 57%) 24% 68% / 12% 7% no-repeat,
    linear-gradient(156deg, transparent 45%, #40222c45 49%, transparent 57%) 37% 74% / 14% 6% no-repeat,
    linear-gradient(131deg, transparent 46%, #bd86764d 50%, transparent 56%) 73% 26% / 9% 8% no-repeat,
    radial-gradient(ellipse 42% 13% at 40% 92%, #dfb19a42, transparent 94%);
}
.fire-key:hover::before { filter: brightness(1.1); }
.fire-key:active::before {
  box-shadow: 0 2px #46252c, inset 0 2px 7px #321b2570, inset 0 -1px #a77b76;
}
.fire-key:active::after { transform: translateY(4px); }

/* Hand-cut thermal tapes sit inside the strike surfaces of the IBM-style caps. */
.action-key .tape {
  --tape-tilt: -.55deg;
  --tape-x: 0px;
  --tape-y: -2px;
  position: relative;
  display: inline-block;
  padding: 3px 5px;
  color: #edeae2;
  font: 600 13px/1 Arimo, sans-serif;
  letter-spacing: .015em;
  text-transform: uppercase;
  white-space: nowrap;
  background:
    radial-gradient(ellipse at 17% 110%, #c3bc9d24, transparent 57%),
    linear-gradient(173deg, #272829, #171819 22%, #101113 69%, #1e1e20);
  border-block: 1px solid #aaa59e36;
  border-inline: 1px solid #101013;
  border-radius: 1px;
  box-shadow: 0 1px 2px #000d, 0 0 1px #121215;
  transform: translate(var(--tape-x), var(--tape-y)) rotate(var(--tape-tilt));
}
.action-key[data-view="videos"] .tape {
  --tape-tilt: .9deg;
  --tape-x: 1px;
  --tape-y: -1px;
  color: #e5d9c1;
  border-color: #8d7c614f #211e1a #4c433571;
  background: linear-gradient(160deg, #2f2923, #161517 54%, #211c19);
}
.action-key[data-view="videos"] .tape::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 36%, #1d19168c 42% 54%, transparent 60%) 43% 54% / 15px 4px no-repeat,
    linear-gradient(173deg, transparent 45%, #d7c5a54c 50%, transparent 61%) 36% 17% / 18px 4px no-repeat;
}
.action-key[data-view="patches"] .tape {
  --tape-tilt: -1.6deg;
  --tape-x: -1px;
  --tape-y: -3px;
  border-radius: 1px 1px 3px 1px;
  box-shadow: 0 1px 2px #000e, 1px 2px 2px #0008;
}
.action-key[data-view="patches"] .tape::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 8px;
  height: 6px;
  background: linear-gradient(138deg, #191b1c 24%, #4f473a 57%, #a08b6a 92%);
  clip-path: polygon(0 88%, 95% 0, 100% 60%, 80% 91%);
  filter: drop-shadow(1px 2px 1px #000);
}
.action-key:active .tape {
  transform: translate(var(--tape-x), calc(var(--tape-y) + 3px)) rotate(var(--tape-tilt));
}

@media (max-width: 930px) {
  .action-key .tape { padding-inline: 4px; font-size: 12px; }
  .engraving { font-size: 11px; }
}
@media (min-width: 651px) and (max-width: 790px) {
  .deck { grid-template-columns: 1fr; }
  .drive { grid-template-columns: 1fr 1fr; }
  .aux { border-left: 0; border-top: 1px solid #a6a8ad68; padding: 8px 0 0; }
}
@media (max-width: 650px) {
  .brand span { font-size: 12px; }
  .brand b { font-size: 10px; }
  .activity, footer { font-size: 10px; }
  .language button { min-height: 44px; }
  .engraving { margin-bottom: 7px; }
  .arrow-key { height: 49px; }
  .action-key { min-height: 54px; padding-inline: 3px; }
  .fire-key { width: 63px; height: 63px; }
  .fire-key::before, .fire-key::after { inset: 5px 6px 8px; }
  .fire-key::before {
    box-shadow: 0 4px #46252c, 0 3px 6px #120f11, inset 0 1px 2px #b5998f73, inset 0 -3px 6px #2e192480;
  }
  .fire-key:active::before, .fire-key:active::after { transform: translateY(3px); }
}
@media (max-width: 365px) {
  .deck { padding-inline: 8px; }
  .aux-keys { grid-template-columns: minmax(0, 1.17fr) minmax(0, .8fr) minmax(0, 1fr); }
  html:lang(fr) .aux-keys { grid-template-columns: minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.22fr); }
  .action-key .tape { padding-inline: 3px; letter-spacing: 0; }
}

/* Reflections and glass edges are optical layers, independent of the glyphs. */
.bezel {
  background:
    radial-gradient(ellipse at 9% 63%, #72604936, transparent 47%),
    linear-gradient(153deg, #0e100d 9%, #272d24 49%, #4b4e40 83%, #242a22);
  box-shadow: inset 0 7px 11px #020403, inset 1px -1px 0 #aa95704c,
              inset 2px -3px 5px #87816b60, 0 1px 2px #080a07;
}
.screen {
  background:
    radial-gradient(ellipse at 26% 31%, #31522126, transparent 66%),
    radial-gradient(ellipse at 63% 65%, #294e253a, transparent 81%),
    radial-gradient(ellipse at 7% 9%, #8a632639, transparent 32%),
    #030504;
  border-color: #576153;
  text-shadow: 0 0 5px #a4ef802d;
  box-shadow: 0 0 12px #6ea25d24, inset 0 0 24px 9px #000e, inset 0 1px #d1b18329, 0 2px 2px #202720;
}
.screen::after {
  background:
    repeating-linear-gradient(0deg, #00000035 0 .55px, transparent .55px 3px),
    url("./tube-glass.svg") right top/100% 100% no-repeat,
    radial-gradient(ellipse at 52% 46%, transparent 54%, #010302b3 100%);
  opacity: .72;
}
/* DOS text mode. Amber labels and green readouts share the same VGA character grid. */
.screen, .field-file {
  font: 16px/1.25 var(--crt-font);
  font-synthesis: none;
  color: var(--crt);
}
.screen-label, .readout-type, .index > p {
  font: 16px/1.25 var(--crt-font);
  letter-spacing: 0;
  color: var(--crt-amber);
}
.screen-label { border-color: #8e5d31; }
.screen-label, .screen .readout-type, .screen .index > p { text-shadow: 0 0 5px #ffae5c43; }
.readout h2, .field-file h2 {
  font: 32px/1 var(--crt-font);
  color: var(--crt-bright);
  letter-spacing: 0;
  text-shadow: 0 0 7px #a9f38251;
}
.readout #project-line {
  max-width: 48ch;
  font: inherit;
  color: inherit;
}
.index button, .index-number {
  font: 16px/1.25 var(--crt-font);
  color: inherit;
}
.index button {
  background: #0b130be0;
  min-height: 39px;
}
.index [aria-pressed="true"] {
  background: radial-gradient(ellipse at 40% 60%, #293b1a, #101b0f);
  color: var(--crt-bright);
  box-shadow: inset 0 0 10px #b4f18a1d, 0 0 7px #b3fa6d29;
}
.index-number { color: #83b587; }
.field-file {
  background: radial-gradient(ellipse at 47% 38%, #080c09, #030504 76%);
}
.file-close {
  font: inherit;
  color: var(--crt-amber);
}
@media (max-width: 650px) {
  .readout h2, .field-file h2 { font-size: 24px; }
  .index button { min-height: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Two low-amplitude refresh drifts. Output and hit targets stay fixed. */
  .screen::before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 3;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, transparent 38%, #b7df8a26 50%, transparent 62%);
    animation: tube-refresh 24s linear infinite;
  }

  @keyframes tube-refresh {
    0%, 12%, 14.8%, 73%, 75.8%, 100% { opacity: 0; transform: translateY(-37%); }
    12.8%, 73.8% { opacity: .20; transform: translateY(-12%); }
    14%, 75% { opacity: .09; transform: translateY(30%); }
  }
}

.file-link { display: inline-block; margin-top: 1rem; color: var(--crt-amber); text-underline-offset: .2em; }
/* The blanking plate occupies an unused selector slot. */
.index .blanking-plate {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  min-height: 39px;
  margin: 0;
  border: 1px solid #0b0e0e;
  border-radius: 3px;
  pointer-events: none;
  background:
    url("./blanking-plate-wear.svg") center / 100% 100% no-repeat,
    var(--steel) center / 190px auto,
    linear-gradient(172deg, #414342, #303230 50%, #232625);
  box-shadow:
    inset 0 0 0 2px #191c1b,
    inset 0 0 0 3px #62645d,
    inset 0 -4px 6px #111412,
    0 2px 3px #0009;
}
.blanking-plate img {
  display: block;
  width: min(68%, 122px);
  height: 31px;
  object-fit: contain;
}
.blanking-plate .screw {
  top: 50%;
  width: 13px;
  height: 13px;
  translate: 0 -50%;
}
.blanking-plate .screw:first-child { left: 8px; }
.blanking-plate .screw:last-child { right: 8px; }
.blanking-plate .screw:last-child::after { transform: rotate(15deg); }
@media (max-width: 650px) {
  .index .blanking-plate { min-height: 32px; }
  .blanking-plate img { height: 28px; }
}
