/* ==========================================================================
   EREN GÜN - PORTFOLIO DESIGN SYSTEM
   Digital Engineering Studio + Modern Editorial + Subtle Terminal DNA
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* Surfaces & Canvas (Master Palette) */
  --bg-primary: #0b1020;
  --bg-surface: #121827;
  --bg-surface-elevated: #182033;
  --bg-surface-muted: rgba(18, 24, 39, 0.65);
  
  /* Backward-compatible aliases */
  --bg: var(--bg-primary);
  --bg2: var(--bg-surface);
  --bg3: var(--bg-surface-elevated);
  --card: var(--bg-surface);
  --card-bg: var(--bg-surface);
  --card-elevated: var(--bg-surface-elevated);
  --surface-1: var(--bg-surface);
  --surface-2: var(--bg-surface-elevated);
  --glass-bg: rgba(11, 16, 32, 0.88);
  --nav-bg: rgba(11, 16, 32, 0.82);
  --nav-border: var(--border-subtle);
  --font-sans: var(--font-raj);
  --accent-border: var(--border-default);
  --accent-emerald: var(--accent-success);
  --transition-fast: var(--motion-fast);
  --transition-normal: var(--motion-normal);
  --transition-slow: var(--motion-slow);

  /* Typography (Master Palette) */
  --text-primary: #f4f6f8;
  --text-secondary: #98a2b3;
  --text-muted: #697386;
  --text-tertiary: #697386;
  --text: var(--text-primary);
  --text2: var(--text-secondary);

  /* Borders (Master Palette) */
  --border-default: #273148;
  --border-subtle: #1d2638;
  --card-border: var(--border-subtle);
  --card-border-hover: var(--accent-primary);

  /* Accents & Status (Master Palette) */
  --accent-primary: #6d8cff;
  --accent-primary-hover: #5777f5;
  --accent-secondary: #5cb8b0;
  --accent-secondary-subtle: rgba(92, 184, 176, 0.12);
  --accent-subtle: rgba(109, 140, 255, 0.12);
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --cyan: #5cb8b0;
  --cyan2: #6d8cff;
  --green: #10b981;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --yellow: #f59e0b;

  /* Elevation Shadows & Luminous Glow Hierarchy (Restrained Luminosity) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);

  /* Glow Hierarchy: Level 1 (Ambient), Level 2 (Interactive), Level 3 (Signature) */
  --glow-subtle: 0 0 16px rgba(109, 140, 255, 0.12);
  --glow-interactive: 0 0 24px -2px rgba(109, 140, 255, 0.28);
  --glow-signature: 0 0 32px -4px rgba(109, 140, 255, 0.45);
  --glow-teal-subtle: 0 0 16px rgba(92, 184, 176, 0.14);
  --glow-teal-interactive: 0 0 24px -2px rgba(92, 184, 176, 0.32);
  --glow-emerald-live: 0 0 10px rgba(16, 185, 129, 0.6);
  --border-gradient: linear-gradient(135deg, rgba(109, 140, 255, 0.35), rgba(92, 184, 176, 0.2) 50%, rgba(39, 49, 72, 0.6));

  /* Typography Tokens */
  --font-raj: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-orb: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Radii Scale */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Motion Tokens */
  --motion-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Surfaces & Canvas (Master Light Palette) */
  --bg-primary: #f5f3ee;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f0f1f4;
  --bg-surface-muted: #e7e9ee;

  /* Backward-compatible aliases */
  --bg: var(--bg-primary);
  --bg2: var(--bg-surface-elevated);
  --bg3: #e2e8f0;
  --card: var(--bg-surface);
  --card-bg: var(--bg-surface);
  --card-elevated: var(--bg-surface-elevated);
  --surface-1: var(--bg-surface);
  --surface-2: var(--bg-surface-elevated);
  --glass-bg: rgba(245, 243, 238, 0.9);
  --nav-bg: rgba(245, 243, 238, 0.85);
  --nav-border: var(--border-subtle);
  --font-sans: var(--font-raj);
  --accent-border: var(--border-default);
  --accent-emerald: var(--accent-success);
  --transition-fast: var(--motion-fast);
  --transition-normal: var(--motion-normal);
  --transition-slow: var(--motion-slow);

  /* Typography (Master Light Palette) */
  --text-primary: #111827;
  --text-secondary: #667085;
  --text-muted: #8a94a6;
  --text-tertiary: #8a94a6;
  --text: var(--text-primary);
  --text2: var(--text-secondary);

  /* Borders (Master Light Palette) */
  --border-default: #d9dde5;
  --border-subtle: #e7e9ee;
  --card-border: var(--border-subtle);
  --card-border-hover: var(--accent-primary);

  /* Accents & Status (Master Light Palette) */
  --accent-primary: #4f63c8;
  --accent-primary-hover: #3d4fa8;
  --accent-secondary: #287f78;
  --accent-secondary-subtle: rgba(40, 127, 120, 0.08);
  --accent-subtle: rgba(79, 99, 200, 0.08);
  --accent-success: #059669;
  --accent-warning: #d97706;
  --cyan: #287f78;
  --cyan2: #4f63c8;
  --green: #059669;
  --purple: #6d28d9;
  --pink: #db2777;
  --yellow: #d97706;

  /* Elevation Shadows & Luminous Glow Hierarchy (Light Theme) */
  --shadow-sm: 0 1px 3px 0 rgba(17, 24, 39, 0.06), 0 1px 2px -1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 12px 32px -4px rgba(17, 24, 39, 0.1);
  --card-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.05);

  --glow-subtle: 0 0 16px rgba(79, 99, 200, 0.08);
  --glow-interactive: 0 0 20px -2px rgba(79, 99, 200, 0.2);
  --glow-signature: 0 0 28px -4px rgba(79, 99, 200, 0.28);
  --glow-teal-subtle: 0 0 16px rgba(40, 127, 120, 0.08);
  --glow-teal-interactive: 0 0 20px -2px rgba(40, 127, 120, 0.2);
  --glow-emerald-live: 0 0 8px rgba(5, 150, 105, 0.5);
  --border-gradient: linear-gradient(135deg, rgba(79, 99, 200, 0.25), rgba(40, 127, 120, 0.15) 50%, rgba(217, 221, 229, 0.8));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 50% -5%, rgba(109, 140, 255, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 85% 65%, rgba(92, 184, 176, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 15% 95%, rgba(109, 140, 255, 0.07) 0%, transparent 55%),
    linear-gradient(to right, rgba(109, 140, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(109, 140, 255, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 52px 52px, 52px 52px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-raj);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 50% -5%, rgba(79, 99, 200, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 85% 65%, rgba(40, 127, 120, 0.04) 0%, transparent 55%),
    linear-gradient(to right, rgba(17, 24, 39, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.026) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 52px 52px, 52px 52px;
}

/* ===== CUSTOM REFINED SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--card-border-hover);
  border-radius: var(--radius-full);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--card-border-hover) transparent;
}

/* System-native cursor (restrained & accessible) */
.cursor,
.cursor-follower {
  display: none !important;
}

/* Background Canvas Management (silenced noisy animations) */
#matrixCanvas,
#particleCanvas {
  display: none !important;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  padding: 0.65rem 4rem;
  box-shadow: var(--shadow-sm);
}

.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 0 10px rgba(109, 140, 255, 0.65), 0 0 4px rgba(92, 184, 176, 0.4);
  z-index: 1001;
  transition: width 0.05s linear;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.logo-text {
  color: var(--text);
  font-family: var(--font-raj);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.nav-logo:hover .logo-text {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-family: var(--font-raj);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100% !important;
  box-shadow: 0 0 8px rgba(109, 140, 255, 0.55);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-switch-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text2);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover {
  color: var(--text);
  background: var(--accent-subtle);
  border-color: var(--card-border-hover);
}

:root .theme-switch-btn .sun-icon,
[data-theme="dark"] .theme-switch-btn .sun-icon {
  display: block;
}

:root .theme-switch-btn .moon-icon,
[data-theme="dark"] .theme-switch-btn .moon-icon {
  display: none;
}

[data-theme="light"] .theme-switch-btn .sun-icon {
  display: none;
}

[data-theme="light"] .theme-switch-btn .moon-icon {
  display: block;
}

.lang-switch-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-switch-btn:hover {
  border-color: var(--card-border-hover);
  color: var(--text);
}

.lang-tag.active {
  color: var(--accent-primary);
  font-weight: 700;
}

.lang-sep {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 4rem 4rem;
  position: relative;
  z-index: 1;
  gap: 3rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 25% 40%, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-name {
  font-family: var(--font-raj);
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--text);
}

/* Glitch pseudo-elements neutralised for calm prestigious aesthetic */
.glitch::before,
.glitch::after {
  display: none !important;
}

.hero-statement {
  margin-bottom: 2rem;
}

.code-comment {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-family: var(--font-raj);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text2);
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-raj);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--accent-subtle);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: var(--card);
  color: var(--text) !important;
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--card-border-hover);
  background: var(--bg2);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.hero-metadata-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 1.75rem;
}

.meta-strip-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-label {
  color: var(--text-tertiary);
  font-weight: 500;
}

.meta-val {
  color: var(--text2);
  font-weight: 600;
}

.meta-val-active {
  color: var(--green);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-num {
  font-family: var(--font-raj);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  color: var(--card-border);
  font-size: 1.25rem;
  font-weight: 300;
}

/* Hero Terminal / Command Visualizer Window */
.hero-terminal {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.hero-terminal::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: radial-gradient(ellipse at 50% 50%, rgba(109, 140, 255, 0.18) 0%, transparent 70%);
  z-index: -1;
  border-radius: var(--radius-xl);
  pointer-events: none;
  animation: ambientBreathe 6s ease-in-out infinite alternate;
}

@keyframes ambientBreathe {
  0% { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 0.95; transform: scale(1.02); }
}

/* ===== EREN SYSTEM ARCHITECTURE CONSOLE ===== */
.architecture-console {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(109, 140, 255, 0.22);
  overflow: hidden;
  transition: border-color var(--motion-normal), box-shadow var(--motion-normal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .architecture-console {
  background: #ffffff;
  border-color: var(--border-default);
  box-shadow: 0 16px 40px -10px rgba(17, 24, 39, 0.12), 0 0 24px -4px rgba(79, 99, 200, 0.15);
}

.architecture-console:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px -2px rgba(109, 140, 255, 0.35);
}

.arch-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

[data-theme="light"] .arch-console-header {
  background: #f8fafc;
}

.arch-window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.arch-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-left: 0.4rem;
}

.arch-status-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-telemetry-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.arch-telemetry-chip .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 6px var(--accent-success);
}

.arch-console-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Stage Pipeline Flow Header */
.arch-pipeline-stages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pipe-num {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pipe-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.pipe-stage.active .pipe-name {
  color: var(--accent-primary);
}

.pipe-arrow {
  color: var(--border-default);
  font-size: 0.8rem;
}

/* Living Architecture Topology Canvas */
.arch-topology-canvas {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 32, 0.85);
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .arch-topology-canvas {
  background: #f8fafc;
}

.arch-svg-grid {
  width: 100%;
  height: auto;
  display: block;
}

.arch-signal-track {
  stroke: var(--border-default);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.arch-signal-pulse {
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 80;
  animation: archSignalFlow 3.6s linear infinite;
}

.arch-pulse-2 {
  animation-delay: 0.9s;
  stroke: var(--accent-secondary);
}

.arch-pulse-3 {
  animation-delay: 1.8s;
  stroke: var(--accent-primary);
}

.arch-pulse-4 {
  animation-delay: 2.7s;
  stroke: var(--accent-secondary);
}

@keyframes archSignalFlow {
  0% { stroke-dashoffset: 92; }
  100% { stroke-dashoffset: 0; }
}

.arch-node-box {
  fill: var(--bg-surface-elevated);
  stroke: var(--border-default);
  stroke-width: 1.2;
  transition: all 0.25s ease;
}

[data-theme="light"] .arch-node-box {
  fill: #ffffff;
}

.arch-node-group:hover .arch-node-box,
.arch-node-box.active-glow {
  stroke: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(109, 140, 255, 0.3));
}

.arch-node-box.hub-box {
  stroke: var(--accent-primary);
  fill: rgba(109, 140, 255, 0.1);
  stroke-width: 1.8;
}

.arch-node-num {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  fill: var(--accent-secondary);
}

.arch-node-title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  fill: var(--text-primary);
}

.arch-node-title.hub-title {
  fill: #ffffff;
}

[data-theme="light"] .arch-node-title.hub-title {
  fill: var(--text-primary);
}

.arch-node-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  fill: var(--text-muted);
}

.arch-node-indicator {
  fill: var(--accent-success);
  filter: drop-shadow(0 0 4px var(--accent-success));
}

.arch-node-indicator.hub-dot {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 6px var(--accent-primary));
  animation: hubPulse 2s ease-in-out infinite alternate;
}

@keyframes hubPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Telemetry Monitor & Micro-Code Integration */
.arch-telemetry-monitor {
  background: rgba(11, 16, 32, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-mono);
}

[data-theme="light"] .arch-telemetry-monitor {
  background: #ffffff;
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.monitor-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.monitor-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.68rem;
  margin-bottom: 0.6rem;
}

.monitor-metric-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.m-key { color: var(--text-muted); }
.m-val { color: var(--text-secondary); font-weight: 600; }
.m-val.active-green { color: var(--accent-success); }

.arch-telemetry-monitor .monitor-content {
  margin-bottom: 0;
}

/* Hero Rotating Title */
.hero-rotating-title {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: bottom;
  cursor: pointer;
}

.hero-rotating-title.phrase-fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.hero-rotating-title.phrase-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Admin Hero Rotating Phrase Controls */
.admin-hero-phrase-toolbar {
  position: absolute;
  top: -36px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 12, 22, 0.96);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-xs);
  padding: 3px 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7), 0 0 10px rgba(109, 140, 255, 0.25);
  z-index: 120;
  white-space: nowrap;
  pointer-events: auto;
}

.admin-hero-phrase-btn {
  background: rgba(109, 140, 255, 0.15);
  border: 1px solid rgba(109, 140, 255, 0.35);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.admin-hero-phrase-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.admin-hero-phrase-btn.danger {
  color: #ff4d79;
  border-color: rgba(255, 77, 121, 0.35);
  background: rgba(255, 77, 121, 0.12);
}

.admin-hero-phrase-btn.danger:hover {
  background: #ff4d79;
  color: #ffffff;
}

/* Admin Architecture Canvas Interactivity */
.arch-node-group {
  cursor: pointer;
  user-select: none;
}

.arch-node-group.is-selected .arch-node-box {
  stroke: var(--cyan) !important;
  stroke-width: 2 !important;
  filter: drop-shadow(0 0 12px rgba(0, 245, 255, 0.65)) !important;
}

.arch-node-group.is-dragging {
  cursor: grabbing !important;
  opacity: 0.88;
}

.admin-arch-node-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 12, 22, 0.94);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-xs);
  padding: 3px 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  z-index: 100;
  pointer-events: auto;
}

.admin-arch-add-node {
  background: rgba(109, 140, 255, 0.18);
  border: 1px solid rgba(109, 140, 255, 0.4);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-arch-add-node:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.arch-console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

[data-theme="light"] .arch-console-footer {
  background: #f8fafc;
}

.arch-foot-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.foot-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 6px var(--accent-success);
}

.foot-status {
  color: var(--accent-success);
  font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== SECTIONS (ATMOSPHERIC SECTION LIGHTING) ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 2rem;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

/* Atmospheric lighting per section */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 75% 50% at 70% 30%, rgba(109, 140, 255, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(92, 184, 176, 0.08) 0%, transparent 60%);
}

.section.about::before {
  background: radial-gradient(ellipse 65% 45% at 15% 40%, rgba(109, 140, 255, 0.11) 0%, transparent 65%);
}

.section.skills::before {
  background:
    radial-gradient(ellipse 65% 50% at 85% 50%, rgba(92, 184, 176, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 15% 70%, rgba(109, 140, 255, 0.09) 0%, transparent 60%);
}

.section.roadmap::before {
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(109, 140, 255, 0.11) 0%, transparent 65%);
}

.section.projects::before {
  background:
    radial-gradient(ellipse 70% 55% at 25% 60%, rgba(109, 140, 255, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(99, 102, 241, 0.09) 0%, transparent 60%);
}

.section.contact::before {
  background: radial-gradient(ellipse 70% 55% at 75% 45%, rgba(92, 184, 176, 0.15) 0%, transparent 70%);
}

/* Subtle dividing line between sections */
.section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--card-border) 50%, transparent 100%);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== SIGNATURE SECTION HEADERS ===== */
.section-header {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.section-header-top {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-default);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  box-shadow: 0 0 10px rgba(109, 140, 255, 0.15);
}

.section-slug {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.section-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-success);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1.15;
}

.title-line {
  flex: 1;
  min-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, rgba(92, 184, 176, 0.4) 40%, transparent 100%);
  position: relative;
}

.title-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* GitHub Live Sync / Status Badge */
.github-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ===== ABOUT SECTION — REFINED EDITORIAL & TECHNICAL IDENTITY ===== */
#about.about-section {
  position: relative;
  padding: 6.5rem 0;
}

#about .about-terminal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

#about .about-terminal-tag {
  color: var(--accent-primary);
  font-weight: 600;
}

#about .about-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
}

#about .about-header-sub {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

#about .about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

#about .about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

/* --- Identity Panel --- */
#about .identity-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
}

#about .identity-panel:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

#about .identity-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

#about .identity-panel-tag {
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

#about .identity-status-pill {
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
}

/* --- Avatar Frame Chamber --- */
#about .identity-avatar-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  margin: 0 auto 1.5rem auto;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#about .identity-avatar-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .identity-avatar-inner .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

#about .identity-avatar-inner:hover .avatar-img {
  transform: scale(1.04);
}

#about .identity-avatar-inner .avatar-initials {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-primary);
}

/* --- Identity Metadata Fields --- */
#about .identity-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  padding-top: 0.25rem;
}

#about .identity-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

#about .identity-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#about .identity-meta-key {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

#about .identity-meta-val {
  color: var(--text-primary);
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

#about .identity-meta-val strong {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

#about .status-active-text {
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
}

#about .about-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

#about .badge {
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  transition: all var(--transition-fast);
}

#about .badge:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* --- Content / Bio Card (Editorial Centerpiece) --- */
#about .about-content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.8rem;
  position: relative;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
}

#about .about-content-card:hover {
  border-color: var(--card-border-hover);
  border-left-color: var(--accent-primary);
  box-shadow: var(--shadow-lg);
}

#about .about-bio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

#about .about-bio-tag {
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

#about .about-bio-stamp {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

#about .about-bio-body {
  display: flex;
  flex-direction: column;
}

#about .about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  font-family: var(--font-sans);
}

#about .about-text p:last-child {
  margin-bottom: 0;
}

#about .about-intro {
  color: var(--text-primary) !important;
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  font-weight: 500;
  margin-bottom: 1.25rem !important;
}

#about .about-intro strong {
  color: var(--accent-primary);
  font-weight: 700;
}

/* --- Information / Capability Records --- */
#about .about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

#about .info-item {
  padding: 1.1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

#about .info-item:hover {
  border-color: var(--card-border-hover);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

#about .info-record-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}

#about .info-record-tag {
  color: var(--accent-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#about .info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#about .info-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

#about .info-val {
  font-size: 0.96rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-sans);
}

#about .term-arrow {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.75;
}

/* --- Canvas Visual Editing Overlay & Micro-Toolbars --- */
#about [data-about-editable="true"] {
  outline: 1px dashed var(--accent-border);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
  transition: outline-color var(--transition-fast), background var(--transition-fast);
}

#about [data-about-editable="true"]:hover,
#about [data-about-editable="true"]:focus {
  outline: 1px solid var(--accent-primary);
  background: var(--accent-subtle);
}

#about .admin-about-card-controls {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--card-border);
  flex-wrap: wrap;
}

#about .admin-about-card-controls button {
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

#about .admin-about-card-controls button:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

#about .admin-about-card-controls button:last-child:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

#about .admin-about-add {
  grid-column: 1 / -1;
  background: var(--surface-1);
  border: 1px dashed var(--card-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  margin-top: 0.5rem;
}

#about .admin-about-add:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Selected component outline in Admin Visual Builder */
#about.admin-component-selected,
[data-editor-id="about"].admin-component-selected {
  outline: 2px solid var(--accent-primary) !important;
  outline-offset: 6px;
  box-shadow: 0 0 24px var(--accent-subtle);
}

/* --- Responsive Adjustments for About --- */
@media (max-width: 992px) {
  #about .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  #about .about-avatar-wrap {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  #about .about-info-grid {
    grid-template-columns: 1fr;
  }
  #about .about-content-card {
    padding: 1.5rem 1.6rem;
  }
  #about .identity-panel {
    padding: 1.35rem;
  }
  #about .about-terminal-header-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* ===== SKILLS SECTION — REFINED CAPABILITY MAP ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-category:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg);
}

.cat-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cat-icon {
  background: var(--surface-2);
  color: var(--accent-primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--card-border);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.skill-pct {
  color: var(--accent-primary);
  font-weight: 600;
}

.skill-bar-track {
  height: 5px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* CMS progress gauges: compact open semicircle arc with centered authentic tech SVG icon */
.skill-bars:has(.skill-gauge) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 0.75rem;
}

.skill-bar-item:has(.skill-gauge) {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.45rem 0.55rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
  user-select: none;
}

.skill-bar-item:has(.skill-gauge):hover {
  border-color: rgba(109, 140, 255, 0.45);
  background: var(--surface-2);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.4), var(--glow-interactive);
  transform: translateY(-2px);
}

.skill-bar-item.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.7);
}

.skill-gauge {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.skill-gauge-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 15px;
  margin-bottom: -3px;
  padding: 0 2px;
}

.skill-gauge-percent {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-primary);
  background: var(--surface-2);
  border: 1px solid rgba(109, 140, 255, 0.25);
  border-radius: var(--radius-xs);
  padding: 0 4px;
  line-height: 1.3;
}

.skill-gauge-stage {
  position: relative;
  width: 86px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-gauge-stage::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109, 140, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.skill-bar-item:has(.skill-gauge):hover .skill-gauge-stage::after {
  opacity: 1;
  background: radial-gradient(ellipse, rgba(109, 140, 255, 0.28) 0%, transparent 70%);
}

.skill-gauge-stage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.skill-gauge-track,
.skill-gauge-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
}

.skill-gauge-track {
  stroke: var(--surface-2);
}

.skill-gauge-fill {
  stroke: var(--accent-primary);
  filter: drop-shadow(0 0 5px rgba(109, 140, 255, 0.55));
  transition: stroke-dashoffset 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.skill-bar-item:has(.skill-gauge):hover .skill-gauge-fill {
  filter: drop-shadow(0 0 7px rgba(109, 140, 255, 0.75));
}

.skill-gauge-icon {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 2;
  color: var(--text-primary);
}

.skill-gauge-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.18s ease;
}

.skill-gauge-icon svg [fill="#181616"],
.skill-gauge-icon svg [fill="#000"],
.skill-gauge-icon svg [fill="#000000"] {
  fill: currentColor;
}

.skill-bar-item:hover .skill-gauge-icon svg {
  transform: scale(1.08);
}

.skill-gauge-name {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 2px;
  letter-spacing: -0.01em;
}

/* ========================================================
   ADMIN CANVAS-NATIVE SKILLS EDITING STYLES
   ======================================================== */
.admin-skill-card-target {
  cursor: pointer;
}

.admin-skill-card-selected {
  outline: 2px solid var(--cyan) !important;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.45) !important;
  border-color: var(--cyan) !important;
  z-index: 20 !important;
}

.admin-skill-card-toolbar {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(3, 12, 22, 0.94);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 3px 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 245, 255, 0.2);
  z-index: 120;
  white-space: nowrap;
  pointer-events: auto;
}

.admin-skill-card-toolbar.flipped-down {
  top: auto;
  bottom: -38px;
}

.admin-skill-btn {
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.admin-skill-btn:hover {
  background: var(--cyan);
  color: #030712;
}

.admin-skill-btn.danger {
  background: rgba(255, 77, 121, 0.15);
  border-color: rgba(255, 77, 121, 0.4);
  color: #ff4d79;
}

.admin-skill-btn.danger:hover {
  background: #ff4d79;
  color: #ffffff;
}

.admin-skill-level-btn {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.5);
  color: var(--cyan);
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-skill-level-btn:hover {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.admin-skill-level-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.admin-skill-slider {
  width: 58px;
  height: 4px;
  accent-color: var(--cyan);
  cursor: pointer;
  vertical-align: middle;
}

.skill-category:has(.admin-skill-card-selected) {
  z-index: 60;
  position: relative;
}

.skill-category:has(.admin-skill-icon-popover),
.skill-category:has(.admin-skill-level-popover) {
  z-index: 1000 !important;
  position: relative;
}

.admin-skill-icon-popover {
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  width: 224px;
  max-width: min(224px, calc(100vw - 20px));
  max-height: min(280px, calc(100vh - 60px));
  background: rgba(3, 12, 22, 0.97);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 16px rgba(0, 245, 255, 0.35);
  padding: 8px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.admin-skill-icon-popover.popover-above {
  top: auto;
  bottom: calc(100% + 42px);
}

.admin-skill-icon-popover.popover-below {
  top: 105%;
  bottom: auto;
}

.admin-skill-icon-popover.align-right {
  left: auto;
  right: 0;
  transform: none;
}

.admin-skill-icon-popover.align-left {
  left: 0;
  right: auto;
  transform: none;
}

.admin-skill-icon-popover.align-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.admin-skill-icon-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 4px 6px;
  outline: none;
}

.admin-skill-icon-search:focus {
  border-color: var(--cyan);
}

.admin-skill-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow-y: auto;
  max-height: min(240px, calc(100vh - 120px));
  padding-right: 2px;
}

.admin-skill-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  border-radius: 4px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  background: rgba(0, 245, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  color: #f0f6fc;
}

.admin-skill-icon-item:hover,
.admin-skill-icon-item.selected {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.2);
  color: var(--cyan);
}

.admin-skill-icon-item svg {
  width: 18px;
  height: 18px;
  display: block;
}

.admin-skill-icon-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #c0e0f0;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44px;
}

/* Anchored Level / Percentage Popover */
.admin-skill-level-popover {
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  max-width: min(240px, calc(100vw - 20px));
  background: rgba(3, 12, 22, 0.98);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.88), 0 0 16px rgba(0, 245, 255, 0.35);
  padding: 10px 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  user-select: none;
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.admin-skill-level-popover.popover-above {
  top: auto;
  bottom: calc(100% + 42px);
}

.admin-skill-level-popover.popover-below {
  top: 105%;
  bottom: auto;
}

.admin-skill-level-popover.align-right {
  left: auto;
  right: 0;
  transform: none;
}

.admin-skill-level-popover.align-left {
  left: 0;
  right: auto;
  transform: none;
}

.admin-skill-level-popover.align-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.admin-skill-level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  padding-bottom: 5px;
}

.admin-skill-level-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text2, #94a3b8);
  text-transform: uppercase;
}

.admin-skill-level-display {
  font-family: var(--font-orb, var(--font-mono, monospace));
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
  line-height: 1;
}

.admin-skill-level-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.admin-skill-level-limit {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--text2, #94a3b8);
  min-width: 20px;
}
.admin-skill-level-limit:last-child {
  text-align: right;
}

.admin-skill-level-range {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 245, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  accent-color: var(--cyan);
}

.admin-skill-level-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.9), 0 2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid #ffffff;
  transition: transform 0.1s ease;
}

.admin-skill-level-range::-webkit-slider-thumb:hover,
.admin-skill-level-range::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.admin-skill-level-steppers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.admin-skill-step-btn {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  text-align: center;
  border-radius: 4px;
}

.admin-skill-level-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 245, 255, 0.15);
}

.admin-skill-level-input-box {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 4px;
  padding: 2px 5px;
}

.admin-skill-level-input-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.35);
}

.admin-skill-level-input {
  width: 38px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  -moz-appearance: textfield;
}

.admin-skill-level-input::-webkit-outer-spin-button,
.admin-skill-level-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-skill-level-unit {
  color: var(--cyan);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-skill-level-presets {
  display: flex;
  gap: 4px;
}

.admin-skill-preset-btn {
  font-size: 0.62rem !important;
  padding: 2px 4px !important;
}

.admin-skill-add-card {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.02);
  color: var(--cyan);
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-skill-add-card:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
  transform: translateY(-2px);
}

.admin-skill-add-card span:first-child {
  font-size: 1.4rem;
  line-height: 1;
}

.skill-category.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.6);
}

.admin-skill-cat-controls {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.admin-skill-cat-title-editable {
  outline: none;
  border-bottom: 1px dashed rgba(0, 245, 255, 0.35);
  padding: 0 4px;
  cursor: text;
  transition: all 0.15s ease;
}

.admin-skill-cat-title-editable:focus {
  border-bottom: 1px solid var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  border-radius: 3px;
}

.admin-skill-cat-btn {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.25);
  color: var(--cyan);
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-skill-cat-btn:hover {
  background: var(--cyan);
  color: #030712;
}

.admin-skill-cat-btn.danger {
  background: rgba(255, 77, 121, 0.12);
  border-color: rgba(255, 77, 121, 0.35);
  color: #ff4d79;
}

.admin-skill-cat-btn.danger:hover {
  background: #ff4d79;
  color: #fff;
}

.admin-skill-add-category {
  margin-top: 1.2rem;
  padding: 0.6rem 1.2rem;
  border: 1px dashed rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.02);
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-skill-add-category:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.15);
}

/* ========================================================
   ADMIN SKILLS REORDERING & MICRO-LABEL STYLES
   ======================================================== */
.admin-skill-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0, 245, 255, 0.45);
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 0 2px;
  border-radius: 3px;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.admin-skill-drag-handle:hover {
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.14);
  transform: scale(1.15);
}

.admin-skill-drag-handle:active {
  cursor: grabbing;
}

body.admin-skill-dragging-active {
  user-select: none !important;
  cursor: grabbing !important;
}

body.admin-skill-dragging-active * {
  cursor: grabbing !important;
}

.skill-bar-item.is-dragging {
  opacity: 0.4 !important;
  outline: 2px dashed var(--cyan) !important;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.45) !important;
  transform: scale(0.96);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none !important;
  z-index: 10 !important;
}

.skill-bar-item.admin-skill-drop-before::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 4px #fff;
  border-radius: 2px;
  z-index: 60;
  pointer-events: none;
  animation: adminDropGlow 0.8s ease-in-out infinite alternate;
}

.skill-bar-item.admin-skill-drop-after::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 4px #fff;
  border-radius: 2px;
  z-index: 60;
  pointer-events: none;
  animation: adminDropGlow 0.8s ease-in-out infinite alternate;
}

@keyframes adminDropGlow {
  from { opacity: 0.7; box-shadow: 0 0 6px var(--cyan); }
  to { opacity: 1; box-shadow: 0 0 14px var(--cyan), 0 0 6px #fff; }
}

/* Category micro-label editable styling */
.cat-icon.admin-skill-cat-label-editable {
  cursor: text;
  border: 1px dashed rgba(0, 245, 255, 0.35);
  border-radius: 4px;
  padding: 1px 4px;
  transition: all 0.15s ease;
  user-select: text;
}

.cat-icon.admin-skill-cat-label-editable:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.35);
  background: rgba(0, 245, 255, 0.08);
}

.cat-icon.admin-skill-cat-label-editable:focus {
  outline: none;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.14);
}

.tech-cards-wrapper {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.tech-card {
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.tech-card:hover {
  border-color: var(--card-border-hover);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--accent-primary);
}

.tech-card:hover .tech-icon-wrap {
  transform: scale(1.08);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

.tech-card span {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== ROADMAP TIMELINE — EDITORIAL & CHRONOLOGICAL ===== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1.5rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card-border);
  transform: translateX(-50%);
  overflow: visible;
}

.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(to bottom, var(--accent-emerald), var(--accent-primary) 70%, var(--accent-secondary));
  box-shadow: 0 0 10px rgba(109, 140, 255, 0.45), 0 0 4px rgba(16, 185, 129, 0.35);
  transform-origin: top;
  transition: height 0.35s ease;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  gap: 1.25rem;
}

.timeline-item.left .timeline-card { grid-column: 1; grid-row: 1; }
.timeline-item.left .timeline-dot { grid-column: 2; grid-row: 1; }
.timeline-item.right .timeline-card { grid-column: 3; grid-row: 1; }
.timeline-item.right .timeline-dot { grid-column: 2; grid-row: 1; }

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 1;
  justify-self: center;
  background: var(--surface-1);
  border: 2px solid var(--card-border);
  color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-dot.done {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: var(--surface-1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.timeline-dot.active-dot {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--surface-1);
  box-shadow: 0 0 0 4px var(--accent-subtle), 0 0 14px rgba(109, 140, 255, 0.45);
}

.timeline-dot.future-dot {
  border-color: var(--card-border);
  color: var(--text-tertiary);
  opacity: 0.6;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
}

.timeline-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--glow-subtle);
}

.timeline-card.done-card {
  border-left: 3px solid var(--accent-emerald);
}

.timeline-card.active-card {
  border-left: 3px solid var(--accent-primary);
}

.timeline-card.future-card {
  opacity: 0.85;
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.tl-badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-active {
  background: var(--accent-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
}

.badge-future {
  background: var(--surface-2);
  color: var(--text-tertiary);
  border: 1px solid var(--card-border);
}

.timeline-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.tl-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tl-tags span {
  padding: 0.2rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tl-tags span:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.tl-tags span[contenteditable="true"]:focus {
  outline: 1px solid var(--accent-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }
  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card {
    grid-column: 2;
    grid-row: 1;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ===== PROJECTS SECTION — HIGH-END PROJECT ARCHIVE ===== */
.filter-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.15rem;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

/* ==========================================================================
   PUBLIC FRONTEND // PROJECT ARCHIVE CARDS
   ========================================================================== */

.projects-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.projects-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.projects-repo-subtag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.projects-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.9rem;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.telemetry-val-green {
  color: var(--accent-emerald);
  font-weight: 600;
}

.telemetry-val-cyan {
  color: var(--accent-primary);
  font-weight: 600;
}

.telemetry-chip-sep {
  color: var(--card-border);
  user-select: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* High-End Editorial Project Card */
.public-project-card {
  position: relative;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.public-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.7;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.public-project-card:hover {
  border-color: rgba(109, 140, 255, 0.45);
  box-shadow: var(--shadow-lg), var(--glow-interactive);
  transform: translateY(-4px) !important;
}

.public-project-card:hover::before {
  width: 80px;
  opacity: 1;
}

/* Card Topbar */
.public-proj-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.public-proj-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.public-proj-tag .tag-pulse {
  color: var(--accent-emerald);
  font-size: 0.68rem;
  margin-right: 0.4rem;
}

.public-proj-tag .tag-hash {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.public-proj-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.public-proj-status-badge.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.public-proj-status-badge.archived {
  color: var(--text-tertiary);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
}

/* Card Divider: Elegant subtle hairline */
.public-proj-divider {
  height: 1px;
  background: var(--card-border);
  margin: 1rem 0 1.25rem;
  border: none;
  font-size: 0;
  color: transparent;
  line-height: 0;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* Card Body */
.public-proj-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.public-proj-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.public-proj-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.public-proj-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.public-proj-title .cyber-prompt {
  display: none;
}

.public-proj-title-text {
  color: var(--text-primary);
  word-break: break-word;
}

.public-proj-cat-badge {
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
}

.public-proj-desc-box {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0.15rem;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
}

.public-proj-desc-box .cyber-buffer-bracket {
  display: none;
}

.public-proj-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  font-family: var(--font-sans);
  word-break: break-word;
}

.public-proj-stack {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.public-proj-stack .cyber-prompt {
  display: none;
}

.public-proj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.public-tech-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.public-tech-pill:hover {
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

/* Image Preview Focal Point */
.public-proj-preview-section {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.public-proj-preview-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.public-project-card:hover .public-proj-preview-wrap {
  border-color: var(--card-border-hover);
}

.public-proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.public-project-card:hover .public-proj-img {
  transform: scale(1.04);
}

.public-proj-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.public-proj-img-badge {
  display: none;
}

.public-proj-preview-wrap.fallback-mode {
  height: 130px;
}

.public-proj-no-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--surface-2);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.no-img-bracket {
  color: var(--accent-primary);
  font-weight: bold;
}

/* Card Footer & Action Commands */
.public-proj-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.public-proj-cmd-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.public-proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.public-proj-no-cmds {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 0.3rem 0;
  display: inline-block;
}

.public-proj-cmd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
}

.public-proj-cmd-btn.demo-btn {
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.public-proj-cmd-btn.demo-btn:hover {
  color: #ffffff;
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.public-proj-cmd-btn.source-btn {
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  background: var(--surface-2);
}

.public-proj-cmd-btn.source-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

.public-proj-cmd-btn.view-btn,
.public-proj-cmd-btn.primary-action {
  color: var(--accent-primary);
  border: 1px solid var(--accent-border);
  background: var(--accent-subtle);
}

.public-proj-cmd-btn.view-btn:hover,
.public-proj-cmd-btn.primary-action:hover {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Public Empty State */
.public-project-empty {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 960px) {
  .projects-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .projects-section-header {
    gap: 0.75rem;
  }

  .projects-repo-subtag {
    font-size: 0.72rem;
  }

  .projects-telemetry-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .telemetry-chip-sep {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .public-project-card {
    padding: 1.35rem;
  }

  .public-proj-preview-wrap {
    height: 180px;
  }

  .public-proj-actions {
    flex-direction: column;
    width: 100%;
  }

  .public-proj-cmd-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Empty / Incoming State Container */
.github-empty-state {
  grid-column: 1 / -1;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.empty-radar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.empty-radar-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-primary);
  animation: radarPulse 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.empty-icon-box {
  width: 52px;
  height: 52px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.empty-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald);
}

.empty-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* Loading Skeleton */
.skeleton-card {
  height: 260px;
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  animation: skeletonGlow 1.8s ease-in-out infinite;
}

@keyframes skeletonGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.github-cta {
  text-align: center;
  margin-top: 1rem;
}

.projects-grid:has(.github-empty-state) + .github-cta {
  display: none;
}

/* ===== BLOG SECTION — EDITORIAL PUBLICATIONS ===== */
.section.blog {
  position: relative;
}

.section.blog .container {
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
}

.blog-terminal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font: 0.78rem/1.5 var(--font-mono);
  letter-spacing: 0.03em;
}

.blog-terminal-header .terminal-label {
  color: var(--accent-primary);
  font-weight: 600;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.blog-filters .filter-btn {
  border: 1px solid var(--card-border);
  background: var(--surface-1);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  color: var(--accent-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
  align-items: stretch;
}

/* Individual Editorial Blog Card */
.blog-card { 
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.blog-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Cover Image Container */
.blog-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border-bottom: 1px solid var(--card-border);
}

.blog-cover-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-cover-image {
  transform: scale(1.04);
}

.blog-cover-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.blog-cover-placeholder svg {
  opacity: 0.6;
  color: var(--accent-primary);
}

/* Card Header with Badges and Metadata */
.blog-card-header {
  padding: 1.25rem 1.4rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-category-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
}

.blog-cat-devlog {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-primary);
}

.blog-cat-engineering {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

.blog-cat-learning {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: #a78bfa;
}

.blog-cat-general {
  background: var(--surface-2);
  border-color: var(--card-border);
  color: var(--text-secondary);
}

.blog-meta-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.blog-date {
  color: var(--text-tertiary);
}

.blog-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-tertiary);
}

/* Card Body & Typography */
.blog-card-body {
  padding: 0.5rem 1.4rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-body h3 {
  color: var(--accent-primary);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
  font-family: var(--font-sans);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  padding: 0.15rem 0.5rem;
}

/* Card Footer */
.blog-card-footer {
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  background: var(--surface-1);
  margin-top: auto;
}

.blog-read-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.blog-read-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
}

.blog-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--accent-primary);
}

/* Skeleton Loader */
@keyframes editorialSkeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.blog-card.blog-skeleton {
  pointer-events: none;
  user-select: none;
  border-color: var(--card-border);
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--surface-1) 0%, var(--surface-2) 50%, var(--surface-1) 100%);
  background-size: 200% 100%;
  animation: editorialSkeletonShimmer 1.8s infinite ease-in-out;
  border-radius: var(--radius-xs);
}

.skeleton-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--card-border);
}

.skeleton-badge {
  width: 75px;
  height: 22px;
  border-radius: var(--radius-full);
}

.skeleton-date {
  width: 85px;
  height: 14px;
}

.skeleton-title {
  width: 80%;
  height: 22px;
  margin-bottom: 0.8rem;
}

.skeleton-line {
  width: 100%;
  height: 14px;
  margin-bottom: 0.5rem;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-btn {
  width: 100px;
  height: 30px;
  border-radius: var(--radius-sm);
}

/* Blog Post Expand Modal (Max-Width 850px, Center Balanced, High Contrast) */
.blog-post-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.blog-post-modal.open {
  display: flex;
}

.blog-post-inner {
  background: var(--bg2);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 850px;
  width: min(94vw, 850px);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.15),
              0 0 80px rgba(191, 90, 242, 0.15),
              0 35px 90px rgba(0, 0, 0, 0.85);
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.45) rgba(10, 15, 30, 0.8);
}

/* Custom Cyberpunk Scrollbar for Reading Modal */
.blog-post-inner::-webkit-scrollbar {
  width: 7px;
}

.blog-post-inner::-webkit-scrollbar-track {
  background: rgba(10, 15, 30, 0.8);
  border-radius: 8px;
}

.blog-post-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.35);
  border: 1px solid rgba(0, 245, 255, 0.5);
  border-radius: 8px;
  transition: background 0.25s ease;
}

.blog-post-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.7);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.6);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Cover Wrapper (Full Width, Zero Side Gap) */
.blog-modal-cover-wrap {
  width: 100%;
  margin: 0 0 1.5rem 0;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background: rgba(3, 7, 18, 0.9);
}

.blog-modal-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px 8px 0 0;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
  color: var(--text2);
}

.blog-post-meta .blog-meta-divider {
  opacity: 0.3;
  color: var(--cyan);
}

.blog-post-inner h2 {
  font-family: var(--font-orb);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.6px;
  line-height: 1.32;
  word-break: break-word;
  text-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.blog-post-content {
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  color: #e2e8f0;
  line-height: 1.75;
  word-break: break-word;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  color: #00f5ff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.blog-post-content h1:first-child,
.blog-post-content h2:first-child,
.blog-post-content h3:first-child {
  margin-top: 0;
}

.blog-post-content h1 { font-size: 1.65rem; border-bottom: 1px solid rgba(0, 245, 255, 0.2); padding-bottom: 0.5rem; }
.blog-post-content h2 { font-size: 1.4rem; border-bottom: 1px dashed rgba(0, 245, 255, 0.15); padding-bottom: 0.35rem; }
.blog-post-content h3 { font-size: 1.2rem; }
.blog-post-content h4 { font-size: 1.05rem; }
.blog-post-content h5 { font-size: 0.95rem; }
.blog-post-content h6 { font-size: 0.88rem; color: #8aa8b8; }

.blog-post-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.blog-post-content strong {
  color: #ffffff;
  font-weight: 700;
}

.blog-post-content em {
  color: #d0e4f0;
  font-style: italic;
}

.blog-post-content del {
  color: #64748b;
  text-decoration: line-through;
}

.blog-post-content a {
  color: #00f5ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.blog-post-content a:hover {
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.blog-post-content blockquote {
  border-left: 3px solid #00f5ff;
  background: rgba(0, 245, 255, 0.04);
  padding: 0.85rem 1.25rem;
  margin: 1.2rem 0;
  border-radius: 0 6px 6px 0;
  color: #94a3b8;
  font-style: italic;
}

.blog-post-content blockquote p {
  margin-bottom: 0.5rem;
}
.blog-post-content blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1rem 0 1.2rem 1.4rem;
  padding-left: 0.5rem;
}

.blog-post-content ul { list-style-type: disc; }
.blog-post-content ol { list-style-type: decimal; }

.blog-post-content li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}

.blog-post-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.35), transparent);
  margin: 2rem 0;
}

.blog-post-content code {
  background: rgba(0, 245, 255, 0.1);
  color: #00f5ff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.88em;
  border: 1px solid rgba(0, 245, 255, 0.15);
}

.blog-post-content pre {
  background: #060c18;
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.2rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.blog-post-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #39ff14;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  margin: 1.2rem 0;
  display: block;
}

.blog-post-content p:last-child {
  margin-bottom: 0;
}

/* Styled Cyberpunk Neon Box Close Button */
.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 4px;
  background: rgba(10, 15, 30, 0.7);
  color: var(--text);
  font-size: 1.15rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.modal-close-btn:hover {
  border-color: #ff2d78;
  color: #ff2d78;
  box-shadow: 0 0 12px rgba(255, 45, 120, 0.5);
  background: rgba(255, 45, 120, 0.15);
  transform: none;
}

/* ===== ADMIN PANEL ===== */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(24px);
}

.admin-modal.open {
  display: flex;
}

.admin-panel {
  background: #080d18;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 18px;
  padding: 0;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0, 245, 255, 0.15), 0 40px 100px rgba(0,0,0,0.8);
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-header {
  padding: 1.2rem 1.8rem;
  background: #0d1526;
  border-bottom: 1px solid rgba(0, 245, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h2 {
  font-family: var(--font-orb);
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.admin-body {
  padding: 1.8rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.admin-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.admin-login-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.admin-login h3 {
  font-family: var(--font-orb);
  font-size: 1.1rem;
  color: var(--cyan);
  letter-spacing: 2px;
}

.admin-input {
  width: 100%;
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.admin-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
  background: rgba(0, 245, 255, 0.07);
}

.admin-input::placeholder {
  color: var(--text2);
  opacity: 0.5;
}

textarea.admin-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.admin-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  opacity: 0.8;
  letter-spacing: 1px;
  margin-bottom: -0.6rem;
}

.admin-select {
  width: 100%;
  background: rgba(0, 245, 255, 0.04);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
}

.admin-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.admin-select option {
  background: #0d1526;
  color: var(--text);
}

.admin-btn {
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.admin-btn-primary {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

.admin-btn-primary:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.admin-btn-danger {
  background: transparent;
  border: 1px solid rgba(255, 45, 120, 0.5);
  color: var(--pink);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
}

.admin-btn-danger:hover {
  background: rgba(255, 45, 120, 0.15);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255, 45, 120, 0.3);
}

.admin-btn-edit {
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--cyan);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
}

.admin-btn-edit:hover {
  background: rgba(0, 245, 255, 0.1);
}

.admin-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-post-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.admin-post-item:hover {
  border-color: rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.06);
}

.admin-post-item-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
}

.admin-post-item-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text2);
}

.admin-post-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-section-title {
  font-family: var(--font-orb);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 2px;
  opacity: 0.8;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.admin-error {
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

.admin-success {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

.admin-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-tab-btns {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.admin-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  letter-spacing: 0.5px;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.1);
}

.admin-tab-content {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.admin-tab-content.active {
  display: flex;
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-inner {
    padding: 1.5rem;
  }
  .admin-panel {
    max-height: 95vh;
  }
}

/* ===== CONTACT SECTION & INTERACTIVE DEVELOPER CONSOLE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-text h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #e4e8f1;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1.02rem;
  font-family: var(--font-sans);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-link:hover {
  border-color: var(--card-border-hover);
  background: var(--surface-1);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-link:hover .contact-icon-box {
  transform: scale(1.06);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-platform-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-platform {
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-tag-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.contact-handle {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.contact-action-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-link:hover .contact-action-arrow {
  color: var(--accent-primary);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  transform: translate(2px, -2px);
}

/* ========================================================
   PRESTIGIOUS EDITORIAL CONTACT SYSTEM & OPEN CHANNEL
   ======================================================== */

/* 1. Global Section Header in Contact */
#contact .section-header {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

#contact {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(5rem, 8vw, 7.5rem);
  position: relative;
}

/* 2. Grid & Composition */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* 3. Left Editorial Column */
.contact-editorial-column,
.contact-cms-mount {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-editorial-intro {
  display: flex;
  flex-direction: column;
}

.contact-lead-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-lead-title {
  font-family: var(--font-sans);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #e4e8f1;
  margin: 0 0 1.15rem 0;
  max-width: 580px;
}

[data-theme="light"] .contact-lead-title {
  color: #1e293b;
}

.contact-lead-desc {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: #98a2b3;
  margin: 0 0 0.5rem 0;
  max-width: 500px;
}

[data-theme="light"] .contact-lead-desc {
  color: #475569;
}

/* 4. Subtle Composition Signal Route */
.contact-signal-route {
  width: 100%;
  height: 20px;
  margin: 0.25rem 0;
  opacity: 0.25;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.signal-route-svg {
  width: 100%;
  height: 20px;
  display: block;
}

.signal-path-line {
  fill: none;
  stroke: var(--card-border-hover, rgba(255, 255, 255, 0.2));
  stroke-width: 1;
}

.signal-path-line.line-alt {
  stroke: var(--card-border, rgba(255, 255, 255, 0.12));
}

.signal-endpoint {
  fill: var(--text-tertiary, rgba(255, 255, 255, 0.3));
}

.signal-route-label {
  display: none !important;
}

/* 5. Minimal Digital Identity Cards */
.contact-identity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .contact-identity-cards {
    grid-template-columns: 1fr;
  }
}

.digital-identity-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  background: var(--card-bg, rgba(15, 23, 42, 0.5));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 175px;
}

.digital-identity-card.card-asymmetric-offset {
  transform: none;
}

.digital-identity-card:hover,
.digital-identity-card.card-asymmetric-offset:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover, rgba(255, 255, 255, 0.18));
  background: var(--surface-1, rgba(255, 255, 255, 0.04));
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
}

.digital-identity-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.card-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-index-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #94a3b8);
}

.card-brand-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-primary, #6366f1);
  opacity: 0.9;
}

.card-arrow-indicator {
  font-size: 0.95rem;
  color: var(--text-tertiary, #64748b);
  transition: transform 0.2s ease, color 0.2s ease;
}

.digital-identity-card:hover .card-arrow-indicator {
  color: var(--text-primary, #ffffff);
  transform: translate(2px, -2px);
}

/* Micro-Visual: Subtle Minimal Divider/Glyph */
.contact-card-micro-visual {
  width: 100%;
  margin: 0.4rem 0 0.75rem 0;
  display: flex;
  align-items: center;
}

.contact-card-micro-visual .micro-effect-none,
.contact-card-micro-visual .micro-sig-line {
  width: 100%;
  height: 1px;
  background: var(--card-border, rgba(255, 255, 255, 0.08));
  display: block;
}

.contact-card-micro-visual svg {
  width: 100%;
  height: 16px;
  display: block;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.digital-identity-card:hover .contact-card-micro-visual svg {
  opacity: 0.75;
}

.contact-card-telemetry {
  display: none !important;
}

.card-content-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.card-platform-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  margin: 0;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-tertiary, #64748b);
}

.card-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary, #38bdf8);
  margin-top: 0.2rem;
}

.card-cta-row {
  display: flex;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
}

.card-cta-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #94a3b8);
  transition: color 0.2s ease;
}

.digital-identity-card:hover .card-cta-label {
  color: var(--text-primary, #ffffff);
}

/* --- Admin Visual Canvas Editing for Contact --- */
body.admin-preview-active [data-contact-editable="true"] {
  outline: 1px dashed var(--accent-border);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
  transition: outline-color var(--transition-fast), background var(--transition-fast);
  cursor: text;
}

body.admin-preview-active [data-contact-editable="true"]:hover,
body.admin-preview-active [data-contact-editable="true"]:focus {
  outline: 1px solid var(--accent-primary);
  background: var(--accent-subtle);
}

body.admin-preview-active .digital-identity-card {
  outline: 1px dashed transparent;
  outline-offset: 4px;
  position: relative;
  cursor: pointer;
}

body.admin-preview-active .digital-identity-card:hover,
body.admin-preview-active .digital-identity-card.admin-card-selected {
  outline: 1.5px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.16);
}

body.admin-preview-active .digital-identity-card {
  position: relative;
  padding-left: 2.75rem;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle Left-Side Drag Handle */
.admin-contact-drag-handle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.45);
  font-size: 1.05rem;
  cursor: grab;
  user-select: none;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 5;
}

.admin-contact-drag-handle:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.admin-contact-drag-handle:active {
  cursor: grabbing;
}

/* Native and Pointer Drag States */
.digital-identity-card.is-dragging,
.digital-identity-card.admin-card-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  cursor: grabbing;
}

.digital-identity-card.drag-over-before {
  border-left: 3px solid #6366f1 !important;
  box-shadow: -4px 0 14px rgba(99, 102, 241, 0.35);
}

.digital-identity-card.drag-over-after {
  border-right: 3px solid #6366f1 !important;
  box-shadow: 4px 0 14px rgba(99, 102, 241, 0.35);
}

/* Top-Right Context Menu Trigger Button (⋯) */
.admin-card-menu-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 22, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.admin-card-menu-trigger:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Compact Contextual Dropdown Menu */
.admin-contact-card-controls.admin-card-context-menu {
  position: absolute;
  top: 38px;
  right: 10px;
  bottom: auto;
  width: 165px;
  display: none !important;
  flex-direction: column;
  gap: 2px;
  background: rgba(14, 22, 40, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 120;
  user-select: none;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-contact-card-controls.admin-card-context-menu.open-upward {
  top: auto;
  bottom: 38px;
  transform: translateY(4px) scale(0.98);
}

.admin-contact-card-controls.admin-card-context-menu.menu-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.admin-contact-card-controls button.admin-menu-item {
  width: 100%;
  text-align: left;
  padding: 6px 9px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.admin-contact-card-controls button.admin-menu-item svg {
  display: block;
  flex-shrink: 0;
  opacity: 0.8;
}

.admin-contact-card-controls button.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.admin-contact-card-controls button.admin-menu-item:hover svg {
  opacity: 1;
}

.admin-contact-card-controls button.admin-menu-item.danger {
  color: #f87171;
}

.admin-contact-card-controls button.admin-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.admin-contact-add {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  color: #94a3b8;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
}

.admin-contact-add svg {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
}

.admin-contact-add:hover {
  border-color: rgba(99, 102, 241, 0.55);
  color: #e2e8f0;
  background: rgba(99, 102, 241, 0.08);
}

.admin-contact-add:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 1px;
}

.admin-contact-card-controls button.admin-menu-item:disabled,
.admin-contact-card-controls button.admin-menu-item.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Clean Modern Effect Settings Panel */
.admin-contact-effect-panel,
.admin-contact-effect-picker {
  position: absolute;
  top: 42px;
  right: 10px;
  width: 310px;
  max-width: calc(100% - 20px);
  padding: 1.1rem 1.25rem;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: #f1f5f9;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  animation: effectPanelFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-contact-effect-panel.open-upward,
.admin-contact-effect-picker.open-upward {
  top: auto;
  bottom: 42px;
}

@keyframes effectPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-contact-effect-panel .effect-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-contact-effect-panel .effect-panel-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.15rem 0;
  letter-spacing: -0.01em;
}

.admin-contact-effect-panel .effect-panel-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.admin-contact-effect-panel .effect-panel-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.admin-contact-effect-panel .effect-panel-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.admin-contact-effect-panel .effect-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-contact-effect-panel .effect-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-contact-effect-panel .control-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.admin-contact-effect-panel select.effect-select,
.admin-contact-effect-picker select {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  outline: none;
  min-width: 140px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-contact-effect-panel select.effect-select:focus,
.admin-contact-effect-picker select:focus {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(30, 41, 59, 1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Modern Clean Toggle Switch */
.admin-toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.admin-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-toggle-slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #f8fafc;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
  background-color: #6366f1;
  border-color: #4f46e5;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.admin-toggle-switch input:checked + .admin-toggle-slider::before {
  transform: translateX(18px);
}

/* Micro-Visual Accents */
.contact-card-micro-visual.accent-cyan svg,
.contact-card-micro-visual.accent-cyan .topo-contour {
  color: #06b6d4;
  stroke: #06b6d4;
}
.contact-card-micro-visual.accent-emerald svg,
.contact-card-micro-visual.accent-emerald .topo-contour {
  color: #10b981;
  stroke: #10b981;
}
.contact-card-micro-visual.accent-amber svg,
.contact-card-micro-visual.accent-amber .topo-contour {
  color: #f59e0b;
  stroke: #f59e0b;
}
.contact-card-micro-visual.accent-purple svg,
.contact-card-micro-visual.accent-purple .topo-contour {
  color: #a855f7;
  stroke: #a855f7;
}

/* 6. Communication Console (The Hero Interaction) */
.terminal-box {
  background: var(--card-bg, rgba(13, 17, 23, 0.65));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 520px;
  min-height: 480px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-box:focus-within,
.terminal-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px -15px rgba(0, 0, 0, 0.55);
}

.terminal-box.terminal-modal-active,
.terminal-box:has(#terminalContactModal:not([hidden])) {
  height: 520px;
  min-height: 480px;
}

.terminal-header {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  padding: 0.85rem 1.25rem;
  background: var(--surface-1, rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-header .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary, #94a3b8);
  margin-left: 0.35rem;
}

.terminal-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.terminal-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs, 4px);
}

.terminal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.terminal-history {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scroll-behavior: auto;
}

.terminal-history::-webkit-scrollbar {
  width: 4px;
}
.terminal-history::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-history::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.terminal-history::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}
[data-theme="light"] .terminal-history::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

.term-new-output-badge {
  position: absolute;
  right: 1.5rem;
  bottom: 4.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xs, 4px);
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.term-new-output-badge:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  transform: translateY(-1px);
}
.term-new-output-badge[hidden] {
  display: none !important;
}

.term-msg-mode-box {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm, 6px);
  padding: 0.45rem 0.75rem;
  margin: 0.25rem 0;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.t-prompt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary, #38bdf8);
  white-space: nowrap;
  user-select: none;
}

.t-cmd-executed {
  color: var(--accent-primary);
  font-weight: 600;
}

.console-channel-statusbar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
}

.terminal-active-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 10px);
  padding: 0.45rem 0.55rem 0.45rem 0.85rem;
  transition: all 0.2s ease;
  width: 100%;
}

.terminal-active-line:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.terminal-input {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-primary, #f8fafc);
  caret-color: var(--accent-primary, #38bdf8);
}

.terminal-input::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.terminal-input:focus,
.terminal-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.console-quick-send-btn {
  background: rgba(30, 41, 70, 0.75);
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid rgba(109, 140, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.console-quick-send-btn:hover {
  background: rgba(38, 52, 88, 0.9);
  border-color: rgba(109, 140, 255, 0.6);
  color: #e0e7ff;
  transform: translateY(-1px);
}

.console-quick-send-btn:active {
  transform: translateY(0);
  background: rgba(26, 35, 60, 0.95);
  border-color: rgba(109, 140, 255, 0.5);
}

.console-quick-send-btn:focus-visible {
  outline: 2px solid rgba(109, 140, 255, 0.7);
  outline-offset: 2px;
}

.console-status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary, #64748b);
  letter-spacing: 0.03em;
  padding-left: 0.2rem;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

@media (max-width: 600px) {
  .terminal-header {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    padding: 0.75rem 1rem;
  }
  .terminal-actions {
    gap: 0.45rem;
  }
  .console-quick-send-btn {
    font-size: 0.66rem;
    padding: 0.2rem 0.55rem;
  }
  .console-channel-statusbar {
    padding: 0.65rem 0.85rem;
  }
  .terminal-active-line {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
  }
  .t-prompt {
    width: 100%;
    font-size: 0.78rem;
  }
  .terminal-input {
    flex: 1;
    min-width: 100%;
    font-size: 0.82rem;
  }
}

/* Light Theme Overrides for Contact */
[data-theme="light"] .terminal-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .terminal-box:focus-within,
[data-theme="light"] .terminal-box:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .terminal-header {
  background: #f8fafc;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .terminal-header .dot {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .terminal-active-line {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-active-line:focus-within {
  background: #ffffff;
  border-color: var(--accent-primary, #4f63c8);
  box-shadow: 0 0 0 3px rgba(79, 99, 200, 0.1);
}

[data-theme="light"] .terminal-input {
  color: #0f172a;
}

[data-theme="light"] .terminal-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .console-channel-statusbar {
  background: #f8fafc;
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .console-quick-send-btn,
body.light-theme .console-quick-send-btn {
  background: rgba(238, 242, 255, 0.85);
  color: var(--accent-primary, #4f63c8);
  border: 1px solid rgba(79, 99, 200, 0.3);
  box-shadow: none;
}

[data-theme="light"] .console-quick-send-btn:hover,
body.light-theme .console-quick-send-btn:hover {
  background: rgba(224, 231, 255, 0.95);
  border-color: rgba(79, 99, 200, 0.55);
  color: var(--accent-primary-hover, #3d4fa8);
  box-shadow: none;
  transform: translateY(-1px);
}

[data-theme="light"] .console-quick-send-btn:active,
body.light-theme .console-quick-send-btn:active {
  transform: translateY(0);
  background: rgba(215, 224, 255, 1);
  border-color: rgba(79, 99, 200, 0.45);
}

[data-theme="light"] .console-quick-send-btn:focus-visible,
body.light-theme .console-quick-send-btn:focus-visible {
  outline: 2px solid rgba(79, 99, 200, 0.7);
  outline-offset: 2px;
}

[data-theme="light"] .digital-identity-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .digital-identity-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: #ffffff;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.term-line { color: var(--text-secondary); }
.term-cyan { color: var(--accent-primary); }
.term-green { color: var(--accent-emerald); }
.term-err { color: #ef4444; }
.term-yellow { color: #f59e0b; }

/* ========================================================
   TERMINAL CONTACT MODAL FORM (TUI SYSTEM)
   ======================================================== */
.terminal-modal-overlay {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg, #0b1020);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  overflow: hidden;
  overflow-y: hidden;
  animation: termModalSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-modal-overlay[hidden] {
  display: none !important;
}

@keyframes termModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-modal-window {
  width: 100%;
  max-width: 520px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

.term-modal-bar {
  color: var(--card-border);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  margin: 0.15rem 0;
  opacity: 0.5;
  font-size: 0.72rem;
  line-height: 1.1;
}

.term-modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0;
  font-size: 0.78rem;
}

.term-modal-title {
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.term-modal-status {
  color: var(--accent-emerald);
  font-weight: 600;
}

.terminal-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.term-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.term-field-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
  line-height: 1.2;
}

.term-form-group:focus-within .term-field-label {
  color: var(--accent-primary);
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xs);
  padding: 0.3rem 0.6rem;
  cursor: text;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.term-input-row:focus-within {
  border-color: var(--accent-primary);
  background: var(--surface-1);
}

.term-textarea-row {
  align-items: flex-start;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.term-prompt-char {
  color: var(--accent-emerald);
  font-weight: 700;
  user-select: none;
  font-size: 0.88rem;
  line-height: 1.2;
  pointer-events: none;
}

.term-tui-input,
#termContactName,
#termContactEmail,
#termContactMessage {
  flex: 1;
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  caret-color: var(--accent-primary);
  width: 100%;
}

.term-tui-input:focus,
.term-tui-input:focus-visible,
#termContactName:focus,
#termContactName:focus-visible,
#termContactEmail:focus,
#termContactEmail:focus-visible,
#termContactMessage:focus,
#termContactMessage:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary);
}

.term-tui-input::placeholder {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.term-tui-textarea,
#termContactMessage {
  resize: none !important;
  min-height: 52px;
  height: 54px;
  max-height: 70px;
  line-height: 1.38;
}

.term-modal-error {
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.65rem;
  margin: 0.15rem 0;
  line-height: 1.35;
  white-space: pre-line;
}

.term-modal-error[hidden] {
  display: none !important;
}

.term-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0.35rem 0 0.1rem 0;
}

.term-tui-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.36rem 0.95rem;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.term-btn-send {
  background: rgba(30, 41, 70, 0.85);
  color: #e0e7ff;
  border: 1px solid rgba(109, 140, 255, 0.45);
}

.term-btn-send:hover {
  background: rgba(38, 52, 88, 0.95);
  border-color: rgba(109, 140, 255, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.term-btn-send:active {
  transform: translateY(0);
  background: rgba(26, 35, 60, 1);
}

.term-btn-send:focus-visible {
  outline: 2px solid rgba(109, 140, 255, 0.7);
  outline-offset: 2px;
}

.term-btn-cancel {
  background: rgba(18, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #98a2b3);
}

.term-btn-cancel:hover {
  background: rgba(24, 32, 51, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary, #f4f6f8);
  transform: translateY(-1px);
}

.term-btn-cancel:active {
  transform: translateY(0);
}

.term-btn-cancel:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.6);
  outline-offset: 2px;
}

.term-tui-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Light Theme Overrides for Terminal Modal Form */
[data-theme="light"] .terminal-modal-overlay,
body.light-theme .terminal-modal-overlay {
  background: rgba(255, 255, 255, 0.96);
}

[data-theme="light"] .term-btn-send,
body.light-theme .term-btn-send {
  background: rgba(238, 242, 255, 0.95);
  color: var(--accent-primary, #4f63c8);
  border: 1px solid rgba(79, 99, 200, 0.35);
}

[data-theme="light"] .term-btn-send:hover,
body.light-theme .term-btn-send:hover {
  background: rgba(224, 231, 255, 1);
  border-color: rgba(79, 99, 200, 0.6);
  color: var(--accent-primary-hover, #3d4fa8);
}

[data-theme="light"] .term-btn-cancel,
body.light-theme .term-btn-cancel {
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #64748b;
}

[data-theme="light"] .term-btn-cancel:hover,
body.light-theme .term-btn-cancel:hover {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.22);
  color: #1e293b;
}

@media (max-width: 600px) {
  .terminal-box {
    height: 520px;
    min-height: 480px;
  }
  .terminal-box.terminal-modal-active,
  .terminal-box:has(#terminalContactModal:not([hidden])) {
    height: 520px;
    min-height: 480px;
  }
  .terminal-modal-overlay {
    top: 82px;
    padding: 0.75rem 1rem;
    overflow-y: visible;
  }
  .term-tui-textarea,
  #termContactMessage {
    min-height: 48px;
    height: 50px;
  }
  .term-modal-actions {
    gap: 0.5rem;
  }
  .term-tui-btn {
    padding: 0.34rem 0.8rem;
    font-size: 0.72rem;
  }
}

/* ===== FOOTER — MINIMAL & PRESTIGIOUS ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 4.5rem 2rem 3.5rem;
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.footer-logo .bracket {
  color: var(--accent-primary);
}

.footer-copy {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1140px) {
  .navbar {
    padding: 0.85rem clamp(1.2rem, 3vw, 2.5rem);
  }
  .navbar.scrolled {
    padding: 0.55rem clamp(1.2rem, 3vw, 2.5rem);
  }
  .nav-links {
    gap: clamp(0.65rem, 1.2vw, 1.25rem);
  }
  .nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 6rem 2rem 3rem;
  }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual, .hero-terminal { width: 100%; max-width: 520px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-info-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr 50px 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .navbar {
    padding: 0.9rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: 1.85rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    display: none;
  }

  .timeline-item.right .timeline-card {
    grid-column: 1;
  }

  .timeline-line {
    display: none;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: clamp(0.5rem, 3vw, 1rem);
  }
  .stat-num {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.68rem;
  }
  .stat-divider {
    font-size: 1.2rem;
  }

  .hero-code-block {
    text-align: left;
    font-size: 0.78rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .title-line {
    width: 100%;
  }
}

/* Final visual pass: consistent rhythm and restrained terminal emphasis. */
.section { padding-block: clamp(5rem, 8vw, 7.5rem); }
.section-header { max-width: 1200px; margin-inline: auto; }
.section-title { line-height: 1.12; }
.project-card, .blog-card, .info-item, .tech-card, .contact-link {
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}
.project-card:hover, .blog-card:hover, .info-item:hover { transform: translateY(-4px); }
.project-card:focus-within, .blog-card:focus-within, .contact-link:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}
.tech-card:hover { transform: translateY(-3px); }
button, a, input, textarea, select { transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
@media (max-width: 768px) {
  .container { width: min(100%, calc(100% - 2rem)); }
  .section-header { margin-bottom: 2.25rem; }
  .project-card, .blog-card { min-width: 0; }
  .blog-card-body, .project-card { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Portfolio design system pass ------------------------------------------------
   Keeps the existing cyber identity while giving every section a shared
   rhythm, readable measure and restrained interaction language. */
:root {
  --content-max: 1160px;
  --space-section: clamp(4.5rem, 8vw, 7.5rem);
  --radius-card: 10px;
  --line-soft: rgba(0,245,255,.16);
  --glow-soft: 0 10px 34px rgba(0,245,255,.08);
}
.container { width: min(100%, var(--content-max)); }
.section { padding-block: var(--space-section); }
.section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-tag { font-size: .72rem; letter-spacing: .18em; }
.section-title { letter-spacing: .08em; }
.title-line { opacity: .7; }
.hero { min-height: min(860px, 100vh); padding-top: clamp(7rem, 13vw, 10rem); }
.hero-content { max-width: 620px; }
.hero-name { font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.02em; }
.hero-code-block { max-width: 58ch; padding: 1rem 1.2rem; border-left: 2px solid var(--cyan); background: rgba(0,245,255,.035); box-shadow: var(--glow-soft); }
.hero-btns { gap: .7rem; margin-top: 1.4rem; }
.hero-stats { gap: clamp(1.1rem, 3vw, 2.5rem); margin-top: 2rem; }
.about-grid { gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text { max-width: 64ch; }
.about-info-grid { gap: .7rem; margin-top: 1.5rem; }
.info-item { min-height: 5.2rem; padding: 1rem 1.1rem; border-radius: var(--radius-card); border-color: var(--line-soft); background: linear-gradient(145deg, rgba(0,245,255,.055), rgba(3,7,18,.24)); }
.info-label { font-size: .68rem; letter-spacing: .1em; }
.info-val { margin-top: .35rem; font-size: .95rem; }
.tech-cards { gap: .8rem; }
.tech-card { min-height: 112px; padding: 1rem .75rem; border-radius: var(--radius-card); border-color: var(--line-soft); background: rgba(3,7,18,.52); }
.tech-card:hover { border-color: rgba(0,245,255,.65); box-shadow: var(--glow-soft); }
.projects-grid, .blog-grid { gap: 1.1rem; }
.project-card, .blog-card { border-radius: var(--radius-card); border-color: var(--line-soft); background: linear-gradient(150deg, rgba(0,245,255,.055), rgba(3,7,18,.7)); overflow: hidden; }
.project-card:hover, .blog-card:hover { border-color: rgba(0,245,255,.6); box-shadow: var(--glow-soft); }
.project-card h3, .blog-card-body h3 { line-height: 1.2; }
.project-card p, .blog-excerpt { color: var(--text2); line-height: 1.6; }
.blog-toolbar { margin-bottom: 1.25rem; }
.blog-filters { gap: .5rem; }
.blog-read-btn { letter-spacing: .08em; }
.contact-grid { gap: clamp(2rem, 6vw, 5rem); }
.contact-link { border-radius: var(--radius-card); }
.guest-terminal-section { padding-bottom: clamp(5rem, 9vw, 8rem); }
.guest-terminal-grid { gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.guest-terminal-box { border-radius: var(--radius-card); box-shadow: var(--glow-soft); }
.footer { border-top-color: var(--line-soft); }
@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .hero-visual { margin-top: 1rem; }
  .about-grid { gap: 2rem; }
}
@media (max-width: 600px) {
  .section { padding-block: 4rem; }
  .hero-name { font-size: clamp(2.35rem, 13vw, 4rem); }
  .hero-code-block { padding: .85rem; }
  .info-item { min-height: auto; }
  .tech-card { min-height: 96px; }
}
/* Admin-only edit layer; inactive on the public site. */
.admin-preview-target { position: relative; }
.admin-preview-overlay { position: absolute; inset: 12px; z-index: 9999; display: block; pointer-events: none !important; opacity: 0; transition: opacity .2s ease; border: 1px dashed rgba(0,234,255,.35); }
.admin-preview-target:hover > .admin-preview-overlay, .admin-preview-target:focus-within > .admin-preview-overlay { opacity: 1; }
.admin-preview-selected > .admin-preview-overlay { opacity: 1; border-color: #00ff66; box-shadow: 0 0 16px rgba(0,255,102,.2); }
.admin-preview-edit {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: auto;
  pointer-events: auto !important;
  color: #cbd5e1;
  background: rgba(14, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-preview-edit:hover {
  color: #ffffff;
  background: rgba(26, 38, 66, 0.98);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.2);
}
#hero .admin-preview-edit { top: 80px; right: 24px; }
#hero > .admin-preview-overlay { display: none !important; }
/* Canvas-native Skills editor styles */
.admin-skill-card-target {
  cursor: pointer;
}
.admin-skill-card-target:hover {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.15);
}
.admin-skill-card-selected {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 1px var(--cyan), 0 4px 18px rgba(0, 245, 255, 0.28) !important;
  z-index: 40 !important;
}

.admin-project-target {
  cursor: pointer;
  position: relative;
}
.admin-project-target:hover {
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.15);
}
.admin-project-selected {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 1px var(--cyan), 0 4px 20px rgba(0, 245, 255, 0.3) !important;
  z-index: 25 !important;
}
.admin-project-edit-btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  line-height: 1.2;
  margin-left: auto;
  pointer-events: auto;
  transition: all 0.15s ease;
}
.admin-project-edit-btn:hover {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

.skill-bar-item [contenteditable="true"]:focus,
.skill-category .cat-title [contenteditable="true"]:focus {
  outline: 1px dashed rgba(0, 245, 255, 0.7);
  outline-offset: 2px;
  background: rgba(0, 245, 255, 0.08);
  border-radius: 2px;
}

/* Floating contextual toolbar attached to the selected card */
.admin-skill-card-toolbar {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  background: rgba(2, 8, 16, 0.96);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
}
.admin-skill-card-toolbar.flipped-down {
  bottom: auto;
  top: calc(100% + 7px);
}

.admin-skill-btn {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 3px;
  padding: 2px 5px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
}
.admin-skill-btn:hover {
  background: var(--cyan);
  color: #020810;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}
.admin-skill-btn.danger {
  color: #ff5577;
  border-color: rgba(255, 85, 119, 0.35);
  background: rgba(255, 85, 119, 0.08);
}
.admin-skill-btn.danger:hover {
  background: #ff5577;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 85, 119, 0.4);
}
.admin-skill-btn.active {
  background: rgba(0, 255, 102, 0.15);
  border-color: #00ff66;
  color: #00ff66;
}

.admin-skill-level-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid rgba(0, 245, 255, 0.5);
  color: var(--cyan);
  cursor: pointer;
  border-radius: 3px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.admin-skill-level-btn:hover {
  background: var(--cyan);
  color: #020810;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.5);
}

/* Stepper & Slider within toolbar */
.admin-skill-level-group {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 2px;
}
.admin-skill-slider {
  width: 50px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 245, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.admin-skill-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 245, 255, 0.8);
}

/* Anchored compact Icon Picker Popover */
.admin-skill-icon-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 224px;
  max-width: min(224px, calc(100vw - 20px));
  max-height: min(290px, calc(100vh - 60px));
  padding: 8px;
  background: rgba(3, 9, 18, 0.98);
  border: 1px solid rgba(0, 245, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 245, 255, 0.2);
  backdrop-filter: blur(14px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}
.admin-skill-icon-search {
  width: 100%;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 6px;
  outline: none;
}
.admin-skill-icon-search:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.3);
}
.admin-skill-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: min(210px, calc(100vh - 120px));
  overflow-y: auto;
  padding-right: 2px;
}
.admin-skill-icon-grid::-webkit-scrollbar {
  width: 3px;
}
.admin-skill-icon-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.3);
  border-radius: 2px;
}
.admin-skill-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  border-radius: 4px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  background: rgba(0, 245, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
  color: #f0f6fc;
}
.admin-skill-icon-item:hover,
.admin-skill-icon-item.selected {
  border-color: var(--cyan);
  background: rgba(0, 245, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
  transform: translateY(-1px);
  color: var(--cyan);
}
.admin-skill-icon-item svg {
  width: 22px;
  height: 22px;
}
.admin-skill-icon-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.admin-skill-icon-item:hover .admin-skill-icon-label {
  color: var(--cyan);
}

/* Subtle Canvas-native + Add Skill card */
.admin-skill-add-card {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem;
  border: 1px dashed rgba(0, 245, 255, 0.32);
  border-radius: 8px;
  background: rgba(0, 245, 255, 0.02);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.admin-skill-add-card:hover {
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.18);
  transform: translateY(-2px);
}
.admin-skill-add-card span:first-child {
  font-size: 1.2rem;
  line-height: 1;
}

/* Category header inline controls */
.admin-skill-cat-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.admin-skill-cat-toggle {
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  cursor: pointer;
}
.admin-skill-cat-toggle:hover {
  background: var(--cyan);
  color: #020810;
}
.admin-skill-cat-add-btn {
  margin: 1rem auto 0;
  display: block;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 245, 255, 0.04);
  border: 1px dashed rgba(0, 245, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-skill-cat-add-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.2);
}
.admin-timeline-controls,.admin-timeline-add{display:none}
.admin-timeline-edit-mode .admin-timeline-controls,.admin-timeline-edit-mode .admin-timeline-add,
#roadmap.admin-preview-selected .admin-timeline-controls,#roadmap.admin-preview-selected .admin-timeline-add{display:flex !important;gap:.35rem;flex-wrap:wrap}
.admin-timeline-controls{position:relative;z-index:8;margin:.45rem 0 0 auto;justify-content:flex-end}
.admin-timeline-controls button,.admin-timeline-add{font:inherit;font-size:.7rem;color:#00eaff;background:rgba(0,10,20,.92);border:1px solid #00eaff;padding:.25rem .45rem;cursor:pointer}
.admin-timeline-editing .timeline-card.editing [contenteditable="true"]{outline:1px dashed rgba(0,234,255,.7);outline-offset:3px;cursor:text}
.admin-timeline-editing .timeline-card.editing [contenteditable="true"]{min-height:1.4em;padding:.18rem .28rem;display:block;user-select:text}
.admin-timeline-tag-tools{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}
.admin-timeline-tag-tools button{font:inherit;font-size:.68rem;color:#00eaff;background:rgba(0,10,20,.92);border:1px solid rgba(0,234,255,.65);padding:.2rem .4rem;cursor:pointer}
.admin-timeline-add{margin:.75rem auto;display:block}
.admin-about-card-controls,.admin-about-add{display:flex;gap:.35rem;flex-wrap:wrap}
.admin-about-card-controls{margin:.45rem 0 0 auto;justify-content:flex-end}
.admin-about-card-controls button,.admin-about-add{font:inherit;font-size:.7rem;color:#00eaff;background:rgba(0,10,20,.92);border:1px solid #00eaff;padding:.25rem .45rem;cursor:pointer}
.admin-about-add{margin:.75rem auto;display:block}
.about-card-disabled{opacity:.45}
.admin-about-card-editing .info-label,.admin-about-card-editing .info-val,[contenteditable="true"]:focus{outline:1px dashed rgba(0,234,255,.7);outline-offset:3px;cursor:text}
.admin-about-avatar-actions{position:relative;display:flex;flex-direction:column;align-items:center;gap:.35rem;margin-top:.65rem}
.admin-about-avatar-upload{font:inherit;font-size:.72rem;color:#00eaff;background:rgba(0,10,20,.92);border:1px solid #00eaff;padding:.3rem .5rem;cursor:pointer}
.admin-about-avatar-upload:hover,.admin-about-avatar-upload:focus{background:rgba(0,234,255,.14);box-shadow:0 0 12px rgba(0,234,255,.35)}
.admin-about-avatar-picker{position:absolute;top:0;left:0;width:100%;height:2rem;opacity:0;cursor:pointer;z-index:2}
.admin-about-avatar-status{min-height:1em;font:inherit;font-size:.68rem;color:#8aa8b8;text-align:center}
.admin-about-avatar-status[data-state="error"]{color:#ff6688}
.admin-about-avatar-status[data-state="success"]{color:#62ffc9}
.about-intro[contenteditable="true"],#siteAboutDescription[contenteditable="true"],#siteAboutDescriptionExtra[contenteditable="true"]{cursor:text}

/* ========================================================
   PHASE 7: ARTICLE READING MODE (CALM DEVELOPER PUBLICATION)
   ======================================================== */

/* When in Article Reading Mode, hide noisy homepage sections */
body.article-reading-mode #hero,
body.article-reading-mode #about,
body.article-reading-mode #skills,
body.article-reading-mode #roadmap,
body.article-reading-mode #projects,
body.article-reading-mode #contact,
body.article-reading-mode #guest-terminal,
body.article-reading-mode #blog .section-header,
body.article-reading-mode #blog .blog-terminal-header,
body.article-reading-mode #blog .blog-toolbar,
body.article-reading-mode #blog .blog-grid {
  display: none !important;
}

body.article-reading-mode #blog {
  padding-top: 2rem;
}

/* Article Reading View Container */
.article-reader-view {
  display: block;
  width: 100%;
  min-height: 80vh;
  position: relative;
  animation: articleFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1rem;
  margin-bottom: 5rem;
}

.article-reader-view[hidden] {
  display: none !important;
}

@keyframes articleFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reading Progress Bar (Fixed Top) */
.article-reader-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00f5ff, #70f5a0);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.7);
  z-index: 1000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

.article-reader-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Header */
.article-reader-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.18);
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  color: #00f5ff;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.article-back-btn:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: #00f5ff;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.35);
  transform: translateX(-3px);
}

.article-reader-brand {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: #8aa8b8;
  letter-spacing: 0.08em;
}

/* Article Hero Header */
.article-reader-header {
  margin-bottom: 2.5rem;
}

.article-reader-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-mono, monospace);
  font-size: 0.84rem;
  color: #8aa8b8;
  margin-bottom: 1rem;
}

.article-reader-meta .blog-meta-divider {
  opacity: 0.3;
  color: #00f5ff;
}

.article-reader-title {
  font-family: var(--font-orb, sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.18);
  word-break: break-word;
}

.article-reader-cover-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
}

.article-reader-cover {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Article Typography Surface */
.article-reader-body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  color: #d8e6ef;
  word-break: break-word;
}

.article-reader-body p {
  margin: 1.25rem 0;
}

.article-reader-body h1,
.article-reader-body h2,
.article-reader-body h3,
.article-reader-body h4,
.article-reader-body h5,
.article-reader-body h6 {
  color: #00f5ff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.article-reader-body h1:first-child,
.article-reader-body h2:first-child,
.article-reader-body h3:first-child {
  margin-top: 0;
}

.article-reader-body h1 {
  font-size: 1.75rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  padding-bottom: 0.5rem;
}

.article-reader-body h2 {
  font-size: 1.45rem;
}

.article-reader-body h3 {
  font-size: 1.25rem;
}

.article-reader-body strong,
.article-reader-body b {
  color: #ffffff;
  font-weight: 700;
}

.article-reader-body em,
.article-reader-body i {
  color: #e2f1fa;
  font-style: italic;
}

.article-reader-body del,
.article-reader-body s {
  color: #64748b;
  text-decoration: line-through;
}

.article-reader-body blockquote {
  border-left: 3px solid #00f5ff;
  margin: 1.8rem 0;
  padding: 0.8rem 1.4rem;
  background: rgba(0, 245, 255, 0.035);
  border-radius: 0 6px 6px 0;
  color: #9ab3c4;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-reader-body blockquote p {
  margin: 0.4rem 0;
}

.article-reader-body ul,
.article-reader-body ol {
  margin: 1.2rem 0;
  padding-left: 1.8rem;
}

.article-reader-body li {
  margin: 0.45rem 0;
  line-height: 1.75;
}

.article-reader-body a {
  color: #00f5ff;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.article-reader-body a:hover {
  color: #70f5a0;
  text-shadow: 0 0 10px rgba(112, 245, 160, 0.5);
}

.article-reader-body code {
  background: rgba(0, 245, 255, 0.12);
  color: #00f5ff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88rem;
}

.article-reader-body pre {
  background: rgba(2, 6, 14, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.6rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.article-reader-body pre code {
  background: transparent;
  padding: 0;
  color: #39ff14;
  font-size: 0.92rem;
  line-height: 1.6;
}

.article-reader-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  margin: 1.8rem 0;
  display: block;
}

.article-reader-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.4), transparent);
  margin: 2.5rem 0;
}

/* Article Footer & Adjacent Links */
.article-reader-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 245, 255, 0.18);
}

.article-adjacent-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.article-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.4rem;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.article-nav-card:hover {
  border-color: #00f5ff;
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
  transform: translateY(-2px);
}

.adjacent-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  color: #8aa8b8;
  letter-spacing: 0.08em;
}

.adjacent-title {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-footer-actions {
  display: flex;
  justify-content: center;
}

.article-bottom-back-btn {
  padding: 0.65rem 1.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
}

/* 404 / Error State in Article Reader */
.article-reader-error {
  text-align: center;
  padding: 4rem 1.5rem;
}

.article-reader-error-code {
  font-family: var(--font-mono, monospace);
  font-size: 3rem;
  color: #ff4d79;
  text-shadow: 0 0 25px rgba(255, 77, 121, 0.4);
  margin-bottom: 1rem;
}

.article-reader-error-msg {
  font-size: 1.15rem;
  color: #a0b2c6;
  margin-bottom: 2rem;
}

/* Mobile & Tablet Responsiveness for Article Reader */
@media (max-width: 768px) {
  .article-reader-container {
    padding: 0 1.1rem;
  }
  .article-reader-title {
    font-size: 1.7rem;
  }
  .article-reader-body {
    font-size: 1rem;
    line-height: 1.75;
  }
  .article-adjacent-nav {
    grid-template-columns: 1fr;
  }
  .article-reader-cover-wrap {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .article-reader-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .article-back-btn {
    width: 100%;
    justify-content: center;
  }
  .article-reader-title {
    font-size: 1.45rem;
  }
  .article-reader-body pre {
    padding: 0.85rem;
  }
}

/* ==========================================================================
   PREMIUM CYBER TERMINAL SCROLL REVEAL & MODULE ACTIVATION SYSTEM
   ========================================================================== */

/* Base transition for all scroll modules */
[data-scroll-module] {
  position: relative;
  will-change: opacity, transform;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top activation scanline line */
[data-scroll-module]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan, #00f5ff), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10;
}

[data-scroll-module].cyber-module-visible::before {
  opacity: 0.45;
  transform: scaleX(1);
}

/* Generic hidden state (preserves layout metrics & SEO, avoids display:none) */
.module-hidden,
[data-scroll-module].cyber-module-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Generic visible state */
.module-visible,
[data-scroll-module].cyber-module-visible {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 1. ABOUT Module Activation: slight translateX(-20px) + fade */
[data-scroll-module="about"].cyber-module-hidden {
  transform: translateX(-20px);
}

[data-scroll-module="about"].cyber-module-visible {
  transform: translateX(0);
}

/* 2. SKILLS Module Activation: keep container anchored, staggered card reveal */
[data-scroll-module="skills"].cyber-module-hidden {
  transform: none;
}

[data-scroll-module="skills"].cyber-module-hidden .skill-category {
  opacity: 0;
  transform: translateY(18px);
}

[data-scroll-module="skills"].cyber-module-visible .skill-category {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll-module="skills"].cyber-module-visible .skill-category:nth-child(1) {
  transition-delay: 60ms;
}

[data-scroll-module="skills"].cyber-module-visible .skill-category:nth-child(2) {
  transition-delay: 130ms;
}

[data-scroll-module="skills"].cyber-module-visible .skill-category:nth-child(3) {
  transition-delay: 200ms;
}

[data-scroll-module="skills"].cyber-module-visible .skill-category:nth-child(4) {
  transition-delay: 270ms;
}

/* 3. TIMELINE Module Activation: keep container anchored, sequential milestone reveal */
[data-scroll-module="timeline"].cyber-module-hidden {
  transform: none;
}

[data-scroll-module="timeline"].cyber-module-hidden .timeline-item {
  opacity: 0;
  transform: translateY(18px);
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item:nth-child(2) {
  transition-delay: 70ms;
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item:nth-child(3) {
  transition-delay: 140ms;
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item:nth-child(4) {
  transition-delay: 210ms;
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item:nth-child(5) {
  transition-delay: 280ms;
}

[data-scroll-module="timeline"].cyber-module-visible .timeline-item:nth-child(6) {
  transition-delay: 350ms;
}

/* 4. PROJECTS Module Activation: keep container anchored, header -> filters -> project grid stagger */
[data-scroll-module="projects"].cyber-module-hidden {
  transform: none;
}

[data-scroll-module="projects"].cyber-module-hidden .projects-section-header {
  opacity: 0;
  transform: translateY(14px);
}

[data-scroll-module="projects"].cyber-module-hidden .filter-tabs {
  opacity: 0;
  transform: translateY(14px);
}

[data-scroll-module="projects"].cyber-module-hidden .projects-grid {
  opacity: 0;
  transform: translateY(18px);
}

[data-scroll-module="projects"].cyber-module-visible .projects-section-header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-scroll-module="projects"].cyber-module-visible .filter-tabs {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}

[data-scroll-module="projects"].cyber-module-visible .projects-grid {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

[data-scroll-module="projects"].cyber-module-visible .project-card:nth-child(1) {
  transition-delay: 180ms;
}
[data-scroll-module="projects"].cyber-module-visible .project-card:nth-child(2) {
  transition-delay: 250ms;
}
[data-scroll-module="projects"].cyber-module-visible .project-card:nth-child(3) {
  transition-delay: 320ms;
}
[data-scroll-module="projects"].cyber-module-visible .project-card:nth-child(4) {
  transition-delay: 390ms;
}

/* 5. CONTACT Module Activation: keep container anchored */
[data-scroll-module="contact"].cyber-module-hidden {
  transform: none;
}

[data-scroll-module="contact"].cyber-module-visible {
  transform: none;
}

/* 6. BLOG Module Activation: keep container anchored */
[data-scroll-module="blog"].cyber-module-hidden {
  transform: none;
}

[data-scroll-module="blog"].cyber-module-hidden .blog-grid {
  opacity: 0;
  transform: translateY(15px);
}

[data-scroll-module="blog"].cyber-module-visible .blog-grid {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

/* ==========================================================================
   FINAL PASS: CREATIVE ENGINEERING DESIGN SYSTEM
   1. HERO SYSTEM ARCHITECTURE CONSOLE
   2. ABOUT IDENTITY ARTIFACTS & MONOGRAM
   3. SKILLS CAPABILITY SPECTRUM RAIL
   4. PROJECTS ARCHITECTURE PREVIEW PIPELINE
   ========================================================================== */

/* 1. HERO SYSTEM ARCHITECTURE CONSOLE */
.architecture-console {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.architecture-console:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow);
}

.arch-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.arch-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arch-window-controls .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.arch-window-controls .dot.red { background: #ef4444; opacity: 0.8; }
.arch-window-controls .dot.yellow { background: #f59e0b; opacity: 0.8; }
.arch-window-controls .dot.green { background: #10b981; opacity: 0.8; }

.arch-title {
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.arch-status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.arch-telemetry-chip .chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 6px var(--accent-success);
  animation: pulseDot 2s ease-in-out infinite;
}

.arch-console-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 4-Stage Pipeline Flow Header */
.arch-pipeline-stages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pipe-num {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.pipe-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.pipe-arrow {
  color: var(--border-hover);
  font-size: 0.8rem;
  font-weight: 300;
}

/* Architecture Topology SVG Canvas */
.arch-topology-canvas {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  padding: 10px 8px;
  display: flex;
  justify-content: center;
  position: relative;
}

.arch-svg-grid {
  width: 100%;
  height: auto;
  max-height: 190px;
  display: block;
}

.arch-signal-track {
  stroke: var(--border-default);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.arch-signal-pulse {
  stroke: var(--accent-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 20 180;
  animation: archSignalFlow 4s linear infinite;
}

.arch-pulse-2 {
  animation-delay: 1s;
}
.arch-pulse-3 {
  animation-delay: 2s;
  stroke: var(--accent-secondary);
}
.arch-pulse-4 {
  animation-delay: 3s;
  stroke: var(--accent-secondary);
}

@keyframes archSignalFlow {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

.arch-node-box {
  fill: var(--bg-surface-elevated);
  stroke: var(--border-default);
  stroke-width: 1.2;
  transition: stroke var(--transition-fast), fill var(--transition-fast);
}

.arch-node-group:hover .arch-node-box {
  stroke: var(--accent-primary);
  fill: var(--bg-surface);
}

.arch-node-box.hub-box {
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  fill: var(--bg-surface);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.arch-node-num {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--text-muted);
  font-weight: 600;
}

.arch-node-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--text-primary);
  letter-spacing: 0.05em;
}

.arch-node-title.hub-title {
  fill: var(--accent-primary);
}

.arch-node-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  fill: var(--text-secondary);
}

.arch-node-indicator {
  fill: var(--accent-primary);
}

.arch-node-indicator.hub-dot {
  fill: var(--accent-secondary);
  animation: pulseDot 2s ease-in-out infinite;
}

/* Telemetry Monitor & Code Stream Integration */
.arch-telemetry-monitor {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.monitor-label {
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.monitor-rate {
  color: var(--text-muted);
  font-size: 0.64rem;
}

.monitor-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.68rem;
}

.monitor-metric-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.m-key {
  color: var(--text-muted);
  font-size: 0.60rem;
  letter-spacing: 0.05em;
}

.m-val {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.m-val.active-green {
  color: var(--accent-success);
}

.arch-micro-code {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 0;
  font-size: 0.70rem;
  line-height: 1.45;
  color: var(--text-secondary);
  overflow-x: auto;
}

.arch-micro-code .code-kw {
  color: var(--accent-primary);
  font-weight: 600;
}

.arch-micro-code .code-cmt {
  color: var(--text-muted);
  font-style: italic;
}

/* Console Footer */
.arch-console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.arch-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.foot-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-success);
}

.arch-foot-right {
  color: var(--text-muted);
  font-size: 0.65rem;
}

/* Light Mode Overrides for Architecture Console */
[data-theme="light"] .architecture-console {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-subtle);
}

[data-theme="light"] .arch-micro-code {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .arch-node-box {
  fill: #ffffff;
  stroke: #cbd5e1;
}

[data-theme="light"] .arch-node-box.hub-box {
  fill: #f8fafc;
  stroke: var(--accent-primary);
}


/* 2. ABOUT CREATIVE IDENTITY SYSTEM & ARTIFACTS */
.identity-avatar-inner {
  position: relative;
}

.identity-monogram-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.monogram-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.orbital-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed var(--accent-secondary);
  animation: orbitalRotate 16s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes orbitalRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Redesigned 4 Identity Artifacts */
.info-item[class*="identity-artifact-"] {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.info-item[class*="identity-artifact-"]:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 16px var(--accent-glow);
}

.artifact-micro-visual {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.micro-telemetry {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.micro-sig-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.micro-sig-line .sig-dot {
  position: absolute;
  top: -1px;
  left: 0;
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-primary);
  animation: sigSlide 3.5s ease-in-out infinite;
}

@keyframes sigSlide {
  0%, 100% { left: 0%; }
  50% { left: calc(100% - 16px); }
}

.micro-dep-graph {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 10px;
}

.dep-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
}

.dep-node.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
}

.dep-link {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.micro-pipeline-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.micro-pipeline-track .track-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  animation: trackPulseMove 3s linear infinite;
}

@keyframes trackPulseMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

.micro-vector-bar {
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.micro-vector-bar .vector-fill {
  display: block;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* Spatial Bottom Focus Rail */
.about-bottom-rail {
  margin-top: 24px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.rail-label {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}

.rail-val {
  color: var(--text-primary);
  font-weight: 500;
}

.rail-val.status-green {
  color: var(--accent-success);
  font-weight: 600;
}

.rail-sep {
  color: var(--border-subtle);
  font-weight: 300;
}


/* 3. SKILLS CAPABILITY SPECTRUM RAIL */
.capability-spectrum-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
}

@media (min-width: 993px) {
  .capability-spectrum-rail {
    display: flex;
    justify-content: space-between;
  }
}

.spectrum-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-badge {
  font-size: 0.60rem;
  color: var(--accent-secondary);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.step-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.step-sub {
  font-size: 0.64rem;
  color: var(--text-muted);
}

.spectrum-connector {
  position: relative;
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--border-default);
  margin: 0 8px;
  overflow: hidden;
}

.spectrum-connector .spec-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 14px;
  height: 3px;
  background: var(--accent-primary);
  animation: specPulseFlow 2.5s ease-in-out infinite;
}

@keyframes specPulseFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(500%); }
}


/* 4. PROJECTS ARCHITECTURE PREVIEW PIPELINE */
.public-proj-arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.arch-flow-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.arch-flow-stage .flow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.arch-flow-arrow {
  color: var(--border-hover);
  font-weight: 300;
}

.public-project-card:hover .arch-flow-stage .flow-dot {
  box-shadow: 0 0 6px var(--accent-primary);
}


/* RESPONSIVE REFINEMENTS FOR CREATIVE OBJECTS */
@media (max-width: 992px) {
  .capability-spectrum-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .spectrum-connector {
    display: none;
  }
  .about-bottom-rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rail-sep {
    display: none;
  }
  .monitor-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .capability-spectrum-rail {
    grid-template-columns: 1fr;
  }
  .arch-pipeline-stages {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pipe-arrow {
    display: none;
  }
  .arch-console-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .arch-status-strip {
    width: 100%;
    justify-content: space-between;
  }
  .info-item[class*="identity-artifact-"] {
    min-height: auto;
  }
}


/* Discovery Notification Indicator (Sleek Engineering Status Pill) */
.cyber-module-discovery-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cyber-module-discovery-hud.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cyber-hud-prompt {
  color: var(--accent-primary);
  font-weight: 700;
}

.cyber-hud-title {
  color: var(--text-secondary);
}

.cyber-hud-badge {
  color: var(--accent-success);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border: 1px solid var(--accent-success);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-full);
}

@keyframes hudBlink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Admin Visual Builder Compatibility Override */
body.admin-preview-active [data-scroll-module],
body.admin-preview-active [data-scroll-module] *,
[data-scroll-module].admin-preview-active,
[data-scroll-module].admin-preview-active * {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: none !important;
}

body.admin-preview-active .admin-contact-card-controls.admin-card-context-menu:not(.menu-open),
body.admin-preview-active .admin-contact-card-controls.admin-card-context-menu:not(.menu-open) *,
[data-scroll-module].admin-preview-active .admin-contact-card-controls.admin-card-context-menu:not(.menu-open),
[data-scroll-module].admin-preview-active .admin-contact-card-controls.admin-card-context-menu:not(.menu-open) * {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Explicit separation: overlays do NOT block clicks, while explicit controls remain clickable */
body.admin-preview-active .admin-preview-overlay,
[data-scroll-module].admin-preview-active .admin-preview-overlay {
  pointer-events: none !important;
}
body.admin-preview-active .admin-preview-overlay > *,
[data-scroll-module].admin-preview-active .admin-preview-overlay > *,
body.admin-preview-active .admin-preview-edit,
[data-scroll-module].admin-preview-active .admin-preview-edit {
  pointer-events: auto !important;
}
body.admin-preview-active .skill-gauge-icon {
  transform: translateX(-50%) !important;
}


/* Accessibility: Comprehensive Prefers-Reduced-Motion Override */
@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;
  }
  [data-scroll-module],
  .module-hidden,
  .cyber-module-hidden,
  .module-visible,
  .cyber-module-visible,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
    pointer-events: auto !important;
  }
  .arch-signal-pulse,
  .orbital-ring,
  .micro-sig-line .sig-dot,
  .micro-pipeline-track .track-pulse,
  .spectrum-connector .spec-pulse,
  .arch-node-indicator.hub-dot {
    animation: none !important;
  }
  .cyber-module-discovery-hud {
    display: none !important;
  }
}

/* ============================================================
   PRECISION DIGITAL SIGNAL INSTRUMENT CURSOR SYSTEM
   ============================================================ */

/* CSS Variables for Dynamic Multi-Layer Theme & Section Adaptation */
:root {
  --cursor-core-bg: #2563eb;
  --cursor-core-photon: #ffffff;
  --cursor-core-glow: rgba(0, 245, 255, 0.95);
  --cursor-reticle-border: rgba(59, 130, 246, 0.45);
  --cursor-reticle-tick: #00f5ff;
  --cursor-reticle-glow: rgba(0, 245, 255, 0.16);
  --cursor-halo-ambient: radial-gradient(circle, rgba(0, 245, 255, 0.18) 0%, rgba(37, 99, 235, 0.08) 55%, transparent 75%);
  --cursor-marker-color: #00f5ff;
  --cursor-label-color: #00f5ff;
  --cursor-label-bg: rgba(6, 12, 24, 0.85);
  --cursor-label-border: rgba(0, 245, 255, 0.3);
}

[data-theme="light"] {
  --cursor-core-bg: #1d4ed8;
  --cursor-core-photon: #eff6ff;
  --cursor-core-glow: rgba(37, 99, 235, 0.8);
  --cursor-reticle-border: rgba(29, 78, 216, 0.4);
  --cursor-reticle-tick: #0284c7;
  --cursor-reticle-glow: rgba(37, 99, 235, 0.12);
  --cursor-halo-ambient: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(2, 132, 199, 0.06) 55%, transparent 75%);
  --cursor-marker-color: #0284c7;
  --cursor-label-color: #1e3a8a;
  --cursor-label-bg: rgba(248, 250, 252, 0.92);
  --cursor-label-border: rgba(29, 78, 216, 0.3);
}

/* Subtle Section-Aware Accents */
#hero { --cursor-reticle-tick: #00f5ff; --cursor-core-glow: rgba(0, 245, 255, 0.9); }
#about { --cursor-reticle-tick: #60a5fa; --cursor-core-glow: rgba(96, 165, 250, 0.85); }
#skills { --cursor-reticle-tick: #14b8a6; --cursor-core-glow: rgba(20, 184, 166, 0.85); }
#roadmap { --cursor-reticle-tick: #818cf8; --cursor-core-glow: rgba(129, 140, 248, 0.85); }
#projects { --cursor-reticle-tick: #38bdf8; --cursor-core-glow: rgba(56, 189, 248, 0.85); }
#contact { --cursor-reticle-tick: #10b981; --cursor-core-glow: rgba(16, 185, 129, 0.85); }

/* 1. NATIVE CURSOR HIDING: Desktop Fine-Pointer Only (PUBLIC ONLY - Excludes Admin Preview) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.admin-preview-active),
  body:not(.admin-preview-active),
  body:not(.admin-preview-active) a,
  body:not(.admin-preview-active) button,
  body:not(.admin-preview-active) input,
  body:not(.admin-preview-active) textarea,
  body:not(.admin-preview-active) select,
  body:not(.admin-preview-active) [role="button"],
  body:not(.admin-preview-active) .btn,
  body:not(.admin-preview-active) .nav-link,
  body:not(.admin-preview-active) .interactive,
  body:not(.admin-preview-active) .project-card,
  body:not(.admin-preview-active) .public-project-card,
  body:not(.admin-preview-active) .info-item,
  body:not(.admin-preview-active) .skill-category,
  body:not(.admin-preview-active) .skill-bar-item {
    cursor: none !important;
  }
}

/* ============================================================
   ADMIN VISUAL BUILDER: FULL NATIVE CURSOR RESTORATION
   ============================================================ */
html.admin-preview-active,
html.admin-preview-active body,
body.admin-preview-active,
body.admin-preview-active * {
  cursor: auto;
}

body.admin-preview-active a,
body.admin-preview-active button,
body.admin-preview-active [role="button"],
body.admin-preview-active .btn,
body.admin-preview-active .nav-link,
body.admin-preview-active .interactive,
body.admin-preview-active .admin-preview-edit,
body.admin-preview-active .admin-skill-btn,
body.admin-preview-active .admin-skill-cat-btn,
body.admin-preview-active .admin-about-add,
body.admin-preview-active .admin-timeline-add,
body.admin-preview-active .admin-project-edit-btn,
body.admin-preview-active .admin-arch-position-bar button,
body.admin-preview-active .admin-arch-add-node,
body.admin-preview-active .admin-hero-phrase-toolbar button,
body.admin-preview-active .admin-arch-node-toolbar button,
body.admin-preview-active .filter-tab,
body.admin-preview-active .theme-toggle {
  cursor: pointer !important;
}

body.admin-preview-active [contenteditable="true"],
body.admin-preview-active [data-hero-editable="true"],
body.admin-preview-active [data-about-editable="true"],
body.admin-preview-active input,
body.admin-preview-active textarea,
body.admin-preview-active .hero-rotating-title,
body.admin-preview-active .bio-text,
body.admin-preview-active .code-comment {
  cursor: text !important;
}

body.admin-preview-active .arch-console-drag-handle,
body.admin-preview-active .arch-node-group,
body.admin-preview-active .admin-skill-drag-handle,
body.admin-preview-active [data-draggable] {
  cursor: grab !important;
}

body.admin-preview-active .is-dragging,
body.admin-preview-active .arch-console-drag-handle:active,
body.admin-preview-active .arch-node-group.is-dragging,
body.admin-preview-active .arch-node-group:active {
  cursor: grabbing !important;
}

/* Disable custom public cursor in Admin Preview */
body.admin-preview-active .custom-cursor-dot,
body.admin-preview-active .custom-cursor-ring,
body.admin-preview-active #cursorDot,
body.admin-preview-active #cursorRing {
  display: none !important;
}

/* 2. LAYER 1: Central Digital Signal Core */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.custom-cursor-dot .cursor-signal-core {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--cursor-core-bg);
  box-shadow: 0 0 6px var(--cursor-core-glow), 0 0 12px var(--cursor-core-glow);
  position: relative;
  transition: all 0.2s ease;
}

.custom-cursor-dot .cursor-signal-core::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: var(--cursor-core-photon);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 3px #ffffff;
}

/* 3. LAYER 2 & 3: Outer Technical Reticle & Ambient Halo */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Layer 3: Ambient Halo */
.cursor-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: var(--cursor-halo-ambient);
  border-radius: 50%;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

/* Layer 2: Precision Reticle Frame */
.cursor-reticle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--cursor-reticle-border);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cursor-reticle-glow);
  transition: border-color 0.2s ease, border-radius 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, background-color 0.2s ease;
}

/* Technical Precision Crosshair Ticks */
.reticle-tick {
  position: absolute;
  background: var(--cursor-reticle-tick);
  pointer-events: none;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.reticle-tick.tick-top {
  top: -3px;
  left: 50%;
  width: 1.5px;
  height: 3px;
  transform: translateX(-50%);
}

.reticle-tick.tick-bottom {
  bottom: -3px;
  left: 50%;
  width: 1.5px;
  height: 3px;
  transform: translateX(-50%);
}

.reticle-tick.tick-left {
  top: 50%;
  left: -3px;
  width: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}

.reticle-tick.tick-right {
  top: 50%;
  right: -3px;
  width: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}

/* Layer 4: Asymmetrical Tech Marker */
.cursor-tech-marker {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 2.5px;
  height: 2.5px;
  background: var(--cursor-marker-color);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--cursor-marker-color);
  opacity: 0.9;
  transition: all 0.2s ease;
}

/* Inspect Label (Editorial Micro-Hint) */
.cursor-inspect-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cursor-label-color);
  background: var(--cursor-label-bg);
  border: 1px solid var(--cursor-label-border);
  padding: 1.5px 5px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ============================================================
   INTERACTION STATES
   ============================================================ */

/* 1. Hover State: General Interactive Elements */
body.cursor-hover .custom-cursor-ring {
  width: 38px;
  height: 38px;
}
body.cursor-hover .cursor-ambient-glow {
  width: 54px;
  height: 54px;
}
body.cursor-hover .cursor-reticle {
  border-color: var(--cursor-reticle-tick);
  box-shadow: 0 0 14px var(--cursor-reticle-glow);
}
body.cursor-hover .custom-cursor-dot .cursor-signal-core {
  transform: scale(1.15);
  box-shadow: 0 0 8px var(--cursor-core-glow), 0 0 16px var(--cursor-core-glow);
}

/* 2. Action / Link / Button State */
body.cursor-action .custom-cursor-ring {
  width: 44px;
  height: 44px;
}
body.cursor-action .cursor-ambient-glow {
  width: 60px;
  height: 60px;
}
body.cursor-action .cursor-reticle {
  border-radius: 8px;
  border-color: var(--cursor-reticle-tick);
  background: rgba(0, 245, 255, 0.04);
  box-shadow: 0 0 16px var(--cursor-reticle-glow);
}
[data-theme="light"] body.cursor-action .cursor-reticle {
  background: rgba(37, 99, 235, 0.04);
}
body.cursor-action .reticle-tick.tick-top { top: -4px; height: 4px; }
body.cursor-action .reticle-tick.tick-bottom { bottom: -4px; height: 4px; }
body.cursor-action .reticle-tick.tick-left { left: -4px; width: 4px; }
body.cursor-action .reticle-tick.tick-right { right: -4px; width: 4px; }
body.cursor-action .custom-cursor-dot .cursor-signal-core {
  transform: scale(1.25);
  box-shadow: 0 0 10px var(--cursor-core-glow), 0 0 18px var(--cursor-core-glow);
}

/* 3. Text Selection State */
body.cursor-text .custom-cursor-dot {
  width: 1.5px;
  height: 16px;
  border-radius: 1px;
}
body.cursor-text .custom-cursor-dot .cursor-signal-core {
  border-radius: 1px;
  background: var(--cursor-reticle-tick);
  box-shadow: 0 0 6px var(--cursor-core-glow);
}
body.cursor-text .custom-cursor-dot .cursor-signal-core::after {
  display: none;
}
body.cursor-text .custom-cursor-ring {
  width: 16px;
  height: 16px;
  opacity: 0.25;
}
body.cursor-text .cursor-ambient-glow,
body.cursor-text .reticle-tick,
body.cursor-text .cursor-tech-marker {
  opacity: 0;
}

/* 4. Inspect State (Project Cards, Visuals) */
body.cursor-inspect .custom-cursor-ring {
  width: 48px;
  height: 48px;
}
body.cursor-inspect .cursor-reticle {
  border-radius: 8px;
  border-color: var(--cursor-reticle-tick);
  background: rgba(0, 245, 255, 0.05);
}
body.cursor-inspect .cursor-inspect-label {
  opacity: 1;
  transform: translate(-50%, 8px);
}

/* 5. ADMIN-ONLY: Drag and Edit States */
body.admin-preview-active.cursor-drag .custom-cursor-ring {
  width: 32px;
  height: 32px;
}
body.admin-preview-active.cursor-drag .cursor-reticle {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}
body.admin-preview-active.cursor-drag .reticle-tick {
  background: #ffd700;
}
body.admin-preview-active.cursor-drag .cursor-inspect-label {
  opacity: 1;
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.4);
}

body.admin-preview-active.cursor-edit .custom-cursor-ring {
  width: 40px;
  height: 40px;
}
body.admin-preview-active.cursor-edit .cursor-reticle {
  border-radius: 6px;
  border: 1.5px dashed var(--cursor-reticle-tick);
  background: rgba(0, 245, 255, 0.08);
}
body.admin-preview-active.cursor-edit .cursor-inspect-label {
  opacity: 1;
}

/* Accessibility & Coarse Pointer / Reduced Motion Fallback */
@media (hover: none), (pointer: coarse), (max-width: 768px), (prefers-reduced-motion: reduce) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  #cursorDot,
  #cursorRing {
    display: none !important;
  }
}

/* ============================================================
   HERO ARCHITECTURE CONSOLE MOVABLE ARTIFACT & POSITIONING
   ============================================================ */
.arch-console-drag-handle,
.admin-arch-position-bar,
.admin-arch-add-node,
.admin-arch-node-toolbar {
  display: none !important;
}

body.admin-preview-active .arch-console-drag-handle {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-cyan, #00f5ff);
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: grab;
  user-select: none;
  margin-left: 10px;
  transition: all 0.2s ease;
}
body.admin-preview-active .arch-console-drag-handle:hover {
  background: rgba(0, 245, 255, 0.18);
  border-color: var(--accent-cyan, #00f5ff);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}
body.admin-preview-active .arch-console-drag-handle:active,
body.admin-preview-active .architecture-console.is-dragging .arch-console-drag-handle {
  cursor: grabbing;
  background: rgba(0, 245, 255, 0.3);
}

.architecture-console.is-dragging {
  box-shadow: 0 24px 65px -8px rgba(0, 245, 255, 0.25), 0 0 40px rgba(0, 0, 0, 0.8) !important;
  transition: none !important;
}

body.admin-preview-active .admin-arch-position-bar {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-primary);
  margin-left: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
body.admin-preview-active .admin-arch-position-bar button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--accent-cyan, #00f5ff);
  padding: 2px 7px;
  font-size: 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
body.admin-preview-active .admin-arch-position-bar button:hover {
  background: rgba(0, 245, 255, 0.2);
  border-color: var(--accent-cyan, #00f5ff);
}

body.admin-preview-active .admin-arch-add-node {
  display: inline-flex !important;
}

body.admin-preview-active .admin-arch-node-toolbar {
  display: flex !important;
}

@media (max-width: 768px) {
  #heroArchitectureConsole {
    transform: none !important;
  }
}

/* ============================================================
   REDESIGNED HERO TELEMETRY PROFILE PANEL (CMS-BACKED)
   ============================================================ */
.hero-telemetry-profile-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 620px;
}

.telemetry-profile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(13, 20, 36, 0.75);
  border: 1px solid rgba(109, 140, 255, 0.2);
  border-radius: var(--radius-md, 8px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--motion-normal, 0.25s ease);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .telemetry-profile-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 99, 200, 0.2);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.telemetry-profile-card:hover {
  border-color: var(--accent-cyan, #00f5ff);
  box-shadow: 0 6px 20px -4px rgba(0, 245, 255, 0.18);
  transform: translateY(-2px);
}

.telemetry-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.telemetry-profile-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan, #00f5ff);
  text-transform: uppercase;
}

[data-theme="light"] .telemetry-profile-label {
  color: #2563eb;
}

.telemetry-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan, #00f5ff);
  box-shadow: 0 0 6px var(--accent-cyan, #00f5ff);
}
.telemetry-signal-dot.active-pulse {
  animation: telemetryPulse 2.2s infinite ease-in-out;
}

@keyframes telemetryPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); box-shadow: 0 0 10px var(--accent-cyan, #00f5ff); }
}

.telemetry-profile-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
  line-height: 1.35;
}

[data-theme="light"] .telemetry-profile-val {
  color: #0f172a;
}

.telemetry-profile-val.active-val {
  color: #10b981;
}

@media (max-width: 640px) {
  .hero-telemetry-profile-panel {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   REDESIGNED HERO ENGINEERING SIGNALS (METRICS SIGNATURE)
   ============================================================ */
.hero-engineering-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 620px;
}

.engineering-signal-item {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  background: rgba(10, 16, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

[data-theme="light"] .engineering-signal-item {
  background: rgba(248, 250, 252, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.engineering-signal-item:hover {
  border-color: rgba(0, 245, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 245, 255, 0.15);
}

.sig-num-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.sig-num {
  font-family: var(--font-mono, monospace);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-cyan, #00f5ff);
  line-height: 1;
}

[data-theme="light"] .sig-num {
  color: #2563eb;
}

.sig-indicator-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.sig-label-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.6rem;
}

.sig-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary, #e2e8f0);
}

.sig-sublabel {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.02em;
}

.sig-micro-graph {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.sig-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
}
.bar-fill-01 {
  width: 68%;
  background: linear-gradient(90deg, #00f5ff, #3b82f6);
}
.bar-fill-02 {
  width: 88%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.bar-fill-03 {
  width: 95%;
  background: linear-gradient(90deg, #10b981, #00f5ff);
}

@media (max-width: 640px) {
  .hero-engineering-signals {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   REDESIGNED ABOUT EDITORIAL TECHNICAL ARTIFACTS
   ============================================================ */
.editorial-artifact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: var(--bg-surface, rgba(13, 20, 36, 0.8));
  border: 1px solid var(--border-default, rgba(109, 140, 255, 0.2));
  border-radius: var(--radius-lg, 12px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

[data-theme="light"] .editorial-artifact-card {
  background: #ffffff;
  border-color: rgba(79, 99, 200, 0.18);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
}

.editorial-artifact-card:hover {
  border-color: var(--accent-cyan, #00f5ff);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 245, 255, 0.2);
}

.editorial-artifact-card .info-record-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.editorial-artifact-card .info-record-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan, #00f5ff);
  letter-spacing: 0.08em;
}

[data-theme="light"] .editorial-artifact-card .info-record-tag {
  color: #2563eb;
}

.editorial-artifact-card .info-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editorial-artifact-card .info-val-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.editorial-artifact-card .info-val {
  font-family: var(--font-sans, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #e2e8f0);
  line-height: 1.3;
}

[data-theme="light"] .editorial-artifact-card .info-val {
  color: #0f172a;
}

.editorial-artifact-card .info-detail {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}

.editorial-artifact-card .artifact-micro-visual {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

[data-theme="light"] .editorial-artifact-card .artifact-micro-visual {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.editorial-artifact-card .micro-telemetry {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.04em;
}

/* Micro visual graphic elements */
.micro-sig-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.4), transparent);
  position: relative;
}
.micro-sig-line .sig-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan, #00f5ff);
  box-shadow: 0 0 6px var(--accent-cyan, #00f5ff);
  animation: sigTrace 3s infinite linear;
}
@keyframes sigTrace {
  0% { left: 0%; opacity: 0.2; }
  50% { opacity: 1; }
  100% { left: 95%; opacity: 0.2; }
}

.micro-dep-graph {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dep-node {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.dep-node.active {
  background: var(--accent-cyan, #00f5ff);
  box-shadow: 0 0 6px var(--accent-cyan, #00f5ff);
}
.dep-link {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.micro-pipeline-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.micro-pipeline-track .track-pulse {
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: trackFlow 2s infinite ease-in-out;
}
@keyframes trackFlow {
  0% { left: -20%; }
  100% { left: 100%; }
}

.micro-vector-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.micro-vector-bar .vector-fill {
  display: block;
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #10b981, #00f5ff);
}

/* --- CMS ABOUT VISUAL EFFECT SYSTEM (10 EFFECTS) --- */
.artifact-micro-visual {
  --effect-color: var(--accent-cyan, #00f5ff);
  position: relative;
  transition: all 0.2s ease;
}

.artifact-micro-visual.effect-disabled .micro-sig-line,
.artifact-micro-visual.effect-disabled .micro-pipeline-track,
.artifact-micro-visual.effect-disabled .micro-dep-graph,
.artifact-micro-visual.effect-disabled .micro-vector-bar,
.artifact-micro-visual.effect-disabled .micro-orbital-visual,
.artifact-micro-visual.effect-disabled .micro-coord-grid,
.artifact-micro-visual.effect-disabled .micro-waveform,
.artifact-micro-visual.effect-disabled .micro-scan-path,
.artifact-micro-visual.effect-disabled .micro-mini-topology {
  opacity: 0.25;
  filter: grayscale(1);
}

/* 1. NONE */
.micro-effect-none {
  width: 100%;
  height: 4px;
  display: flex;
  align-items: center;
}
.micro-effect-none .none-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .micro-effect-none .none-line {
  background: rgba(0, 0, 0, 0.08);
}

/* 6. ORBITAL */
.micro-orbital-visual {
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
}
.micro-orbital-visual .orbital-svg {
  width: 100%;
  height: 18px;
  overflow: visible;
}
.micro-orbital-visual .orbit-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}
[data-theme="light"] .micro-orbital-visual .orbit-ring {
  stroke: rgba(0, 0, 0, 0.15);
}
.micro-orbital-visual .orbit-dot {
  fill: var(--effect-color);
  animation: orbitPulse 2s infinite ease-in-out;
}
.micro-orbital-visual .orbit-dot.dot-2 { animation-delay: 0.6s; }
.micro-orbital-visual .orbit-dot.dot-3 { animation-delay: 1.2s; }
@keyframes orbitPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 4px var(--effect-color)); }
}

/* 7. COORDINATE GRID */
.micro-coord-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.coord-crosshair {
  position: relative;
  width: 100%;
  height: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .coord-crosshair {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
.coord-matrix {
  display: flex;
  gap: 4px;
}
.c-cell {
  width: 8px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}
[data-theme="light"] .c-cell {
  background: rgba(0, 0, 0, 0.1);
}
.c-cell.active {
  background: var(--effect-color);
  box-shadow: 0 0 5px var(--effect-color);
  animation: coordBlink 1.8s infinite ease-in-out;
}
@keyframes coordBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* 8. WAVEFORM */
.micro-waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 14px;
  width: 100%;
}
.wave-bar {
  flex: 1;
  background: var(--effect-color);
  border-radius: 1px;
  min-height: 2px;
  animation: waveOscillate 1.4s infinite ease-in-out;
  transform-origin: bottom;
}
.wave-bar.bar-1 { animation-delay: 0s; height: 4px; }
.wave-bar.bar-2 { animation-delay: 0.2s; height: 9px; }
.wave-bar.bar-3 { animation-delay: 0.4s; height: 13px; }
.wave-bar.bar-4 { animation-delay: 0.1s; height: 6px; }
.wave-bar.bar-5 { animation-delay: 0.5s; height: 11px; }
.wave-bar.bar-6 { animation-delay: 0.3s; height: 8px; }
.wave-bar.bar-7 { animation-delay: 0.15s; height: 4px; }
@keyframes waveOscillate {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 9. SCAN PATH */
.micro-scan-path {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
[data-theme="light"] .micro-scan-path {
  background: rgba(0, 0, 0, 0.05);
}
.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--effect-color), transparent);
  animation: scanSweep 2.2s infinite linear;
}
@keyframes scanSweep {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(300px); }
}

/* 10. MINI TOPOLOGY */
.micro-mini-topology {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.topo-box {
  font-family: var(--font-mono, monospace);
  font-size: 7.5px;
  font-weight: 700;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.03em;
}
[data-theme="light"] .topo-box {
  border-color: rgba(0, 0, 0, 0.15);
}
.topo-box.active {
  border-color: var(--effect-color);
  color: var(--effect-color);
  box-shadow: 0 0 6px var(--effect-color);
}
.topo-conn {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.4), rgba(255, 255, 255, 0.1));
}

/* Speed Modifiers */
.speed-slow * { animation-duration: 4.5s !important; }
.speed-normal * { animation-duration: 2s !important; }
.speed-fast * { animation-duration: 0.9s !important; }

/* Intensity Modifiers */
.intensity-low { opacity: 0.45; }
.intensity-medium { opacity: 0.85; }
.intensity-high { opacity: 1; }

/* Accent Modifiers */
.accent-blue { --effect-color: #3b82f6 !important; }
.accent-teal { --effect-color: #00f5ff !important; }
.accent-emerald { --effect-color: #10b981 !important; }
.accent-amber { --effect-color: #f59e0b !important; }

/* Light Theme Variables */
[data-theme="light"] .artifact-micro-visual {
  --effect-color: #2563eb;
}

/* --- ADMIN INLINE EDITING AFFORDANCES & CANVAS EFFECT PICKER --- */
body.admin-preview-active .editorial-artifact-card {
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.admin-preview-active .editorial-artifact-card [data-about-field] {
  cursor: text !important;
  transition: background 0.12s ease, outline 0.12s ease;
  min-height: 14px;
}

body.admin-preview-active .editorial-artifact-card [data-about-field]:hover {
  outline: 1px dashed rgba(0, 245, 255, 0.45);
  border-radius: 2px;
}

body.admin-preview-active .editorial-artifact-card [data-about-field].admin-field-active {
  outline: 1.5px solid var(--accent-cyan, #00f5ff) !important;
  background: rgba(0, 245, 255, 0.08) !important;
  border-radius: 2px !important;
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.2) !important;
}

body.admin-preview-active .editorial-artifact-card.admin-about-card-selected {
  border-color: rgba(0, 245, 255, 0.6) !important;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.15) !important;
}

/* Floating Effect Picker Panel */
.admin-about-effect-picker {
  position: absolute;
  top: -8px;
  right: 0;
  transform: translateY(-100%);
  width: 220px;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e2e8f0;
}

[data-theme="light"] .admin-about-effect-picker {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.effect-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}
[data-theme="light"] .effect-picker-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.picker-title {
  font-weight: 700;
  color: var(--accent-cyan, #00f5ff);
  font-size: 10px;
  letter-spacing: 0.05em;
}
[data-theme="light"] .picker-title {
  color: #2563eb;
}

.picker-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 10px;
}
.picker-close:hover {
  color: #ef4444;
}

.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.picker-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
}

.picker-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  outline: none;
}
[data-theme="light"] .picker-select {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

.picker-actions {
  display: flex;
  justify-content: stretch;
  margin-top: 4px;
}

.picker-toggle-btn {
  width: 100%;
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid var(--accent-cyan, #00f5ff);
  color: var(--accent-cyan, #00f5ff);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.picker-toggle-btn:hover {
  background: rgba(0, 245, 255, 0.22);
}
[data-theme="light"] .picker-toggle-btn {
  background: rgba(37, 99, 235, 0.1);
  border-color: #2563eb;
  color: #2563eb;
}
[data-theme="light"] .picker-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.2);
}

/* ============================================================
   ADMIN CANVAS BUILDER CONTROLS FOR NEW ARTIFACTS
   ============================================================ */
.admin-card-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 245, 255, 0.25);
}

.admin-card-action-bar button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--accent-cyan, #00f5ff);
  padding: 2px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-card-action-bar button:hover {
  background: rgba(0, 245, 255, 0.18);
  border-color: var(--accent-cyan, #00f5ff);
}

.admin-card-action-bar button.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}
.admin-card-action-bar button.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.admin-about-add-artifact-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.85rem;
  background: rgba(0, 245, 255, 0.04);
  border: 1.5px dashed rgba(0, 245, 255, 0.35);
  border-radius: var(--radius-md, 8px);
  color: var(--accent-cyan, #00f5ff);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.admin-about-add-artifact-btn:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--accent-cyan, #00f5ff);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

