/* ═══════════════════════════════════════════════════════════════
   CONSCIOUSNESS ATLAS — The Three-Axis Model of Consciousness
   ═══════════════════════════════════════════════════════════════ */

/* ─── Axis Colors (fixed, semantic — do not theme) ─────────── */
:root {
  --axis-symbolic: #FFD700;
  --axis-symbolic-dim: #FF8C00;
  --axis-coherence: #00E5CC;
  --axis-coherence-dim: #008080;
  --axis-temporal: #A855F7;
  --axis-temporal-dim: #BE185D;
  --consciousness-bg: #000000;
  --consciousness-text: #E2E8F0;
  --consciousness-text-dim: #94A3B8;
  --consciousness-text-faint: #4B5563;
  --consciousness-panel-bg: rgba(10, 10, 15, 0.92);
  --consciousness-panel-border: rgba(255, 255, 255, 0.05);
  --consciousness-side-pad: 16px;
  --consciousness-header-offset: 4.5rem;
}

body.consciousness-page {
  background: #020410;
  color: #fff;
  overflow: hidden;
}

body.consciousness-page .athenaeum-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  z-index: 120;
  background: linear-gradient(180deg, rgba(2, 4, 16, 0.94) 0%, rgba(2, 4, 16, 0.76) 65%, rgba(2, 4, 16, 0.28) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  contain: none;
}

body.consciousness-page .athenaeum-header .header-brand {
  gap: 0.5rem;
}

body.consciousness-page .athenaeum-header .header-titles h1 {
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

body.consciousness-page .header-pyramid-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

body.consciousness-page #unified-nav {
  flex: 1 1 auto;
  min-width: 0;
}

/* Nav on consciousness page — let it behave normally (no overrides needed) */

/* ─── Section Container ────────────────────────────────────── */
#consciousness {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--consciousness-bg);
}

#consciousness canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ─── Emergent Hero — floating text, no box ───────────────── */
.consciousness-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: min(92%, 44rem);
}

.consciousness-title.visible {
  opacity: 1;
  pointer-events: auto;
}

.consciousness-title.dissolve {
  opacity: 0;
  pointer-events: none;
  transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consciousness-title.story-mode {
  top: max(12%, calc(env(safe-area-inset-top, 0px) + 5rem));
  transform: translate(-50%, 0);
}

.consciousness-title.focus-mode {
  opacity: 0.4;
}

.consciousness-emerge-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0, 229, 204, 0.6);
  margin-bottom: 1.2rem;
}

.consciousness-emerge-headline {
  font-family: 'Athenaeum', 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 0 60px rgba(0, 229, 204, 0.12),
    0 0 120px rgba(168, 85, 247, 0.06);
  margin: 0;
}

.consciousness-emerge-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.4);
  margin-top: 1rem;
}

.consciousness-emerge-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.consciousness-emerge-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  background: none;
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.consciousness-emerge-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.consciousness-emerge-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.consciousness-emerge-btn:hover::after {
  width: 80%;
}

.consciousness-emerge-btn.primary {
  color: rgba(0, 229, 204, 0.65);
}

.consciousness-emerge-btn.primary:hover {
  color: rgba(0, 229, 204, 0.95);
  text-shadow: 0 0 20px rgba(0, 229, 204, 0.3);
}

/* ─── Axis Arm Labels ─────────────────────────────────────── */
.consciousness-axis-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}

.axis-label {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  padding: 0.6em 1.2em;
  border-radius: 0;
  border: none;
  max-width: min(260px, calc(100vw - (var(--consciousness-side-pad) * 2)));
}

.axis-label .axis-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 18px currentColor, 0 0 40px currentColor;
}

.axis-label .axis-desc {
  display: block;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(0.6rem, 0.9vw, 0.78rem);
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-top: 0.35em;
  text-transform: none;
}

.axis-label-symbolic { color: var(--axis-symbolic); }
.axis-label-coherence { color: var(--axis-coherence); }
.axis-label-temporal { color: var(--axis-temporal); }

/* ─── Species Name Labels (always visible) ────────────────── */
.consciousness-species-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
}

.species-label {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  padding: 0.4em 1em;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid currentColor;
  border-image: linear-gradient(90deg, transparent, currentColor, transparent) 1;
  max-width: min(200px, calc(100vw - (var(--consciousness-side-pad) * 2)));
}

.species-label-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 1vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 10px currentColor, 0 0 25px currentColor;
  filter: drop-shadow(0 0 6px currentColor);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Detail Panel — surfaces from below on all screen sizes ─── */
.consciousness-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(640px, 96vw);
  max-height: 72vh;
  height: auto;
  background: rgba(4, 6, 16, 0.94);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: none;
  border-radius: 1.4rem 1.4rem 0 0;
  z-index: 20;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 2rem 2rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Close: gravity fall */
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.7, 0);
}

.consciousness-panel::-webkit-scrollbar {
  display: none;
}

.consciousness-panel.open {
  transform: translateX(-50%) translateY(0);
  /* Open: spring bounce — slight overshoot */
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Surface tension — luminous line at top edge as panel surfaces */
.consciousness-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(120, 180, 255, 0.2),
    rgba(200, 160, 255, 0.35),
    rgba(120, 180, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.8s 0.2s;
  z-index: 5;
}
.consciousness-panel.open::before {
  opacity: 1;
}

/* Backdrop dim — darkens the 3D nebula */
.consciousness-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 19;
  pointer-events: none;
  transition: background 0.5s ease;
}
.consciousness-backdrop.active {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

/* ─── Staggered content reveal ─── */
@keyframes surfaceUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.consciousness-panel .cp-header,
.consciousness-panel .cp-tabs,
.consciousness-panel .cp-key-insight,
.consciousness-panel .cp-overview-metrics,
.consciousness-panel .cp-description,
.consciousness-panel .cp-axis-profile,
.consciousness-panel .cp-quote,
.consciousness-panel .cp-mirror,
.consciousness-panel .cp-reflection,
.consciousness-panel .cp-evidence,
.consciousness-panel .cp-story,
.consciousness-panel .cp-connection-item {
  opacity: 0;
}
.consciousness-panel.open .cp-header           { animation: surfaceUp 0.45s ease-out 0.08s both; }
.consciousness-panel.open .cp-tabs             { animation: surfaceUp 0.45s ease-out 0.13s both; }
.consciousness-panel.open .cp-key-insight      { animation: surfaceUp 0.45s ease-out 0.18s both; }
.consciousness-panel.open .cp-overview-metrics  { animation: surfaceUp 0.45s ease-out 0.24s both; }
.consciousness-panel.open .cp-description      { animation: surfaceUp 0.45s ease-out 0.30s both; }
.consciousness-panel.open .cp-axis-profile     { animation: surfaceUp 0.45s ease-out 0.36s both; }
.consciousness-panel.open .cp-quote            { animation: surfaceUp 0.45s ease-out 0.42s both; }
.consciousness-panel.open .cp-mirror           { animation: surfaceUp 0.45s ease-out 0.48s both; }
.consciousness-panel.open .cp-reflection       { animation: surfaceUp 0.45s ease-out 0.48s both; }
.consciousness-panel.open .cp-evidence         { animation: surfaceUp 0.45s ease-out 0.20s both; }
.consciousness-panel.open .cp-story            { animation: surfaceUp 0.45s ease-out 0.20s both; }
.consciousness-panel.open .cp-connection-item  { animation: surfaceUp 0.45s ease-out 0.20s both; }

/* Panel header */
.cp-header {
  margin-bottom: 1.5rem;
}

.cp-species-name {
  font-family: 'Athenaeum', 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--consciousness-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
}

.cp-tier {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--consciousness-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Axis triangle */
.cp-triangle {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.cp-triangle svg {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Axis bars */
.cp-axis-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.cp-axis-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cp-axis-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--consciousness-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 70px;
  flex-shrink: 0;
  text-align: right;
}

.cp-axis-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.cp-axis-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cp-axis-fill[data-axis="symbolic"] {
  background: linear-gradient(90deg, var(--axis-symbolic-dim), var(--axis-symbolic));
}

.cp-axis-fill[data-axis="coherence"] {
  background: linear-gradient(90deg, var(--axis-coherence-dim), var(--axis-coherence));
}

.cp-axis-fill[data-axis="temporal"] {
  background: linear-gradient(90deg, var(--axis-temporal-dim), var(--axis-temporal));
}

.cp-axis-score {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--consciousness-text-dim);
  width: 24px;
  text-align: center;
}

/* Quote */
.cp-quote {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--consciousness-text);
  line-height: 1.6;
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  opacity: 0.9;
}

/* Section dividers */
.cp-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--consciousness-text-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.8rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Story links */
.cp-story-link {
  display: block;
  padding: 0.7rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
}

.cp-story-link:hover {
  padding-left: 0.5rem;
}

.cp-story-link:hover .cp-story-title {
  color: var(--axis-coherence);
}

.cp-story-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--consciousness-text);
  transition: color 0.2s ease;
  margin-bottom: 0.15rem;
}

.cp-story-title::before {
  content: '\2192\00a0';
  opacity: 0.4;
}

.cp-story-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--consciousness-text-dim);
  padding-left: 1.2rem;
}

/* Close button */
.consciousness-panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--consciousness-text-dim);
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.consciousness-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--consciousness-text);
}

/* ─── Panel Compact Mode (status-bar strip) ──────────────── */
.consciousness-panel.compact {
  max-height: 140px !important;
  height: 140px;
  width: 100%;
  left: 0;
  right: 0;
  transform: translateY(0) !important;
  padding: 0 1.5rem;
  overflow: hidden;
  border-radius: 0.6rem 0.6rem 0 0;
  background: rgba(4, 6, 16, 0.98);
}
.consciousness-panel.compact.open {
  transform: translateY(0) !important;
}
.consciousness-panel.compact .consciousness-panel-grab,
.consciousness-panel.compact .consciousness-panel-close {
  display: none;
}

.cp-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  width: 100%;
  padding-top: 20px;
}

.cp-compact-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.cp-compact-axes {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.csb-axis {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 52px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.csb-axis-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.csb-axis[data-axis="symbolic"] .csb-axis-fill {
  background: linear-gradient(90deg, var(--axis-symbolic-dim), var(--axis-symbolic));
}
.csb-axis[data-axis="coherence"] .csb-axis-fill {
  background: linear-gradient(90deg, var(--axis-coherence-dim), var(--axis-coherence));
}
.csb-axis[data-axis="temporal"] .csb-axis-fill {
  background: linear-gradient(90deg, var(--axis-temporal-dim), var(--axis-temporal));
}

.csb-axis-val {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-left: auto;
  padding-right: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cp-compact-insight {
  flex: 1;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-style: italic;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.cp-compact-expand {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.cp-compact-expand:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--consciousness-text);
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
  .consciousness-panel.compact {
    height: 120px;
    max-height: 120px !important;
    padding: 0 1rem;
  }
  .cp-compact { gap: 10px; padding-top: 16px; }
  .cp-compact-insight { display: none; }
  .cp-compact-name { font-size: 0.82rem; }
  .csb-axis { width: 40px; }
}

/* ─── Hover Label ──────────────────────────────────────────── */
.consciousness-hover-label {
  position: absolute;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -100%);
  max-width: min(220px, calc(100vw - (var(--consciousness-side-pad) * 2)));
}

.consciousness-hover-label.visible {
  opacity: 1;
}

.consciousness-hover-label .label-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--consciousness-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  text-align: center;
  white-space: nowrap;
}

.consciousness-hover-label .label-tier {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: var(--consciousness-text-dim);
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ─── Bottom Prompt ────────────────────────────────────────── */
.consciousness-prompt {
  position: absolute;
  bottom: 0.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--consciousness-text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  width: min(720px, calc(100vw - (var(--consciousness-side-pad) * 2)));
  padding: 0 1rem;
  text-align: center;
  line-height: 1.5;
}

.consciousness-prompt.visible {
  opacity: 0.6;
}

/* ─── Tour Overlay ─────────────────────────────────────────── */
.consciousness-tour-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.consciousness-tour-text {
  max-width: 560px;
  text-align: center;
  padding: 2rem;
}

.consciousness-tour-text p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--consciousness-text);
  line-height: 1.8;
  margin: 0.5rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
}

.consciousness-tour-text p.visible {
  opacity: 1;
  transform: translateY(0);
}

.consciousness-tour-controls {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}

.consciousness-tour-controls button {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--consciousness-text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.consciousness-tour-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--consciousness-text);
}

.consciousness-tour-controls button.primary {
  background: rgba(0, 229, 204, 0.1);
  border-color: rgba(0, 229, 204, 0.2);
  color: var(--axis-coherence);
}

.consciousness-tour-controls button.primary:hover {
  background: rgba(0, 229, 204, 0.2);
}

/* ─── Mirror Section (Human special) ──────────────────────── */
.cp-mirror {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: rgba(255, 215, 0, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.06);
  border-radius: 6px;
}

.cp-mirror-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--axis-symbolic);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.cp-mirror p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--consciousness-text);
  line-height: 1.7;
  margin: 0.6rem 0;
  opacity: 0.85;
}

.cp-mirror .closing {
  margin-top: 1rem;
  font-style: italic;
  color: var(--consciousness-text-dim);
}

/* ─── Key Insight (big pull-quote) ────────────────────────── */
.cp-key-insight {
  font-family: 'Cormorant Garamond', 'Athenaeum', serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

/* ─── Description ─────────────────────────────────────────── */
.cp-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: var(--consciousness-text);
  line-height: 1.7;
  margin: 1rem 0 1.5rem 0;
  opacity: 0.88;
}

/* ─── Axis Profile Deep Dives ─────────────────────────────── */
.cp-axis-profile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cp-axis-deep {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 3px solid rgba(255, 255, 255, 0.06);
}

.cp-axis-deep-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cp-axis-deep-score {
  font-weight: 400;
  opacity: 0.6;
  margin-left: 0.5em;
}

.cp-axis-deep-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--consciousness-text);
  line-height: 1.65;
  opacity: 0.85;
}

/* ─── Evidence ────────────────────────────────────────────── */
.cp-evidence {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.cp-evidence-item {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 5px;
  border-left: 2px solid rgba(255, 255, 255, 0.04);
}

.cp-evidence-fact {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--consciousness-text);
  line-height: 1.6;
  opacity: 0.9;
}

.cp-evidence-source {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--consciousness-text-faint);
  margin-top: 0.35rem;
  font-style: italic;
}

/* ─── Stories (expandable) ────────────────────────────────── */
.cp-story {
  margin-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cp-story-header {
  padding: 0.7rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cp-story-header:hover {
  padding-left: 0.5rem;
}

.cp-story-header:hover .cp-story-title {
  color: var(--axis-coherence);
}

.cp-story-tier {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: var(--axis-symbolic);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.cp-story-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 0.5rem;
}

.cp-story-content.open {
  max-height: 2000px;
  padding: 0.5rem 0.5rem 1rem 0.5rem;
}

.cp-story-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--consciousness-text);
  line-height: 1.75;
  margin: 0.5rem 0;
  opacity: 0.88;
}

/* ─── Connections (rich) ──────────────────────────────────── */
.cp-connection-item {
  margin: 0.5rem 0;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.cp-connection-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cp-conn-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.cp-conn-with {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--consciousness-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

.cp-conn-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--consciousness-text-dim);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.cp-conn-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--consciousness-text);
  line-height: 1.65;
  margin-top: 0.5rem;
  opacity: 0.82;
}

/* ─── Reflection ──────────────────────────────────────────── */
.cp-reflection {
  font-family: 'Cormorant Garamond', 'Athenaeum', serif;
  font-size: 0.95rem;
  color: var(--consciousness-text);
  line-height: 1.7;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.08);
  border-radius: 6px;
  font-style: italic;
  opacity: 0.9;
}

/* ─── Nav Button Special Styling ───────────────────────────── */
.nav-btn.consciousness-special {
  position: relative;
}

.nav-btn.consciousness-special::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--axis-symbolic), var(--axis-coherence), var(--axis-temporal));
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-btn.consciousness-special:hover::after,
.nav-btn.consciousness-special.active::after {
  width: 80%;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Panel is now a centered bottom sheet — no width override needed */
}

@media (max-width: 768px) {
  body.consciousness-page .athenaeum-header {
    padding: 0.35rem 0.75rem;
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.35rem;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
  }

  body.consciousness-page .athenaeum-header .header-brand {
    gap: 6px;
  }

  body.consciousness-page .athenaeum-header .header-titles h1 {
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.consciousness-page .header-pyramid-logo {
    width: 28px;
    height: 28px;
  }

  /* Panel is already a centered bottom sheet — just adjust padding for mobile */
  .consciousness-panel {
    width: 100vw;
    padding: 0 1.2rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    border-radius: 1.2rem 1.2rem 0 0;
    max-height: 78vh;
  }

  .consciousness-emerge-headline {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .consciousness-emerge-actions {
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .cp-species-name {
    font-size: 1.4rem;
  }

  .cp-key-insight {
    font-size: 1rem;
  }

  .consciousness-tour-text p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Bigger touch targets for story headers */
  .cp-story-header {
    padding: 0.9rem 0;
    min-height: 44px;
  }

  .cp-connection-item {
    padding: 0.9rem 0.8rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  body.consciousness-page .athenaeum-header .header-titles h1 {
    font-size: 0.78rem;
  }

  body.consciousness-page .header-pyramid-logo {
    width: 24px;
    height: 24px;
  }

  .consciousness-panel {
    height: 85vh;
    padding: 1.2rem 1rem;
  }

}

/* ─── Story-First Mobile Refresh ─────────────────────────── */
#consciousness {
  background:
    radial-gradient(circle at 50% 42%, rgba(18, 34, 74, 0.42) 0%, rgba(4, 8, 18, 0.12) 28%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, #030612 0%, #04060f 45%, #010104 100%);
}

.consciousness-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 215, 0, 0.11) 0%, rgba(255, 140, 0, 0.02) 22%, transparent 44%),
    radial-gradient(circle at 78% 18%, rgba(0, 229, 204, 0.14) 0%, rgba(0, 229, 204, 0.03) 24%, transparent 46%),
    radial-gradient(circle at 50% 82%, rgba(168, 85, 247, 0.16) 0%, rgba(190, 24, 93, 0.04) 26%, transparent 50%),
    linear-gradient(180deg, rgba(3, 6, 12, 0.1) 0%, rgba(3, 6, 12, 0.34) 100%);
  opacity: 0.95;
}

/* Old hero styles removed — replaced by .consciousness-emerge-* */

/* Old hero-btn / tour-btn styles removed — replaced by .consciousness-emerge-btn */

/* ─── Compact Bottom Nav Bar ──────────────────────────────── */
.cbot-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.6rem);
  transform: translateX(-50%) translateY(6px);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(15, 25, 55, 0.96);
  border: 1px solid rgba(0, 229, 204, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 28px rgba(0, 229, 204, 0.1), 0 4px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: calc(100vw - 2rem);
}

.cbot-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cbot-story {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cbot-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 204, 0.25);
  background: rgba(0, 229, 204, 0.06);
  color: rgba(226, 232, 240, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.cbot-dot:hover {
  background: rgba(0, 229, 204, 0.12);
  border-color: rgba(0, 229, 204, 0.3);
  color: #fff;
}

.cbot-dot.active {
  background: rgba(0, 229, 204, 0.18);
  border-color: rgba(0, 229, 204, 0.4);
  color: #f8fffe;
  box-shadow: 0 0 8px rgba(0, 229, 204, 0.2);
}

.cbot-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
  background: none;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cbot-toggle:hover,
.cbot-toggle.active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
}

.cbot-comparisons {
  display: none;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 50vw;
}

.cbot-comparisons::-webkit-scrollbar {
  display: none;
}

.cbot-comparisons.open {
  display: flex;
}

.cbot-chip {
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cbot-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.species-label {
  background: linear-gradient(180deg, rgba(5, 9, 18, 0.72) 0%, rgba(5, 9, 18, 0.36) 100%);
  border-bottom-width: 0;
  border-radius: 999px;
  padding: 0.34rem 0.82rem;
}

.species-label.state-featured {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.species-label.state-selected,
.species-label.state-story,
.species-label.state-comparison {
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.96) 0%, rgba(10, 16, 28, 0.72) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 22px rgba(0, 229, 204, 0.14);
}

.species-label.state-linked,
.species-label.state-hover {
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.92) 0%, rgba(8, 12, 24, 0.66) 100%);
}

.consciousness-prompt {
  display: none;
}

.consciousness-panel {
  top: auto;
  left: 0;
  right: 0;
  bottom: -100%;
  width: 100%;
  height: 72vh;
  max-height: 72vh;
  padding: 3.7rem 1rem 1.1rem;
  border-left: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem 1.35rem 0 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.96) 0%, rgba(4, 8, 16, 0.94) 100%);
  transition: bottom 0.45s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.consciousness-panel.open {
  right: 0;
  bottom: 0;
  pointer-events: auto;
}

.consciousness-panel.expanded {
  height: 88vh;
  max-height: 88vh;
}

.consciousness-panel-grab {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 12px 0 8px;
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.45);
  font-family: 'Inter', sans-serif;
  font-size: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 5;
  cursor: grab;
  width: 100%;
}

.consciousness-panel-grab-label {
  display: none;
}

.consciousness-panel-grab-bar {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s, width 0.2s;
}

.consciousness-panel-grab:hover .consciousness-panel-grab-bar {
  background: rgba(255, 255, 255, 0.35);
  width: 50px;
}

.consciousness-panel-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
  padding: 0.2rem 0 0.7rem;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.98) 0%, rgba(7, 12, 24, 0.84) 75%, rgba(7, 12, 24, 0) 100%);
}

.cp-tab {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(226, 232, 240, 0.62);
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cp-tab.active {
  background: rgba(0, 229, 204, 0.12);
  color: #f0fffc;
  border-color: rgba(0, 229, 204, 0.26);
}

.cp-tab.is-empty {
  opacity: 0.5;
}

.cp-tab-panel {
  display: none;
}

.cp-tab-panel.active {
  display: block;
}

.cp-overview-metrics {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.cp-description-lead {
  margin-top: 1.1rem;
  font-size: 0.86rem;
}

.cp-compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.cp-compare-action {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cp-compare-action.primary {
  border-color: rgba(255, 215, 0, 0.24);
  background: rgba(255, 215, 0, 0.08);
  color: rgba(255, 240, 194, 0.96);
}

.cp-compare {
  display: grid;
  gap: 1rem;
}

.cp-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cp-compare-card {
  padding: 0.8rem 0.7rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-compare-name {
  margin-bottom: 0.65rem;
  font-family: 'Cinzel', serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
}

.cp-story,
.cp-connection-item,
.cp-evidence-item,
.cp-axis-deep,
.cp-mirror,
.cp-reflection {
  border-radius: 0.85rem;
}

@media (min-width: 769px) {
  /* Panel stays as centered bottom sheet on desktop — just wider */
  .consciousness-panel {
    width: min(640px, 92vw);
    max-height: 70vh;
    padding: 0 2rem 2rem;
  }

  .cp-overview-metrics {
    grid-template-columns: 12rem 1fr;
    gap: 1.2rem;
  }
}
