:root {
  --bg-base: #020406;
  --bg-surface: #0c1017;
  --bg-card: rgba(14, 20, 28, 0.88);
  --bg-card-hover: rgba(22, 32, 45, 0.96);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-active: rgba(0, 255, 102, 0.4);
  
  --accent-green: #00ff66;
  --accent-cyan: #00e5ff;
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --crt-bg: #000d00;
  --crt-phosphor: #00ff66;
  --crt-dim: rgba(0, 255, 102, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================================================
   PROMETHEUS LIVING PERSONA BACKGROUND STAGE
   - 1.17x framing (10% zoomed out from 1.30)
   - 50% darker chiaroscuro in dormant sleep
   - 3D perspective depth, organic eyelid morphing & micro-expressions
   - Distant ambient fire glow from right flank
   ========================================================================== */
.persona-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #020406;
  pointer-events: none;
}

/* Master Transform Layer (1.17x base framing & dynamic ocular zoom) */
.persona-master-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%) scale(1.17);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

/* Layer 1: Resting Image (Eyes Closed) - 50% darker in dormant sleep */
.persona-layer-resting {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.34) contrast(1.24); /* 50% darker dormant state */
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), filter 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

body.persona-is-awake .persona-layer-resting {
  opacity: 0;
  filter: brightness(0.68) contrast(1.18);
}

/* Layer 2: Active Image (Eyes Open) - Main awake persona image */
.persona-layer-active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(0.88) contrast(1.12);
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 2;
}

body.persona-is-awake .persona-layer-active {
  opacity: 1;
}

/* Micro-Blink Animation Class */
.persona-layer-active.blink {
  opacity: 0.05 !important;
  transition: opacity 0.09s ease-in-out !important;
}

/* Dormant Shadow Shroud - Further 50% dark vignette when sleeping */
.persona-dormant-shroud {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(2, 4, 6, 0.55) 0%, rgba(2, 4, 6, 0.88) 60%, #020406 100%);
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 3;
}

body.persona-is-awake .persona-dormant-shroud {
  opacity: 0;
}

/* Distant Ambient Flickering Fire Glow coming from the right flank */
.persona-fire-ambient {
  position: absolute;
  top: 0;
  right: 0;
  width: 65vw;
  height: 100vh;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  background: radial-gradient(ellipse at 100% 50%, rgba(255, 110, 20, 0.28) 0%, rgba(255, 75, 0, 0.16) 35%, rgba(200, 40, 0, 0.07) 65%, transparent 85%);
  animation: distantFireFlicker 6.2s ease-in-out infinite alternate;
}

@keyframes distantFireFlicker {
  0% {
    opacity: 0.72;
    filter: blur(40px) brightness(0.95);
    transform: scaleX(1) scaleY(1);
  }
  18% {
    opacity: 0.95;
    filter: blur(36px) brightness(1.18);
    transform: scaleX(1.04) scaleY(1.02);
  }
  33% {
    opacity: 0.65;
    filter: blur(44px) brightness(0.88);
    transform: scaleX(0.97) scaleY(0.98);
  }
  52% {
    opacity: 1.0;
    filter: blur(34px) brightness(1.25);
    transform: scaleX(1.06) scaleY(1.03);
  }
  68% {
    opacity: 0.78;
    filter: blur(40px) brightness(1.02);
    transform: scaleX(1.01) scaleY(1.0);
  }
  84% {
    opacity: 0.90;
    filter: blur(38px) brightness(1.12);
    transform: scaleX(1.03) scaleY(1.02);
  }
  100% {
    opacity: 0.70;
    filter: blur(42px) brightness(0.92);
    transform: scaleX(0.99) scaleY(0.99);
  }
}

/* Layer 4: Living Promethean 3D Ocular Morph & Eye Flame Canvas */
#eyeFlameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
  opacity: 1;
  will-change: transform;
}

/* Ambient Shadow Mask behind Cards */
.persona-vignette-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: 
    radial-gradient(circle at 50% 42%, rgba(2, 4, 6, 0.12) 0%, rgba(2, 4, 6, 0.58) 65%, rgba(2, 4, 6, 0.92) 100%),
    linear-gradient(to bottom, rgba(2, 4, 6, 0.65) 0%, transparent 20%, transparent 80%, rgba(2, 4, 6, 0.85) 100%);
  pointer-events: none;
}

/* Ambient Cyber Scanlines */
.persona-vignette-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   IRIS-PC TERMINAL CRT AUTHENTICATION OVERLAY
   ========================================================================== */
#authOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  background-color: var(--crt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  color: var(--crt-phosphor);
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#authOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#authOverlay::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
}

#authOverlay::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 3;
  pointer-events: none;
}

.auth-center-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: rgba(0, 20, 5, 0.4);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.08), inset 0 0 20px rgba(0, 255, 102, 0.03);
}

.auth-badge {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--crt-dim);
  margin-bottom: 8px;
}

.auth-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--crt-phosphor);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
  margin-bottom: 24px;
}

.auth-otp-pure {
  display: flex;
  gap: clamp(8px, 2.5vw, 14px);
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.otp-square {
  flex: 0 1 clamp(42px, 12vw, 56px);
  width: clamp(42px, 12vw, 56px);
  height: clamp(52px, 15vw, 66px);
  background-color: rgba(0, 35, 10, 0.7);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 8px;
  color: var(--crt-phosphor);
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  caret-color: transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.otp-square:focus {
  border-color: var(--crt-phosphor);
  background-color: rgba(0, 50, 15, 0.85);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.4);
}

.auth-stay-toggle {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--crt-dim);
  cursor: pointer;
  user-select: none;
}

.auth-stay-toggle input {
  accent-color: var(--crt-phosphor);
  cursor: pointer;
}

.auth-status-msg {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--crt-dim);
  min-height: 18px;
}

.auth-status-msg.error {
  color: #ff3344;
  text-shadow: 0 0 8px rgba(255, 51, 68, 0.5);
  animation: shake 0.3s ease;
}

.auth-status-msg.info {
  color: var(--crt-phosphor);
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* ==========================================================================
   TOP HUD & CONTROLS
   ========================================================================== */
.top-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 9, 12, 0.95);
  backdrop-filter: blur(14px);
  z-index: 1000;
  flex-shrink: 0;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.top-hud.header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
}

/* Floating Macron Button for non-touch / desktop devices */
.btn-header-macron {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 23, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 20px;
  color: var(--accent-cyan);
  padding: 6px 24px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 229, 255, 0.2);
  transition: all 0.25s ease;
  display: none;
}

.btn-header-macron:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.55);
  color: #fff;
  transform: translateX(-50%) translateY(2px);
}

body.header-is-hidden .btn-header-macron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-active);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  font-size: 16px;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.15);
  background: rgba(0, 255, 102, 0.05);
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.brand-text p {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: 'Share Tech Mono', monospace;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 540px;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px 10px 34px;
  color: #fff;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}

.btn-lock {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-lock:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-red);
  color: #fff;
}

/* ==========================================================================
   DYNAMIC 3D SPATIAL VIEWPORT
   ========================================================================== */
.spatial-viewport-3d {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  user-select: none;
  cursor: default;
  z-index: 10;
}

.space-3d-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Sector Group (Anchor in 3D Space) */
.sector-space-node {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* 1. FRONT LAYER: Square Category Tile (z = 0) */
.sector-front-square {
  position: absolute;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

.sector-front-square:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.75);
}

.sector-front-square.active-target {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.4) !important;
}

.sector-front-square.sector-ai:hover { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 30px rgba(56, 189, 248, 0.25); }
.sector-front-square.sector-security:hover { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 30px rgba(239, 68, 68, 0.25); }
.sector-front-square.sector-mimisbrunnr:hover { border-color: rgba(20, 184, 166, 0.65); box-shadow: 0 0 32px rgba(20, 184, 166, 0.28); }
.sector-front-square.sector-fleet:hover { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 30px rgba(16, 185, 129, 0.25); }
.sector-front-square.sector-intel:hover { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 30px rgba(245, 158, 11, 0.25); }
.sector-front-square.sector-science:hover { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 0 30px rgba(6, 182, 212, 0.25); }
.sector-front-square.sector-social:hover { border-color: rgba(236, 72, 153, 0.6); box-shadow: 0 0 30px rgba(236, 72, 153, 0.25); }
.sector-front-square.sector-technology:hover { border-color: rgba(234, 179, 8, 0.6); box-shadow: 0 0 30px rgba(234, 179, 8, 0.25); }
.sector-front-square.sector-games:hover { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 30px rgba(168, 85, 247, 0.25); }

/* Mímisbrunnr World Tree & Sacred Well Darkened Watermark */
.sector-front-square.sector-mimisbrunnr::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/mimisbrunnr_tree_well.svg') center center / 82% no-repeat;
  opacity: 0.16;
  filter: brightness(0.65) contrast(1.2);
  pointer-events: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
  border-radius: 14px;
  z-index: 0;
}

.sector-front-square.sector-mimisbrunnr:hover::before,
.sector-front-square.sector-mimisbrunnr.active-target::before {
  opacity: 0.32;
  filter: brightness(0.9) contrast(1.3);
}

.sector-front-square.standby {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(14, 20, 28, 0.45);
}

.sector-square-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 1;
}

.sector-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 1;
}

/* Illuminated ONLY on-hover or when selected (.active-target) */
.sector-front-square:hover .dot-ai, .sector-front-square.active-target .dot-ai { background: #38bdf8; border-color: #38bdf8; box-shadow: 0 0 14px #38bdf8; }
.sector-front-square:hover .dot-sec, .sector-front-square.active-target .dot-sec { background: #ef4444; border-color: #ef4444; box-shadow: 0 0 14px #ef4444; }
.sector-front-square:hover .dot-mimisbrunnr, .sector-front-square.active-target .dot-mimisbrunnr { background: #14b8a6; border-color: #14b8a6; box-shadow: 0 0 14px #14b8a6; }
.sector-front-square:hover .dot-fleet, .sector-front-square.active-target .dot-fleet { background: #10b981; border-color: #10b981; box-shadow: 0 0 14px #10b981; }
.sector-front-square:hover .dot-intel, .sector-front-square.active-target .dot-intel { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 14px #f59e0b; }
.sector-front-square:hover .dot-games, .sector-front-square.active-target .dot-games { background: #a855f7; border-color: #a855f7; box-shadow: 0 0 14px #a855f7; }
.sector-front-square:hover .dot-sci, .sector-front-square.active-target .dot-sci { background: #06b6d4; border-color: #06b6d4; box-shadow: 0 0 14px #06b6d4; }
.sector-front-square:hover .dot-soc, .sector-front-square.active-target .dot-soc { background: #ec4899; border-color: #ec4899; box-shadow: 0 0 14px #ec4899; }
.sector-front-square:hover .dot-tech, .sector-front-square.active-target .dot-tech { background: #eab308; border-color: #eab308; box-shadow: 0 0 14px #eab308; }
.sector-front-square:hover .dot-standby, .sector-front-square.active-target .dot-standby { background: #64748b; border-color: #64748b; box-shadow: 0 0 10px #64748b; }

/* 2. DEEP LAYER: 3x3 Project Grid Cluster (z = -480px) */
.sector-deep-cluster {
  position: absolute;
  width: 780px;
  transform: translate(-50%, -50%) translateZ(-480px);
  display: grid;
  grid-template-columns: repeat(3, 246px);
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  transform-style: preserve-3d;
  transition: opacity 0.2s ease;
}

/* Mímisbrunnr Landing Page // Darkened SVG Tree & Well Background Graphic */
.sector-deep-cluster.sector-cluster-mimisbrunnr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 820px;
  background: url('../assets/mimisbrunnr_tree_well.svg') center center / contain no-repeat;
  opacity: 0.16;
  filter: brightness(0.65) contrast(1.2);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 36px -5px rgba(0, 229, 255, 0.3);
  background: var(--bg-card-hover);
}

.project-card:hover .project-title {
  color: var(--accent-cyan);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.project-id-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.port-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
}

.project-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color 0.15s ease;
}

.project-subdomain {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
  word-break: break-all;
}

.project-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 3px;
}

.project-card.slot-standby {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(14, 20, 28, 0.35);
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: default;
}

.project-card.slot-standby:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6);
  background: rgba(14, 20, 28, 0.35);
}

.slot-standby-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.slot-icon {
  font-size: 20px;
  color: var(--text-dim);
  opacity: 0.5;
}

.slot-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.slot-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

/* 9 Unallocated Placeholders for mimisbrunnr.prometheus.nz landing page */
.project-card.slot-standby.slot-mimisbrunnr {
  border: 1px dashed rgba(20, 184, 166, 0.28);
  background: rgba(14, 20, 28, 0.52);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.project-card.slot-standby.slot-mimisbrunnr:hover {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(14, 24, 32, 0.72);
  box-shadow: 0 12px 30px -5px rgba(20, 184, 166, 0.22);
}

.project-card.slot-standby.slot-mimisbrunnr .slot-icon {
  color: #14b8a6;
  opacity: 0.8;
}

.project-card.slot-standby.slot-mimisbrunnr .slot-title {
  color: #2dd4bf;
}

.project-card.slot-standby.slot-mimisbrunnr .slot-desc {
  color: var(--accent-cyan);
  opacity: 0.85;
}

.project-card.slot-standby.slot-mimisbrunnr .port-pill {
  border-color: rgba(20, 184, 166, 0.3);
  color: #5eead4;
}

/* ==========================================================================
   TACTICAL 3D HUD OVERLAYS & FOOTER
   ========================================================================== */
.hud-3d-panel {
  position: absolute;
  bottom: 52px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  pointer-events: none;
  z-index: 50;
  font-family: 'Share Tech Mono', monospace;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.header-is-hidden .hud-3d-panel {
  bottom: 20px;
}

.hud-depth-gauge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 9, 12, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
}

.depth-bar-track {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.depth-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transition: width 0.1s ease;
}

/* FOOTER (5s Auto-Hide synchronized with top header) */
footer.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 9, 12, 0.95);
  backdrop-filter: blur(14px);
  z-index: 1000;
  flex-shrink: 0;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
}

footer.bottom-bar.footer-hidden {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.persona-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  margin-right: 6px;
  transition: background 0.3s, box-shadow 0.3s;
}

.persona-status-dot.awake {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.persona-status-dot.focused {
  background: #fff;
  box-shadow: 0 0 12px #fff;
}
