:root {
  --bg: #080705;
  --ink: #ebe4d4;
  --muted: #9a907e;
  --dim: #5c5548;
  --line: rgba(232, 165, 75, 0.16);
  --amber: #e8a54b;
  --teal: #7ee0c8;
  --rose: #e07a6a;
  --cell: #16130f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Outfit", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(232, 165, 75, 0.08), transparent 50%),
    radial-gradient(900px 500px at 100% 10%, rgba(126, 224, 200, 0.05), transparent 45%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 40; opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  pointer-events: none; position: fixed; border-radius: 50%; filter: blur(70px);
  z-index: 0; opacity: 0.35;
}
.orb-a { width: 420px; height: 420px; left: -80px; top: 80px; background: #3a2410; }
.orb-b { width: 360px; height: 360px; right: -60px; top: 280px; background: #12332c; }

.nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 8vw 0;
}
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: lowercase; }
.brand-mark { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.brand-mark i { display: block; width: 3px; background: var(--amber); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }

.status {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}
.status.ok .dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.status.busy .dot { background: var(--amber); animation: blink 0.8s infinite; }
.status.err .dot { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
@keyframes blink { 50% { opacity: 0.25; } }

main { position: relative; z-index: 1; padding: 48px 8vw 80px; max-width: 1100px; }
.eyebrow {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232,165,75,0.6);
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(232,165,75,0.55); }
  100% { box-shadow: 0 0 0 12px rgba(232,165,75,0); }
}
h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98; margin: 12px 0 16px; letter-spacing: -0.02em;
}
h1 em { font-style: italic; color: var(--amber); }
.lede { max-width: 42rem; color: var(--muted); font-size: 17px; margin: 0 0 36px; }

.meters {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px;
}
.meter {
  background: rgba(22,19,15,0.7); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px;
}
.meter .k {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 6px;
}
.meter strong { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.meter .u { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

.studio {
  background: rgba(22,19,15,0.75); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px;
}
textarea {
  width: 100%; resize: vertical; min-height: 110px; border: 0; outline: 0;
  background: transparent; color: var(--ink); font-family: var(--sans); font-size: 18px;
  padding: 16px 16px 8px; line-height: 1.45;
}
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px 10px; gap: 12px;
}
#count { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.actions { display: flex; gap: 8px; }
button {
  font-family: var(--sans); cursor: pointer; border: 0;
}
.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; font-size: 14px;
}
.ghost:hover { border-color: var(--amber); }
.run {
  display: flex; align-items: center; gap: 10px;
  background: var(--amber); color: #1a1208; border-radius: 999px;
  padding: 10px 18px 10px 20px; font-weight: 600; font-size: 15px;
}
.run:disabled, .ghost:disabled { opacity: 0.45; cursor: wait; }
.run-icon { font-size: 11px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 7px 12px;
}
.chip:hover { color: var(--ink); border-color: var(--amber); }

.player-wrap {
  margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(22,19,15,0.55);
}
.wave { display: flex; align-items: flex-end; gap: 3px; height: 42px; margin-bottom: 12px; }
.wave span {
  display: block; width: 3px; background: var(--amber); border-radius: 2px;
  opacity: 0.85; transform-origin: bottom;
}
audio { width: 100%; }
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.bench-card {
  margin-top: 22px; padding: 20px 22px; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(22,19,15,0.55);
}
.bench-card h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.bench-line { color: var(--muted); margin: 0 0 16px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars i {
  flex: 1; background: linear-gradient(180deg, var(--amber), #6a4318);
  border-radius: 6px 6px 2px 2px; min-height: 6px; position: relative;
}
.bars i em {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; font-style: normal; color: var(--dim);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .meters { grid-template-columns: 1fr 1fr; }
  .nav, main { padding-left: 20px; padding-right: 20px; }
  .actions { flex-direction: column; align-items: stretch; }
}

.console {
  margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px;
  background: #0c0b09; overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.35);
}
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim);
}
.console-its { color: var(--teal); letter-spacing: 0.08em; }
.console-its.hot { color: var(--amber); }
#console-out {
  margin: 0; padding: 14px 16px 16px; min-height: 132px; max-height: 220px;
  overflow-y: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  color: #c8e6c0; white-space: pre-wrap; word-break: break-word;
}
#console-out .cursor {
  display: inline-block; width: 8px; height: 13px; margin-left: 4px;
  background: var(--amber); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
