:root {
  --bg: #07060b;
  --ink: #f2efe6;
  --muted: #9a9488;
  --dim: #5c574e;
  --line: #2a2633;
  --accent: #8b6cff;
  --accent-soft: rgba(139, 108, 255, 0.16);
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}

.staves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(139, 108, 255, 0.07) 27px,
      rgba(139, 108, 255, 0.07) 28px
    );
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

nav, section, footer { position: relative; z-index: 1; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
.hl { color: var(--accent); }
.shell { max-width: 920px; margin: 0 auto; padding: 0 28px; }

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(7, 6, 11, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 920px; margin: 0 auto; padding: 0 28px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 500;
}
.nav-logo img { width: 22px; height: 22px; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  font-family: var(--mono);
}

#hero { padding: 140px 0 88px; }
.hero-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.12em; color: var(--dim);
  text-transform: lowercase; margin-bottom: 28px;
}
.dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}
#hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 18ch;
}
#hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.lede a { border-bottom: 1px solid var(--line); }

.cta {
  display: inline-block;
  margin-bottom: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: #0c0914;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.cta:hover { color: #0c0914; filter: brightness(1.08); }
.cta-inline { margin-top: 28px; }

#do, #say { padding: 24px 0 72px; }
#do h2, #say h2, #pit h2, #cue h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.section-lead {
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
  margin-bottom: 28px;
}
.caps {
  list-style: none;
  max-width: 720px;
}
.caps li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.caps li:last-child { border-bottom: 1px solid var(--line); }
.caps b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.examples {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.examples figure {
  border: 1px solid var(--line);
  padding: 16px 16px 18px;
}
.examples figcaption {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: lowercase;
  margin-bottom: 12px;
}
.examples pre {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 12px;
  margin-bottom: 12px;
  white-space: pre-wrap;
}
.examples p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.hero-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.measure {
  padding: 22px 20px 0 0;
  border-right: 1px solid var(--line);
}
.measure:last-child { border-right: 0; padding-right: 0; }
.measure:first-child { padding-left: 0; }
.m-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}
.measure p { color: var(--muted); font-size: 13px; max-width: 28ch; }

#score { padding: 40px 0 80px; }
.score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.score-left h2, #pit h2, #cue h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.score-left p { color: var(--muted); font-size: 14px; max-width: 42ch; }
.text-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.sheet {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
}
.sheet-line {
  display: flex; gap: 16px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.sheet-line:last-child { border-bottom: 0; }
.sheet-line b {
  flex: 0 0 72px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.sheet-line span { color: var(--muted); }
.sheet-line.live b { color: var(--accent); }

#pit { padding: 20px 0 88px; }
.voices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
.voices article {
  background: var(--accent-soft);
  padding: 22px 20px 26px;
  min-height: 200px;
}
.voices header {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 28px;
}
.voices h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.voices p { font-size: 13px; color: var(--muted); }

#cue { padding: 0 0 96px; }
.cue-box {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.cue-box ol {
  list-style: none;
  margin-top: 20px;
  max-width: 560px;
}
.cue-box li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.cue-box li span {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 11px;
  text-transform: lowercase;
  padding-top: 3px;
}
.footnote {
  margin-top: 28px;
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.15rem;
}

#footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: lowercase;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-split, .score-row, .voices, .examples { grid-template-columns: 1fr; gap: 24px; }
  .measure { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .measure:last-child { border-bottom: 0; }
  #hero h1 { max-width: none; }
}
