/* SPDX-License-Identifier: MIT */
/* Wisp concept 2, "Monitor": the field monitor on a film set. True-black screens where the picture leads;
   colour is a calibrated scale (false colour for distance to obstacles), peaking yellow marks Wisp and what it
   tracks, and the tally red means one thing only: recording. */
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira SC"; src: url("../fonts/saira-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saira SC"; src: url("../fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #000; --card: #111; --nest: #1d1d1d; --ink: #f3f3f0; --muted: #a6a6a1; --dim: #6d6d69;
  --peak: #ffd60a; --tally: #ff3b30;
  --fc-near: #ff5a4e; --fc-mid: #ffa31a; --fc-far: #3ccf6e;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: #0a0a0a; color: var(--ink); font: 400 15px/1.45 "Saira", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
::selection { background: var(--peak); color: #000; }
:focus-visible { outline: 2px solid var(--peak); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
button:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { button, button:active { transition: none; transform: none; } }

/* ---------- phone ---------- */
.phone-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.phone { width: 390px; height: 844px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.feed { position: relative; height: 486px; }
.feed svg { display: block; width: 390px; height: 486px; }
.feed .tag { position: absolute; font: 500 13px "Saira SC"; letter-spacing: 0.01em; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); }
.tag.rec { left: 12px; top: 12px; color: var(--ink); }
.tag.rec i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); margin-right: 6px; vertical-align: 1px; }
.tag.lat { right: 12px; top: 12px; color: var(--muted); }
.tag.lat b { color: var(--ink); font-weight: 700; }
.tag.lock { color: var(--peak); }
.panel { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.state { margin: 0; font: 700 23px/1.15 "Saira SC"; letter-spacing: -0.01em; }
.state span { color: var(--muted); font-weight: 500; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row3 p { margin: 0; }
.fig { font: 700 25px/1 "Saira SC"; }
.fig small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.lbl { font-size: 12.5px; color: var(--muted); margin-top: 3px !important; }
.modes { display: flex; gap: 18px; font: 500 15px "Saira SC"; }
.modes button { background: none; border: 0; padding: 4px 0 6px; color: var(--muted); position: relative; }
.modes button[aria-checked="true"] { color: var(--ink); }
.modes button[aria-checked="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--peak); }
.adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adjust div { background: var(--card); border-radius: var(--r); display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; height: 44px; }
.adjust button { background: none; border: 0; height: 44px; font-size: 20px; color: var(--ink); }
.adjust output { text-align: center; font: 500 15px "Saira SC"; }
.adjust output span { color: var(--muted); }
.stop { margin-top: auto; height: 58px; border: 0; border-radius: 999px; background: var(--ink); color: #000; font: 700 19px "Saira SC"; }
.minor { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.minor button { background: none; border: 0; color: var(--ink); font-weight: 500; padding: 4px 0; }

/* ---------- Control Lab ---------- */
.lab { width: 1440px; height: 900px; background: var(--bg); display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 64px 1fr 120px; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; padding: 0 28px; }
.brand { font: 700 19px "Saira SC"; display: flex; align-items: center; gap: 10px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--peak); }
.loops { display: flex; gap: 22px; font: 500 15px "Saira SC"; }
.loops a { color: var(--muted); text-decoration: none; padding: 21px 0 19px; position: relative; }
.loops a[aria-current="page"] { color: var(--ink); }
.loops a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px; background: var(--peak); }
.top .sitl { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.top .sitl b { color: var(--ink); font-weight: 500; }
.scope { padding: 4px 18px 0 28px; display: grid; grid-template-rows: 1.25fr 1fr; gap: 14px; min-height: 0; }
.trace { background: var(--card); border-radius: var(--r); padding: 14px 16px 8px; min-height: 0; }
.trace h2, .faders h2 { margin: 0; font: 500 15px "Saira SC"; color: var(--ink); }
.trace p { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }
.trace svg { display: block; width: 100%; }
.trace svg text { font: 400 12px "Saira"; fill: var(--muted); }
.trace svg text.mk { font: 500 13px "Saira SC"; }
.bodes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 0; }
.faders { padding: 4px 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.bank { background: var(--card); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.fader { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 8px; }
.fader output { font: 700 16px "Saira SC"; }
.fader input { writing-mode: vertical-lr; direction: rtl; width: 34px; height: 100%; min-height: 230px; accent-color: var(--peak); }
.fader label { font-size: 12.5px; color: var(--muted); text-align: center; }
.readout { background: var(--card); border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.readout p { margin: 0; }
.apply { height: 46px; border: 0; border-radius: 999px; background: var(--ink); color: #000; font: 700 16px "Saira SC"; }
.slate { grid-column: 1 / -1; margin: 14px 28px 20px; background: var(--nest); border-radius: var(--r); display: flex; align-items: center; gap: 22px; padding: 0 22px; }
.slate .t { font: 700 15px "Saira SC"; color: var(--peak); white-space: nowrap; }
.slate .eq { font: 500 22px "Saira SC"; white-space: nowrap; }
.slate .eq span { color: var(--muted); }
.slate .eq b { color: var(--peak); }
