/* ═══════════════════════════════════════════
    DESIGN TOKENS (UPDATED FOR HIGHER READABILITY)
═══════════════════════════════════════════ */
:root {
  --ink:        #080605;
  --void:       #0e0b09;
  --deep:       #16110e;
  --surface:    #201915;
  --panel:      #2b201b;
  --muted:      #7c6b5f; 
  --ash:        #a59487; 
  --canvas:     #f4eae0; 
  --parchment:  #ffffff; 
  --blood:      #a61c1c;
  --crimson:    #e74c3c; 
  --ember:      #ff7643; 
  --gold:       #dfbe5d; 
  --pale-gold:  #fad773;
  --fog:        rgba(244,234,224,0.08);
  --fog-md:     rgba(244,234,224,0.16);
  --fog-lg:     rgba(244,234,224,0.28);

  --font-display: 'Cinzel', serif;
  --font-body:    'Crimson Pro', serif;
  --font-mono:    'Share Tech Mono', monospace;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════
    RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-body);
  font-size: 20px; 
  line-height: 1.85; 
  overflow-x: hidden;
  cursor: none;
  letter-spacing: 0.01em;
}

p strong {
  color: var(--parchment);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
    STANDARD CURSOR DECORATORS
═══════════════════════════════════════════ */
#cursor-dot {
  position: absolute; top: 0; left: 0; z-index: 99999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
#cursor-ring {
  position: absolute; top: 0; left: 0; z-index: 99998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(231,76,60,0.6);
  pointer-events: none;
  transform: translate(-50%,-50%);
}
body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot { width: 16px; height: 16px; background: var(--ember); }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 54px; height: 54px; border-color: var(--ember); }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ═══════════════════════════════════════════
    NAVIGATION
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 4rem;
  background: linear-gradient(to bottom, rgba(8,6,5,0.98) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--ash);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--crimson);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--canvas); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════
    HERO SECTION
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 10rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 85% 50%, rgba(166,28,28,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 10% 80%, rgba(223,190,93,0.08) 0%, transparent 60%);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  margin-top: 2.5rem;
  max-width: 580px;
  font-size: 1.4rem;
  color: var(--canvas);
}

.hero-cta { margin-top: 3.5rem; display: flex; gap: 1.5rem; }

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background: var(--crimson);
  font-weight: 600;
  transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover {
  background: var(--ember);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(231,76,60,0.4);
}

.btn-ghost {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--canvas);
  border: 1px solid var(--muted);
  transition: all 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-ghost:hover {
  border-color: var(--parchment);
  color: var(--parchment);
  background: rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════════
    SECTIONS & GRID SYSTEM
═══════════════════════════════════════════ */
section { padding: 8rem 4rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--ember);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--parchment);
}
.section-divider {
  width: 100px; height: 2px;
  background: linear-gradient(to right, var(--crimson), transparent);
  margin: 2rem 0 4rem;
}

/* ═══════════════════════════════════════════
    FUN & INTERACTIVE SNEAK-PEEK VIEWPORTS
═══════════════════════════════════════════ */
.project-overview {
  display: grid;
  grid-template-columns: 1fr 320px; 
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
  width: 100%;
}

.project-sidebar {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  width: 100%;
}

.sneak-peek-viewport {
  position: relative;
  width: 100%;
  max-width: 280px; 
  aspect-ratio: 4 / 3; 
  background: var(--void);
  border: 1px solid var(--panel);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.sneak-peek-viewport::before,
.sneak-peek-viewport::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 10;
  pointer-events: none;
  transition: border-color 0.3s;
}
.sneak-peek-viewport::before {
  top: 10px; left: 10px;
  border-top: 2px solid var(--muted);
  border-left: 2px solid var(--muted);
}
.sneak-peek-viewport::after {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
}

.sneak-peek-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.4) grayscale(0.5) contrast(1.1); 
  transform: scale(1.03) rotate(-0.5deg);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s var(--ease-smooth);
}

.peek-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  background: rgba(8, 6, 5, 0.9);
  padding: 2px 8px;
  text-transform: uppercase;
  z-index: 5;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.peek-badge::before {
  content: '🔒 REVEAL SNEAK PEEK';
}

.project-entry:hover .sneak-peek-viewport {
  border-color: var(--ember);
  box-shadow: 0 0 25px rgba(255, 118, 67, 0.18);
}

.project-entry:hover .sneak-peek-viewport::before,
.project-entry:hover .sneak-peek-viewport::after {
  border-color: var(--ember); 
}

.project-entry:hover .sneak-peek-viewport img {
  filter: brightness(1.0) grayscale(0) contrast(1.0); 
  transform: scale(1.1) rotate(0deg); 
}

.project-entry:hover .peek-badge {
  color: var(--ember);
  border-color: var(--blood);
  background: var(--ink);
}
.project-entry:hover .peek-badge::before {
  content: '👁️ DOSSIER UNLOCKED'; 
}

/* ═══════════════════════════════════════════
    PIXEL LEON GAME LOADER
═══════════════════════════════════════════ */
#game-loader {
  position: fixed;
  inset: 0;
  background: #050403; 
  z-index: 100000; 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pixel-leon {
  width: 8px;  
  height: 8px; 
  position: relative;
  left: -8px; 
  margin-bottom: 80px; 
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: scale(2.5); 
  animation: pureLeonRun 0.5s steps(1) infinite;
}

.loader-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #e74c3c;
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.loader-bar-container {
  width: 240px;
  height: 6px;
  background: #201915;
  border: 1px solid #2b201b;
  padding: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: #ff7643;
  box-shadow: 0 0 8px #ff7643;
  animation: loadProgress 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pureLeonRun {
  0%, 100% {
    box-shadow:
      4px -24px #dfbe5d, 8px -24px #dfbe5d, 12px -24px #dfbe5d,
      0px -20px #dfbe5d, 4px -20px #fad773, 8px -20px #fad773, 12px -20px #dfbe5d,
      4px -16px #f4eae0, 8px -16px #f4eae0, 12px -16px #f4eae0,
      4px -12px #34527d, 8px -12px #4a72a8, 12px -12px #34527d,
      0px -8px #34527d, 2px -8px #4a72a8, 8px -8px #4a72a8, 12px -8px #34527d, 16px -8px #34527d,
      4px -4px #34527d, 8px -4px #34527d, 12px -4px #34527d,
      4px 0px #111, 12px 0px #111,
      0px 4px #111, 16px 4px #111;
  }
  50% {
    box-shadow:
      4px -25px #dfbe5d, 8px -25px #dfbe5d, 12px -25px #dfbe5d,
      0px -21px #dfbe5d, 4px -21px #fad773, 8px -21px #fad773, 12px -21px #dfbe5d,
      4px -17px #f4eae0, 8px -17px #f4eae0, 12px -17px #f4eae0,
      4px -13px #34527d, 8px -13px #4a72a8, 12px -13px #34527d,
      2px -9px #34527d, 6px -9px #4a72a8, 10px -9px #4a72a8, 14px -9px #34527d,
      6px -5px #34527d, 10px -5px #34527d,
      6px -1px #111, 10px -1px #111,
      8px 3px #111, 12px 7px #111;
  }
}

@keyframes loadProgress {
  0% { width: 0%; }
  25% { width: 35%; }
  60% { width: 65%; }
  100% { width: 100%; }
}

#game-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
    CLEAN ABOUT PAGE STRUCTURE (FIXED GRID)
═══════════════════════════════════════════ */
.clean-about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 4rem 8rem 4rem;
  background: var(--ink);
}

.about-hero-header {
  margin-top: 6rem;
  margin-bottom: 5rem;
}

.clean-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.standard-about-box {
  background: var(--void);
  padding: 2.5rem;
  border: 1px solid var(--panel);
}

.biography-content-text p {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--canvas); 
  margin-bottom: 1.8rem;
}

.biography-content-text strong { color: var(--parchment); }
.biography-content-text em { color: var(--gold); }

/* 🌍 GLOBAL TELEPORTING SAFE LAYOUT ENGINE (360 DEGREE FORK) 🌍 */
.global-patrol-leon {
  width: 8px;
  height: 8px;
  position: absolute !important; 
  z-index: 99999 !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  opacity: 0;
  transform: scale(2.5);
  transition: opacity 0.4s var(--ease-smooth);
}

.global-patrol-leon.visible-idle {
  opacity: 1;
  box-shadow:
    2px -16px #dfbe5d, 4px -16px #dfbe5d, 6px -16px #dfbe5d,
    2px -14px #fad773, 4px -14px #fad773, 6px -14px #dfbe5d,
    2px -12px #f4eae0, 4px -12px #f4eae0,
    2px -10px #4a72a8, 4px -10px #4a72a8, 6px -10px #34527d,
    0px -8px #34527d, 2px -8px #4a72a8, 4px -8px #4a72a8, 6px -8px #34527d,
    2px -6px #34527d, 4px -6px #34527d,
    2px -4px #7c8da3, 4px -4px #7c8da3,
    2px -2px #5a6b82, 4px -2px #5a6b82;
}

.global-patrol-leon.active-flash {
  box-shadow:
    2px -16px #dfbe5d, 4px -16px #dfbe5d, 6px -16px #dfbe5d,
    2px -14px #fad773, 4px -14px #fad773, 6px -14px #dfbe5d,
    2px -12px #f4eae0, 4px -12px #f4eae0,
    2px -10px #4a72a8, 4px -10px #4a72a8, 6px -10px #34527d, 8px -10px #ff7643, 10px -10px #ffffff,
    0px -8px #34527d, 2px -8px #4a72a8, 4px -8px #4a72a8, 6px -8px #34527d,
    2px -6px #34527d, 4px -6px #34527d,
    2px -4px #7c8da3, 4px -4px #7c8da3,
    2px -2px #5a6b82, 4px -2px #5a6b82;
}

.beam-cone-ray {
  position: absolute;
  top: -8px; 
  left: 8px; 
  width: 0px;
  height: 40px;
  transform-origin: left center; 
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 100;
}

.beam-cone-ray::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(250, 215, 115, 0.16) 0%, rgba(250, 215, 115, 0.04) 65%, transparent 100%);
  clip-path: polygon(0% 42%, 0% 58%, 100% 100%, 100% 0%);
}

.global-patrol-leon.active-flash .beam-cone-ray {
  width: 440px;
  opacity: 1;
}

/* ═══════════════════════════════════════════
    FIXED: METRICS DESIGN SYNCHRONIZATION
═══════════════════════════════════════════ */
.clean-stats-row {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fog);
}

.clean-stat-item {
  display: flex;
  flex-direction: column;
}

.clean-stat-item .stat-num,
.clean-stat-item * {
  font-family: var(--font-display) !important;
  font-size: 3.5rem !important;
  font-weight: 900 !important;
  color: var(--crimson) !important;
  line-height: 1 !important;
}

.clean-stat-item .stat-lbl,
.clean-stat-item .stat-lbl *,
.clean-stat-item span:last-child {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  color: var(--muted) !important;
  text-transform: uppercase !important;
  margin-top: 0.5rem !important;
}

.meta-panel {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  background: var(--void);
  padding: 3rem;
  border: 1px solid var(--panel);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.meta-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--fog-md);
  padding-bottom: 0.5rem;
}

.clean-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.meta-details strong {
  font-size: 1.25rem;
  color: var(--parchment);
}

.meta-details .sub-detail {
  color: var(--ember);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.meta-details .ash-detail {
  color: var(--ash);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
    AUTOMATED HOME PAGE HERO CODES
═══════════════════════════════════════════ */
.hero-name-interactive-group {
  display: inline-block !important;
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.hero-name {
  display: block !important;
  margin: 0 !important;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8vw, 8rem) !important; 
  font-weight: 900;
  line-height: 1.0;
  color: var(--parchment);
  text-shadow: 0 0 60px rgba(166,28,28,0.3);
}

.hero-name span {
  display: block;
  color: var(--crimson);
  text-shadow: 0 0 40px rgba(231,76,60,0.4);
}

.name-companion-leon {
  display: block !important;
  width: 8px;
  height: 8px;
  position: absolute !important;
  left: 620px;  
  bottom: 24px; 
  z-index: 9999 !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: scale(2.5); 
  animation: leonPatrolScanner 5s steps(1) infinite !important;
}

.name-companion-leon::after {
  content: '';
  position: absolute;
  top: -8px; 
  right: 6px; 
  width: 0px;
  height: 35px;
  background: linear-gradient(to left, rgba(250, 215, 115, 0.45) 0%, rgba(250, 215, 115, 0.05) 75%, transparent 100%);
  clip-path: polygon(100% 42%, 100% 58%, 0% 100%, 0% 0%);
  opacity: 0;
  transform-origin: right center;
  pointer-events: none;
  animation: flashlightBeamPatrol 5s ease-in-out infinite !important;
}

@keyframes leonPatrolScanner {
  0%, 20%, 40% {
    box-shadow:
      2px -16px #dfbe5d, 4px -16px #dfbe5d, 6px -16px #dfbe5d,
      2px -14px #fad773, 4px -14px #fad773, 6px -14px #dfbe5d,
      2px -12px #f4eae0, 4px -12px #f4eae0,
      2px -10px #4a72a8, 4px -10px #4a72a8, 6px -10px #34527d,
      0px -8px #34527d, 2px -8px #4a72a8, 4px -8px #4a72a8, 6px -8px #34527d,
      2px -6px #34527d, 4px -6px #34527d,
      2px -4px #7c8da3, 4px -4px #7c8da3,
      2px -2px #5a6b82, 4px -2px #5a6b82;
  }
  10%, 30% {
    box-shadow:
      2px -15px #dfbe5d, 4px -15px #dfbe5d, 6px -15px #dfbe5d,
      2px -13px #fad773, 4px -13px #fad773, 6px -13px #dfbe5d,
      2px -11px #f4eae0, 4px -11px #f4eae0,
      2px -9px #4a72a8, 4px -9px #4a72a8, 6px -9px #34527d,
      0px -7px #34527d, 2px -7px #4a72a8, 4px -7px #4a72a8, 6px -7px #34527d,
      2px -5px #34527d, 4px -5px #34527d,
      2px -3px #7c8da3, 4px -3px #7c8da3,
      2px -1px #5a6b82, 4px -1px #5a6b82;
  }
  50%, 60%, 70%, 80% {
    box-shadow:
      2px -16px #dfbe5d, 4px -16px #dfbe5d, 6px -16px #dfbe5d,
      2px -14px #fad773, 4px -14px #fad773, 6px -14px #dfbe5d,
      2px -12px #f4eae0, 4px -12px #f4eae0,
      -2px -10px #ffffff, 0px -10px #ff7643, 2px -10px #4a72a8, 4px -10px #4a72a8, 6px -10px #34527d,
      0px -8px #34527d, 2px -8px #4a72a8, 4px -8px #4a72a8, 6px -8px #34527d,
      2px -6px #34527d, 4px -6px #34527d,
      2px -4px #7c8da3, 4px -4px #7c8da3,
      2px -2px #5a6b82, 4px -2px #5a6b82;
  }
  90% {
    box-shadow:
      2px -16px #dfbe5d, 4px -16px #dfbe5d, 6px -16px #dfbe5d,
      2px -14px #fad773, 4px -14px #fad773, 6px -14px #dfbe5d,
      2px -12px #f4eae0, 4px -12px #f4eae0,
      2px -10px #4a72a8, 4px -10px #4a72a8, 6px -10px #34527d,
      0px -8px #34527d, 2px -8px #4a72a8, 4px -8px #4a72a8, 6px -8px #34527d,
      2px -6px #34527d, 4px -6px #34527d,
      2px -4px #7c8da3, 4px -4px #7c8da3,
      2px -2px #5a6b82, 4px -2px #5a6b82;
  }
}

@keyframes flashlightBeamPatrol {
  0%, 48%, 92%, 100% { width: 0px; opacity: 0; }
  52%, 88% { width: 620px; opacity: 1; }
}

/* ═══════════════════════════════════════════
    BREADCRUMB CURSOR KEYFRAMES (FIXED SYNT)
═══════════════════════════════════════════ */
@keyframes typeSequence {
  0%, 10% { width: 0; }
  50%, 85% { width: 100%; }
  95%, 100% { width: 0; }
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--ember); }
}

/* ═══════════════════════════════════════════
    ⚡ IMMERSIVE CODEC CHANNEL SELECT MATRIX ⚡
═══════════════════════════════════════════ */
.codec-wrapper {
  background: #0d0a08;
  border: 3px solid #2d241f;
  padding: 2.5rem;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.85);
  position: relative;
}

.codec-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(244,234,224,0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.hud-hardware-module {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hud-light-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7f1d1d;
  box-shadow: 0 0 8px #7f1d1d;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s;
}
.codec-wrapper.connected-signal .hud-light-indicator {
  background: #2ecc71;
  box-shadow: 0 0 14px #2ecc71;
}

.hud-serial {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hud-frequency {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  color: var(--ash);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.codec-wrapper.connected-signal .hud-frequency {
  color: var(--pale-gold);
  text-shadow: 0 0 10px rgba(250,215,115,0.25);
}

.codec-display-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.codec-screen-panel {
  background: #040302;
  border: 1px solid rgba(244,234,224,0.08);
  display: flex;
  flex-direction: column;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  background: #120e0b;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(244,234,224,0.08);
  letter-spacing: 0.1em;
}

.panel-screen-viewfinder {
  position: relative;
  height: 220px;
  background: #060807;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vfr-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.3) 50%);
  background-size: 100% 4px;
  z-index: 8;
  pointer-events: none;
}

.vfr-avatar-placeholder {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.vfr-avatar-placeholder::before {
  content: '';
  display: block;
  width: 60px;
  height: 70px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(45deg, #1c1512, #2d201b);
  border: 1px solid rgba(244,234,224,0.15);
}

.panel-footer-identity {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ash);
  text-align: center;
  background: #120e0b;
  padding: 0.5rem;
  border-top: 1px solid rgba(244,234,224,0.08);
  letter-spacing: 0.1em;
}

.codec-static-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 140px;
  opacity: 0.85;
  mix-blend-mode: overlay;
  transition: opacity 0.4s var(--ease-smooth);
}

.vfr-social-feed {
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.feed-status-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
  transition: color 0.3s;
}
.codec-wrapper.connected-signal .feed-status-text {
  color: #2ecc71;
}

.communicator-channels {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}
.codec-wrapper.connected-signal .communicator-channels {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.comms-btn {
  display: block;
  background: #111512;
  border: 1px solid #1f2a22;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: var(--canvas);
  transition: all 0.25s ease;
}
.comms-btn:hover {
  background: #16221a;
  border-color: #2ecc71;
  box-shadow: 0 0 15px rgba(46,204,113,0.15);
}

.comms-label-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.comms-pre {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.comms-btn:hover .comms-pre { color: #2ecc71; }

.comms-address {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Straightforward discrete channel rack styling guidelines */
.codec-tuning-dashboard {
  margin-top: 2rem;
  background: #120e0b;
  border: 1px solid rgba(244,234,224,0.06);
  padding: 1.5rem;
}

.tuning-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
}

.tuning-tag {
  font-size: 0.8rem;
  color: var(--ember);
  letter-spacing: 0.1em;
}

.tuning-hardware-channels-rack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.channel-node-btn {
  background: #191411;
  border: 1px solid #332721;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1rem;
  cursor: none;
  text-align: center;
  line-height: 1.4;
  transition: all 0.25s var(--ease-smooth);
}
.channel-node-btn small {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.channel-node-btn:hover {
  background: #231b17;
  border-color: var(--ash);
  color: var(--parchment);
}
.channel-node-btn.active-node-selected {
  background: #121a14;
  border-color: #2ecc71;
  color: #2ecc71;
  box-shadow: 0 0 15px rgba(46,204,113,0.1);
}
.channel-node-btn.active-node-selected small {
  color: #2ecc71;
}

.codec-dialogue-console {
  margin-top: 1.5rem;
  background: #040302;
  border: 1px solid rgba(244,234,224,0.05);
  padding: 1.2rem 1.8rem;
}

.console-speaker-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.codec-wrapper.connected-signal .console-speaker-tag {
  color: #2ecc71;
}

.console-dialogue-line {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ash);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
    RESPONSIVE OVERRIDES
═══════════════════════════════════════════ */
@media (max-width: 1140px) {
  .name-companion-leon, .global-patrol-leon { display: none !important; }
}

@media (max-width: 900px) {
  .clean-about-grid, .codec-display-matrix { grid-template-columns: 1fr; gap: 3rem; }
  .clean-about-wrapper { padding: 0 2rem 2rem; }
  .project-overview { grid-template-columns: 1fr; gap: 2rem; }
  .project-sidebar { justify-content: flex-start; }
  .sneak-peek-viewport { max-width: 340px; }
}
/* ═══════════════════════════════════════════
    MINIMALIST THEMED PORTFOLIO FOOTER
═══════════════════════════════════════════ */
.portfolio-minimal-footer {
  background: var(--void);
  border-top: 1px solid rgba(244, 234, 224, 0.05);
  padding: 5rem 4rem;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Left branding elements */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--parchment);
  line-height: 1;
}

.footer-subtext {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

/* Middle navigational columns */
.footer-nav-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-block a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ash);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.25s var(--ease-smooth);
}

.footer-nav-block a:hover {
  color: var(--canvas);
}

/* Right connection containers */
.footer-links-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ash);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.25s var(--ease-smooth);
}

.footer-link-item:hover {
  color: var(--ember);
}

.arrow-diagonal {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-smooth);
}

.footer-link-item:hover .arrow-diagonal {
  transform: translate(2px, -2px);
}

/* Responsive constraints for phone formats */
@media (max-width: 768px) {
  .portfolio-minimal-footer {
    padding: 4rem 2rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
  }
}