/* brand.css — Previously tokens shared by the mascot mockup demos */
:root {
  --charcoal: #101114;
  --charcoal-2: #17181d;
  --bone: #EDE6D6;
  --bone-dim: rgba(237, 230, 214, 0.62);
  --graphite: #2B2B30;
  --graphite-2: #34343b;
  --pearl: #F4F1EA;
  --red: #E8321E;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bone); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* standout layered page title — James's signature rule */
.hero-title {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero-title .layer {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(237, 230, 214, 0.35);
  margin-top: -0.12em;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 14px;
}
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(232, 50, 30, 0.8);
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--graphite); color: var(--pearl);
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 13px 22px; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--graphite-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost {
  background: transparent; color: var(--pearl);
  box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, 0.35);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, 0.7); background: transparent; }

/* state tabs */
.tabs {
  display: inline-flex; gap: 6px;
  background: var(--charcoal-2);
  border: 1px solid rgba(237, 230, 214, 0.1);
  border-radius: 999px; padding: 6px;
}
.tab {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: var(--bone-dim);
  font: 700 14px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 11px 20px; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--graphite); color: var(--pearl); }
.tab:hover { color: var(--pearl); }

.card {
  background: var(--charcoal-2);
  border: 1px solid rgba(237, 230, 214, 0.09);
  border-radius: var(--radius);
  padding: 20px;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand .glyph { color: var(--red); font-size: 24px; line-height: 1; }

.back-link {
  color: var(--bone-dim); text-decoration: none; font-weight: 600; font-size: 14px;
}
.back-link:hover { color: var(--pearl); }

.demo-note {
  color: var(--bone-dim); font-size: 14px; line-height: 1.6;
  max-width: 640px;
}
.demo-note strong { color: var(--bone); }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--bone-dim);
}
.live-pill .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.72); opacity: 0.55; } }

/* level meter — proves the dance follows real audio */
.meter { display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.meter .bar { width: 10px; border-radius: 3px; background: var(--graphite-2); position: relative; overflow: hidden; height: 100%; }
.meter .bar i {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: var(--bone); border-radius: 3px;
  transition: height 0.06s linear;
}
.meter .bar.hot i { background: var(--red); }
.meter-labels { display: flex; gap: 5px; margin-top: 5px; }
.meter-labels span { width: 10px; text-align: center; font-size: 9px; font-weight: 800; color: var(--bone-dim); }

@media (prefers-reduced-motion: reduce) {
  .live-pill .pulse { animation: none; }
  .btn, .tab { transition: none; }
}
