/* Hills East Recording — rackmount edition.
   The page is a 19" rack. Faceplates: brushed black + champagne. One red jewel family.
   Lighting: warm key upper-left, top-edge highlight on every plate. */

@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Michroma"; src: url("fonts/michroma-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --room: #08080a;
  --rail: #2a2b2f; --rail-hi: #4a4c52;
  --plate: #16171a; --plate-2: #1d1e22; --plate-hi: #35373d;
  --champ: #c9bfa6; --champ-2: #a99f88; --champ-ink: #17130c;
  --silk: #e9e7e0; --silk-2: #a9a8a3; --silk-3: #8f8e8a;
  --red: #e8322a; --red-glow: rgba(232,50,42,.55); --amber: #ffb43c; --green: #62e07a;
  --display: "Big Shoulders", Impact, "Arial Narrow", sans-serif;
  --silkfont: "Michroma", "Archivo", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --u: clamp(64px, 6.2vw, 88px);      /* 1U */
  --label: .74rem;                     /* silkscreen legend floor (11.8px) */
  --control-label: .72rem;             /* pushbuttons, form labels, spec terms (11.5px) */
  --champ-label: #3f3828;              /* form/legend ink on the champagne plate (6.3:1) */
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --lamp: .745;                        /* fixed default; the lamp knob was removed */
  --crt-period: 2.67s;                 /* monitor/playback scanline; the speed knob was removed */
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--room); color-scheme: dark; }
body { margin: 0; min-height: 100vh; font: 400 1.0625rem/1.55 var(--body); color: var(--silk);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background:
  radial-gradient(ellipse 70% 50% at 15% 0%, #1a1a1e 0%, transparent 60%), var(--room); -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
a { color: var(--silk); }
img, svg, video { display: block; max-width: 100%; }
h1,h2,h3,p,dl,dd,ol,ul { margin: 0; }
.skip { position: absolute; top: -60px; left: 1rem; z-index: 99; padding: .6rem 1rem; background: #b3221b; color: #fff; }
.skip:focus { top: .5rem; }
.legend { font: 400 var(--label)/1.3 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: #c3c2bd; }

/* ---------- the rack */
.rack { position: relative; max-width: 1240px; margin: 0 auto; padding: calc(var(--u)/3) 0; display: grid; gap: 4px; align-content: start; }
.rack-main { display: grid; gap: 4px; }
.unit { margin: 0 clamp(1.3rem, 2.6vw, 1.9rem); }
.rail { position: absolute; top: 0; bottom: 0; width: clamp(1.3rem, 2.6vw, 1.9rem); background: linear-gradient(90deg, #5a5d65, #3a3c42 30%, #2b2c31 70%, #1a1b1e); border-left: 1px solid #6a6d75; border-right: 1px solid #0d0d0f; box-shadow: 4px 0 10px -4px #000; }
.rail--l { left: 0; } .rail--r { right: 0; }
.rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 9px; margin-left: -4.5px; background:
  repeating-linear-gradient(to bottom, transparent 0 calc(var(--u)/3 - 9px), #050506 calc(var(--u)/3 - 9px) calc(var(--u)/3 - 1px), #6a6d75 calc(var(--u)/3 - 1px) calc(var(--u)/3)); border-radius: 2px; }

.unit { position: relative; border-radius: 2px; padding: calc(var(--u)*.28) calc(var(--gutter) + 22px); background:
  linear-gradient(180deg, var(--plate-hi) 0, var(--plate-2) 2px, var(--plate) 10px, var(--plate) calc(100% - 4px), #0b0b0d 100%);
  box-shadow: 0 1px 0 #55585f inset, 0 2px 0 #2a2b30 inset, 0 -2px 0 #000 inset, 0 -3px 0 #26272c inset, 0 10px 24px -12px #000, 0 2px 0 #050506; }
/* rack ears: the plate's outer 14px is a lighter strip that carries the screws */
.unit::before { content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none; background:
  linear-gradient(90deg, #23252a 0 22px, #000 22px 23px, transparent 23px calc(100% - 23px), #000 calc(100% - 23px) calc(100% - 22px), #23252a calc(100% - 22px)); mix-blend-mode: lighten; opacity: .95; }
.unit::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background:
  linear-gradient(115deg, rgba(255,255,255,.05) 0, transparent 35%), repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.u1 { min-height: calc(var(--u) - 4px); } .u2 { min-height: calc(var(--u)*2 - 4px); } .u3 { min-height: calc(var(--u)*3 - 4px); } .u4 { min-height: calc(var(--u)*4 - 4px); } .u6 { min-height: calc(var(--u)*6 - 4px); }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8b8e96, #3a3c42 60%, #16171a); box-shadow: 0 0 0 2px #0a0a0b, 0 1px 0 3px #2c2d31; z-index: 2; }
.screw::before { content: ""; position: absolute; inset: 4px 1px; background: #101114; transform: rotate(35deg); }
.screw::after { content: ""; position: absolute; inset: 1px 4px; background: #101114; transform: rotate(35deg); }
.tl { top: calc(var(--u)/6 - 5px); left: 6px; } .tr { top: calc(var(--u)/6 - 5px); right: 6px; } .bl { bottom: calc(var(--u)/6 - 5px); left: 6px; } .br { bottom: calc(var(--u)/6 - 5px); right: 6px; }

/* jewel lamps + LED ladders */
.jewel { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: radial-gradient(circle at 40% 35%, #ff9a94, var(--red) 45%, #5a0d0a 100%);
  box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3px #3a3c42, 0 0 calc(14px * var(--lamp)) calc(2px * var(--lamp)) var(--red-glow); opacity: calc(.35 + var(--lamp) * .65); transition: opacity .3s, box-shadow .3s; }
.jewel--sm { width: 9px; height: 9px; }
.jewel:not(.jewel--on) { background: radial-gradient(circle at 40% 35%, #6a2a27, #3a0f0d 60%); box-shadow: 0 0 0 2px #0a0a0b, 0 0 0 3px #3a3c42; opacity: .8; }
.ladder-leds { display: inline-flex; gap: 4px; }
.ladder-leds i { width: 7px; height: 12px; border-radius: 1px; background: #1f2a22; box-shadow: inset 0 0 0 1px #0a0a0b; }
.ladder-leds i.on { background: var(--green); box-shadow: 0 0 calc(6px * var(--lamp)) var(--green); }
.ladder-leds i.on.hot { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.ladder-leds i.on.peak { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* pushbuttons, big illuminated switch */
.pushbtn { display: inline-flex; align-items: center; padding: .55rem .9rem; border-radius: 3px; text-decoration: none; font: 400 var(--control-label)/1 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: var(--silk);
  background: linear-gradient(180deg, #34363c, #202227); box-shadow: 0 2px 0 #0a0a0b, 0 0 0 1px #3f4147 inset; transition: transform .08s, box-shadow .08s; }
.pushbtn:hover { color: #fff; } .pushbtn:active { transform: translateY(2px); box-shadow: 0 0 0 #000, 0 0 0 1px #3f4147 inset; }
.pushbtn--red { color: #ff8c85; box-shadow: 0 2px 0 #0a0a0b, 0 0 0 1px #8a2a25 inset; }
.bigswitch { display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .9rem; padding: .95rem 1.4rem .9rem 1.1rem; border-radius: 4px; text-decoration: none; color: #fff; border: 0; cursor: pointer;
  font: 700 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #c33a31, #8a221c 60%, #6a1712); box-shadow: 0 4px 0 #3b0b09, 0 0 0 1px #d85b53 inset, 0 0 calc(24px * var(--lamp)) var(--red-glow); text-align: left; }
.bigswitch small { grid-column: 2; font: 400 .7rem/1 var(--silkfont); letter-spacing: .12em; opacity: .85; }
.bigswitch-lamp { grid-row: 1 / span 2; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd7d4 40%, #ff5a4f 70%); box-shadow: 0 0 10px #fff8; }
.bigswitch:active { transform: translateY(3px); box-shadow: 0 1px 0 #3b0b09, 0 0 0 1px #d85b53 inset; }

/* knobs */
.knob { --a: 0deg; width: 54px; height: 54px; border-radius: 50%; position: relative; cursor: ns-resize; touch-action: none; user-select: none; filter: drop-shadow(0 4px 3px #000c); }
.knob::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; background:
  conic-gradient(from 225deg, var(--silk-3) 0 var(--sweep, 0deg), #2a2b2f var(--sweep, 0deg) 270deg, transparent 270deg); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%); mask: radial-gradient(circle, transparent 60%, #000 62%, #000 70%, transparent 72%); }
.knob-cap { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--a)); transition: transform .05s linear; }
.knob-line { position: absolute; left: 50%; top: 5px; width: 3px; height: 40%; margin-left: -1.5px; background: var(--silk); border-radius: 2px; }
.knob--chicken .knob-cap { background: radial-gradient(circle at 40% 35%, #3b3c41, #121215 70%); box-shadow: 0 3px 5px #000a, inset 0 1px 0 #55575e; }
.knob--chicken .knob-line { top: -6px; height: 58%; width: 12px; margin-left: -6px; background: #161618; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; box-shadow: none; border: 0; }
.knob--chicken .knob-line::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 60%; margin-left: -1px; background: var(--silk); }
.knob--big { width: 92px; height: 92px; }
.knob:focus-visible { outline-offset: 12px; }

/* ---------- 1U id */
.id-unit { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
.id-brand { display: flex; align-items: center; gap: .9rem; flex: 1 1 auto; min-width: 0; }
.id-brand .legend { white-space: nowrap; }
.brand { font: 700 1.05rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--champ); padding: .9rem 0; margin: -.9rem 0; }
.id-controls { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; flex: 0 1 auto; }
.id-nav { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.id-controls .pushbtn { padding-inline: .75rem; }
.id-phone { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .9rem; border: 1px solid #3f4147; border-radius: 3px;
  font: 400 var(--control-label)/1 var(--silkfont); letter-spacing: .14em; color: var(--silk); text-decoration: none; white-space: nowrap; }
.id-phone:hover { color: #fff; border-color: #5a5d65; }
@media (max-width: 1120px) { .id-brand .legend { display: none; } } /* the location repeats in the lede and footer */

/* ---------- 4U monitor */
.monitor { display: grid; grid-template-columns: minmax(240px, 38%) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-top: calc(var(--u)*.45); padding-bottom: calc(var(--u)*.45); }
.crt { margin: 0; display: grid; gap: .6rem; }
.crt-bezel { position: relative; padding: 16px; border-radius: 10px; background: linear-gradient(180deg, #2b2c31, #121215); box-shadow: inset 0 1px 0 #4a4c52, inset 0 -1px 0 #000, inset 0 0 0 16px #1a1b1f, inset 0 14px 22px 10px #000, 0 6px 14px -6px #000; }
.crt-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #000; filter: contrast(1.05); box-shadow: inset 0 0 30px #000; }
.crt-glass { position: absolute; inset: 14px; border-radius: 6px; pointer-events: none; overflow: hidden; }
.crt-glass::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%); mix-blend-mode: screen; }
.crt-glass::after { content: ""; position: absolute; inset: -6px 0 0 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); animation: scan var(--crt-period, 3.2s) linear infinite; will-change: transform; }
.crt-glass.is-paused::after { animation-play-state: paused; }
.hero-face { display: grid; gap: 1.2rem; }
h1 { font: 800 clamp(2.6rem, 5.4vw, 4.6rem)/.92 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--silk); }
h1 em { font-style: normal; color: #e2d6b8; }
.lede { color: var(--silk-2); max-width: 52ch; text-wrap: pretty; }
.meters { display: flex; gap: 1.2rem; }
.vu { display: grid; justify-items: center; gap: .3rem; width: 150px; }
.vu svg { width: 100%; background: linear-gradient(180deg, #f2ead2, #d9cfae); border-radius: 4px; box-shadow: inset 0 0 0 3px #2a2b2f, inset 0 0 0 4px #5c5f66, inset 0 6px 10px -6px #0006, 0 2px 4px #000a; }
.vu { position: relative; }
.vu::after { content: ""; position: absolute; left: 4px; right: 4px; top: 4px; height: 45%; border-radius: 3px 3px 40% 40%; background: linear-gradient(170deg, rgba(255,255,255,.35), rgba(255,255,255,0) 70%); pointer-events: none; }
.vu-arc { fill: none; stroke: #2b2620; stroke-width: 2; } .vu-red { fill: none; stroke: var(--red); stroke-width: 5; }
.vu-ticks line { stroke: #2b2620; stroke-width: 1.5; }
.vu-label { font: 700 14px var(--display); fill: #2b2620; text-anchor: middle; letter-spacing: 2px; }
.vu-needle { stroke: #111; stroke-width: 2; }
.vu-hub { fill: #111; }
.hero-controls { display: flex; align-items: end; gap: 1.6rem; flex-wrap: wrap; }
.hero-controls .bigswitch { padding: 1.15rem 1.7rem 1.1rem 1.3rem; font-size: 1.25rem; }

h2 { font: 800 clamp(1.9rem, 3.6vw, 3rem)/.95 var(--display); text-transform: uppercase; color: var(--silk); }

/* ---------- 4U playback: video + meter bridge ---------- */
.player { display:grid; gap:1.1rem; padding-top:calc(var(--u)*.35); padding-bottom:calc(var(--u)*.35); }
.player-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline; gap:.4rem 1rem; border-bottom:1px solid #2f3136; padding-bottom:.7rem; }
.player-head .player-brand { justify-self:start; }
.player-head h2 { justify-self:center; text-align:center; }
.player-head .legend { justify-self:end; text-align:right; }
.player-brand { font:italic 700 1.8rem var(--display); color:var(--champ); letter-spacing:.02em; }
.player-head h2 { font:800 clamp(1.6rem,2.6vw,2.2rem)/1 var(--display); letter-spacing:.05em; }
.player-head > .legend { text-align:right; }
.player-face { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(1.4rem,3vw,2.4rem); justify-items:center; align-items:center; }
.player-screen { margin:0; display:grid; gap:.55rem; min-width:0; width:100%; max-width:720px; }
.screen-bezel { position:relative; padding:12px; border-radius:10px; background:linear-gradient(180deg,#2b2c31,#121215); box-shadow:inset 0 1px 0 #4a4c52, inset 0 -1px 0 #000, inset 0 0 0 12px #1a1b1f, inset 0 12px 20px 8px #000, 0 6px 14px -6px #000; }
.screen { position:relative; aspect-ratio:16/9; border-radius:5px; overflow:hidden; background:#000; box-shadow:inset 0 0 24px #000; }
.screen-idle { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:1rem; padding:1rem; text-align:center; background:radial-gradient(ellipse 80% 70% at 50% 40%, #15161a, #050506 75%); }
.screen-idle[hidden], .screen-frame[hidden] { display:none; }
.screen-play { position:relative; width:78px; height:78px; border-radius:50%; background:radial-gradient(circle at 40% 35%, #3a3c42, #14151a 70%); box-shadow:0 0 0 1px #4a4c52, 0 6px 14px #000a, inset 0 1px 0 #6a6d75; }
.screen-play::after { content:""; position:absolute; left:54%; top:50%; transform:translate(-50%,-50%); border-left:22px solid var(--silk); border-top:13px solid transparent; border-bottom:13px solid transparent; }
.screen-idle-copy { font:400 .8rem/1.3 var(--silkfont); letter-spacing:.16em; text-transform:uppercase; color:var(--silk-2); }
.screen-frame { position:absolute; inset:0; }
.screen-target { position:absolute; inset:0; }
.screen-frame iframe { width:100%; height:100%; border:0; display:block; }
.screen-glass { position:absolute; inset:10px; border-radius:5px; pointer-events:none; overflow:hidden; }
.screen-glass::before { content:""; position:absolute; inset:0; background:linear-gradient(160deg, rgba(255,255,255,.12), transparent 42%); mix-blend-mode:screen; }
.screen-glass::after { content:""; position:absolute; inset:-6px 0 0 0; background:repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); animation:scan var(--crt-period, 3.2s) linear infinite; }
.screen-cap { display:flex; justify-content:space-between; align-items:center; gap:.6rem 1rem; flex-wrap:wrap; }
.player-transport { display:inline-flex; gap:.5rem; margin-left:auto; }
.player-meters { display:grid; justify-items:center; gap:.9rem; }
.player-meters .meters { width:100%; justify-content:center; }
.player-meters .vu { width:calc(50% - .6rem); max-width:160px; }
.player-meters .vu svg { border:7px solid #323331; border-radius:7px; background:linear-gradient(#f4dca3,#d0a664); box-shadow:0 5px 8px #0006, inset 0 4px 10px #35241066; }
.player-meters .legend { text-align:center; }
.player-meters .lamp-wrap { display:inline-flex; align-items:center; gap:.6rem; }
.player-sources { display:flex; align-items:center; justify-content:center; gap:.7rem 1rem; flex-wrap:wrap; border-top:1px solid #2a2b2f; padding-top:1rem; }
.source { flex:0 0 auto; white-space:nowrap; }
.source[aria-pressed="true"] { color:#fff; box-shadow:0 2px 0 #0a0a0b, 0 0 0 1px #7a5a22 inset; }
.player-status { flex:1 1 100%; font-size:.9rem; color:#d9ceb4; }
.player-status:empty { display:none; }
.player-status a { color:var(--silk); }

/* ---------- 3U room */
.room { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.room-face { display: grid; gap: 1rem; } .room-face p { color: var(--silk-2); max-width: 58ch; text-wrap: pretty; }
.spec { display: grid; gap: 0; border: 1px solid #2a2b2f; border-radius: 3px; background: #0f0f11; }
.spec div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); padding: .7rem 1rem; border-bottom: 1px solid #1e1f23; }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 400 var(--control-label)/1.6 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: var(--silk-3); }
.spec dd { color: var(--silk); font-weight: 500; min-width: 0; overflow-wrap: break-word; font-variant-numeric: tabular-nums; }
.ladder { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; }

/* ---------- 2U flow */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.selector { display: flex; align-items: center; gap: 1.5rem; }
.stage-labels { list-style: none; padding: 0; display: flex; gap: 1.2rem; font: 400 var(--control-label)/1 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: var(--silk-3); }
.stages { position: relative; min-height: 6rem; }
.stage { display: none; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem; }
.stage.is-on { display: grid; }
.stage h3 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--champ); }
.stage p { color: var(--silk-2); max-width: 62ch; text-wrap: pretty; }

/* ---------- 4U booking (champagne plate) */
.booking { background: linear-gradient(180deg, #ddd4bd 0, var(--champ) 3px, var(--champ) calc(100% - 3px), #8e8570 100%); color: var(--champ-ink); display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 1px 0 #efe8d6 inset, 0 8px 22px -10px #000; }
.booking::after { background: linear-gradient(115deg, rgba(255,255,255,.18) 0, transparent 35%), repeating-linear-gradient(90deg, rgba(0,0,0,.02) 0 1px, transparent 1px 3px); }
.booking h2, .booking p { color: var(--champ-ink); }
.book-face p { text-wrap: pretty; }
.book-facts li, .book-contact li { text-wrap: pretty; overflow-wrap: break-word; }
.booking .screw { box-shadow: 0 0 0 2px #7d7460, 0 1px 0 3px #b5ab93; }
.book-face { display: grid; gap: 1rem; align-content: start; }
.book-facts { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.book-facts li { display: flex; align-items: center; gap: .6rem; }
.book-contact { list-style: none; padding: .9rem 0 0; margin: .4rem 0 0; border-top: 1px solid #8c826d; display: grid; gap: .5rem; font-size: .95rem; }
.book-contact li { display: flex; align-items: center; gap: .6rem; }
.book-contact a { color: var(--champ-ink); font-weight: 600; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: .5rem; margin-inline: -.5rem; border-radius: 3px; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
.f { display: grid; gap: .35rem; } .f--wide { grid-column: 1 / -1; }
label { font: 400 var(--control-label)/1.3 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: var(--champ-label); }
input, select, textarea { width: 100%; background: #f3eee0; color: var(--champ-ink); border: 1px solid #8a8069; border-radius: 3px; padding: .7rem .8rem; font: 400 1rem/1.4 var(--body); box-shadow: inset 0 2px 3px #0002; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,50,42,.25); }
.booking :focus-visible { outline-color: var(--red); }
textarea { resize: vertical; }
.hp-wrap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.send-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--champ-label); max-width: 40ch; text-wrap: pretty; }

/* ---------- 1U power */
.power { display:flex; align-items:center; gap:1rem 1.6rem; flex-wrap:wrap; }
.power-left { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.power-left .legend { white-space: nowrap; }
.power-copy { flex:1 1 12ch; text-align:center; font-size:.85rem; color:var(--silk-2); text-wrap: pretty; }
.power-copy a { color: var(--silk); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
  min-height: 32px; padding-inline: .4rem; margin-inline: -.4rem; border-radius: 3px; }
.power-copy a:hover { color: #fff; }
.power-right { display:flex; align-items:center; gap:1rem; }
.reset { min-height: 44px; }
.reset { display: inline-grid; place-items: center; gap: .3rem; background: transparent; border: 0; cursor: pointer; padding: .2rem .4rem; color: inherit; }
.reset::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #444, #111 70%); box-shadow: 0 0 0 3px #0a0a0b, 0 0 0 4px #3a3c42, inset 0 1px 2px #000; }
.reset:active::before { transform: translateY(1px); }

/* ---------- hidden rack */
.hidden-rack { background: linear-gradient(180deg, #2a2b30 0, #1a1b1f 3px, #1a1b1f calc(100% - 3px), #0b0b0d 100%); padding: 1rem var(--gutter) 1.4rem; }
.hidden-rack[hidden] { display: none !important; }
.hidden-rack.is-in { animation: slidein .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slidein { from { opacity: 0; transform: translateY(24px); } }
.hr-unit { display: grid; gap: .9rem; padding: 1rem 0; border-top: 1px solid #2a2b2f; }
.hr-unit:first-child { border-top: 0; }
.hr-faceplate { display: grid; gap: .9rem; }
.hr-legend { font: 400 var(--control-label)/1.3 var(--silkfont); letter-spacing: .16em; text-transform: uppercase; color: var(--silk-2); }
.hr-knob { width: 46px; height: 46px; border-radius: 50%; position: relative; cursor: ns-resize; touch-action: none; background: radial-gradient(circle at 40% 35%, #3b3c41, #121215 70%); box-shadow: 0 3px 5px #000a, inset 0 1px 0 #55575e; }
.hr-knob-cap { position: absolute; inset: 0; border-radius: 50%; }
.hr-knob-cap::before { content: ""; position: absolute; left: 50%; top: 4px; width: 3px; height: 40%; margin-left: -1.5px; background: var(--amber); border-radius: 2px; box-shadow: 0 0 5px var(--amber); }
.hr-led { width: 8px; height: 8px; border-radius: 50%; background: #2a1a1a; display: inline-block; box-shadow: inset 0 0 0 1px #000; }
.hr-led.on { background: var(--red); box-shadow: 0 0 6px var(--red); }
.hr-seg { font: 700 2rem/1 "Michroma", monospace; color: #ff5a3c; background: #1a0705; padding: .3rem .7rem; border-radius: 3px; letter-spacing: .1em; box-shadow: inset 0 0 0 2px #000, 0 0 12px #ff5a3c33; min-width: 5ch; text-align: right; }
.hr-step { width: 100%; aspect-ratio: 1; min-width: 26px; border-radius: 3px; border: 0; cursor: pointer; background: linear-gradient(180deg, #34363c, #202227); box-shadow: 0 2px 0 #0a0a0b, inset 0 0 0 1px #3f4147; }
.hr-step.on { background: linear-gradient(180deg, #c33a31, #8a221c); box-shadow: 0 2px 0 #3b0b09, inset 0 0 0 1px #d85b53; }
.hr-step.cur { outline: 2px solid var(--amber); outline-offset: 1px; }
.hr-switch, .hr-btn, .hr-power { padding: .55rem .9rem; border-radius: 3px; border: 0; cursor: pointer; font: 400 var(--control-label)/1 var(--silkfont); letter-spacing: .14em; text-transform: uppercase; color: var(--silk); background: linear-gradient(180deg, #34363c, #202227); box-shadow: 0 2px 0 #0a0a0b, inset 0 0 0 1px #3f4147; }
.hr-switch[aria-pressed="true"], .hr-btn[aria-pressed="true"] { background: linear-gradient(180deg, #c33a31, #8a221c); color: #fff; }
.hr-power { background: linear-gradient(180deg, #b7332c, #7e1d18); color: #fff; }
.hr-key { height: 120px; flex: 1; border: 1px solid #111; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #f4f1e8, #d9d4c6); cursor: pointer; position: relative; }
.hr-key.black { background: linear-gradient(180deg, #2a2b30, #0d0d10); height: 76px; margin: 0 -3.2% ; z-index: 2; flex: .7; }
.hr-key.down { background: var(--amber); }
.hr-key.black.down { background: #c78a2a; }

/* ---------- responsive */
@media (max-width: 900px) {
  .monitor, .room, .booking, .player-face { grid-template-columns: minmax(0, 1fr); }
  .room > *, .booking > *, .player-face > * { min-width: 0; }
  .id-nav a:not(.pushbtn--red) { display: none; }
  .crt { max-width: 260px; }
  .monitor { padding-top: calc(var(--u)*.3); }
  .stage { grid-template-columns: 1fr; }
  .hero-controls .bigswitch { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .rack, .rack-main { padding-left: 1.7rem; padding-right: 1.7rem; gap: 5px; }
  .rack-main { padding-left: 0; padding-right: 0; }
  .unit { padding-left: .9rem; padding-right: .9rem; }
  .hero-controls { gap: 1rem 1.2rem; }
  .stage { gap: .5rem; }
  .rail { width: 1rem; }
  .meters { gap: .8rem; } .vu { width: 120px; }
  .book-form { grid-template-columns: 1fr; }
  .player-meters .vu { width: calc(50% - .4rem); max-width: 150px; }
  .screen-bezel { padding: 8px; }
  .player-sources { gap: .6rem; }
  .player-sources > .legend { flex: 1 1 100%; }
  .source { flex: 1 1 100%; white-space: normal; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hidden-rack.is-in { animation: none; }
  .knob-cap { transition: none; }
}

@keyframes scan { to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .crt-glass::after { animation: none; } }

@media (max-width: 900px) { .meters { width: 100%; } .vu { width: calc(50% - .6rem); max-width: 150px; } }
@media (max-width: 600px) { .rack, .rack-main { padding-left: 0; padding-right: 0; } .unit { margin: 0 1rem; padding-left: 1.4rem; padding-right: 1.4rem; min-width: 0; } .rail { width: 1rem; } .id-brand { flex-wrap: wrap; gap: .4rem .7rem; } .brand { font-size: .95rem; } .unit::before { background: linear-gradient(90deg, #23252a 0 12px, #000 12px 13px, transparent 13px calc(100% - 13px), #000 calc(100% - 13px) calc(100% - 12px), #23252a calc(100% - 12px)); } .tl,.bl { left: 2px; } .tr,.br { right: 2px; } }

/* hidden rack layout (module supplies structure; page supplies skin) */
.hr-rack { display: grid; gap: 1rem; }
.hr-unit-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hr-unit-header h2, .hr-unit-header h3 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--champ); margin: 0; }
.hr-transport { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hr-sequencer { display: grid; gap: .5rem; }
.hr-drum-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.hr-steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.hr-steps .hr-step:nth-child(4n+1) { box-shadow: 0 2px 0 #0a0a0b, inset 0 0 0 1px #3f4147, inset 0 -3px 0 #4a4c52; }
.hr-step { width: 100%; aspect-ratio: 1; max-height: 40px; min-width: 0; }
.hr-synth-controls { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; align-items: end; }
.hr-oscillator { display: flex; gap: .8rem; align-items: end; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid #2c2e33; border-radius: 4px; }
.hr-keyboard { display: flex; align-items: flex-start; height: 130px; padding: 0 2px; background: #0a0a0c; border-radius: 4px; box-shadow: inset 0 2px 6px #000; overflow: hidden; }
.hr-key { padding: 0; }
.hr-key-label { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font: 400 .7rem var(--silkfont); color: #555; }
.hr-key.black .hr-key-label { color: #999; }
.hr-control { display: grid; justify-items: center; gap: .35rem; }
@media (max-width: 720px) { .hr-drum-row { grid-template-columns: 1fr; } .hr-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); } .hr-step { max-height: none; } .hr-keyboard { height: 100px; } .hr-key.black { height: 60px; } }
.hr-unit-header .hr-legend, .hr-unit-header h2, .hr-unit-header h3 { font: 800 1.5rem/1 var(--display) !important; letter-spacing: .04em !important; text-transform: uppercase; color: var(--champ) !important; }
.hr-unit-header .hr-led { margin-left: auto; margin-right: 1rem; width: 12px; height: 12px; }
.hr-unit-header .hr-led::after { content: "RUN"; position: absolute; left: 18px; top: -3px; font: 400 .7rem var(--silkfont); letter-spacing: .12em; color: var(--silk-3); }
.hr-unit-header .hr-led { position: relative; }
.hr-knob-value { font: 500 .78rem/1 var(--silkfont); color: var(--silk-2); font-variant-numeric: tabular-nums; }
.hr-control { min-width: 76px; }
.hr-control .hr-legend { text-align: center; }
.hr-drum-row { grid-template-columns: 5.5rem minmax(0, 1fr) 96px; }
.hr-drum-row .hr-control { justify-self: center; }
.hr-hint, .hr-key-hint { font: 400 .8rem/1.5 var(--silkfont); letter-spacing: .04em; color: var(--silk-2); margin: 0; }
.hr-key-hint { color: var(--silk-3); }
.hr-key-label { color: #6a6660; font-size: .7rem; }
.hr-key.black .hr-key-label { color: #b5b0a6; }
.hr-knob { background: radial-gradient(circle at 40% 35%, #46484f, #15161a 70%); box-shadow: 0 4px 5px #000b, inset 0 1px 0 #61646c, inset 0 -2px 3px #000; }
.hr-knob::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(from 225deg, #3a3c42 0 270deg, transparent 270deg); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 68%, transparent 70%); mask: radial-gradient(circle, transparent 60%, #000 62%, #000 68%, transparent 70%); }
.hidden-rack .screw { display: block; }

.crt-cap { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.pushbtn--sm { padding: .45rem .7rem; font-size: .7rem; }

.hr-keyboard { display: grid; grid-template-columns: repeat(15, 1fr); position: relative; height: 130px; gap: 2px; }
.hr-key { height: 100%; width: auto; flex: none; margin: 0; }
.hr-key.black { position: absolute; top: 0; height: 58%; width: calc(100% / 15 * .62); margin: 0; z-index: 2; border-radius: 0 0 3px 3px; }
.hr-unit-header .hr-led::after { content: none; }
.hr-unit-header .hr-led { margin-left: auto; margin-right: .5rem; }
.hr-run { font: 400 .7rem var(--silkfont); letter-spacing: .12em; color: var(--silk-3); margin-right: 1rem; }
@media (max-width: 720px) { .hr-drum-row { grid-template-columns: 1fr; } .hr-drum-row .hr-control { justify-self: start; } .hr-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); } .hr-step { max-height: none; } .hr-keyboard { height: 100px; } }

input, textarea { caret-color: var(--red); }
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--champ-ink);
  -webkit-box-shadow: 0 0 0 1000px #f3eee0 inset, 0 2px 3px rgba(0,0,0,.13) inset;
  caret-color: var(--red);
}
html { scrollbar-color: #3a3c42 var(--room); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--room); }
::-webkit-scrollbar-thumb { background: #3a3c42; border: 3px solid var(--room); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #4a4c52; }
::-webkit-scrollbar-corner { background: var(--room); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

.hr-key.black { left: var(--key-left); }

/* Revision: monitor + control face on one 4U unit. */
.monitor { grid-template-columns: minmax(340px, 50%) minmax(0, 1fr); align-items:center; justify-items:stretch; gap:clamp(2rem, 4vw, 3.5rem); padding-block:calc(var(--u)*.4); min-height:calc(100svh - var(--u)*4/3 - 6px); }
.monitor .crt { width:min(100%, 62vh); max-width:680px; justify-self:center; }
.crt-img { object-fit:contain; }
.hero-face { max-width:34rem; text-align:left; justify-items:start; gap:.9rem; padding-bottom:3.4rem; /* optically centre on the screen, not on screen + caption row */ }
.hero-face h1 { font-size:clamp(2.5rem,4.2vw,3.6rem); line-height:1; }
.hero-controls { justify-content:flex-start; margin-top:.8rem; }
.hero-controls .bigswitch { width:auto; }
.crt-cap { display:flex; justify-content:space-between; align-items:center; gap:.7rem 1rem; flex-wrap:wrap; }
.crt-controls { display:inline-flex; gap:.5rem; margin-left:auto; }
.iconbtn { width:44px; height:44px; border-radius:3px; border:0; cursor:pointer; display:inline-grid; place-items:center; padding:0;
  background:linear-gradient(180deg,#34363c,#202227); box-shadow:0 2px 0 #0a0a0b, 0 0 0 1px #3f4147 inset; transition:transform .08s, box-shadow .08s; }
.iconbtn::before { content:""; width:0; height:0; border-left:11px solid var(--silk); border-top:7px solid transparent; border-bottom:7px solid transparent; }
.iconbtn[aria-pressed="true"]::before { width:12px; height:12px; border:0; border-left:4px solid var(--silk); border-right:4px solid var(--silk); }
.iconbtn:hover { background:linear-gradient(180deg,#3f4248,#26282d); }
.iconbtn:active { transform:translateY(2px); box-shadow:0 0 0 #000, 0 0 0 1px #3f4147 inset; }
.pushbtn { cursor:pointer; border:0; min-height:44px; }
button:disabled { cursor:default; opacity:.65; }
html:not(.has-js) #ident-toggle { display:none; }
.demo-note { font-size:.8rem; line-height:1.5; color:var(--silk-2); text-wrap:pretty; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state:paused!important; scroll-behavior:auto!important; }
html.motion-paused { scroll-behavior:auto; }
html:not(.has-js) .stage { display:grid; }
html:not(.has-js) .stages { display:grid; gap:1.5rem; }
@media(max-width:600px) {
 .monitor { padding-inline:1.25rem; gap:1.3rem; }
 .monitor .crt { width:100%; }
 .crt-bezel { padding:10px; }
 .crt-cap { gap:.5rem .8rem; }
 .player-head { align-items:flex-start; }
 .player-head > .legend { text-align:left; }
 .stage-labels { flex-wrap:wrap; gap:.8rem; }
 .selector { gap:1rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media(max-width:900px) {
 .monitor { grid-template-columns:minmax(0,1fr); justify-items:center; gap:1.5rem; padding-block:1.6rem 2rem; min-height:calc(var(--u)*4 - 4px); }
 .monitor .crt { width:min(100%,680px); }
 .hero-face { max-width:660px; text-align:center; justify-items:center; padding-bottom:0; }
 .hero-controls { justify-content:center; margin-top:.4rem; }
 .power { gap:.8rem 1rem; }
 .power-copy { flex-basis:100%; text-align:left; order:3; }
}

/* Sub-320px widths only occur under browser zoom; keep the headings from forcing a scrollbar. */
@media (max-width: 300px) {
  h2 { font-size: clamp(1.25rem, 6.5vw, 1.9rem); }
  .id-phone { padding-inline: .55rem; letter-spacing: .08em; }
  .ladder-leds { flex-wrap: wrap; row-gap: 4px; }
  .power-left .legend { white-space: normal; }
  .power-right { flex-wrap: wrap; row-gap: .5rem; }
}

/* Narrow-viewport fallback: reachable under browser zoom / large text on a phone. */
@media (max-width: 340px) {
  .unit { padding-left: 1rem; padding-right: 1rem; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: .05rem; padding: .55rem .8rem; }
  .spec dt { letter-spacing: .1em; }
}
