/* ==========================================================================
   ARGHADEEP LASKAR (AGDL) — SYSTEMS & LOW-LEVEL DEVELOPER PORTFOLIO
   Design Philosophy: Executive Production-Grade Minimalist Systems Engineering
   ========================================================================== */

:root {
  /* Color Palette - Deep Obsidian & Neutral Slate */
  --bg-base: #090a0f;
  --bg-surface: #0f1118;
  --bg-card: rgba(18, 22, 32, 0.7);
  --bg-card-hover: rgba(24, 30, 44, 0.85);
  --bg-inset: #0c0e14;
  --nav-bg: rgba(9, 10, 15, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-soft: rgba(59, 130, 246, 0.12);
  
  --discord-blurple: #5865F2;
  --discord-blurple-hover: #4752c4;
  --discord-soft: rgba(88, 101, 242, 0.12);
  
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-dim: #505c6e;
  
  /* Typography */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-base);
}

body {
  font-family: var(--font-sans);
  background-color: #0c1017;
  background-image: 
    /* Top luminous ambient light mist directly under header */
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(226, 238, 255, 0.12) 0%, rgba(186, 215, 248, 0.05) 45%, transparent 75%),
    /* Ambient spatial light pools */
    radial-gradient(circle at 85% 18%, rgba(219, 234, 254, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 15% 45%, rgba(224, 231, 255, 0.06) 0%, transparent 50%),
    /* Deep executive foundation */
    linear-gradient(180deg, #111726 0%, #0d121e 25%, #0a0e17 65%, #070911 100%);
  background-attachment: fixed;
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
}

/* ==========================================================================
   EXECUTIVE NAVIGATION BAR (SOLID DARK HEADER)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: #090c15;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #070911;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  text-decoration: none;
}

.brand-monogram {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.nav-brand:hover .brand-monogram {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.brand-separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.brand-name {
  color: #f1f5f9;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-brand:hover .brand-name {
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
}

.nav-aside {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-highlight {
  color: #f8fafc;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-highlight:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.theme-icon {
  display: block;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(15deg) scale(1.08);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

/* Hero Layout Grid */
.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   PORTRAIT SHOWCASE & MASKING
   ========================================================================== */
.hero-portrait-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.portrait-ambient-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(88, 101, 242, 0.1) 45%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  animation: ambient-pulse 5s ease-in-out infinite alternate;
}

.portrait-stage {
  position: relative;
  z-index: 1;
  padding: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-stage:hover {
  transform: translateY(-2px);
}

/* Geometric Precision Crosshairs */
.portrait-crosshair {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 5;
}
.portrait-crosshair.top-left { top: 0; left: 0; border-top: 1.5px solid; border-left: 1.5px solid; }
.portrait-crosshair.top-right { top: 0; right: 0; border-top: 1.5px solid; border-right: 1.5px solid; }
.portrait-crosshair.bottom-left { bottom: 0; left: 0; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.portrait-crosshair.bottom-right { bottom: 0; right: 0; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* Masked Frame */
.portrait-mask-container {
  position: relative;
  width: 310px;
  height: 370px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -10px rgba(59, 130, 246, 0.15);
  background: #0d1017;
}

.portrait-rotating-halo {
  position: absolute;
  inset: -4px;
  border-radius: 34px;
  background: conic-gradient(from 0deg, transparent 0%, rgba(59, 130, 246, 0.55) 25%, transparent 45%, rgba(56, 189, 248, 0.45) 75%, transparent 100%);
  animation: rotate-ring 10s linear infinite;
  z-index: 0;
  opacity: 0.85;
}

.portrait-inner-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #090a0f;
  z-index: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: contrast(1.03) brightness(0.98);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.portrait-stage:hover .portrait-photo {
  transform: scale(1.04);
  filter: contrast(1.06) brightness(1.02);
}

.portrait-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 15, 0.85) 0%, rgba(9, 10, 15, 0.15) 30%, transparent 60%);
  pointer-events: none;
}

/* Floating Glassmorphic Chips */
.portrait-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 18, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: transform var(--transition);
}

.chip-top {
  top: -4px;
  left: -8px;
  color: #93c5fd;
}

.chip-bottom {
  bottom: -4px;
  right: -8px;
  color: #ffffff;
}

.portrait-stage:hover .chip-top {
  transform: translateY(-2px);
}

.portrait-stage:hover .chip-bottom {
  transform: translateY(2px);
}

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

.chip-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

@keyframes ambient-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 0.9; }
}

.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all var(--transition);
}

.hero-badge:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.badge-accent {
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
}

.badge-text {
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.hero-role-row {
  margin-bottom: 1.25rem;
}

.role-primary {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.04em;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pillar-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 450;
}

.pillar-dot {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.hero-summary {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.5rem;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #090a0f !important;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.btn-icon, .btn-svg {
  width: 16px;
  height: 16px;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding-block: 5.5rem;
  position: relative;
}

.section-border-top {
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.center-max {
  margin-inline: auto;
}

/* ==========================================================================
   GRID CARDS & SPECIALIZATION
   ========================================================================== */
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-headline {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   PRODUCTION PROJECTS SHOWCASE
   ========================================================================== */
.case-study-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.card-mockup-frame {
  background: #0d1017;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.mockup-header {
  padding: 0.65rem 1rem;
  background: #131722;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

.case-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.case-tag-primary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.04em;
}

.case-tag-platform {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.case-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.case-context-note {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--accent-blue);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
}

.case-context-note strong {
  color: #fff;
}

.case-description {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.75rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Secondary Projects Grid */
.grid-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.project-mini-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.mini-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.mini-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.status-badge-live {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.status-badge-research {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.mini-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.mini-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.link-inline {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(147, 197, 253, 0.4);
  transition: color var(--transition);
}

.link-inline:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.mini-card-action {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.mini-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  transition: all var(--transition);
}

.mini-card-link:hover {
  color: #fff;
  transform: translateX(2px);
}

/* ==========================================================================
   DISCORD // COMMUNITY SECTION (EXECUTIVE DEVELOPER COLLECTIVE)
   ========================================================================== */
.discord-executive-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  align-items: stretch;
  position: relative;
}

/* 1. Left: Founder Identity Card */
.discord-founder-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.6), transparent);
}

.discord-founder-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 24px 56px -15px rgba(0, 0, 0, 0.75), 0 0 28px rgba(88, 101, 242, 0.12);
}

.card-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.founder-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #23a55a;
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 6px #23a55a;
  animation: radarPulse 2s infinite;
}

/* Avatar Stage with Subtle Ambient Halo */
.discord-avatar-stage {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 1.25rem;
}

.avatar-glow-halo {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #5865F2, #38bdf8, #818cf8, #5865F2);
  animation: rotate-avatar-halo 10s linear infinite;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.45));
}

@keyframes rotate-avatar-halo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-img-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #090a0f;
  border: 2px solid #0f121a;
  z-index: 2;
}

.founder-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-presence-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #23a55a;
  border: 3.5px solid #0f121a;
  z-index: 3;
  box-shadow: 0 0 8px #23a55a;
}

/* Credentials */
.founder-credentials {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.1rem;
}

.founder-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.founder-display-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.founder-verified-icon {
  color: #5865F2;
  display: inline-flex;
}

.founder-handle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.handle-at {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #818cf8;
}

.founder-handle-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.copy-handle-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.15rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.copy-handle-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Role Badges */
.founder-role-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 1.35rem;
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-align: center;
}

.role-badge-primary {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #a5b4fc;
}

.role-badge-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Telemetry Mini-Panel */
.founder-telemetry-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  text-align: left;
}

.telemetry-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.telemetry-label {
  color: var(--text-dim);
  font-weight: 600;
}

.telemetry-val {
  color: #cbd5e1;
  font-weight: 500;
}

.val-active {
  color: #38bdf8;
}

.founder-direct-connect-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.founder-direct-connect-link:hover {
  color: #ffffff;
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.35);
  transform: translateY(-1px);
}

/* 2. Right: Community Collective Card */
.discord-collective-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.discord-collective-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}

.discord-collective-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 56px -15px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.08);
}

.collective-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.collective-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #818cf8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.collective-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.collective-open-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #23a55a;
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.open-server-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 6px #23a55a;
}

.collective-manifesto {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.65;
  border-left: 3px solid var(--discord-blurple);
  padding-left: 1.25rem;
  font-style: normal;
  margin-bottom: 1.75rem;
}

/* Discussion Tracks (Refined Specification List) */
.collective-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.track-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.35rem;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.25rem;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(88, 101, 242, 0.35);
  transform: translateX(4px);
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.5);
}

.track-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.track-hash {
  color: #818cf8;
  font-weight: 800;
  font-size: 0.95rem;
}

.track-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.track-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.track-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Action Bar */
.collective-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-discord-collective-join {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--discord-blurple);
  color: #ffffff !important;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-discord-collective-join:hover {
  background: var(--discord-blurple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.5);
}

.discord-icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-arrow-icon {
  transition: transform 0.2s ease;
}

.btn-discord-collective-join:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.collective-meta-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.collective-meta-strip strong {
  color: #cbd5e1;
}

.meta-divider {
  color: var(--text-dim);
}

.pulse-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 6px #23a55a;
  margin-right: 2px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .discord-executive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .discord-founder-card {
    padding: 2rem 1.5rem;
  }

  .discord-collective-card {
    padding: 2rem 1.5rem;
  }

  .track-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .collective-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .btn-discord-collective-join {
    justify-content: center;
  }

  .collective-meta-strip {
    justify-content: center;
  }
}

/* ==========================================================================
   ESTABLISH CONNECTION (UNIFIED EXECUTIVE COMMAND CENTER)
   ========================================================================== */
.connection-hero-header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.connection-headline {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.connection-subheadline {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.connection-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.live-beacon-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: radarPulse 1.8s infinite;
}

.indicator-label {
  color: var(--text-dim);
  font-weight: 700;
}

.indicator-state {
  color: var(--emerald);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Classified Matrix Layout */
.connection-matrix-layout {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 1.75rem;
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 2rem;
  align-items: stretch;
}

.channel-group-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 56px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.06);
}

.group-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.group-icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.group-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 0.2rem;
}

.group-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.channel-items-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.executive-channel-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.executive-channel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

.channel-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.executive-channel-item:hover .channel-avatar {
  transform: scale(1.06);
}

.mail-bg {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.phone-bg {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.github-bg {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.discord-bg {
  background: rgba(88, 101, 242, 0.14);
  color: #818cf8;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.insta-bg {
  background: rgba(225, 48, 108, 0.12);
  color: #f472b6;
  border: 1px solid rgba(225, 48, 108, 0.25);
}

.channel-texts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.channel-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.channel-pill-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.channel-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.executive-channel-item:hover .channel-handle {
  color: #ffffff;
}

.channel-action-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.channel-action-arrow svg {
  transition: transform 0.2s ease;
}

.executive-channel-item:hover .channel-action-arrow {
  color: var(--accent-blue);
}

.executive-channel-item:hover .channel-action-arrow svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .connection-matrix-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER IDENTITY
   ========================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.footer-sub-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-affiliation {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-link:hover {
  color: #fff;
}

.footer-static-text {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
}

.footer-bottom-line {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-credo {
  font-family: var(--font-mono);
  color: #e2e8f0;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.footer-legal {
  color: var(--text-dim);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #11141e;
  border: 1px solid var(--border-medium);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition);
}

.toast.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Keyframes */
@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 992px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-portrait-wrapper {
    order: -1;
    margin-bottom: 1rem;
  }

  .portrait-mask-container {
    width: 270px;
    height: 330px;
  }
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .community-split-layout {
    grid-template-columns: 1fr;
  }

  .discord-identity-card {
    max-width: 400px;
    margin-inline: auto;
  }

  .footer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .metric-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

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

  .comm-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}


/* ==========================================================================
   EXECUTIVE DOSSIER & STRATEGIC CREED (BESPOKE BENTO ARCHITECTURE)
   ========================================================================== */
.executive-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.7), 0 0 24px rgba(59, 130, 246, 0.08);
}

.bento-card:hover::before {
  opacity: 1;
}

/* 1. Academic Ledger Card */
.bento-academic-ledger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.ledger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.ledger-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.06em;
}

.ledger-institution-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.ledger-milestones {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.milestone-entry {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.milestone-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.milestone-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  position: relative;
  z-index: 2;
  margin-top: 5px;
}

.node-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.4);
  animation: radarPulse 2s infinite;
}

.node-done {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.node-target {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.milestone-line {
  width: 2px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  margin-bottom: -1.75rem;
}

/* 1. Luminous Path leading up to Current Pursuit (10th to 12th) */
.line-completed-path {
  width: 3px;
  background: linear-gradient(180deg, var(--emerald) 0%, #38bdf8 60%, var(--accent-blue) 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7), 0 0 4px rgba(16, 185, 129, 0.6);
  position: relative;
  z-index: 1;
}

/* 2. Upcoming Roadmap Line (12th to Target Degrees) */
.line-upcoming-path {
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 4px, transparent 4px, transparent 8px);
  opacity: 0.65;
}

.pulse-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  display: inline-block;
  animation: radarPulse 1.8s infinite;
  margin-right: 3px;
}

.milestone-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

/* Highlighted Current Academic Standing Box */
.milestone-active .milestone-body {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  position: relative;
}

.milestone-active .milestone-body::before {
  content: 'CURRENT STANDING';
  position: absolute;
  top: -8px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: #0c101c;
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.milestone-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.milestone-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.milestone-board {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.board-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #cbd5e1;
}

.board-sep {
  color: var(--text-dim);
}

.stream-highlight {
  color: #93c5fd;
  font-weight: 600;
}

.board-school {
  color: var(--text-secondary);
}

.milestone-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-current {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-target {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.subject-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.subj-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.subj-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.subj-cs {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.subj-cs:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.degree-sequence {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.degree-code {
  color: #e2e8f0;
}

.degree-step-arrow {
  color: #a855f7;
  font-weight: 700;
}

.milestone-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 2. Right Column Stack */
/* 2. Right Column Stack */
.bento-stack-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.bento-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
}

/* Creed Card */
.bento-creed-card {
  background: linear-gradient(135deg, rgba(20, 26, 40, 0.9) 0%, rgba(12, 16, 26, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.25);
  padding: 1.75rem 2rem;
  flex-shrink: 0;
}

.creed-card-bg-glyph {
  position: absolute;
  top: -10px;
  right: -10px;
  pointer-events: none;
}

.creed-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.creed-display-quote {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.creed-explanation {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.creed-foot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Sub-Grid 2 (Location & Hobby - Perfectly Sized & Balanced) */
.bento-subgrid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  flex-grow: 1;
  align-items: stretch;
}

/* Location Card (Clean Executive Node) */
.bento-location-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.85rem 1.65rem;
  position: relative;
  overflow: hidden;
}

.bento-location-card .bento-label-row {
  margin-bottom: 0.85rem;
}

.radar-telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.live-radar-blip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: radarPulse 1.8s infinite;
}

.location-hub-display {
  margin-bottom: 1.25rem;
}

.location-city-state {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.location-country-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.location-country {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 600;
}

.location-country-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.location-region-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Single Unified Timezone Card (Clean & Uncluttered, No Coordinates) */
.location-timezone-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.tz-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.tz-key {
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.tz-offset {
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.7rem;
}

.tz-name {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.location-foot-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.globe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
  flex-shrink: 0;
}

/* Hobby Card (Executive Systems Lab) */
.bento-hobby-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.85rem 1.65rem;
  position: relative;
  overflow: hidden;
}

.bento-hobby-card .bento-label-row {
  margin-bottom: 0.85rem;
}

.hobby-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.hobby-header-block {
  margin-bottom: 1.15rem;
}

.hobby-core-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.hobby-subtext {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.systems-spec-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.sys-pill {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  text-align: left;
}

.sys-pill:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #ffffff;
  transform: translateX(3px);
}

.hobby-foot-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.hobby-foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
  flex-shrink: 0;
}

/* 3. Founder Challenge Banner (Showstopper for Technical Leaders) */
.founder-challenge-banner {
  background: linear-gradient(135deg, rgba(16, 21, 34, 0.95) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-challenge-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.founder-challenge-banner:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 24px 56px -15px rgba(0, 0, 0, 0.8), 0 0 28px rgba(59, 130, 246, 0.12);
  transform: translateY(-2px);
}

.challenge-left-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.challenge-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.founder-challenge-banner:hover .challenge-icon-box {
  transform: scale(1.06);
  border-color: rgba(59, 130, 246, 0.5);
}

.challenge-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.challenge-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.confidential-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.challenge-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.challenge-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.challenge-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-executive-challenge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #090a0f !important;
  border: 1px solid transparent;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-executive-challenge:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-challenge-arrow {
  transition: transform 0.2s ease;
}

.btn-executive-challenge:hover .btn-challenge-arrow {
  transform: translateX(4px);
}

.btn-under-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CLEARANCE CHALLENGE MODAL (EXECUTIVE THEME)
   ========================================================================== */
.clearance-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.clearance-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.clearance-modal-dialog {
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  max-width: 620px;
  width: 100%;
  padding: 2.75rem 2.5rem;
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.clearance-modal-backdrop.active .clearance-modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-trigger {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.clearance-modal-header {
  margin-bottom: 1.75rem;
}

.clearance-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.header-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.clearance-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.clearance-quote-hero {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.35rem;
}

.clearance-quote-content {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.clearance-modal-analysis-note {
  background: rgba(12, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
}

.note-content {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.clearance-action-options {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.btn-clearance-modal {
  padding: 0.95rem 1.25rem;
  font-size: 0.88rem;
  justify-content: center;
  white-space: nowrap;
}

.btn-clearance-arrow {
  transition: transform var(--transition);
}

.btn-clearance-modal:hover .btn-clearance-arrow {
  transform: translateX(4px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .executive-bento-grid {
    grid-template-columns: 1fr;
  }

  .founder-challenge-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .challenge-left-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .challenge-action-wrap {
    width: 100%;
  }

  .btn-executive-challenge {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .bento-subgrid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .clearance-action-options {
    grid-template-columns: 1fr;
  }

  .clearance-modal-dialog {
    padding: 2rem 1.5rem;
  }

  .clearance-quote-content {
    font-size: 1rem;
  }

  .founder-challenge-banner {
    padding: 1.75rem 1.5rem;
  }
}

/* Responsive Navbar Rules */
@media (max-width: 900px) {
  .nav-menu {
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-container {
    padding: 0.8rem 1.25rem;
  }
}

@media (max-width: 540px) {
  .status-text {
    display: none;
  }
  .status-indicator {
    padding: 0.28rem 0.45rem;
  }
  .nav-highlight {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ==========================================================================
   EXECUTIVE LIGHT PALETTE & THEME SYSTEM
   Tailored for High-Ranking Officials, Founders & Engineering Directors
   ========================================================================== */

/* Theme Toggle Icon Transition & State */
[data-theme="light"] .theme-icon.icon-sun {
  display: none !important;
}

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

/* 1. Root Variable Overrides for Light Mode */
[data-theme="light"] {
  /* Color Palette - Curated Porcelain White & Executive Slate */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-inset: #f1f5f9;
  --nav-bg: rgba(248, 250, 252, 0.88);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-focus: rgba(37, 99, 235, 0.5);
  
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-soft: rgba(37, 99, 235, 0.08);
  
  --discord-blurple: #5865F2;
  --discord-blurple-hover: #4752c4;
  --discord-soft: rgba(88, 101, 242, 0.08);
  
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

[data-theme="light"] html {
  color-scheme: light;
}

[data-theme="light"] body {
  background-color: #f1f4f8;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(226, 232, 240, 0.75) 45%, #e8edf3 100%),
    radial-gradient(circle at 85% 20%, rgba(219, 234, 254, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 15% 50%, rgba(224, 231, 255, 0.35) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-secondary);
}

/* Global Smooth Transitions for Theme Switch */
body, .navbar, .bento-card, .feature-card, .case-study-card, 
.discord-founder-card, .discord-collective-card, .metrics-strip, 
.founder-challenge-banner, .theme-toggle-btn, .clearance-modal-dialog,
.executive-channel-item, .spec-grid, .location-timezone-card {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Light Theme Card Shadows & Surface Elevators */
[data-theme="light"] .bento-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .case-study-card,
[data-theme="light"] .metrics-strip,
[data-theme="light"] .discord-collective-card,
[data-theme="light"] .discord-founder-card,
[data-theme="light"] .channel-group-card,
[data-theme="light"] .founder-challenge-banner {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 24px -10px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .bento-card:hover,
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .case-study-card:hover,
[data-theme="light"] .discord-founder-card:hover,
[data-theme="light"] .discord-collective-card:hover,
[data-theme="light"] .channel-group-card:hover,
[data-theme="light"] .founder-challenge-banner:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 32px -12px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Buttons in Light Mode */
[data-theme="light"] .btn-primary {
  background: #0f172a;
  color: #ffffff !important;
}

[data-theme="light"] .btn-primary:hover {
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.28);
}

[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

[data-theme="light"] .btn-outline:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

[data-theme="light"] .btn-executive-challenge {
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .btn-executive-challenge:hover {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

/* Hero & Navbar Visuals in Light Mode */
[data-theme="light"] .role-primary {
  color: #1d4ed8;
}

/* Light Mode - Solid Dark Executive Header & Light/Dark Canvas Mix */
[data-theme="light"] .navbar {
  background: #090c15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .navbar .brand-name {
  color: #f1f5f9;
}

[data-theme="light"] .navbar .brand-monogram {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

[data-theme="light"] .navbar .brand-separator {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .navbar .nav-item {
  color: #94a3b8;
}

[data-theme="light"] .navbar .nav-item:hover,
[data-theme="light"] .navbar .nav-item.active {
  color: #ffffff;
}

[data-theme="light"] .navbar .nav-highlight {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="light"] .navbar .nav-highlight:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

[data-theme="light"] .navbar .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}

[data-theme="light"] .navbar .status-indicator {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

[data-theme="light"] .hero-badge {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .hero-badge .badge-accent {
  color: #0284c7;
}

[data-theme="light"] .hero-badge .badge-text {
  color: #0f172a;
}

[data-theme="light"] .hero-badge .badge-separator {
  color: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .metrics-strip {
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.25);
  border-radius: var(--radius-lg);
}

[data-theme="light"] .metrics-strip .metric-value {
  color: #ffffff;
}

[data-theme="light"] .metrics-strip .metric-desc {
  color: #94a3b8;
}

[data-theme="light"] .metrics-strip .metric-divider {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .portrait-inner-frame {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .portrait-mask-container {
  background: #ffffff;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.2), 0 0 35px -10px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .portrait-crosshair {
  border-color: rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .portrait-chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

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

[data-theme="light"] .card-icon {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

/* Projects & Specs in Light Mode */
[data-theme="light"] .case-context-note {
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--accent-blue);
  color: #334155;
}

[data-theme="light"] .case-context-note strong {
  color: #0f172a;
}

[data-theme="light"] .spec-grid {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .link-inline {
  color: #2563eb;
  text-decoration-color: rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .link-inline:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

/* Discord Collective in Light Mode */
[data-theme="light"] .avatar-img-frame {
  background: #ffffff;
  border-color: #ffffff;
}

[data-theme="light"] .avatar-presence-indicator {
  border-color: #ffffff;
}

[data-theme="light"] .founder-handle-pill {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .handle-at {
  color: #4f46e5;
}

[data-theme="light"] .role-badge-primary {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: #4338ca;
}

[data-theme="light"] .role-badge-secondary {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .founder-telemetry-panel {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

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

[data-theme="light"] .val-active {
  color: #0284c7;
}

[data-theme="light"] .founder-direct-connect-link {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-secondary);
}

[data-theme="light"] .founder-direct-connect-link:hover {
  background: rgba(88, 101, 242, 0.08);
  border-color: rgba(88, 101, 242, 0.3);
  color: #4338ca;
}

[data-theme="light"] .collective-manifesto {
  color: #334155;
}

[data-theme="light"] .track-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .track-row:hover {
  background: #f1f5f9;
  border-color: rgba(88, 101, 242, 0.35);
}

[data-theme="light"] .track-hash {
  color: #4f46e5;
}

[data-theme="light"] .spec-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

/* Bento Dossier in Light Mode */
[data-theme="light"] .ledger-institution-pill {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .board-name {
  color: #1e293b;
}

[data-theme="light"] .stream-highlight {
  color: #1d4ed8;
}

[data-theme="light"] .milestone-active .milestone-body {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .milestone-active .milestone-body::before {
  background: #ffffff;
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .line-upcoming-path {
  background: repeating-linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0, rgba(15, 23, 42, 0.2) 4px, transparent 4px, transparent 8px);
}

[data-theme="light"] .badge-current {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.28);
}

[data-theme="light"] .badge-completed {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.25);
}

[data-theme="light"] .bento-creed-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .creed-display-quote {
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .subj-tag {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .subj-tag:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .subj-cs {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .location-country {
  color: #334155;
}

[data-theme="light"] .location-timezone-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .sys-pill {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .sys-pill:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

[data-theme="light"] .hobby-spec-pill {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4338ca;
}

/* Founder Challenge Banner in Light Mode */
[data-theme="light"] .founder-challenge-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .confidential-pill {
  color: #334155;
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

/* Contact Channels in Light Mode */
[data-theme="light"] .executive-channel-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .executive-channel-item:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .channel-pill-tag {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="light"] .channel-handle {
  color: #475569;
}

[data-theme="light"] .executive-channel-item:hover .channel-handle {
  color: #0f172a;
}

[data-theme="light"] .github-bg {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Clearance Modal in Light Mode */
[data-theme="light"] .clearance-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .clearance-modal-dialog {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .modal-close-trigger {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #64748b;
}

[data-theme="light"] .modal-close-trigger:hover {
  color: #0f172a;
  background: #e2e8f0;
}

[data-theme="light"] .clearance-quote-hero {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  border-left: 3px solid var(--accent-blue);
}

[data-theme="light"] .clearance-modal-analysis-note {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .note-content {
  color: #475569;
}

/* Footer in Light Mode */
[data-theme="light"] .footer-credo {
  color: #334155;
}

[data-theme="light"] .footer-link:hover {
  color: #0f172a;
}

[data-theme="light"] .toast {
  background: #0f172a;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

