/* ============================================================
   EXHIBIT 01 — DAJAI × BASQUIAT
   AI Super-Intelligence Art Exhibit · 2026
   ============================================================ */

:root {
  /* Basquiat palette */
  --b-yellow:  #ffd400;
  --b-red:     #c8260f;
  --b-blue:    #0c46c1;
  --b-green:   #1f8a3b;
  --b-black:   #0a0606;
  --b-bone:    #f0e6d3;
  --b-oil:     #2a1f12;

  /* DAJAI palette */
  --d-magenta: #ff2389;
  --d-cyan:    #00f0ff;
  --d-violet:  #8a4fff;

  /* Shared */
  --void:      #050202;
  --warm-deep: #1a0c05;
  --warm:      #2a160a;
  --crimson:   #5e0d09;
  --ink:       #0a0606;
  --dim:       rgba(240,230,211,0.55);
  --faint:     rgba(240,230,211,0.3);

  --hand:      'Caveat', cursive;
  --marker:    'Permanent Marker', cursive;
  --type:      'Special Elite', monospace;
  --serif:     'Crimson Text', serif;
  --display:   'Bebas Neue', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html, body { height: 100%; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 30% 30%, #1a0c08 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #08050a 0%, transparent 50%),
    #050202;
  color: var(--b-bone);
  font-family: var(--mono);
  overflow: hidden;
  user-select: none;
  cursor: none;
}

button, input { font-family: inherit; cursor: none; }

/* ============================================================
   STAGE — full viewport, three vertical zones
   ============================================================ */
.stage {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  background: #050202;
}

/* CRT-like grain overlay */
.stage::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.10;
  mix-blend-mode: overlay;
}
.stage::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 51;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.0) 0, rgba(0,0,0,0.0) 2px, rgba(0,0,0,0.10) 3px, rgba(0,0,0,0.0) 4px);
  mix-blend-mode: multiply;
}

/* ============================================================
   ZONES — left (Basquiat), center (Collab), right (DAJAI)
   ============================================================ */
.zone {
  position: absolute;
  top: 0; bottom: 0;
}
.zone-left   { left: 0; width: 38%; }
.zone-center { left: 38%; width: 24%; }
.zone-right  { right: 0; width: 38%; }

/* Subtle wall washes */
.zone-left {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255,212,0,0.04), transparent 60%),
    linear-gradient(110deg, #1a0c05 0%, #0a0503 100%);
}
.zone-right {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0,240,255,0.04), transparent 60%),
    linear-gradient(70deg, #050208 0%, #0a0410 100%);
}
.zone-center {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.02), transparent 70%),
    linear-gradient(180deg, #0a0606 0%, #050202 100%);
}

/* Floor — thin perspective line at the bottom */
.floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28vh;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 5;
  pointer-events: none;
}
.floor-grid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28vh;
  background-image:
    linear-gradient(0deg, rgba(255,212,0,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,212,0,0.10) 1px, transparent 1px);
  background-size: 100% 14%, 5% 100%;
  transform: perspective(600px) rotateX(70deg);
  transform-origin: bottom;
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   PEDESTAL LABELS — museum exhibit signage
   ============================================================ */
.exhibit-label {
  position: absolute;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(240,230,211,0.2);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--b-bone);
  z-index: 30;
  max-width: 220px;
  line-height: 1.5;
}
.exhibit-label .num {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--b-yellow);
  display: block;
  margin-bottom: 4px;
}
.exhibit-label .title-en {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--b-bone);
  text-transform: none;
  margin: 4px 0;
}
.exhibit-label .meta {
  color: var(--dim);
  font-size: 8.5px;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.hand   { font-family: var(--hand);    font-weight: 700; line-height: 1; }
.marker { font-family: var(--marker);  line-height: 1; }
.type   { font-family: var(--type);    line-height: 1.2; }
.serif  { font-family: var(--serif); }
.italic { font-style: italic; }
.disp   { font-family: var(--display); letter-spacing: 0.15em; line-height: 0.95; }
.mono   { font-family: var(--mono); }
.struck { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--b-red); }

/* ============================================================
   CROWN SVG
   ============================================================ */
.crown {
  display: inline-block;
  position: relative;
}
.crown svg path {
  fill: var(--b-yellow);
  stroke: #000;
  stroke-width: 1.5;
  paint-order: stroke;
}

/* ============================================================
   BASQUIAT SIDE — paint surface, easel, oilstick mark gallery
   ============================================================ */
.basq-easel {
  position: absolute;
  top: 8%; left: 8%;
  width: 84%;
  height: 64%;
  background:
    /* canvas fibers */
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #f0e6d3 0%, #e2d4b6 100%);
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(80,40,10,0.18),
    inset 0 0 8px rgba(255,212,0,0.15);
  overflow: hidden;
  cursor: none;
}
.basq-easel canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.basq-easel .pinned {
  position: absolute;
  pointer-events: none;
}
.basq-stand {
  position: absolute;
  bottom: 8%; left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 22%;
  z-index: 1;
  pointer-events: none;
}
.basq-stand::before, .basq-stand::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #2a1f12, #0a0503);
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.basq-stand::before { left: 8%; transform: rotate(8deg); transform-origin: top; }
.basq-stand::after  { right: 8%; transform: rotate(-8deg); transform-origin: top; }

.basq-shelf {
  position: absolute;
  bottom: 4%; left: 6%; right: 6%;
  height: 5%;
  background: linear-gradient(180deg, #2a1f12, #1a1208);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.basq-tube {
  position: absolute;
  width: 12px; height: 30px;
  border-radius: 2px;
  bottom: 30px;
  background: linear-gradient(180deg, #888, #555);
  border: 1px solid #222;
}
.basq-tube::before {
  content: '';
  position: absolute;
  top: -6px; left: 0; right: 0;
  height: 6px;
  background: var(--cap);
  border-radius: 2px 2px 0 0;
}

/* ============================================================
   DAJAI SIDE — neural rack, waveform, code rain
   ============================================================ */
.dajai-rack {
  position: absolute;
  top: 8%; left: 6%;
  width: 88%;
  height: 64%;
  background:
    linear-gradient(180deg, #050208 0%, #0a0410 100%);
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(0,240,255,0.06),
    0 0 60px rgba(138,79,255,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rack-row {
  border-bottom: 1px solid rgba(0,240,255,0.15);
  padding: 8px 12px;
  position: relative;
}
.rack-row:last-child { border-bottom: none; }
.rack-row .label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--d-cyan);
  margin-bottom: 4px;
  display: flex; justify-content: space-between;
  align-items: center;
}
.rack-row .label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-cyan);
  box-shadow: 0 0 8px var(--d-cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================================================
   COLLAB CENTER — pedestal w/ rotating artifact
   ============================================================ */
.pedestal {
  position: absolute;
  bottom: 16%; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 40%;
  z-index: 8;
}
.artifact-wrap {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 76%;
  display: flex; align-items: center; justify-content: center;
}
.pedestal-base {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 22%;
  background:
    linear-gradient(180deg, #f0e6d3 0%, #b89e7a 50%, #6e5638 100%);
  border: 1px solid #2a1f12;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.pedestal-spotlight {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 110%; height: 120%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
  filter: blur(6px);
}

/* ============================================================
   CURSOR — dual-side trail
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 999;
  transition: transform 0.1s ease;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  z-index: 998;
  transition: all 0.2s cubic-bezier(.2,.9,.3,1.4);
  transform: translate(-50%, -50%);
}

/* ============================================================
   TOP BAR — exhibit title + collection metadata
   ============================================================ */
.top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 18px 28px;
  z-index: 40;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--b-bone);
  pointer-events: none;
}
.top-bar a, .top-bar button { pointer-events: auto; }
.top-bar .title-block .pretitle {
  color: var(--b-yellow);
  font-size: 9px;
  margin-bottom: 4px;
}
.top-bar .title-block h1 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.18em;
  margin: 0;
  color: var(--b-bone);
  font-weight: 400;
}
.top-bar .title-block .by {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--b-yellow);
  letter-spacing: 0;
  margin-top: 2px;
}

/* ============================================================
   BOTTOM TOOLBAR — record, sequencer, scrub
   ============================================================ */
.tool-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 28px;
  z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px;
}

.btn {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(240,230,211,0.25);
  color: var(--b-bone);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: none;
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}
.btn:hover { border-color: var(--b-yellow); color: var(--b-yellow); }
.btn-primary { background: var(--b-yellow); color: #000; border-color: var(--b-yellow); }
.btn-primary:hover { background: #fff; color: #000; border-color: #fff; }
.btn-cyan { border-color: var(--d-cyan); color: var(--d-cyan); }
.btn-cyan:hover { background: var(--d-cyan); color: #000; }
.btn-record {
  background: var(--b-red);
  color: #fff; border-color: var(--b-red);
}
.btn-record:hover { background: #ff2a18; border-color: #ff2a18; }

/* ============================================================
   SEQUENCER PADS
   ============================================================ */
.seq {
  display: flex; gap: 6px;
}
.seq-pad {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(240,230,211,0.18);
  cursor: none;
  transition: all 0.1s ease;
  position: relative;
}
.seq-pad.on {
  background: var(--b-yellow);
  border-color: var(--b-yellow);
  box-shadow: 0 0 16px var(--b-yellow);
}
.seq-pad.cur {
  border-color: #fff;
  box-shadow: 0 0 12px #fff;
}
.seq-pad.on.cur {
  background: #fff;
  border-color: #fff;
}
.seq-pad.kick.on    { background: var(--b-red);   box-shadow: 0 0 16px var(--b-red); }
.seq-pad.snare.on   { background: var(--b-blue);  box-shadow: 0 0 16px var(--b-blue); }
.seq-pad.hat.on     { background: var(--d-cyan);  box-shadow: 0 0 16px var(--d-cyan); }
.seq-pad.synth.on   { background: var(--d-magenta); box-shadow: 0 0 16px var(--d-magenta); }

.seq-row {
  display: flex; align-items: center; gap: 8px;
}
.seq-row .name {
  width: 60px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-align: right;
}

/* ============================================================
   AI ORACLE — live commentary panel
   ============================================================ */
.oracle {
  position: absolute;
  top: 16%; right: 28px;
  width: 320px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,240,255,0.3);
  padding: 14px 16px;
  z-index: 35;
  font-family: var(--mono);
}
.oracle .head {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--d-cyan);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.oracle .head .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--d-cyan);
  box-shadow: 0 0 8px var(--d-cyan);
  animation: pulseDot 1.2s ease-in-out infinite;
}
.oracle .body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--b-bone);
  line-height: 1.5;
  min-height: 80px;
}
.oracle .cite {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.25em;
  color: var(--dim);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,240,255,0.15);
}

/* ============================================================
   TYPE-TO-PAINT input
   ============================================================ */
.type-to-paint {
  position: absolute;
  top: 16%; left: 28px;
  width: 280px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,212,0,0.3);
  padding: 14px 16px;
  z-index: 35;
}
.type-to-paint .head {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--b-yellow);
  margin-bottom: 8px;
}
.type-to-paint input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,212,0,0.4);
  color: var(--b-bone);
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  padding: 6px 0;
  outline: none;
}
.type-to-paint input::placeholder {
  color: rgba(240,230,211,0.3);
  font-family: var(--hand);
}
.type-to-paint .hint {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  margin-top: 8px;
  letter-spacing: 0.2em;
}

/* ============================================================
   FLOATING SAMO TAGS — auto fade in/out around the room
   ============================================================ */
.samo-tag {
  position: absolute;
  pointer-events: none;
  font-family: var(--marker);
  font-size: 22px;
  color: var(--b-bone);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  z-index: 12;
  white-space: nowrap;
}
.samo-tag.show { animation: samoFlash 8s ease-in-out forwards; }
@keyframes samoFlash {
  0% { opacity: 0; transform: scale(0.95); }
  10% { opacity: 0.85; transform: scale(1); }
  80% { opacity: 0.7; }
  100% { opacity: 0; }
}
.samo-tag .copy {
  font-family: var(--serif);
  font-size: 12px;
  vertical-align: super;
  margin-left: 2px;
  color: var(--b-yellow);
}
.samo-tag.struck {
  text-decoration: line-through;
  text-decoration-color: var(--b-red);
  text-decoration-thickness: 3px;
}

/* ============================================================
   WAVEFORM CANVAS
   ============================================================ */
.wf-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CODE RAIN
   ============================================================ */
.code-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--d-cyan);
  opacity: 0.5;
  overflow: hidden;
  z-index: 1;
}

/* ============================================================
   NEURON LATTICE
   ============================================================ */
.lattice {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============================================================
   BPM / TIME readout
   ============================================================ */
.bpm-readout {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--b-bone);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
}
.bpm-readout strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--b-yellow);
}

/* ============================================================
   PAINT-BLOT animations (for click bursts)
   ============================================================ */
@keyframes blotPop {
  0% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.85; }
}

/* ============================================================
   Frequency burst (for AI side)
   ============================================================ */
@keyframes freqBurst {
  0% { transform: scale(0.4); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ============================================================
   Anatomical diagram in basquiat
   ============================================================ */
.anatomy {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.anatomy svg path, .anatomy svg circle, .anatomy svg line, .anatomy svg ellipse {
  fill: none;
  stroke: var(--b-black);
  stroke-width: 1.5;
}
.anatomy .lbl {
  font-family: var(--type);
  font-size: 9px;
  fill: var(--b-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CANVAS LAYERS — paint on basquiat side
   ============================================================ */
.paint-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: multiply;
}

/* ============================================================
   READOUT LCDs
   ============================================================ */
.lcd {
  font-family: var(--mono);
  font-size: 10px;
  background: #050208;
  color: var(--d-cyan);
  border: 1px solid rgba(0,240,255,0.3);
  padding: 4px 8px;
  letter-spacing: 0.2em;
  text-shadow: 0 0 6px var(--d-cyan);
  display: inline-block;
}

/* ============================================================
   BIG CROWN that pulses to BPM
   ============================================================ */
.beat-crown {
  position: absolute;
  z-index: 14;
  pointer-events: none;
  transform-origin: center;
}
@keyframes crownBeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px var(--b-yellow)); }
  10% { transform: scale(1.18); filter: drop-shadow(0 0 22px var(--b-yellow)) drop-shadow(0 0 40px var(--b-yellow)); }
}
