:root {
  --paper: #f5f0df;
  --ink: #171713;
  --blue: #2167f3;
  --red: #fa4d31;
  --yellow: #ffd33d;
  --mint: #78dab2;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --display: "Archivo Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
}
a { color: inherit; text-decoration: none; }
.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

header {
  min-height: 78px;
  width: min(1380px, calc(100% - 54px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.wordmark { font-family: var(--display); font-size: 17px; letter-spacing: -0.04em; }
.wordmark span { color: var(--red); }
.system-status { display: flex; align-items: center; gap: 9px; }
.system-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

main {
  width: min(1380px, calc(100% - 54px));
  min-height: calc(100vh - 145px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
  gap: clamp(45px, 7vw, 110px);
  align-items: center;
  padding: 70px 0 74px;
}
h1 { margin: 0; max-width: 900px; font-family: var(--display); font-size: clamp(58px, 7.1vw, 116px); line-height: 0.91; letter-spacing: -0.065em; text-transform: uppercase; }
h1 em { position: relative; display: inline; color: var(--blue); font-style: normal; }
h1 em::after { content: ""; position: absolute; z-index: -1; left: -1%; right: -1%; bottom: 2%; height: 12%; background: var(--yellow); transform: rotate(-1.2deg); }
.launch {
  width: min(450px, 100%);
  min-height: 92px;
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px 15px 24px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-0.5deg);
  transition: transform 130ms ease, box-shadow 130ms ease;
}
.launch:hover { transform: translate(4px, 4px) rotate(0); box-shadow: 4px 4px 0 var(--ink); }
.launch span { display: grid; gap: 5px; font-size: 17px; font-weight: 600; }
.launch small { font-size: 8px; font-weight: 500; letter-spacing: 0.1em; }
.launch b { font-size: 35px; font-weight: 400; }

.control-panel {
  position: relative;
  width: min(100%, 570px);
  justify-self: end;
  padding: 26px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: #c8c6bb;
  box-shadow: 16px 18px 0 var(--ink);
  transform: rotate(1.2deg);
}
.control-panel::before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid rgba(23,23,19,.35); border-radius: 10px; }
.panel-top { display: flex; justify-content: space-between; padding: 0 2px 17px; border-bottom: 2px solid var(--ink); font-size: 9px; font-weight: 600; }
.dial-zone { margin-top: 23px; padding: 20px; border: 3px solid var(--ink); border-radius: 50% 50% 9px 9px / 18% 18% 9px 9px; background: #f2ead6; text-align: center; }
.dial-labels { display: flex; justify-content: space-between; font-size: 8px; font-weight: 600; }
.dial { position: relative; width: 245px; max-width: 80%; aspect-ratio: 2 / 1; margin: 14px auto 0; overflow: hidden; border: 3px solid var(--ink); border-bottom: 0; border-radius: 260px 260px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--red) 0 18deg, var(--yellow) 18deg 55deg, var(--mint) 55deg 90deg, transparent 90deg); }
.dial::after { content: ""; position: absolute; left: 50%; bottom: -18px; width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; background: #c8c6bb; transform: translateX(-50%); }
.dial i { position: absolute; z-index: 2; left: calc(50% - 3px); bottom: 0; width: 6px; height: 92%; background: var(--ink); transform-origin: 50% 100%; transform: rotate(29deg); transition: transform 420ms cubic-bezier(.2,.9,.2,1.3); }
.control-panel.engaged .dial i { transform: rotate(72deg); }
.tick { position: absolute; bottom: 0; left: 50%; width: 2px; height: 17px; background: var(--ink); transform-origin: 0 118px; }
.t1 { transform: rotate(-66deg); }.t2 { transform: rotate(-40deg); }.t3 { transform: rotate(-14deg); }
.t4 { transform: rotate(14deg); }.t5 { transform: rotate(40deg); }.t6 { transform: rotate(66deg); }
.dial-zone p { margin: 13px 0 0; font-size: 8px; font-weight: 600; }
.override { position: relative; width: 210px; height: 210px; margin: 25px auto 15px; display: grid; place-items: center; border: 4px solid var(--ink); border-radius: 50%; background: var(--red); color: #fff7e3; box-shadow: inset 0 -13px 0 rgba(110, 17, 7, 0.25), 0 9px 0 var(--ink); cursor: pointer; font-family: var(--mono); transition: transform 90ms ease, box-shadow 90ms ease; }
.override:hover { transform: translateY(2px); box-shadow: inset 0 -10px 0 rgba(110,17,7,.25), 0 7px 0 var(--ink); }
.override:active, .override.active { transform: translateY(8px); box-shadow: inset 0 -4px 0 rgba(110,17,7,.25), 0 1px 0 var(--ink); }
.override strong { font-family: var(--display); font-size: 25px; line-height: 0.95; }
.override small { position: absolute; bottom: 28px; font-size: 6px; }
.button-light { position: absolute; top: 19px; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: #5d2018; }
.override.active .button-light { background: var(--yellow); box-shadow: 0 0 13px var(--yellow); }
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.switches div { display: grid; place-items: center; gap: 7px; padding: 10px 4px; border: 2px solid var(--ink); background: #aaa99f; font-size: 7px; font-weight: 600; }
.switches i { width: 11px; height: 23px; border: 2px solid var(--ink); border-radius: 7px; background: #f5f0df; box-shadow: inset 0 -9px 0 var(--blue); }

footer { min-height: 67px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 0 max(27px, calc((100vw - 1380px) / 2)); border-top: 3px solid var(--ink); background: var(--blue); color: white; font-size: 8px; font-weight: 600; }
footer > span:last-child { justify-self: end; }
.marquee { letter-spacing: 0.08em; }

@media (max-width: 1000px) {
  main { grid-template-columns: 1fr; padding-top: 60px; }
  .control-panel { justify-self: center; margin: 20px 0 30px; }
}
@media (max-width: 620px) {
  header, main { width: calc(100% - 30px); }
  header { min-height: 68px; }
  .system-status { display: none; }
  main { padding: 52px 0; }
  h1 { font-size: clamp(48px, 16vw, 72px); }
  .control-panel { padding: 20px; box-shadow: 9px 10px 0 var(--ink); }
  .override { width: 170px; height: 170px; }
  footer { grid-template-columns: 1fr auto; padding: 0 16px; }
  footer .marquee { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
