/* ==========================================================================
   SPATIAL SYNAPSE 2026 — AVANT-GARDE DESIGN SYSTEM
   Curated for Anandhu Krishna — AI Engineer & Spatial Intelligence
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Color Primitives (Void & Chromatic Luminescence) */
  --void-bg: #06070a;
  --void-surface: rgba(14, 17, 24, 0.65);
  --void-surface-hover: rgba(22, 27, 38, 0.85);
  --void-elevated: rgba(24, 30, 44, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  
  /* Dynamic Chrome & Satin Tokens */
  --chrome-border: rgba(255, 255, 255, 0.1);
  --chrome-border-hover: rgba(255, 255, 255, 0.28);
  --chrome-highlight: rgba(255, 255, 255, 0.85);
  --chrome-sheen: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.2) 100%);
  
  /* Context-Aware Ambiance (Dynamic variables updated by JS) */
  --ambient-color-1: #3b82f6; /* Blue Default */
  --ambient-color-2: #8b5cf6; /* Violet */
  --ambient-color-3: #06b6d4; /* Cyan */
  --ambient-glow-opacity: 0.28;
  
  /* Spatial Depth & Perspective */
  --perspective: 1400px;
  --blur-glass: 24px;
  --ease-elastic: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography Scale — Space Grotesk replaces Syne to eliminate unnatural stretching */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Interactive Coordinates (updated by cursor) */
  --mouse-x: 50%;
  --mouse-y: 50%;
  --mouse-angle: 0deg;
  --scroll-speed: 0;
}

/* Light Mode Overrides */
body.light-mode {
  --void-bg: #f5f7fb;
  --void-surface: rgba(255, 255, 255, 0.72);
  --void-surface-hover: rgba(255, 255, 255, 0.92);
  --void-elevated: rgba(255, 255, 255, 0.85);
  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --chrome-border: rgba(0, 0, 0, 0.08);
  --chrome-border-hover: rgba(0, 0, 0, 0.22);
  --chrome-highlight: rgba(0, 0, 0, 0.6);
  --ambient-glow-opacity: 0.16;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--void-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  background-color: var(--void-bg);
  transition: background-color 0.8s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--void-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   AMBIENT CHROMATIC AURORA (Context-Aware Background Physics)
   ========================================================================== */
.spatial-ambient-viewport {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-mesh {
  position: absolute;
  width: 140vw;
  height: 140vh;
  top: -20vh;
  left: -20vw;
  background: 
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--ambient-color-1) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, var(--ambient-color-2) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, var(--ambient-color-3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(20, 24, 38, 0.8) 0%, transparent 70%);
  opacity: var(--ambient-glow-opacity);
  filter: blur(90px);
  transform: translate3d(0, 0, 0);
  transition: opacity 0.8s var(--ease-smooth), filter 0.8s ease;
  will-change: transform, background;
}

.spatial-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
}

/* Ambient Floating Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Native Precision Cursor with Interactive States */
a, button, input, textarea, .glass-monolith, .spec-tile, .constellation-cluster {
  cursor: pointer;
}

/* ==========================================================================
   NAVIGATION HUD (Spatial Floating Header)
   ========================================================================== */
.spatial-hud {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.hud-island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--void-surface);
  backdrop-filter: blur(var(--blur-glass)) saturate(190%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(190%);
  border: 1px solid var(--chrome-border);
  border-radius: 9999px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hud-island:hover {
  border-color: var(--chrome-border-hover);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 1.1rem;
}

.hud-logo-glyph {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ambient-color-1);
  box-shadow: 0 0 14px var(--ambient-color-1);
  animation: pulse-glyph 2.4s infinite ease-in-out;
}

@keyframes pulse-glyph {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 8px var(--ambient-color-1)); }
}

.hud-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.hud-link {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: color 0.25s, background-color 0.25s, transform 0.2s var(--ease-elastic);
  position: relative;
}

.hud-link:hover, .hud-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.25s;
}

.hud-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--chrome-border);
}

.hud-btn.lang-btn {
  width: auto;
  padding: 0 12px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   SPATIAL CONTAINER & PARALLAX CANVAS
   ========================================================================== */
.spatial-scene {
  position: relative;
  z-index: 2;
  perspective: var(--perspective);
  transform-style: preserve-3d;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.spatial-section {
  position: relative;
  padding: 100px 5vw 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform-style: preserve-3d;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* ==========================================================================
   HERO / KINETIC TYPOGRAPHY STAGE
   ========================================================================== */
.hero-stage {
  min-height: 90vh;
  max-height: 960px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.meta-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  color: #34d399;
}

.meta-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

/* Kinetic Title — Proportional, Architectural Space Grotesk */
.kinetic-title-wrapper {
  position: relative;
  margin: 10px 0 24px;
}

.kinetic-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.kinetic-row {
  display: block;
  position: relative;
  overflow: visible;
  word-break: break-word;
}

.kinetic-row.accent {
  background: linear-gradient(135deg, #ffffff 20%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.kinetic-row.chroma {
  background: linear-gradient(120deg, #60a5fa 0%, #c084fc 40%, #f472b6 75%, #38bdf8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chroma-flow 8s ease infinite;
}

@keyframes chroma-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fluid Warping Subhead */
.hero-tagline-block {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  border-left: 2px solid var(--ambient-color-2);
  padding-left: 20px;
  transform-style: preserve-3d;
}

.hero-tagline-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Floating Orbit Badges (Depth Planes) */
.orbit-badge {
  position: absolute;
  padding: 10px 18px;
  background: var(--void-surface);
  backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--chrome-border);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  user-select: none;
  transition: transform 0.15s ease-out;
}

.badge-1 {
  top: 15%;
  right: 6%;
}

.badge-2 {
  bottom: 18%;
  right: 18%;
}

.hero-tagline-block {
  max-width: 680px;
  width: 100%;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 2px solid var(--ambient-color-2);
  padding-left: 20px;
  padding-right: 24px;
  box-sizing: border-box;
}

.hero-tagline-block p {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-tagline-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-action-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Magnetic Spatial Button */
.btn-spatial-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 9999px;
  background: #ffffff;
  color: #06070a;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 15px 35px -8px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease-elastic), box-shadow 0.25s ease;
  will-change: transform;
}

.btn-spatial-primary:hover {
  box-shadow: 0 22px 45px -8px rgba(255, 255, 255, 0.55);
}

.btn-spatial-primary .btn-ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s;
}

.btn-spatial-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 9999px;
  background: var(--void-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--chrome-border);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease-elastic);
}

.btn-spatial-ghost:hover {
  border-color: var(--chrome-border-hover);
  background: var(--void-surface-hover);
}

/* ==========================================================================
   TITANIUM SPOTLIGHT & CHAMFER BEAM (2026 Minimal Spatial Aesthetic)
   ========================================================================== */
.glass-monolith,
.spec-tile,
.constellation-cluster {
  position: relative;
  background: var(--void-surface);
  backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s var(--ease-smooth), border-color 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-monolith {
  border-radius: 24px;
}

.spec-tile {
  border-radius: 16px;
}

.constellation-cluster {
  border-radius: 20px;
}

/* Edge-Tracing Chamfer Beam (Illuminates border nearest cursor) */
.glass-monolith::before,
.spec-tile::before,
.constellation-cluster::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    200px circle at var(--spotlight-x, -300px) var(--spotlight-y, -300px),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.18) 35%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Subsurface Specular Sheen (Soft, gliding light core) */
.glass-monolith::after,
.spec-tile::after,
.constellation-cluster::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    480px circle at var(--spotlight-x, -500px) var(--spotlight-y, -500px),
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    transparent 75%
  );
  pointer-events: none;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-monolith:hover,
.spec-tile:hover,
.constellation-cluster:hover {
  box-shadow: 
    0 32px 64px -16px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   SECTION HEADER (Neo-Brutalist Kinetic Typography)
   ========================================================================== */
.section-meta-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ambient-color-2);
  margin-bottom: 12px;
}

.eyebrow-line {
  height: 1px;
  width: 40px;
  background: var(--ambient-color-2);
}

.section-spatial-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
  word-break: break-word;
}

/* ==========================================================================
   ABOUT & BIO: THE NEURAL PROFILE (Spatial Asymmetric Layout)
   ========================================================================== */
.spatial-about-cluster {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .spatial-about-cluster {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.about-visual-spatial {
  position: relative;
  border-radius: 28px;
  perspective: 1000px;
}

.about-portrait-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  transform-style: preserve-3d;
}

.about-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%);
  transition: transform 0.6s var(--ease-smooth), filter 0.6s ease;
}

.about-portrait-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(105%);
}

.portrait-spatial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 7, 10, 0.85) 100%);
  pointer-events: none;
}

.portrait-hud-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px;
  background: rgba(14, 17, 24, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portrait-hud-tag .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.portrait-hud-tag .loc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.narrative-lead {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.narrative-lead strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.spec-tile {
  padding: 20px;
  background: var(--void-surface);
  border: 1px solid var(--chrome-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  transition: transform 0.3s var(--ease-elastic), border-color 0.3s;
}

.spec-tile:hover {
  transform: translateY(-4px);
  border-color: var(--chrome-border-hover);
}

.spec-tile .spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.spec-tile .spec-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   SPATIAL EXHIBITION: PROJECTS (Non-Standard Dimensional Showcase)
   ========================================================================== */
.spatial-projects-stage {
  position: relative;
  margin-top: 40px;
}

.projects-exhibition-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
}

/* Project Spatial Monolith Card */
.project-monolith {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
  border-radius: 32px;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.project-monolith.reverse {
  grid-template-columns: 1fr 1.25fr;
}

.project-monolith.reverse .project-preview-wrap {
  order: 2;
}

.project-monolith.reverse .project-info-wrap {
  order: 1;
}

@media (max-width: 992px) {
  .project-monolith, .project-monolith.reverse {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .project-monolith.reverse .project-preview-wrap {
    order: 1;
  }
  .project-monolith.reverse .project-info-wrap {
    order: 2;
  }
}

.project-preview-wrap {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  background: #06080f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  transform-style: preserve-3d;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-monolith:hover .project-preview-wrap {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 32px 70px -12px rgba(0, 0, 0, 0.8),
    0 0 30px -8px var(--ambient-color-1),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.project-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(106%) brightness(0.92) saturate(110%);
  transition: transform 0.7s var(--ease-smooth), filter 0.5s ease;
}

.project-monolith:hover .project-preview-wrap img {
  transform: scale(1.05);
  filter: contrast(110%) brightness(1.0) saturate(120%);
}

/* Atmospheric Vignette for Seamless Card Blending */
.preview-vignette {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: 
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(6, 8, 15, 0.6) 100%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.25) 0%, transparent 20%, transparent 80%, rgba(6, 8, 15, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.project-monolith:hover .preview-vignette {
  opacity: 0.7;
}

.preview-glimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s;
}

.project-monolith:hover .preview-glimmer {
  opacity: 1;
}

.project-category-stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.project-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-index-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ambient-color-2);
  letter-spacing: 2px;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title a:hover,
.project-title:hover {
  color: var(--ambient-color-1);
}

.project-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.stack-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--chrome-border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.25s;
}

.project-monolith:hover .stack-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.project-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
  transition: gap 0.25s, color 0.25s;
}

.project-action-link:hover {
  gap: 14px;
  color: var(--ambient-color-1);
}

/* ==========================================================================
   CAREER & RESEARCH TIMELINE (Neo-Brutalist Kinetic Narrative)
   ========================================================================== */
.spatial-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.timeline-monolith-node {
  padding: 36px 40px;
  border-radius: 24px;
  position: relative;
  transition: transform 0.3s var(--ease-elastic), border-color 0.3s;
}

.timeline-monolith-node:hover {
  transform: translateX(8px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  position: relative;
  z-index: 2;
}

.timeline-role-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-photo-badge {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.09), rgba(8, 11, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s ease, border-color 0.4s ease;
  flex-shrink: 0;
}

.timeline-monolith-node:hover .company-photo-badge {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
}

.company-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
  z-index: 2;
  position: relative;
}

.photo-badge-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 3;
}

.photo-badge-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.45;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.ipsos-glow {
  background: radial-gradient(circle, rgba(20, 161, 158, 0.7), rgba(18, 27, 90, 0.4), transparent 70%);
}

.axa-glow {
  background: radial-gradient(circle, rgba(0, 0, 143, 0.7), rgba(255, 23, 33, 0.4), transparent 70%);
}

.tech-glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.6), rgba(59, 130, 246, 0.3), transparent 70%);
}

.edu-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.6), rgba(239, 68, 68, 0.3), transparent 70%);
}

.monogram-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

/* Sub-card photo watermark blend */
.timeline-node-watermark {
  position: absolute;
  right: 28px;
  bottom: 20px;
  width: 140px;
  height: 140px;
  opacity: 0.035;
  pointer-events: none;
  filter: blur(1px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
  overflow: hidden;
}

.timeline-node-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-monolith-node:hover .timeline-node-watermark {
  opacity: 0.08;
  transform: scale(1.08) rotate(-3deg);
}

.timeline-role-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ambient-color-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-date-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--chrome-border);
  color: var(--text-tertiary);
}

.timeline-date-chip.current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 600;
}

.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullet-icon {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ambient-color-2);
}

.timeline-bullet strong {
  color: var(--text-primary);
}

/* ==========================================================================
   SKILLS CONSTELLATION (Dynamic Interconnected Node Clusters)
   ========================================================================== */
.skills-constellation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.constellation-cluster {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s var(--ease-elastic);
}

.constellation-cluster:hover {
  transform: translateY(-6px);
}

.cluster-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cluster-icon-glyph {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ambient-color-2);
}

.cluster-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-token {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--chrome-border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  transition: all 0.25s;
}

.skill-token:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ambient-color-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   INTERACTIVE CONTACT TERMINAL & FOOTER
   ========================================================================== */
.spatial-terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-top: 48px;
}

@media (max-width: 992px) {
  .spatial-terminal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.terminal-contact-card {
  padding: 40px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-quick-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--chrome-border);
  border-radius: 14px;
  transition: all 0.25s;
}

.contact-channel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--chrome-border-hover);
  transform: translateX(6px);
}

.contact-channel .channel-icon {
  font-size: 1.2rem;
  color: var(--ambient-color-1);
}

.contact-channel .channel-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Spatial Terminal Form */
.terminal-form-card {
  padding: 40px;
  border-radius: 28px;
}

.form-group-spatial {
  margin-bottom: 24px;
}

.form-label-spatial {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.input-spatial {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--chrome-border);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-spatial:focus {
  border-color: var(--ambient-color-1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

textarea.input-spatial {
  resize: vertical;
  min-height: 120px;
}

/* Spatial Footer */
.spatial-footer {
  margin-top: 120px;
  padding: 40px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-social-stream {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-social-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   MOBILE & RESPONSIVENESS ADAPTATIONS (mobile-native skill rules)
   ========================================================================== */
@media (max-width: 768px) {
  .hud-island {
    padding: 6px 14px;
    width: auto;
    max-width: calc(100vw - 32px);
    justify-content: space-between;
  }
  .hud-nav-links {
    display: none; /* Mobile header maintains clean logo + utility controls */
  }
  .kinetic-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .hero-stage {
    padding-top: 110px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .spatial-section {
    padding: 80px 20px 60px;
    min-height: auto;
  }
  .section-spatial-heading {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    line-height: 1.12;
    margin-bottom: 20px;
  }
  .hero-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    margin-bottom: 20px;
    width: 100%;
  }
  .hero-tagline-block {
    font-size: 0.95rem;
    padding-left: 14px;
    padding-right: 14px;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-action-cluster {
    margin-top: 32px;
    gap: 12px;
  }
  .btn-spatial-primary, .btn-spatial-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  .orbit-badge {
    display: none;
  }
  .skills-constellation-grid {
    grid-template-columns: 1fr;
  }
  .spec-tile {
    padding: 14px;
  }
  .spec-tile .spec-val {
    font-size: 0.95rem;
  }
  .project-monolith {
    padding: 20px;
  }
  .timeline-role-identity {
    gap: 14px;
    align-items: flex-start;
  }
  .company-photo-badge {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    padding: 5px;
  }
  .monogram-text {
    font-size: 1.05rem;
  }
  .timeline-node-watermark {
    width: 80px;
    height: 80px;
    right: 14px;
    bottom: 12px;
  }
  [data-depth] {
    transform: none !important;
  }
}

/* ==========================================================================
   LIGHT MODE SPATIAL REFINEMENTS (2026 Architectural Light Aesthetic)
   ========================================================================== */
body.light-mode {
  --void-bg: #f8fafc;
  --void-surface: rgba(255, 255, 255, 0.78);
  --void-surface-hover: rgba(255, 255, 255, 0.95);
  --void-elevated: #ffffff;
  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --chrome-border: rgba(0, 0, 0, 0.08);
  --chrome-border-hover: rgba(0, 0, 0, 0.2);
  --chrome-highlight: rgba(0, 0, 0, 0.5);
  --ambient-glow-opacity: 0.16;
}

/* Light Background Aurora & Grid */
body.light-mode .aurora-mesh {
  background: 
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(59, 130, 246, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.5) 0%, transparent 75%);
  opacity: 0.8;
  filter: blur(90px);
}

body.light-mode .spatial-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 88%);
}

/* Floating Navigation HUD */
body.light-mode .hud-island {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.light-mode .hud-island:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.light-mode .hud-logo {
  color: #090d16;
}

body.light-mode .hud-link {
  color: #475569;
}

body.light-mode .hud-link:hover,
body.light-mode .hud-link.active {
  color: #090d16;
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .hud-controls {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .hud-btn {
  color: #475569;
}

body.light-mode .hud-btn:hover {
  color: #090d16;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Hero Section */
body.light-mode .kinetic-row.accent {
  background: linear-gradient(135deg, #090d16 20%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .kinetic-row.chroma {
  background: linear-gradient(120deg, #1d4ed8 0%, #7c3aed 45%, #be185d 80%, #0284c7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .meta-status-chip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  font-weight: 600;
}

body.light-mode .orbit-badge {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

body.light-mode .hero-tagline-block {
  color: #334155;
  border-left-color: #6366f1;
}

body.light-mode .hero-tagline-block strong {
  color: #090d16;
}

body.light-mode .btn-spatial-primary {
  background: #090d16;
  color: #ffffff;
  box-shadow: 0 15px 35px -8px rgba(9, 13, 22, 0.28);
}

body.light-mode .btn-spatial-primary:hover {
  background: #1e293b;
  box-shadow: 0 20px 42px -8px rgba(9, 13, 22, 0.38);
}

body.light-mode .btn-spatial-ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #090d16;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-mode .btn-spatial-ghost:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Glass Monoliths & Cards */
body.light-mode .glass-monolith,
body.light-mode .spec-tile,
body.light-mode .constellation-cluster {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 20px 45px -15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.light-mode .glass-monolith:hover,
body.light-mode .spec-tile:hover,
body.light-mode .constellation-cluster:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 
    0 28px 60px -16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.light-mode .glass-monolith::before,
body.light-mode .spec-tile::before,
body.light-mode .constellation-cluster::before {
  background: radial-gradient(
    200px circle at var(--spotlight-x, -300px) var(--spotlight-y, -300px),
    rgba(59, 130, 246, 0.3) 0%,
    rgba(59, 130, 246, 0.08) 35%,
    transparent 70%
  );
}

body.light-mode .glass-monolith::after,
body.light-mode .spec-tile::after,
body.light-mode .constellation-cluster::after {
  background: radial-gradient(
    480px circle at var(--spotlight-x, -500px) var(--spotlight-y, -500px),
    rgba(59, 130, 246, 0.04) 0%,
    transparent 70%
  );
}

/* Headings & Eyebrows */
body.light-mode .section-spatial-heading {
  color: #090d16;
}

body.light-mode .section-meta-eyebrow {
  color: #4f46e5;
}

body.light-mode .eyebrow-line {
  background: #4f46e5;
}

/* About Section */
body.light-mode .portrait-hud-tag {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.light-mode .portrait-hud-tag .title {
  color: #090d16;
}

body.light-mode .portrait-hud-tag .loc {
  color: #475569;
}

body.light-mode .narrative-lead {
  color: #334155;
}

body.light-mode .narrative-lead strong {
  color: #090d16;
}

body.light-mode .spec-tile .spec-label {
  color: #64748b;
}

body.light-mode .spec-tile .spec-val {
  color: #090d16;
}

/* Trajectory / Experience Section */
body.light-mode .timeline-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .timeline-role-title {
  color: #090d16;
}

body.light-mode .timeline-company {
  color: #2563eb;
}

body.light-mode .timeline-date-chip {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-mode .timeline-date-chip.current {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

body.light-mode .timeline-bullet {
  color: #334155;
}

body.light-mode .timeline-bullet strong {
  color: #090d16;
}

body.light-mode .timeline-bullet-icon {
  background: #6366f1;
}

/* Photo Badges & Watermarks in Light Mode */
body.light-mode .company-photo-badge {
  background: radial-gradient(circle at 35% 25%, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1), inset 0 1px 2px #ffffff;
}

body.light-mode .timeline-monolith-node:hover .company-photo-badge {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.15), inset 0 1px 2px #ffffff;
}

body.light-mode .photo-badge-sheen {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0.04) 100%);
}

body.light-mode .photo-badge-glow {
  opacity: 0.25;
}

body.light-mode .timeline-node-watermark {
  mix-blend-mode: multiply;
  opacity: 0.05;
}

body.light-mode .timeline-monolith-node:hover .timeline-node-watermark {
  opacity: 0.1;
}

body.light-mode .monogram-text {
  filter: contrast(130%) brightness(0.85);
}

/* Projects Section */
body.light-mode .project-title,
body.light-mode .project-title a {
  color: #090d16;
}

body.light-mode .project-title a:hover,
body.light-mode .project-title:hover {
  color: #2563eb;
}

body.light-mode .project-description {
  color: #334155;
}

body.light-mode .project-preview-wrap {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.1);
}

body.light-mode .project-category-stamp {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #090d16;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light-mode .stack-tag {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.light-mode .project-monolith:hover .stack-tag {
  background: rgba(0, 0, 0, 0.07);
  color: #090d16;
  border-color: rgba(0, 0, 0, 0.18);
}

body.light-mode .project-action-link {
  color: #090d16;
}

body.light-mode .project-action-link:hover {
  color: #2563eb;
}

body.light-mode .project-index-num {
  color: #4f46e5;
}

/* Skills Section */
body.light-mode .cluster-title {
  color: #090d16;
}

body.light-mode .cluster-icon-glyph {
  color: #4f46e5;
}

body.light-mode .skill-token {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

body.light-mode .skill-token:hover {
  background: #ffffff;
  border-color: #3b82f6;
  color: #090d16;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.16);
}

/* Contact Section & Terminal */
body.light-mode .form-label-spatial {
  color: #475569;
}

body.light-mode .input-spatial {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #090d16;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-mode .input-spatial:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

body.light-mode .input-spatial::placeholder {
  color: #94a3b8;
}

body.light-mode .contact-channel {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #090d16;
}

body.light-mode .contact-channel:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

body.light-mode .contact-channel .channel-icon {
  color: #2563eb;
}

body.light-mode .spatial-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.light-mode .footer-social-link {
  color: #475569;
}

body.light-mode .footer-social-link:hover {
  color: #090d16;
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-mesh {
    animation: none !important;
  }
  [data-depth] {
    transform: none !important;
  }
}
