:root {
  --ink: #060707;
  --paper: #efeee9;
  --fault: #b93729;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--ink); scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; background: var(--ink); color: var(--paper); font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; }
button, a, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  isolation: isolate;
  background: #050606 url("graphics/background-web.jpg") center 43% / cover fixed no-repeat;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.18) 35%, rgba(0,0,0,.48) 66%, rgba(0,0,0,.95) 100%),
    radial-gradient(circle at 50% 44%, transparent 0 10%, rgba(0,0,0,.3) 48%, rgba(0,0,0,.8) 100%);
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: .13;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.07) 3px 4px);
  mix-blend-mode: overlay;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 102px;
  padding: 26px 38px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
}

.brand-link { display: block; line-height: 0; }
.brand { display: block; width: clamp(145px, 18vw, 240px); height: auto; }
nav { display: flex; gap: clamp(20px, 3.2vw, 54px); }
nav a, nav button { padding: 8px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: .19em; font-size: 11px; cursor: pointer; transition: opacity .2s, border-color .2s; }
nav a:hover, nav button:hover { border-color: currentColor; opacity: .66; }

.instrument {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100svh - 102px);
  padding: 54px 34px 94px;
  text-align: center;
}

.title-block { position: relative; z-index: 2; }
h1 { margin: 0 0 40px; font-weight: 300; line-height: .96; letter-spacing: -.04em; text-transform: uppercase; text-shadow: 0 2px 24px #000; }
.play-title { font-size: clamp(22px, 3vw, 45px); }

.start-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(230px, 28vw, 344px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(2,3,3,.71);
  box-shadow: 0 0 0 0 rgba(255,255,255,.2), inset 0 0 65px rgba(255,255,255,.07), 0 22px 80px #000;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .19em;
  cursor: pointer;
  animation: beacon 2.7s ease-out infinite;
  transition: background .25s, transform .25s;
}
.start-button:hover { background: rgba(18,19,18,.83); transform: scale(1.015); }
.start-button::before, .start-button::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); }
.start-button::before { inset: 10px; }
.start-button::after { inset: 23px; border-style: dashed; animation: rotate 20s linear infinite; }
.start-button small { position: absolute; top: 64%; max-width: 70%; font-size: 8px; line-height: 1.5; letter-spacing: .15em; opacity: .56; }
.start-icon { position: absolute; top: 31%; width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }

.mixer { width: min(1120px, 100%); }
.instructions { margin: -22px 0 26px; font: 12px/1.6 monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .58; }
.signal-grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); align-items: end; gap: clamp(12px, 2vw, 30px); }
.signal { --lean: 0deg; display: grid; grid-template-rows: 1fr auto; min-width: 0; transform: translateY(var(--offset, 0)) rotate(var(--lean)); transition: opacity .3s; }
.signal-1 { --offset: 13px; --lean: -1deg; }
.signal-2 { --offset: -10px; --lean: .5deg; }
.signal-3 { --offset: 7px; --lean: -1.2deg; }
.signal-4 { --offset: -18px; --lean: .8deg; }
.signal-5 { --offset: 4px; --lean: -.6deg; }
.signal-6 { --offset: -6px; --lean: 1deg; }
.signal-7 { --offset: 15px; --lean: -.5deg; }
.signal-8 { --offset: -12px; --lean: 1.2deg; }
.signal-9 { --offset: 9px; --lean: -.8deg; }
.signal-10 { --offset: -4px; --lean: .4deg; }

.signal-aperture {
  position: relative;
  height: clamp(128px, 20vh, 210px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50% 50% 10px 10px / 18% 18% 5px 5px;
  background: linear-gradient(90deg, rgba(0,0,0,.93), rgba(22,22,20,.9) 48%, rgba(0,0,0,.94));
  box-shadow: inset 0 0 35px #000, 0 16px 30px rgba(0,0,0,.35);
}
.signal-aperture::before { content: ""; position: absolute; inset: 7px; z-index: 2; border: 1px dashed rgba(255,255,255,.13); border-radius: inherit; pointer-events: none; }
.signal-light { position: absolute; inset: auto 0 0; height: var(--level); min-height: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(243,239,222,.92)); box-shadow: 0 0 34px rgba(255,250,224,.64), inset 0 8px 20px rgba(255,255,255,.28); transition: height .16s ease-out, box-shadow .2s; }
.signal-light::before { content: ""; position: absolute; inset: -12px 22% auto; height: 20px; border-radius: 50%; background: rgba(255,255,255,.7); filter: blur(12px); }
.signal input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: .001; cursor: ns-resize; writing-mode: vertical-lr; direction: rtl; touch-action: none; }
.signal.is-silent { opacity: .52; }
.signal.is-silent .signal-aperture { border-style: dashed; }
.signal.is-audible .signal-aperture { border-color: rgba(255,255,255,.72); }
.signal.is-audible:nth-child(3n) .signal-light { animation: flicker 5.7s steps(1) infinite; }
.signal-label { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 14px 4px 4px; border: 0; background: none; color: inherit; cursor: pointer; }
.signal-label span { font: 22px/1 monospace; letter-spacing: -.08em; }
.signal-label small { min-height: 1em; font: 8px/1 monospace; letter-spacing: .11em; text-transform: uppercase; opacity: .62; }
.signal-label:hover span { text-shadow: 0 0 12px #fff; }

.silence-button { display: inline-flex; align-items: center; gap: 11px; margin-top: 40px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.36); background: rgba(0,0,0,.58); color: inherit; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; cursor: pointer; }
.silence-button:hover { border-color: rgba(255,255,255,.85); }
.pause-icon { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }
.is-paused .signal-grid { opacity: .38; filter: grayscale(1); }

.statusline { position: fixed; z-index: 20; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.6); font: 8px/1 monospace; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.is-started:not(.is-paused) .status-dot { background: var(--fault); color: var(--fault); animation: statusPulse 1.8s ease-in-out infinite; }

.about-dialog { width: min(820px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.4); background: #0b0c0c; color: var(--paper); box-shadow: 0 30px 120px #000; }
.about-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 17px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; font-weight: 200; cursor: pointer; }
.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; padding: 44px; }
.portrait-placeholder { display: grid; place-items: center; min-height: 310px; border: 1px dashed rgba(255,255,255,.34); background: radial-gradient(circle, rgba(255,255,255,.09), transparent 65%); color: rgba(255,255,255,.48); text-align: center; text-transform: uppercase; font: 9px/1.6 monospace; letter-spacing: .18em; }
.about-layout h2 { margin: 4px 0 24px; font-size: clamp(36px, 5vw, 64px); font-weight: 300; letter-spacing: -.05em; text-transform: uppercase; }
.about-layout p { max-width: 40ch; font-size: 16px; line-height: 1.65; }

@keyframes beacon { 0%, 35% { box-shadow: 0 0 0 0 rgba(255,255,255,.22), inset 0 0 65px rgba(255,255,255,.07), 0 22px 80px #000; } 75%, 100% { box-shadow: 0 0 0 34px rgba(255,255,255,0), inset 0 0 65px rgba(255,255,255,.12), 0 22px 80px #000; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes statusPulse { 50% { opacity: .3; } }
@keyframes flicker { 0%, 87%, 91%, 100% { opacity: 1; } 88%, 92% { opacity: .72; } }

@media (max-width: 820px) {
  .site-shell { background-attachment: scroll; }
  .topbar { min-height: 82px; padding: 21px 22px; }
  .brand { width: 138px; }
  nav { gap: 17px; }
  nav a, nav button { font-size: 9px; letter-spacing: .12em; }
  .instrument { min-height: calc(100svh - 82px); padding: 46px 18px 84px; }
  .signal-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
  .signal-aperture { height: clamp(120px, 19vh, 170px); }
  .signal-label span { font-size: 18px; }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; padding: 18px 16px; }
  .brand { width: 114px; }
  nav { gap: 11px; }
  nav a, nav button { padding-top: 4px; font-size: 8px; letter-spacing: .08em; }
  .instrument { display: block; min-height: calc(100svh - 75px); padding: 30px 12px 72px; }
  .title-block { text-align: center; }
  h1 { margin-bottom: 24px; }
  .start-button { margin: 0 auto; }
  .instructions { max-width: 42ch; margin: -8px auto 18px; font-size: 9px; letter-spacing: .08em; }
  .signal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 15px 7px; }
  .signal { --offset: 0px; --lean: 0deg; }
  .signal-aperture { height: clamp(96px, 15svh, 122px); }
  .signal-label { gap: 3px; padding: 9px 1px 0; }
  .signal-label span { font-size: 15px; }
  .signal-label small { font-size: 6px; letter-spacing: .04em; white-space: nowrap; }
  .silence-button { margin-top: 24px; }
  .statusline { right: 16px; bottom: 13px; }
  .about-layout { grid-template-columns: 1fr; gap: 24px; padding: 34px 24px; }
  .portrait-placeholder { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
