/* ==========================================================================
   Sivakorn Khundilokrattaya - Production-Grade Data Science & ML Showcase
   Design System: Eyestrain-Free Soft Dark Obsidian (#0B0F17) & Slate (#131B2A)
   Delicate Borders (#1E293B), Sky Blue (#38BDF8) & Sage Emerald (#34D399) Accents
   ========================================================================== */

:root {
  /* Dark Slate & Quantitative Terminal Design Tokens */
  --bg-primary: #0B0F17;            /* Deep Obsidian Slate Base */
  --bg-secondary: #0F172A;          /* Midnight Slate Secondary */
  --bg-tertiary: #131B2E;           /* Elevated Charcoal Surface */
  --bg-card: rgba(15, 23, 42, 0.65); /* Glassmorphic Dark Slate Container */
  --bg-card-hover: rgba(22, 31, 52, 0.82);
  --bg-drawer: #0B0F17;
  --bg-code: #070B12;

  --border-color: rgba(255, 255, 255, 0.08); /* Hairline Glass Border */
  --border-muted: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(56, 189, 248, 0.38);  /* Sky Cyan Border Hover */
  --border-accent: rgba(99, 102, 241, 0.35); /* Electric Indigo Border */

  /* Accents - Electric Indigo & Sky Cyan */
  --accent-cyan: #38bdf8;            /* Sky Cyan Primary Accent */
  --accent-indigo: #6366f1;          /* Electric Indigo Primary Accent */
  --accent-teal: #0ea5e9;            /* Cool Cyan Midpoint */
  --accent-sky: #38bdf8;             /* Sky Blue Accent */
  --accent-sage: #34d399;            /* Soft Sage Emerald */
  --accent-purple: #a78bfa;          /* Soft Lavender */
  --accent-amber: #fbbf24;           /* Warm Amber */
  --accent-coral: #f87171;           /* Muted Coral Red */

  --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  --cyan-glow: rgba(56, 189, 248, 0.16);
  --indigo-glow: rgba(99, 102, 241, 0.16);
  --sky-glow: rgba(56, 189, 248, 0.12);
  --sage-glow: rgba(52, 211, 153, 0.12);

  /* Typography Colors */
  --text-primary: #F8FAFC;          /* High-Contrast Off-White for Headings */
  --text-secondary: #CBD5E1;        /* Slate-300 Crisp Subtitle */
  --text-muted: #94A3B8;            /* Slate-400 for Body Descriptions */
  --text-dim: #64748B;              /* Slate-500 for Code/Meta Comments */

  /* Badge Colors */
  --badge-bg: rgba(56, 189, 248, 0.08);
  --badge-text: #38bdf8;
  --badge-border: rgba(56, 189, 248, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  /* Layout & Dimensions */
  --container-max: 1200px;
  --header-height: 70px;
  --drawer-width: 680px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-drawer: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-coverflow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-drawer: -12px 0 60px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(56, 189, 248, 0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 75%, rgba(99, 102, 241, 0.04), transparent 60%);
  background-attachment: fixed;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Quantitative Grid/Mesh Background with Soft Radial Fade Mask */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-size: 52px 52px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 25%, transparent 85%);
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-sky);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-sky);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #7dd3fc;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Scroll Entrance Animations (Weighted Cinematic Curve)
   ========================================================================== */
/* Initial hidden state: minimal vertical offset to prevent jarring pops */
.reveal-smooth {
  opacity: 0;
  transform: translateY(14px);
  /* 1.05s duration with Quintic Out easing for a gentle, luxurious deceleration */
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed active state */
.reveal-smooth.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Relaxed stagger delays for sequential elements */
.stagger-1 { transition-delay: 90ms; }
.stagger-2 { transition-delay: 180ms; }
.stagger-3 { transition-delay: 270ms; }
.stagger-4 { transition-delay: 360ms; }
.stagger-5 { transition-delay: 450ms; }

/* Legacy alias for backward compatibility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility: Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-smooth,
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Section Header (Keynote Slide Deck Cadence) */
.section {
  padding: clamp(80px, 8.5vw, 120px) 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '//';
  opacity: 0.6;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-top: 6px;
  padding-bottom: 4px;
  margin-bottom: 12px;
  color: #F8FAFC;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Minimalist Floating Navigation (Vercel / Linear Aesthetic)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(11, 15, 23, 0.96);
  border-bottom-color: rgba(30, 41, 59, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Left Section: Logo + Status Badge */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand-logo:hover .brand-text {
  color: var(--accent-sky);
}

.brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: #0B0F17;
  border: 1px solid #1E293B;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.brand-logo:hover .brand-logo-icon {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.brand-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.brand-domain {
  color: #64748B;
  font-weight: 500;
  transition: color 0.2s ease;
}

.brand-logo:hover .brand-domain {
  color: var(--accent-sky);
}

.nav-status-badge,
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-dot,
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Center Section: Nav Links (Desktop: flex, Mobile: hidden) */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  padding: 4px 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38BDF8, #6366F1);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile dropdown menu */
@media (max-width: 767px) {
  .nav-links.mobile-active {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

/* Right Section: Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-resume-action,
.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 0.5rem 1.125rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-resume-action:hover,
.btn-resume:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  color: #0B0F17;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


/* ==========================================================================
   1. HERO SECTION (Clean, Sharp, Authoritative)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(86vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 50px;
  overflow: hidden;
}

#neural-canvas,
#footer-neural-canvas,
#data-stream-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(11, 15, 23, 0.15) 0%, rgba(11, 15, 23, 0.88) 75%, var(--bg-primary) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.hero-meta-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  cursor: default;
  transition: border-color 0.2s ease, opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-meta-pill:hover {
  border-color: rgba(52, 211, 153, 0.45);
}

.meta-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sage);
  box-shadow: 0 0 6px var(--accent-sage);
  animation: pulseGreenDot 2s infinite;
  flex-shrink: 0;
}

.meta-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0B0F17;
  border: 1px solid var(--accent-sage);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.hero-meta-pill:hover .meta-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #f8fafc;
}

.hero-name .highlight {
  position: relative;
  color: var(--accent-sky);
  transition: text-shadow 0.3s ease, filter 0.3s ease;
  cursor: default;
}

.hero-name .highlight:hover {
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.7), 0 0 42px rgba(56, 189, 248, 0.35);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

/* Two-Part Hero Subheadline Group */
.whitespace-nowrap {
  white-space: nowrap !important;
}

.hero-subheadline-group {
  margin-bottom: 28px;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-identity-line {
  font-size: clamp(0.975rem, 1.65vw, 1.22rem);
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #F8FAFC 0%, #38BDF8 50%, #F8FAFC 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 7s linear infinite;
  display: inline-block;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .hero-identity-line {
    white-space: nowrap;
  }
}

@keyframes shineText {
  to { background-position: 200% center; }
}

.hero-specialty-line {
  font-size: clamp(0.835rem, 1.15vw, 0.965rem);
  color: #94A3B8;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 1200px;
  text-wrap: balance;
}

@media (min-width: 840px) {
  .hero-specialty-line {
    white-space: nowrap;
  }
}

/* Unified Action & Social Bar */
/* Unified Action & Social Bar (Compact 1-Row Modern Command Dock) */
.hero-unified-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #1E293B;
  padding: 8px 10px;
  border-radius: 16px;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5);
  margin-top: 6px;
  margin-bottom: 20px;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06B6D4;
  color: #020617;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-pill:hover {
  background: #22D3EE;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  color: #020617;
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  color: #CBD5E1;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-pill:hover {
  border-color: #475569;
  color: #FFFFFF;
  background: #334155;
  transform: translateY(-1px);
}

.btn-exec-pill {
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 600;
}

.btn-exec-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #F59E0B;
  color: #FDE68A;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.btn-terminal-pill {
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

.terminal-shortcut-badge {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: #94A3B8;
  background: #0B0F17;
  border: 1px solid #334155;
  padding: 1.5px 5px;
  border-radius: 4px;
  margin-left: 2px;
}

.hero-bar-divider {
  width: 1px;
  height: 22px;
  background: rgba(51, 65, 85, 0.8);
  margin: 0 2px;
}

@media (max-width: 640px) {
  .hero-bar-divider {
    display: none;
  }
}

.hero-social-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 2px;
}

.hero-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.hero-icon-btn:hover {
  color: #67E8F9;
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Quick Terminal Modal (Developer / Recruiter Command Hub)
   ========================================================================== */
.terminal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.terminal-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-window {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.12);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
}

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

.terminal-title-bar {
  padding: 12px 18px;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.traffic-dots {
  display: flex;
  gap: 7px;
}

.traffic-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-title {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.terminal-close-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 2px 6px;
}

.terminal-close-btn:hover {
  color: #F8FAFC;
}

.terminal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.terminal-log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.t-prompt {
  color: var(--accent-sky);
  font-weight: 600;
}

.t-cmd {
  color: #F8FAFC;
  font-weight: 600;
}

.terminal-output-block {
  background: rgba(19, 27, 42, 0.7);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 10px 0 16px;
}

.t-line {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-line:last-child {
  margin-bottom: 0;
}

.t-key {
  color: #94A3B8;
  font-weight: 500;
}

.t-val {
  color: #E2E8F0;
}

.t-val-highlight {
  color: var(--accent-sky);
  font-weight: 600;
}

.t-val-sage {
  color: var(--accent-sage);
  font-weight: 600;
}

.t-val-badge {
  color: #34D399;
}

.terminal-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.t-chip-label {
  font-size: 0.725rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.t-chip-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #F8FAFC;
  border-color: var(--accent-sky);
  transform: translateY(-1px);
}

.terminal-history {
  margin: 10px 0;
}

.terminal-history-item {
  margin-bottom: 10px;
}

.terminal-input-container {
  position: relative;
  margin-top: 12px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-input-row:focus-within {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.1);
}

.terminal-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.terminal-ghost-text {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  color: #64748B;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: normal;
  pointer-events: none;
  white-space: pre;
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
}

.terminal-cli-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: normal;
  position: relative;
  z-index: 2;
}

.terminal-cli-input::placeholder {
  color: #475569;
}

.terminal-tab-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748B;
  background: #0B0F17;
  border: 1px solid #334155;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  user-select: none;
}

.terminal-tab-hint.visible {
  opacity: 1;
}

/* Floating Autocomplete Recommendation Dropdown */
.terminal-autocomplete-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.terminal-autocomplete-dropdown.show {
  display: flex;
}

.t-suggest-item {
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #94A3B8;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
  user-select: none;
}

.t-suggest-item:hover,
.t-suggest-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border-left-color: var(--accent-sky);
}

.t-suggest-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-suggest-icon {
  font-size: 0.75rem;
  color: var(--accent-sky);
  width: 14px;
  text-align: center;
}

.t-suggest-cmd {
  font-weight: 700;
  color: #F8FAFC;
}

.t-suggest-item.active .t-suggest-cmd {
  color: var(--accent-sky);
}

.t-suggest-desc {
  font-size: 0.7rem;
  color: #64748B;
  margin-left: 4px;
}

.t-suggest-item.active .t-suggest-desc {
  color: #94A3B8;
}

.t-suggest-tip {
  font-size: 0.65rem;
  color: #64748B;
  background: #0B0F17;
  border: 1px solid #334155;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==========================================================================
   1. METRICS STRIP (Refactored Capability Stats & 3D Tilt Micro-Interactions)
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 5;
  margin-top: -10px;
  padding-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  perspective: 1000px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  transform-style: preserve-3d;
  cursor: default;
}

.stat-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(24, 34, 53, 0.45);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.08);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}

.stat-prefix {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-right: 2px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-sky);
}

.stat-subtitle {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-subtext {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Hover Mini-Chip Tooltip */
.stat-tooltip-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--accent-sage);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  width: fit-content;
}

/* ==========================================================================
   Sequential Top-to-Bottom Storytelling Layout (3 Tiers)
   ========================================================================== */
.about-tier-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.about-tier-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-tier-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

/* --------------------------------------------------------------------------
   TIER 1: FULL-WIDTH HERO CARD (Identity, Academic Credentials & Languages)
   -------------------------------------------------------------------------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.about-hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-profile-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.45;
  margin: 0;
}

.about-profile-sub {
  font-size: 0.885rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0;
}

.about-focus-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.focus-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-sky);
  color: #F8FAFC;
  transform: translateY(-1px);
}

.about-hero-sidebar {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-sidebar-degree {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.hero-sidebar-inst-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-sidebar-inst {
  font-size: 0.825rem;
  color: #94A3B8;
}

.hero-sidebar-divider {
  height: 1px;
  background: #1E293B;
  width: 100%;
}

.hero-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #CBD5E1;
  background: #131B2A;
  border: 1px solid #1E293B;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.hero-lang-chip .lang-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

.hero-lang-chip.highlight {
  cursor: pointer;
  border-color: rgba(56, 189, 248, 0.35);
  color: #F8FAFC;
}

.hero-lang-chip.highlight:hover {
  border-color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   TIER 2: FULL-WIDTH HORIZONTAL CONNECTED PIPELINE
   -------------------------------------------------------------------------- */
.pipeline-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.horizontal-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

@media (max-width: 992px) {
  .horizontal-pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .horizontal-pipeline-grid {
    grid-template-columns: 1fr;
  }
}

.pipeline-h-card {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 180px;
}

.pipeline-h-card:hover {
  border-color: var(--accent-sky);
  background: rgba(19, 27, 42, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.15);
}

.pipeline-h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pipeline-h-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-sky);
}

.pipeline-h-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}

.pipeline-h-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 6px;
}

.pipeline-h-desc {
  font-size: 0.775rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.pipeline-h-footer {
  margin-top: auto;
}

.pipeline-arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0F172A;
  border: 1px solid #334155;
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
  .pipeline-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   TIER 3: LOWER BALANCED 2-COLUMN DECK
   -------------------------------------------------------------------------- */
.about-tier-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .about-tier-lower-grid {
    grid-template-columns: 1fr;
  }
}

.about-standards-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.standards-coursework-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.standards-sub-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-dim);
}

.standards-anchors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.standards-anchor-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--transition-fast);
}

.standards-anchor-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.standards-anchor-icon {
  font-size: 0.95rem;
  color: var(--accent-sky);
  margin-top: 2px;
  flex-shrink: 0;
}

.standards-anchor-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.standards-anchor-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.standards-github-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-sky);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.standards-github-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.standards-anchor-desc {
  font-size: 0.75rem;
  color: #94A3B8;
  line-height: 1.45;
}

.info-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: border-color var(--transition-fast);
}

.info-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-sky);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.edu-title {
  font-size: 1rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.edu-institution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.edu-institution {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-sky);
}

.edu-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-sage);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.edu-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sage);
  box-shadow: 0 0 6px var(--accent-sage);
  animation: pulseGreenDot 2s infinite;
}

@keyframes pulseGreenDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.coursework-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #CBD5E1;
  background: #131B2A;
  border: 1px solid #1E293B;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: default;
}

.course-pill:hover {
  color: #F8FAFC;
  border-color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

/* Languages Card with Visual Progress Bars & Tooltips */
.language-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.language-item {
  position: relative;
  background: #131B2A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: default;
}

.language-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.lang-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
}

.lang-level {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent-sky);
  background: #1E293B;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.lang-progress-track {
  width: 100%;
  height: 5px;
  background: #0B0F17;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #1E293B;
}

.lang-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.lang-progress-fill.th {
  width: 100%;
  background: linear-gradient(90deg, #34D399, #10B981);
}

.lang-progress-fill.en {
  width: 70%;
  background: linear-gradient(90deg, #38BDF8, #0284C7);
}

.lang-progress-fill.jp {
  width: 30%;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
}

.lang-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0B0F17;
  border: 1px solid var(--accent-sky);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 0.675rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.language-item:hover .lang-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   2. SECTION A: INTERACTIVE LAYERED BENTO DECK (2D Focal Showcase)
   ========================================================================== */
.focal-deck-section {
  position: relative;
  padding: 95px 0 85px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.focal-deck-stage {
  position: relative;
  width: 100%;
  padding: 24px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  cursor: grab;
  user-select: none;
}

.focal-deck-stage:active {
  cursor: grabbing;
}

.focal-deck-track {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: flat;
}

.focal-deck-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.08) 0%, transparent 80%), #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: pointer;
  will-change: transform, opacity;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.focal-deck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.focal-deck-card.active::before {
  opacity: 1;
}

.focal-deck-card.active {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.12);
}

.focal-deck-card.active .focal-deck-title {
  color: #F8FAFC;
}

.focal-deck-card.active .focal-deck-summary {
  color: var(--text-secondary);
}

.focal-deck-card.inactive {
  border-color: #1E293B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0.4;
  filter: blur(0.4px) grayscale(15%);
}

.focal-deck-card.inactive .focal-deck-title {
  color: #CBD5E1; /* slate-300: High WCAG contrast */
}

.focal-deck-card.inactive .focal-deck-summary {
  color: #94A3B8; /* slate-400 */
}

.focal-deck-card.inactive:hover {
  border-color: rgba(56, 189, 248, 0.4);
  opacity: 0.75 !important;
  filter: none;
}

.focal-deck-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.focal-deck-domain-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.04em;
  color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.focal-deck-metric-chip {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--accent-sage);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.focal-deck-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.focal-deck-summary {
  font-size: 0.885rem;
  line-height: 1.58;
  margin-bottom: 16px;
  transition: color 0.25s ease;
}

.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1E293B;
  padding: 2.5px 8px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  color: #F8FAFC;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.focal-deck-card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-muted);
  padding-top: 14px;
}

.btn-deck-trigger {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: gap var(--transition-fast);
}

.focal-deck-card.active:hover .btn-deck-trigger {
  gap: 10px;
  color: #7dd3fc;
}

/* Minimalist Control Bar */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  margin-bottom: 16px;
  position: relative;
  z-index: 25;
}

.deck-control-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-subtle);
}

.deck-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.deck-nav-btn:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  transform: scale(1.05);
}

.deck-counter-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-sky);
  letter-spacing: 0.05em;
  min-width: 58px;
  text-align: center;
}

.deck-progress-track {
  width: 70px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.deck-progress-fill {
  width: 25%;
  height: 100%;
  background: var(--accent-sky);
  border-radius: var(--radius-full);
  transition: width 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TECHNICAL ARSENAL: DUAL-TRACK SMOOTH INFINITE MARQUEE
   ========================================================================== */
.marquee-section {
  position: relative;
  overflow: hidden;
  height: auto;
  padding: 80px 0 90px;
  background: rgba(11, 15, 23, 0.65);
  clear: both;
}

.marquee-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.marquee-filter-tab {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.marquee-filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-sky);
}

.marquee-filter-tab.active {
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-sky);
}

.marquee-filter-tab.marquee-mode-tab {
  margin-left: 6px;
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent-sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.05);
}

.marquee-filter-tab.marquee-mode-tab:hover,
.marquee-filter-tab.marquee-mode-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
}

/* Marquee Container with Soft Gradient Edge Masks & Generous Clearance */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: auto;
  min-height: auto;
  padding: 16px 0 24px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-row {
  display: flex;
  width: max-content;
  margin-bottom: 18px;
  user-select: none;
  align-items: center;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  will-change: transform;
  align-items: center;
}

.marquee-track-left {
  animation: scrollLeft 45s linear infinite;
}

.marquee-track-right {
  animation: scrollRight 50s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Marquee Card Style */
.marquee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 170px;
  flex-shrink: 0;
  box-sizing: border-box;
  height: auto;
}

.marquee-card:hover {
  border-color: var(--accent-sky);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.marquee-card.dimmed {
  opacity: 0.22;
  border-color: transparent;
}

/* Responsive Static Grid Mode (when toggled via button or reduced motion) */
.marquee-container.grid-mode {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  overflow: visible !important;
  padding: 12px 0 24px;
}

.marquee-container.grid-mode .marquee-row {
  width: 100% !important;
  display: contents !important;
}

.marquee-container.grid-mode .marquee-track {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  animation: none !important;
  margin-bottom: 12px !important;
}

@media (min-width: 640px) {
  .marquee-container.grid-mode .marquee-track {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) {
  .marquee-container.grid-mode .marquee-track {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .marquee-container.grid-mode .marquee-track {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

.marquee-container.grid-mode .marquee-card {
  width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
}

.marquee-container.grid-mode .marquee-card.marquee-duplicate {
  display: none !important;
}

@media (max-width: 640px) {
  .marquee-container:not(.grid-mode) {
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
  .marquee-card {
    min-width: 155px;
    padding: 8px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track-left,
  .marquee-track-right {
    animation: none !important;
  }
}

.marquee-card-icon {
  font-size: 1.3rem;
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
}

.marquee-card-info {
  display: flex;
  flex-direction: column;
}

.marquee-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.marquee-card-badge {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-dim);
}

/* Marquee Tooltip */
.marquee-tooltip {
  position: absolute;
  background: var(--bg-drawer);
  border: 1px solid var(--accent-sky);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  z-index: 100;
  transform: translateY(6px);
}

.marquee-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Competitions & Hackathons (Clean Scannable Timeline)
   ========================================================================== */
/* ==========================================================================
   Competitions & Hackathons (Executive High-Impact Cards & Dossier Modal)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.4) 0%, #1E293B 70%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 28px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  z-index: 2;
  transition: all 0.25s ease;
}

.timeline-dot.sage-dot {
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.timeline-dot.purple-dot {
  background: #A78BFA;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.timeline-dot.amber-dot {
  background: #FBBF24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.comp-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.comp-card:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.1);
}

.comp-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 4px;
}

.comp-org {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comp-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.comp-badge.sage {
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.comp-badge.purple {
  color: #A78BFA;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.comp-badge.sky {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.comp-badge.amber {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Impact Metric Ribbon (3 Numeric Callouts) */
.comp-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

@media (max-width: 680px) {
  .comp-metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.comp-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comp-metric-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.comp-metric-val.sage { color: #34D399; }
.comp-metric-val.sky { color: #38BDF8; }
.comp-metric-val.purple { color: #A78BFA; }
.comp-metric-val.amber { color: #FBBF24; }

.comp-metric-label {
  font-size: 0.775rem;
  color: #94A3B8;
  line-height: 1.4;
}

.comp-teaser {
  font-size: 0.9rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin: 0 0 16px;
}

.comp-category-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: #FBBF24;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: inline-block;
}

.comp-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.comp-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.comp-pill:hover {
  border-color: #FBBF24;
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
}

.comp-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.btn-dossier-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.1);
}

.btn-dossier-trigger:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-cert-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #34D399;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cert-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #34D399;
  color: #F8FAFC;
}

/* ==========================================================================
   Technical Dossier Deep-Dive Modal (Spacious Enterprise-Grade Drawer)
   ========================================================================== */
.dossier-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dossier-modal-backdrop.active {
  display: flex;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-modal-window {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  max-width: 1040px;
  width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(56, 189, 248, 0.12);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-modal-header {
  padding: 20px 32px;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.dossier-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dossier-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
}

.dossier-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.dossier-modal-body {
  padding: 32px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dossier-modal-body::-webkit-scrollbar {
  width: 8px;
}
.dossier-modal-body::-webkit-scrollbar-track {
  background: #0B0F17;
}
.dossier-modal-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.dossier-modal-body::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

.dossier-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-card-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dossier-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 840px) {
  .dossier-grid,
  .dossier-grid-3 {
    grid-template-columns: 1fr;
  }
}

.dossier-item {
  background: #080C14;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.dossier-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.dossier-item-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-item-val {
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.62;
}

.dossier-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  background: #0F172A;
  border-top: 1px solid #1E293B;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. FOOTER & ENHANCED CONTACT HUB ("Let's Connect")
   ========================================================================== */
#contact {
  position: relative;
  overflow: hidden;
}

#contact .container {
  position: relative;
  z-index: 2;
}

.contact-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  padding: 48px 36px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.06);
  transition: border-color 0.3s ease, opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

/* Status & Work Logistics Strip */
.contact-status-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.contact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid #1E293B;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.contact-status-badge:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #F8FAFC;
}

.contact-status-badge.available {
  color: #34D399;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.contact-status-badge.available .status-dot,
.contact-status-badge.available .visitor-pulse-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.contact-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  color: #94A3B8;
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Primary Resume CTA */
.btn-resume-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F172A;
  background: var(--accent-sky);
  border: 1px solid #38BDF8;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.btn-resume-cta:hover {
  background: #7DD3FC;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
}

/* Secondary Action: Direct Email */
.btn-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
  background: #1E293B;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-email-cta:hover {
  background: #27354A;
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

/* Tertiary Action: Copy Email with Text-Flip */
.btn-copy-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-email-cta:hover {
  border-color: var(--accent-sky);
  color: #F8FAFC;
  transform: translateY(-2px);
}

.btn-copy-email-cta.copied-success {
  border-color: #34D399;
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.3);
}

/* Secondary Monospace Links Row */
.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  text-decoration: none;
  padding: 6px 14px;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  color: var(--accent-sky);
  border-color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.footer-social-link.resume-download-link {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.06);
}

.footer-social-link.resume-download-link:hover {
  color: #FFFFFF;
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.2);
}

.footer-link-divider {
  color: #334155;
  font-size: 0.85rem;
  user-select: none;
}

/* Footer Bottom Baseline Alignment */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.775rem;
  color: #64748B;
  text-align: left;
}

@media (max-width: 680px) {
  .contact-card {
    padding: 36px 20px 24px;
  }
  .footer-button-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-resume-cta,
  .btn-email-cta,
  .btn-copy-email-cta {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-copyright {
    text-align: center;
  }
}

/* Certificate Action Trigger Buttons */
.btn-cert-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.btn-cert-trigger:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #F8FAFC;
  border-color: var(--accent-sky);
  transform: translateY(-1px);
}

.btn-cert-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-cert-action:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #F8FAFC;
  border-color: var(--accent-sky);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Certificate Viewer Modals (High-Fidelity Document Previews)
   ========================================================================== */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.cert-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-window {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.12);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.cert-modal-header {
  padding: 16px 24px;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cert-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-modal-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cert-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0;
}

.cert-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #0B0F17;
}

.cert-modal-footer {
  padding: 14px 24px;
  background: #0F172A;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

/* Certificate Paper Layouts */
.cert-paper-canvas {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Oxford Placement Test Paper Styling */
.cert-paper-canvas.oxford-theme {
  background: #FFFFFF;
  color: #1E293B;
  padding: 32px 36px;
  font-family: var(--font-sans);
}

.oxford-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.oxford-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oxford-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.oxford-brand-sub {
  font-size: 0.725rem;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
}

.aua-brand {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aua-brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
}

.oxford-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.oxford-info-item {
  display: flex;
  flex-direction: column;
}

.oxford-info-label {
  font-size: 0.725rem;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 600;
}

.oxford-info-val {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0F172A;
}

.oxford-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.825rem;
}

.oxford-table th {
  background: #0F172A;
  color: #FFFFFF;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #0F172A;
}

.oxford-table td {
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  color: #334155;
  vertical-align: top;
}

.oxford-table tr.highlight-row {
  background: #F1F5F9;
  font-weight: 600;
}

.oxford-score-badge {
  display: inline-block;
  background: #0284C7;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.cefr-guide-track {
  display: flex;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  height: 28px;
  margin-top: 10px;
}

.cefr-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  border-right: 1px solid #CBD5E1;
}

.cefr-segment.active-b1 {
  background: #0284C7;
  color: #FFFFFF;
}

/* Aihack Certificate Paper Styling */
.cert-paper-canvas.aihack-theme {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  color: #0F172A;
  padding: 36px 40px;
  border: 2px solid #CBD5E1;
  position: relative;
  overflow: hidden;
}

.aihack-cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.aihack-logo-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #EF4444;
  letter-spacing: -0.02em;
}

.aihack-logo-sub {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.1em;
}

.aihack-gold-medallion {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706, #FDE68A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350F;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.aihack-main-heading {
  text-align: center;
  font-size: 1.95rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.aihack-presented-to {
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
  font-style: italic;
  margin-bottom: 6px;
}

.aihack-recipient-name {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  font-family: var(--font-sans);
}

.aihack-citation {
  text-align: center;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 28px;
}

.aihack-signature-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #E2E8F0;
  padding-top: 18px;
  margin-top: 10px;
}

.aihack-sig-block {
  display: flex;
  flex-direction: column;
}

.aihack-sig-kanji {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  font-family: serif;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.aihack-sig-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
}

.aihack-sig-title {
  font-size: 0.725rem;
  color: #64748B;
}

.aihack-partners {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.725rem;
  color: #64748B;
  font-weight: 600;
}

/* ==========================================================================
   SKILLKAMP by KBTG Industry Certification Badges & Cards (Segmented)
   ========================================================================== */
.kbtg-cert-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.kbtg-cert-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
}

.kbtg-issuer-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kbtg-tab-switcher {
  display: flex;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.kbtg-tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kbtg-tab-btn:hover:not(.active) {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.04);
}

.kbtg-tab-btn.active {
  background: #1E293B;
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.kbtg-tab-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kbtg-tab-pane {
  display: none;
  flex-direction: column;
  height: 100%;
  flex: 1;
  justify-content: space-between;
  animation: fadeInPane 0.2s ease;
}

.kbtg-tab-pane.active {
  display: flex;
}

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

/* Dashboard Header & Score Callout */
.kbtg-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.kbtg-dashboard-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kbtg-badge-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0;
}

.kbtg-bench-note {
  font-size: 0.725rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kbtg-score-callout {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  background: rgba(11, 15, 23, 0.8);
  border: 1px solid #1E293B;
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.kbtg-score-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: -0.02em;
}

.kbtg-score-max {
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748B;
}

/* 5-Domain Evaluation Micro-Grid */
.kbtg-domains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 16px;
  flex: 1;
}

@media (max-width: 580px) {
  .kbtg-domains-grid {
    grid-template-columns: 1fr;
  }
}

.kbtg-domain-card {
  background: rgba(11, 15, 23, 0.75);
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kbtg-domain-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.kbtg-domain-card.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.kbtg-domain-card-full {
  grid-column: span 2;
}

@media (max-width: 580px) {
  .kbtg-domain-card-full {
    grid-column: span 1;
  }
}

.kbtg-domain-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.kbtg-domain-name {
  font-size: 0.725rem;
  font-weight: 500;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kbtg-domain-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #38BDF8;
  flex-shrink: 0;
}

.kbtg-domain-max {
  color: #64748B;
  font-weight: 500;
  font-size: 0.675rem;
}

.kbtg-domain-bar-bg {
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  background: #1E293B;
  overflow: hidden;
}

.kbtg-domain-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  transition: width 0.6s ease;
}

.kbtg-domain-bar-fill.bg-emerald {
  background: linear-gradient(90deg, #059669, #34D399);
}

/* Pinned Action Footer */
.kbtg-pinned-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-kbtg-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kbtg-report:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #F8FAFC;
  transform: translateY(-1px);
}

.kbtg-verified-tag {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* KBTG STAMP Modal Certificate Canvas */
.cert-paper-canvas.kbtg-theme {
  background: #0D161F;
  color: #F8FAFC;
  padding: 32px 36px;
  border: 1px solid #1E293B;
  border-top: 3px solid #10B981;
  position: relative;
  overflow: hidden;
}

.kbtg-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.kbtg-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kbtg-logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  color: #10B981;
  letter-spacing: -0.02em;
  line-height: 1;
}

.kbtg-logo-sub {
  font-size: 0.65rem;
  color: #94A3B8;
  font-family: var(--font-mono);
}

.kbtg-stamp-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.kbtg-candidate-banner {
  text-align: center;
  background: rgba(19, 27, 42, 0.7);
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.kbtg-candidate-notice {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-bottom: 4px;
}

.kbtg-candidate-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 4px;
}

.kbtg-candidate-track {
  font-size: 1.05rem;
  font-weight: 700;
  color: #10B981;
}

.kbtg-candidate-subtext {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.kbtg-score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.825rem;
}

.kbtg-score-table th {
  background: #131B2A;
  color: #94A3B8;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #1E293B;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.kbtg-score-table td {
  padding: 10px 14px;
  border: 1px solid #1E293B;
  color: #CBD5E1;
}

.kbtg-score-table tr.total-row {
  background: rgba(16, 185, 129, 0.08);
  font-weight: 700;
}

.kbtg-score-table tr.total-row td {
  border-top: 2px solid #10B981;
  color: #F8FAFC;
}

.kbtg-score-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38BDF8;
}

.kbtg-score-val-green {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #10B981;
}

.kbtg-bench-val {
  font-family: var(--font-mono);
  color: #94A3B8;
}

.kbtg-scale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 14px;
}

.kbtg-scale-table th {
  background: #0F172A;
  color: #94A3B8;
  padding: 6px 10px;
  border: 1px solid #1E293B;
  text-align: left;
}

.kbtg-scale-table td {
  padding: 6px 10px;
  border: 1px solid #1E293B;
  color: #94A3B8;
}

.kbtg-scale-table tr.active-level {
  background: rgba(16, 185, 129, 0.12);
}

.kbtg-scale-table tr.active-level td {
  color: #10B981;
  font-weight: 600;
}

/* Footer Bottom (Minimal & Balanced) */
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-sky);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-elevated);
  transform: translateY(80px);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 3000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-sage);
}

/* ==========================================================================
   Expansive Technical Engineering Modal (Centered, Spacious, Readable)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-drawer {
  width: 100%;
  max-width: 1060px;
  max-height: 88vh;
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.08);
  transform: scale(0.95) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-backdrop.active .slide-drawer {
  transform: scale(1) translateY(0);
}

.drawer-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #0F172A;
  flex-shrink: 0;
}

.drawer-header-left {
  max-width: 82%;
}

.drawer-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 8px;
}

.drawer-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #1E293B;
  border: 1px solid #334155;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  color: #F8FAFC;
  border-color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.drawer-tabs {
  display: flex;
  gap: 8px;
  padding: 0 36px;
  background: #0B0F17;
  border-bottom: 1px solid #1E293B;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.drawer-tab-btn {
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.drawer-tab-btn:hover {
  color: #E2E8F0;
  background: rgba(30, 41, 59, 0.5);
}

.drawer-tab-btn.active {
  color: #F8FAFC;
  background: #0F172A;
  border-bottom-color: var(--accent-sky);
}

.drawer-body {
  padding: 32px 36px;
  overflow-y: auto;
  flex: 1;
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.drawer-tab-content {
  display: none;
}

.drawer-tab-content.active {
  display: block;
  animation: modalContentFade 0.25s ease;
}

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

/* Modal Content Bento & Visual Flow Nodes */
.drawer-sandbox-box {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.node-flow-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 18px 20px;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
}

.node-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131B2A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: #F8FAFC;
  transition: all 0.25s ease;
}

.node-card:hover {
  border-color: var(--accent-sky);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.node-arrow {
  color: var(--accent-sky);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.bento-micro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.bento-micro-card {
  background: #131B2A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.bento-micro-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bento-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.bento-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F8FAFC;
  margin: 0;
}

.bento-card-body {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.6;
}

.tech-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.tech-pill-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #131B2A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.tech-pill-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.tech-pill-icon {
  color: var(--accent-sky);
  font-size: 1.1rem;
  margin-top: 2px;
}

.tech-pill-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F8FAFC;
  margin-bottom: 2px;
}

.tech-pill-desc {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.45;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
}

.control-name {
  color: var(--text-secondary);
}

.control-value {
  font-family: var(--font-mono);
  color: var(--accent-sky);
  font-weight: 600;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-sky);
  cursor: pointer;
}

.output-value-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.output-value-badge.low-risk {
  color: var(--accent-sage);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.output-value-badge.moderate-risk {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.output-value-badge.high-risk {
  color: var(--accent-coral);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.waterfall-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.waterfall-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.725rem;
}

.waterfall-contrib.positive {
  color: var(--accent-coral);
  font-weight: 600;
}

.waterfall-contrib.negative {
  color: var(--accent-sage);
  font-weight: 600;
}

.waterfall-bar-container {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.waterfall-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.waterfall-bar.positive {
  background: var(--accent-coral);
}

.waterfall-bar.negative {
  background: var(--accent-sage);
}

/* ROC Sandbox Canvas */
#roc-canvas {
  width: 100%;
  max-width: 380px;
  height: 260px;
}

.confusion-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.cm-cell {
  background: var(--bg-code);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.cm-label {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--text-dim);
}

.cm-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   Discreet Visitor Counter Badge (Footer / Bottom Bar)
   ========================================================================== */
.visitor-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #94A3B8;
  background: #131B2A;
  border: 1px solid #1E293B;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  user-select: none;
}

.visitor-counter-badge:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #CBD5E1;
}

.visitor-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sage);
  box-shadow: 0 0 6px var(--accent-sage);
  animation: pulseGreenDot 2s infinite;
}

/* ==========================================================================
   Authentic Two-Page A4 Curriculum Vitae / Resume Layout
   ========================================================================== */
.drawer-backdrop.resume-modal-active .slide-drawer {
  max-width: 860px;
}

.resume-container-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resume-sticky-toolbar {
  padding: 12px 20px;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.resume-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-toolbar-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.resume-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-doc-switcher {
  display: inline-flex;
  align-items: center;
  background: #0D1524;
  border: 1px solid #1E293B;
  border-radius: var(--radius-sm, 6px);
  padding: 3px;
  gap: 3px;
}

.doc-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #94A3B8;
  font-family: var(--font-mono, monospace);
  font-size: 0.725rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.doc-switch-btn:hover {
  color: #F1F5F9;
  background: rgba(255, 255, 255, 0.05);
}

.doc-switch-btn.active {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.18);
}

.doc-switch-btn i {
  font-size: 0.75rem;
}

.resume-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-page-pill {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: #94A3B8;
  background: #131B2A;
  border: 1px solid #1E293B;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.btn-resume-jump {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #CBD5E1;
  background: #131B2A;
  border: 1px solid #1E293B;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-resume-jump:hover {
  border-color: var(--accent-sky);
  color: #F8FAFC;
  background: rgba(56, 189, 248, 0.1);
}

.resume-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94A3B8;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.resume-version-badge i {
  color: #64748B;
  font-size: 0.65rem;
}

.resume-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.resume-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
  animation: pulseGreenDot 2s infinite;
  flex-shrink: 0;
}

.btn-download-resume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download-resume:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

@media (max-width: 820px) {
  .resume-version-badge {
    display: none;
  }
}

@media (max-width: 640px) {
  .resume-toolbar-name {
    display: none;
  }
  .resume-status-text {
    display: none;
  }
  .resume-status-chip {
    padding: 6px;
  }
}

.resume-scroll-container,
html.dark .resume-scroll-container,
html.light .resume-scroll-container {
  padding: 28px 20px 40px;
  overflow-y: auto;
  flex: 1;
  background: #080C14 !important;
}

/* ==========================================================================
   AUTHENTIC A4 CRISP WHITE PAPER CANVAS (Modern Sans-serif ATS Resume)
   ========================================================================== */
.resume-paper,
.resume-a4-page,
.resume-paper-sheet,
html.dark .resume-paper,
html.dark .resume-a4-page,
html.light .resume-paper,
html.light .resume-a4-page {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.15) !important;
  border-radius: 1px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  width: 210mm !important;
  max-width: 100% !important;
  min-height: 297mm !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  padding: 13mm 15mm 12mm 15mm !important;
  transition: all 0.2s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.36 !important;
  letter-spacing: normal !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
}

@media (max-width: 768px) {
  .resume-paper,
  .resume-a4-page,
  html.dark .resume-paper,
  html.dark .resume-a4-page,
  html.light .resume-paper,
  html.light .resume-a4-page {
    padding: 18px 16px !important;
    min-height: auto !important;
    width: 100% !important;
  }
}

.resume-paper:last-child,
.resume-a4-page:last-child {
  margin-bottom: 0 !important;
}

.resume-content-wrap {
  width: 100%;
}

/* Print header timestamp container (hidden in showcase, shown in download/print) */
.resume-print-header {
  display: none;
  text-align: right;
  font-size: 8pt;
  color: #475569;
  margin-bottom: 2mm;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Headings (Name H1, Section titles) */
#resume-sheet h1,
.resume-paper h1,
.resume-a4-page h1,
.resume-name {
  color: #000000 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 20pt !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  margin: 0 0 3pt 0 !important;
}

.resume-headline {
  color: #111111 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 9.5pt !important;
  font-weight: 400 !important;
  text-align: center !important;
  margin: 0 0 3.5pt 0 !important;
}

.resume-contact {
  color: #222222 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 8.5pt !important;
  line-height: 1.4 !important;
  text-align: center !important;
  margin: 0 0 10pt 0 !important;
}

.resume-contact a {
  color: #222222 !important;
  text-decoration: none !important;
}

.resume-contact a:hover {
  text-decoration: underline !important;
  color: #000000 !important;
}

.resume-contact .pipe-sep {
  color: #666666 !important;
  margin: 0 5px !important;
}

#resume-sheet h2,
#resume-sheet .section-title,
.resume-paper h2,
.resume-paper .section-title,
.resume-a4-page h2,
.resume-a4-page .section-title {
  color: #000000 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 10pt !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid #000000 !important;
  padding-bottom: 1.5pt !important;
  margin-top: 11pt !important;
  margin-bottom: 5pt !important;
}

#resume-page-2 .resume-section:first-child .section-title {
  margin-top: 0 !important;
}

/* Entries and items */
.resume-entry {
  margin-bottom: 8.5pt;
  font-size: 8.75pt;
  line-height: 1.38;
  color: #111111;
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-skills-block > div {
  margin-bottom: 2.5pt;
  line-height: 1.38;
}

.resume-skills-block > div:last-child {
  margin-bottom: 0;
}

.grid-skill-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 2.5pt;
  line-height: 1.36;
}

.grid-skill-row strong {
  min-width: 148px;
  flex-shrink: 0;
}

.resume-paper p,
.resume-paper ul,
.resume-paper li,
.resume-a4-page p,
.resume-a4-page ul,
.resume-a4-page li {
  color: #111111 !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 8.75pt !important;
  line-height: 1.38 !important;
}

.resume-list {
  margin: 2pt 0 0 0 !important;
  padding-left: 14pt !important;
  list-style-type: disc !important;
}

.resume-list li {
  margin-bottom: 1.5pt !important;
  line-height: 1.38 !important;
}

.resume-list li:last-child {
  margin-bottom: 0 !important;
}

.resume-paper strong,
.resume-a4-page strong {
  color: #000000 !important;
  font-weight: 700 !important;
}

.resume-paper .italic,
.resume-a4-page .italic {
  font-style: italic !important;
}

/* Sheet Footer */
.resume-sheet-footer,
#resume-sheet .resume-sheet-footer,
.resume-paper .resume-sheet-footer,
.resume-a4-page .resume-sheet-footer {
  border-top: none !important;
  padding-top: 4pt !important;
  margin-top: 6pt !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 8.5pt !important;
  color: #222222 !important;
}

.resume-sheet-footer .page-number {
  font-size: 8.5pt !important;
  color: #222222 !important;
}

/* ==========================================================================
   1-Page Industry Resume Dedicated Layout Rules
   ========================================================================== */
.resume-single-page {
  min-height: 297mm !important;
  max-height: 297mm !important;
  padding: 10mm 15mm 9mm 15mm !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.resume-single-page .resume-entry {
  margin-bottom: 6pt !important;
}

.resume-single-page .resume-entry:last-child {
  margin-bottom: 0 !important;
}

.resume-single-page .section-title {
  margin-top: 7pt !important;
  margin-bottom: 3.5pt !important;
  font-size: 9.5pt !important;
}

.resume-single-page .resume-list {
  margin-top: 1.5pt !important;
}

.resume-single-page .resume-list li {
  margin-bottom: 1.5pt !important;
  line-height: 1.34 !important;
}

.resume-single-page .resume-contact {
  margin-bottom: 5pt !important;
}

/* Ensure dark theme website styles NEVER invert colors on crisp white resume paper */
html.dark .resume-paper,
html.dark .resume-a4-page,
.resume-paper,
.resume-a4-page {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

html.dark .resume-paper .text-slate-900,
html.dark .resume-paper .text-slate-800,
html.dark .resume-a4-page .text-slate-900,
html.dark .resume-a4-page .text-slate-800,
.resume-paper .text-slate-900,
.resume-paper .text-slate-800,
.resume-a4-page .text-slate-900,
.resume-a4-page .text-slate-800 {
  color: #000000 !important;
}

html.dark .resume-paper .text-slate-700,
html.dark .resume-paper .text-slate-600,
html.dark .resume-a4-page .text-slate-700,
html.dark .resume-a4-page .text-slate-600,
.resume-paper .text-slate-700,
.resume-paper .text-slate-600,
.resume-a4-page .text-slate-700,
.resume-a4-page .text-slate-600 {
  color: #222222 !important;
}

html.dark .resume-paper .text-slate-500,
html.dark .resume-paper .text-slate-400,
html.dark .resume-a4-page .text-slate-500,
html.dark .resume-a4-page .text-slate-400,
.resume-paper .text-slate-500,
.resume-paper .text-slate-400,
.resume-a4-page .text-slate-500,
.resume-a4-page .text-slate-400 {
  color: #444444 !important;
}

html.dark .resume-paper a,
html.dark .resume-a4-page a,
.resume-paper a,
.resume-a4-page a {
  color: #111111 !important;
}

html.dark .resume-paper .border-black,
html.dark .resume-a4-page .border-black,
.resume-paper .border-black,
.resume-a4-page .border-black {
  border-color: #000000 !important;
}

/* ==========================================================================
   Resume Typography Tokens & Utilities (ATS-Compliant Ivy League / Big Tech)
   ========================================================================== */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-sm { font-size: 0.875rem; line-height: 1.35rem; }
.text-xs { font-size: 0.75rem; line-height: 1.15rem; }
.text-\[13px\] { font-size: 13px; line-height: 1.625; }
.text-\[11px\] { font-size: 11px; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.italic { font-style: italic; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }

/* Palette Mapping (Dark default / Light overrides) */
.text-slate-900 { color: #F8FAFC; }
.text-slate-700 { color: #CBD5E1; }
.text-slate-600 { color: #94A3B8; }
.text-slate-500 { color: #64748B; }
.text-slate-400 { color: #94A3B8; }
.text-slate-300 { color: #CBD5E1; }
.text-slate-200 { color: #E2E8F0; }
.text-slate-100 { color: #F1F5F9; }
.text-white { color: #FFFFFF; }
.text-cyan-600, .text-cyan-400 { color: #38BDF8; }

html.light .text-slate-900 { color: #0F172A; }
html.light .text-slate-700 { color: #334155; }
html.light .text-slate-600 { color: #475569; }
html.light .text-slate-500 { color: #64748B; }
html.light .text-slate-400 { color: #64748B; }
html.light .text-slate-300 { color: #475569; }
html.light .text-slate-200 { color: #0F172A; }
html.light .text-slate-100 { color: #0F172A; }
html.light .text-white { color: #0F172A; }
html.light .text-cyan-600, html.light .text-cyan-400 { color: #0284C7; }

/* Explicit Dark Theme Utility Classes */
html.dark .dark\:text-white { color: #FFFFFF !important; }
html.dark .dark\:text-slate-100 { color: #F1F5F9 !important; }
html.dark .dark\:text-slate-200 { color: #E2E8F0 !important; }
html.dark .dark\:text-slate-300 { color: #CBD5E1 !important; }
html.dark .dark\:text-slate-400 { color: #94A3B8 !important; }
html.dark .dark\:text-slate-500 { color: #64748B !important; }
html.dark .dark\:text-slate-600 { color: #475569 !important; }
html.dark .dark\:text-cyan-400 { color: #38BDF8 !important; }
html.dark .dark\:bg-slate-900 { background-color: #0F172A !important; }
html.dark .dark\:border-slate-800 { border-color: #1E293B !important; }

/* Explicit Light Theme Utility Classes */
html.light .bg-white { background-color: #FFFFFF !important; }
html.light .text-slate-900 { color: #0F172A !important; }
html.light .text-slate-700 { color: #334155 !important; }
html.light .text-slate-600 { color: #475569 !important; }
html.light .text-slate-500 { color: #64748B !important; }
html.light .text-cyan-600 { color: #0284C7 !important; }
html.light .border-slate-200 { border-color: #E2E8F0 !important; }

/* Borders */
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-slate-200 { border-color: #1E293B; }
.border-slate-800 { border-color: #1E293B; }

html.light .border-slate-200,
html.light .border-slate-800 {
  border-color: #E2E8F0;
}

/* Spacing & Flexbox */
.flex { display: flex; }
.inline-block { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }

.gap-x-2 { column-gap: 0.5rem; }
.gap-x-2\.5 { column-gap: 0.625rem; }
.gap-y-1 { row-gap: 0.25rem; }
.gap-y-1\.5 { row-gap: 0.375rem; }

.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-2\.5 { margin-top: 0.625rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-3\.5 { margin-bottom: 0.875rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-3 { padding-top: 0.75rem; }

.p-8 { padding: 2rem; }
@media (min-width: 640px) {
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:p-12 { padding: 3rem; }
}

.min-w-\[130px\] { min-width: 130px; }
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[145px\] { min-width: 145px; }
.min-w-\[150px\] { min-width: 150px; }
.min-w-\[155px\] { min-width: 155px; }

.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.7\] { line-height: 1.7; }

.list-disc { list-style-type: disc; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* Interactive Hover for Contact Links */
.resume-a4-page a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.resume-a4-page a:hover {
  color: #38BDF8;
}
html.light .resume-a4-page a:hover {
  color: #0284C7;
}

/* Bullet styling */
.resume-a4-page ul {
  list-style-type: disc;
}
.resume-a4-page li::marker {
  color: #64748B;
}

.resume-section {
  margin-bottom: 16px;
}
.resume-item {
  margin-bottom: 16px;
}
.resume-item:last-child {
  margin-bottom: 0;
}

.resume-sheet-footer {
  border-top: 1px solid #1E293B;
  padding-top: 12px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748B;
}

html.light .resume-sheet-footer {
  border-top-color: #E2E8F0;
  color: #64748B;
}

/* ==========================================================================
   2. STRICT PRINT ENGINE & A4 STYLING (@media print)
   ========================================================================== */
@media print {
  /* Enforce A4 standard portrait dimensions with zero margin to strip browser URL and title */
  @page {
    size: A4 portrait;
    margin: 0;
  }

  /* Global print resets */
  html, body {
    width: 210mm !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 8.75pt !important;
    line-height: 1.36 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely hide website background, navigation, and modal toolbars */
  body > *:not(#resume-modal):not(#drawer-resume),
  header,
  footer,
  nav,
  .resume-toolbar,
  .resume-sticky-toolbar,
  .modal-close-btn,
  .drawer-close-btn,
  button {
    display: none !important;
    visibility: hidden !important;
  }

  /* Flatten modal wrapper */
  #resume-modal,
  #drawer-resume,
  .slide-drawer {
    position: static !important;
    display: block !important;
    width: 210mm !important;
    max-width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Document visibility filtering for print */
  .resume-page-container:not(.active-doc-view) {
    display: none !important;
  }

  .resume-page-container.active-doc-view {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Paper sheet print container */
  #resume-sheet {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .resume-paper,
  .resume-a4-page {
    position: relative !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 10mm 15mm 10mm 15mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  }

  /* 1-Page Resume specific print adjustments */
  #resume-page-single {
    page-break-before: avoid !important;
    break-before: avoid !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    height: 297mm !important;
    max-height: 297mm !important;
    padding: 9.5mm 14.5mm 9mm 14.5mm !important;
    justify-content: flex-start !important;
  }

  #resume-page-single .section-title {
    margin-top: 6.5pt !important;
    margin-bottom: 3pt !important;
    font-size: 9.5pt !important;
  }

  #resume-page-single .resume-entry {
    margin-bottom: 5pt !important;
    font-size: 8.5pt !important;
    line-height: 1.34 !important;
  }

  #resume-page-single .resume-contact {
    margin-bottom: 5pt !important;
  }

  #resume-page-single .resume-list li {
    margin-bottom: 1.2pt !important;
    line-height: 1.32 !important;
  }

  /* Top Right Date & Time printed in page header */
  .resume-print-header {
    display: block !important;
    text-align: right !important;
    font-size: 7.5pt !important;
    color: #334155 !important;
    margin-bottom: 1.5mm !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  /* Typography scale for crisp physical print */
  #resume-sheet h1,
  .resume-paper h1,
  .resume-a4-page h1,
  .resume-name {
    font-size: 20pt !important;
    line-height: 1.15 !important;
    color: #000000 !important;
    margin-bottom: 2.5pt !important;
    text-align: center !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  .resume-headline {
    font-size: 9pt !important;
    color: #111111 !important;
    margin-bottom: 2.5pt !important;
    text-align: center !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  .resume-contact {
    font-size: 8.25pt !important;
    color: #222222 !important;
    margin-bottom: 8pt !important;
    text-align: center !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  #resume-sheet h2,
  #resume-sheet .section-title,
  .resume-paper h2,
  .resume-paper .section-title,
  .resume-a4-page h2,
  .resume-a4-page .section-title {
    font-size: 9.75pt !important;
    margin-top: 9pt !important;
    margin-bottom: 4pt !important;
    border-bottom: 1px solid #000000 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    color: #000000 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  #resume-page-2 .resume-section:first-child .section-title {
    margin-top: 0 !important;
  }

  #resume-sheet p,
  #resume-sheet li,
  #resume-sheet div,
  .resume-paper p,
  .resume-paper li,
  .resume-paper div,
  .resume-a4-page p,
  .resume-a4-page li,
  .resume-a4-page div {
    font-size: 8.75pt !important;
    line-height: 1.36 !important;
    color: #111111 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  .resume-entry {
    margin-bottom: 6.5pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .resume-entry:last-child {
    margin-bottom: 0 !important;
  }

  .resume-list {
    margin: 1.5pt 0 0 0 !important;
    padding-left: 14pt !important;
  }

  .resume-list li {
    margin-bottom: 1.5pt !important;
    line-height: 1.34 !important;
  }

  .resume-list li:last-child {
    margin-bottom: 0 !important;
  }

  /* 2-Page CV Pagination */
  #cv-view #resume-page-1,
  .resume-paper:first-child {
    page-break-after: always !important;
    break-after: page !important;
  }

  #cv-view #resume-page-2,
  .resume-paper:last-child {
    page-break-before: always !important;
    break-before: page !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .resume-scroll-container {
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  #resume-sheet .resume-sheet-footer,
  .resume-paper .resume-sheet-footer,
  .resume-a4-page .resume-sheet-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    border-top: none !important;
    margin-top: 6pt !important;
    padding-top: 4pt !important;
    font-size: 8.5pt !important;
    color: #222222 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .slide-drawer {
    max-width: 100%;
  }
  .focal-deck-track {
    max-width: 500px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-name {
    font-size: 2.4rem;
  }
  .hero-unified-bar {
    width: 100%;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .focal-deck-stage {
    min-height: 560px;
    padding: 16px 0 10px;
  }
  .focal-deck-track {
    max-width: 92vw;
    height: 530px;
  }
  .focal-deck-card {
    padding: 20px 18px;
  }
  .drawer-header, .drawer-body {
    padding: 20px;
  }
  .resume-a4-page {
    padding: 24px 20px;
  }
  .footer-button-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-resume-cta, .btn-email-cta, .btn-copy-email-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   13. EXECUTIVE 30-SECOND BRIEF MODAL & NAVBAR BUTTON
   ========================================================================== */
.btn-exec-brief {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 5px 11px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-exec-brief:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: #FBBF24;
  color: #FEF3C7;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.btn-exec-pill {
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #FEF3C7 !important;
  background: rgba(251, 191, 36, 0.08) !important;
}

.btn-exec-pill:hover {
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: #FBBF24 !important;
  color: #FFF !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25) !important;
}

.exec-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.exec-modal-window {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0F172A;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.exec-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #131B2E;
  border-bottom: 1px solid #1E293B;
}

.exec-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.exec-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-top: 4px;
}

.exec-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exec-candidate-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.exec-candidate-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8FAFC;
}

.exec-candidate-sub {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 2px;
}

.exec-brief-card {
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.exec-brief-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exec-highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.exec-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.825rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.exec-highlight-item i {
  margin-top: 3px;
  flex-shrink: 0;
}

.exec-avail-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #34D399;
  font-weight: 500;
}

.exec-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #131B2E;
  border-top: 1px solid #1E293B;
  flex-wrap: wrap;
}

/* ==========================================================================
   14. DECK METRICS GRID & COST-MATRIX P&L CALLOUT
   ========================================================================== */
.deck-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}

@media (max-width: 640px) {
  .deck-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.deck-metric-box {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
}

.deck-metric-box .m-val {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-sky);
}

.deck-metric-box .m-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 2px;
}

.deck-pnl-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: 10px 0 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #CBD5E1;
}

.deck-pnl-callout i {
  color: var(--accent-sky);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   15. THEME TOGGLE BUTTON & LIGHT MODE SYSTEM DESIGN TOKENS
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-1px);
}

.theme-icon-dark,
.theme-icon-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  position: absolute;
}

/* Dark Mode Icon States */
html.dark .theme-icon-dark,
html:not(.light) .theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--accent-sky);
}

html.dark .theme-icon-light,
html:not(.light) .theme-icon-light {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

/* Light Mode Icon States */
html.light .theme-icon-light,
html[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #D97706;
}

html.light .theme-icon-dark,
html[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

/* ==========================================================================
   16. PRIVILEGED ADMIN TELEMETRY CONSOLE BASE (DARK DEFAULT)
   ========================================================================== */
.visitor-counter-badge.is-admin {
  cursor: pointer;
  border-color: rgba(56, 189, 248, 0.45);
  transition: all 0.2s ease;
}

.visitor-counter-badge.is-admin:hover {
  border-color: var(--accent-sky);
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.visitor-counter-badge.is-admin:active {
  transform: translateY(0);
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.admin-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-window {
  width: 100%;
  max-width: 680px;
  background: #0B0F17;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.12);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.admin-modal-header {
  padding: 16px 20px;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-sky);
  letter-spacing: 0.06em;
}

.admin-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
  box-shadow: 0 0 8px var(--accent-sky);
  animation: pulseGreenDot 1.8s infinite;
}

.admin-modal-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin-modal-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 600px) {
  .admin-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.admin-telemetry-card {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.telemetry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.telemetry-card-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.telemetry-pill.live {
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.telemetry-pill.prod {
  color: var(--accent-purple);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.telemetry-pill.active {
  color: var(--accent-sage);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.telemetry-pill.info {
  color: #CBD5E1;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.telemetry-card-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #F8FAFC;
}

.telemetry-card-val.mono {
  font-size: 0.925rem;
  word-break: break-all;
}

.telemetry-card-sub {
  font-size: 0.725rem;
  color: #64748B;
  line-height: 1.4;
}

.telemetry-client-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.725rem;
  margin-top: 2px;
}

.client-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94A3B8;
}

.client-detail-row strong {
  font-family: var(--font-mono);
  color: #F8FAFC;
  font-weight: 600;
}

.admin-actions-deck {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #1E293B;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #131B2A;
  border: 1px solid var(--border-color);
  color: var(--accent-sky);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-admin-action:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-sky);
  color: #7dd3fc;
  transform: translateY(-1px);
}

.btn-admin-action.danger {
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-admin-action.danger:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: #F87171;
  color: #FCA5A5;
}

.btn-admin-action.secondary {
  color: #94A3B8;
  border-color: #1E293B;
  margin-left: auto;
}

.btn-admin-action.secondary:hover {
  color: #F8FAFC;
  border-color: #475569;
  background: #1E293B;
}

/* ==========================================================================
   17. COMPREHENSIVE LIGHT THEME COLOR-INVERSION & ELEVATION SYSTEM (WCAG AAA)
   ========================================================================== */
html.light,
html[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #F8FAFC;          /* Clean Slate-50 Base */
  --bg-secondary: #FFFFFF;        /* Crisp Pure White Surface */
  --bg-tertiary: #F1F5F9;         /* Slate-100 Surface */
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-drawer: #FFFFFF;
  --bg-code: #0B0F17;             /* Developer code remains dark IDE */

  --border-color: rgba(226, 232, 240, 0.95); /* Slate-200 / 95% */
  --border-muted: #E2E8F0;        /* Slate-200 */
  --border-hover: #CBD5E1;        /* Slate-300 */
  --border-accent: rgba(2, 132, 199, 0.4);

  --accent-sky: #0369A1;          /* Sky-700 High Contrast */
  --accent-sage: #047857;         /* Emerald-700 High Contrast */
  --accent-purple: #6D28D9;       /* Purple-700 High Contrast */
  --accent-amber: #92400E;        /* Amber-800 High Contrast */
  --accent-coral: #B91C1C;        /* Red-700 High Contrast */

  --sky-glow: rgba(2, 132, 199, 0.08);
  --sage-glow: rgba(5, 150, 105, 0.08);

  --text-primary: #0F172A;        /* Slate-900 (Bold & Crisp) */
  --text-secondary: #334155;      /* Slate-700 (Subtitles & Accents) */
  --text-muted: #475569;          /* Slate-600 (Body text & Descriptions) */
  --text-dim: #64748B;            /* Slate-500 (Metadata & Comments) */

  --badge-bg: #F1F5F9;
  --badge-text: #0F172A;
  --badge-border: #CBD5E1;

  --shadow-subtle: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-drawer: -10px 0 50px rgba(15, 23, 42, 0.12);
}

/* Base Canvas & Subtle Ambient Dot Grid in Light Mode */
html.light body {
  background-color: #F8FAFC !important;
  background-image: radial-gradient(rgba(148, 163, 184, 0.3) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  color: #334155 !important;
}

/* Ensure Uniform Canvas Across All Sections */
html.light .section,
html.light .hero-section,
html.light #about,
html.light #projects,
html.light #competitions,
html.light #stack,
html.light #contact {
  background-color: transparent !important;
}

/* ==========================================================================
   A. HEADINGS & TYPOGRAPHY HIERARCHY (WCAG AAA)
   ========================================================================== */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html.light .section-title,
html.light .hero-name,
html.light .contact-title,
html.light .drawer-title,
html.light .dossier-title,
html.light .exec-modal-title,
html.light .admin-modal-title {
  color: #0F172A !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* Hero Domain Subtitle ("Data Scientist & Machine Learning Engineer • FinTech & Quantitative Risk") */
html.light .hero-identity-line {
  color: #0369A1 !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.01em !important;
  background: none !important;
  -webkit-text-fill-color: #0369A1 !important;
}

/* Hero Specialty Line ("Architecting explainable credit risk engines...") */
html.light .hero-specialty-line {
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
}

/* Section Subtitles & Body Paragraphs */
html.light p,
html.light .section-desc,
html.light .contact-subtitle,
html.light .about-profile-sub,
html.light .pipeline-h-desc,
html.light .comp-teaser,
html.light .focal-deck-summary,
html.light .marquee-card-desc {
  color: #475569 !important;
  line-height: 1.65 !important;
}

/* Section Tag Monospace Badge */
html.light .section-tag {
  color: #0369A1 !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  background: #F0F9FF !important;
  border: 1px solid #BAE6FD !important;
}

/* ==========================================================================
   B. OUTER BENTO CARDS & CONTAINERS
   ========================================================================== */
html.light .about-tier-card,
html.light .info-card,
html.light .focal-deck-card,
html.light .comp-card,
html.light .contact-card,
html.light .marquee-card,
html.light .slide-drawer,
html.light .dossier-modal-window,
html.light .exec-modal-window,
html.light .admin-modal-window {
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  color: #0F172A !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.light .about-tier-card:hover,
html.light .comp-card:hover,
html.light .marquee-card:hover,
html.light .focal-deck-card.active {
  border-color: #CBD5E1 !important;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08) !important;
}

/* Project Carousel Active & Inactive Cards */
html.light .focal-deck-card.active {
  border-color: #0284C7 !important;
  box-shadow: 0 12px 36px -4px rgba(2, 132, 199, 0.12) !important;
}

html.light .focal-deck-card.inactive {
  border: 1px solid #E2E8F0 !important;
  background: rgba(255, 255, 255, 0.75) !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
}

html.light .focal-deck-card.inactive:hover {
  opacity: 0.95 !important;
  border-color: #CBD5E1 !important;
}

/* ==========================================================================
   C. INNER SUB-CARDS & METRIC BLOCKS (Steps 01-04, KBTG, Stat blocks)
   ========================================================================== */
html.light .pipeline-h-card,
html.light .about-hero-sidebar,
html.light .standards-anchor-item,
html.light .kbtg-cert-card,
html.light .stat-card,
html.light .deck-metric-box,
html.light .deck-pnl-callout,
html.light .comp-metrics-ribbon,
html.light .comp-metric-item,
html.light .contact-status-strip,
html.light .bento-micro-card,
html.light .node-card,
html.light .dossier-card,
html.light .dossier-item,
html.light .exec-candidate-banner,
html.light .exec-brief-card,
html.light .admin-telemetry-card,
html.light .interactive-sandbox-card,
html.light .risk-score-display,
html.light .adverse-reason-item {
  background: rgba(248, 250, 252, 0.95) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 12px !important;
  color: #334155 !important;
}

html.light .pipeline-h-card:hover,
html.light .standards-anchor-item:hover,
html.light .stat-card:hover {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

/* Sub-card Titles & Numbers */
html.light .pipeline-h-title,
html.light .about-profile-headline,
html.light .hero-sidebar-degree,
html.light .standards-anchor-title,
html.light .kbtg-badge-title,
html.light .stat-number,
html.light .focal-deck-title,
html.light .marquee-card-name,
html.light .comp-title,
html.light .comp-metric-val,
html.light .bento-card-title,
html.light .dossier-card-title,
html.light .dossier-item-val,
html.light .exec-candidate-name,
html.light .exec-brief-card-title,
html.light .telemetry-card-val,
html.light .risk-score-num {
  color: #0F172A !important;
  font-weight: 700 !important;
}

html.light .pipeline-h-num,
html.light .stat-prefix,
html.light .stat-suffix,
html.light .stat-sub,
html.light .deck-metric-box .m-val,
html.light .deck-counter-text,
html.light .comp-metric-val.sky {
  color: #0369A1 !important;
  font-weight: 800 !important;
}

html.light .comp-metric-val.sage {
  color: #047857 !important;
  font-weight: 800 !important;
}

html.light .comp-metric-val.amber {
  color: #92400E !important;
  font-weight: 800 !important;
}

html.light .comp-metric-val.purple {
  color: #6D28D9 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   D. ACCENT BADGES & TECH CHIPS (HIGH CONTRAST)
   ========================================================================== */
/* Emerald (Active, Success, Metrics) */
html.light .pipeline-live-badge,
html.light .node-tech-badge,
html.light .kbtg-issuer-pill,
html.light .kbtg-score-pill,
html.light .kbtg-chip-highlight,
html.light .focal-deck-metric-chip,
html.light .comp-badge.sage,
html.light .nav-status,
html.light .exec-avail-box,
html.light .telemetry-pill.active,
html.light .contact-status-badge.available,
html.light .stat-tooltip-chip {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
  font-weight: 600 !important;
}

html.light .kbtg-level,
html.light .kbtg-score {
  color: #065F46 !important;
  font-weight: 800 !important;
}

/* Sky / Cyan (Pills, Tags, Tech) */
html.light .focus-pill,
html.light .pipeline-h-tag,
html.light .focal-deck-domain-badge,
html.light .marquee-card-badge,
html.light .comp-badge.sky,
html.light .drawer-badge,
html.light .exec-modal-badge,
html.light .telemetry-pill.live {
  background: #F0F9FF !important;
  color: #0369A1 !important;
  border: 1px solid #BAE6FD !important;
  font-weight: 600 !important;
}

/* Amber (Status, CAC) */
html.light .comp-badge.amber {
  background: #FFFBEB !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
  font-weight: 600 !important;
}

/* Purple */
html.light .comp-badge.purple,
html.light .telemetry-pill.prod {
  background: #F5F3FF !important;
  color: #6D28D9 !important;
  border: 1px solid #DDD6FE !important;
  font-weight: 600 !important;
}

/* Neutral Code Chips (Coursework, Languages, Python, Git) */
html.light .course-pill,
html.light .hero-lang-chip,
html.light .tech-pill,
html.light .comp-tag-item,
html.light .comp-pill,
html.light .kbtg-chip,
html.light .hero-meta-pill,
html.light .contact-status-badge,
html.light .visitor-counter-badge,
html.light .terminal-shortcut-badge,
html.light .deck-control-pill {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 600 !important;
}

html.light .comp-category-tag {
  color: #B45309 !important;
}

html.light .course-pill:hover,
html.light .hero-lang-chip:hover,
html.light .tech-pill:hover,
html.light .comp-pill:hover {
  background: #E0F2FE !important;
  border-color: #0284C7 !important;
  color: #0369A1 !important;
}

/* ==========================================================================
   E. INTERACTIVE BUTTONS & CONTROLS
   ========================================================================== */
/* Primary Buttons */
html.light .btn-primary-pill {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border: 1px solid #0284C7 !important;
  font-weight: 600 !important;
}

html.light .btn-primary-pill:hover {
  background: #0369A1 !important;
  border-color: #0369A1 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

html.light .btn-resume-cta,
html.light .marquee-filter-tab.active {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #0F172A !important;
  font-weight: 600 !important;
}

html.light .btn-resume-cta:hover {
  background: #1E293B !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

/* Secondary Buttons */
html.light .btn-secondary-pill,
html.light .btn-email-cta,
html.light .btn-copy-email-cta,
html.light .btn-exec-brief,
html.light .btn-kbtg-report,
html.light .btn-dossier-trigger,
html.light .btn-admin-action,
html.light .marquee-filter-tab,
html.light .deck-nav-btn {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
  font-weight: 600 !important;
}

html.light .btn-secondary-pill:hover,
html.light .btn-email-cta:hover,
html.light .btn-copy-email-cta:hover,
html.light .btn-exec-brief:hover,
html.light .btn-kbtg-report:hover,
html.light .btn-dossier-trigger:hover,
html.light .btn-admin-action:hover,
html.light .deck-nav-btn:hover {
  background: #E2E8F0 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
}

html.light .btn-exec-pill {
  background: #FFFBEB !important;
  border: 1px solid #FCD34D !important;
  color: #78350F !important;
  font-weight: 600 !important;
}

html.light .btn-exec-pill:hover {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #451A03 !important;
}

html.light .hero-unified-bar {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06) !important;
}

html.light .btn-admin-action.danger {
  background: #FEF2F2 !important;
  border-color: #FECACA !important;
  color: #991B1B !important;
}

/* Secondary Social Pills in Footer (Let's Connect) */
html.light .footer-social-link {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

html.light .footer-social-link:hover {
  background: #E2E8F0 !important;
  color: #0369A1 !important;
  border-color: #0284C7 !important;
}

html.light .footer-link-divider,
html.light .hero-bar-divider {
  background: #CBD5E1 !important;
}

html.light .hero-icon-btn {
  color: #475569 !important;
}

html.light .hero-icon-btn:hover {
  color: #0284C7 !important;
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}

/* ==========================================================================
   F. MODAL & DRAWER SURFACES & INNER TABS
   ========================================================================== */
html.light .header {
  background: rgba(248, 250, 252, 0.9) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.light .header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

html.light .dossier-modal-window,
html.light .slide-drawer,
html.light .exec-modal-window,
html.light .admin-modal-window,
html.light .cert-modal-window {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18) !important;
  color: #0F172A !important;
}

html.light .dossier-modal-header,
html.light .drawer-header,
html.light .exec-modal-header,
html.light .admin-modal-header,
html.light .cert-modal-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.light .exec-modal-footer,
html.light .admin-actions-deck,
html.light .resume-toolbar,
html.light .cert-modal-footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
}

/* Modal Inner Tab Bars (Slide Drawer & Dossiers) */
html.light .drawer-nav,
html.light .drawer-tabs,
html.light .dossier-tab-bar,
html.light .kbtg-tab-switcher {
  background: #F1F5F9 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.light .drawer-tab-btn,
html.light .kbtg-tab-btn {
  background: transparent !important;
  color: #475569 !important;
  border: 1px solid transparent !important;
}

html.light .drawer-tab-btn.active,
html.light .kbtg-tab-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  font-weight: 700 !important;
}

/* Close Buttons */
html.light .drawer-close-btn,
html.light .modal-close-btn,
html.light .dossier-close-btn,
html.light .exec-close-btn,
html.light .admin-close-btn,
html.light .cert-close-btn {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 6px !important;
}

html.light .drawer-close-btn:hover,
html.light .modal-close-btn:hover,
html.light .dossier-close-btn:hover,
html.light .exec-close-btn:hover,
html.light .admin-close-btn:hover,
html.light .cert-close-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

html.light .hero-sidebar-divider,
html.light .marquee-group-line {
  background: #E2E8F0 !important;
}

html.light .timeline::before {
  background: linear-gradient(180deg, #0284C7 0%, #CBD5E1 70%, transparent 100%) !important;
}

html.light .kbtg-score-callout {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

html.light .kbtg-score-num {
  color: #0284C7 !important;
}

html.light .kbtg-domain-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

html.light .kbtg-domain-card:hover {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html.light .kbtg-domain-card.highlight {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
}

html.light .kbtg-domain-name {
  color: #475569 !important;
}

html.light .kbtg-domain-val {
  color: #0369A1 !important;
}

html.light .kbtg-domain-bar-bg {
  background: #E2E8F0 !important;
}

html.light .kbtg-pinned-footer {
  border-top-color: #E2E8F0 !important;
}

html.light .kbtg-verified-tag {
  color: #64748B !important;
}





/* ==========================================================================
   VERCEL / LINEAR / RAYCAST MODERN MINIMALIST SYSTEM ENHANCEMENTS
   ========================================================================== */

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #F8FAFC 25%, #38BDF8 75%, #6366F1 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block;
}

/* ==========================================================================
   GLASSMORPHIC SLATE CONTAINERS & RADIAL SPOTLIGHT HOVER ILLUMINATION
   ========================================================================== */
.glass-card,
.project-stacked-card,
.stat-item,
.skill-category-card,
.comp-milestone-card,
.cert-showcase-card,
.about-tier-card,
.contact-card {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Radial spotlight following cursor on hover */
.glass-card::before,
.project-stacked-card::before,
.stat-item::before,
.skill-category-card::before,
.comp-milestone-card::before,
.cert-showcase-card::before,
.about-tier-card::before,
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    680px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(56, 189, 248, 0.09),
    rgba(99, 102, 241, 0.05) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before,
.project-stacked-card:hover::before,
.stat-item:hover::before,
.skill-category-card:hover::before,
.comp-milestone-card:hover::before,
.cert-showcase-card:hover::before,
.about-tier-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.glass-card:hover,
.project-stacked-card:hover,
.stat-item:hover,
.skill-category-card:hover,
.comp-milestone-card:hover,
.cert-showcase-card:hover,
.about-tier-card:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.65),
              0 0 24px -2px rgba(56, 189, 248, 0.12),
              0 0 16px -2px rgba(99, 102, 241, 0.1) !important;
  transform: translateY(-2px);
}

/* Hero Section Presentation Layout (Keynote Centered Framing) */
.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 28px 0;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 6px 15px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.hero-status-badge:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: #F8FAFC;
}

/* Skills Categorized Cards Grid */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.skill-category-card {
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
}

.skill-category-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  font-size: 1rem;
  flex-shrink: 0;
}

.skill-category-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: -0.015em;
}

.skill-tag-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #CBD5E1;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.skill-pill-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #F8FAFC;
  transform: translateY(-1px);
}

.skill-pill-item.featured {
  border-color: rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.06);
}

/* Featured Stacked Engineering Projects (Keynote Showcase Deck) */
.projects-stacked-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

.project-stacked-card {
  padding: clamp(28px, 4vw, 40px) !important;
  border-radius: 20px !important;
}

.project-stacked-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
}

.project-stacked-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.project-stacked-desc {
  font-size: 0.975rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 24px;
}

.project-stacked-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-stacked-bullets li {
  font-size: 0.885rem;
  color: #CBD5E1;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.project-stacked-bullets li i {
  color: #38BDF8;
  font-size: 0.85rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.project-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

.project-metric-cell {
  display: flex;
  flex-direction: column;
}

.project-metric-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F8FAFC;
}

.project-metric-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: #64748B;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-pnl-banner {
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed rgba(99, 102, 241, 0.28);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.84rem;
  color: #CBD5E1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.project-pnl-banner i {
  color: #A5B4FC;
  margin-top: 2px;
  font-size: 0.95rem;
}

.project-pnl-banner strong {
  color: #F8FAFC;
}

.pnl-math {
  font-family: var(--font-mono, ui-monospace, monospace);
  color: #A5B4FC;
  font-weight: 600;
  white-space: nowrap;
}

.project-stacked-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  padding: 4px 11px;
  border-radius: 7px;
  transition: all 0.15s ease;
}

.tech-pill:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  color: #F8FAFC;
}

.btn-inspect-architecture {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-inspect-architecture:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  color: #0B0F17;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-inspect-architecture i {
  transition: transform 0.2s ease;
}

.btn-inspect-architecture:hover i {
  transform: translateX(3px);
}

/* Hackathons & Competitions Modern Milestone Deck */
.competitions-modern-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 36px;
  position: relative;
}

.comp-milestone-card {
  padding: 30px 32px !important;
  border-radius: 18px !important;
}

.comp-milestone-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.comp-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
}

.comp-milestone-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.comp-milestone-org {
  font-size: 0.865rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-badge.sky {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
}

.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  padding: 4px 10px;
  border-radius: 6px;
}

.comp-metrics-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
  padding: 12px 18px;
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.comp-metric-item {
  display: flex;
  flex-direction: column;
}

.comp-metric-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.comp-metric-val.sky { color: #38BDF8; }
.comp-metric-val.sage { color: #34D399; }
.comp-metric-val.gold { color: #FBBF24; }

.comp-metric-label {
  font-size: 0.725rem;
  color: #64748B;
  margin-top: 2px;
}

/* ==========================================================================
   HERO ACTION BAR & SOCIAL ICONS (Keynote Framing)
   ========================================================================== */
.hero-actions-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.75rem;
  width: 100%;
}

.hero-primary-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn-hero-primary,
a.btn-hero-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 100%) !important;
  color: #0B0F17 !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-hero-primary *,
a.btn-hero-primary * {
  color: #0B0F17 !important;
  font-weight: 700 !important;
}

.btn-hero-primary:hover,
a.btn-hero-primary:hover {
  background: linear-gradient(135deg, #7DD3FC 0%, #A5B4FC 100%) !important;
  color: #0B0F17 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.5) !important;
}

.btn-hero-primary:hover *,
a.btn-hero-primary:hover * {
  color: #0B0F17 !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  transform: translateY(-2px);
}

.btn-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  font-size: 0.825rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hero-pill:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.18);
}

.terminal-shortcut-badge {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  color: #CBD5E1;
  margin-left: 2px;
}

.hero-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  width: 100%;
  max-width: 520px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-social-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  color: #38BDF8;
  transform: translateY(-1px);
}

.hero-social-link i {
  font-size: 0.875rem;
}

/* ==========================================================================
   CERTIFICATION CARDS (Clean Single-Column Responsive Deck)
   ========================================================================== */
.certs-showcase-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2rem !important;
}

@media (min-width: 768px) {
  .certs-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .certs-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.cert-showcase-card {
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  min-height: 100% !important;
}

.cert-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
}

.cert-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.cert-score-callout-box {
  text-align: right;
}

.cert-score-big {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 800;
  color: #34D399;
  line-height: 1;
}

.cert-score-max {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #64748B;
}

.cert-scores-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
  width: 100% !important;
}

.cert-score-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.5rem 0.875rem !important;
  border-radius: 0.5rem !important;
  background: rgba(11, 15, 23, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 0.75rem !important;
  color: #CBD5E1 !important;
  width: 100% !important;
  transition: all 0.15s ease !important;
}

.cert-score-row:hover {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.cert-score-name {
  color: #CBD5E1 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 400px) {
  .cert-score-name {
    white-space: normal !important;
  }
}

.cert-score-points {
  color: #38BDF8 !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  margin-left: 0.5rem !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.cert-score-points.highlight {
  color: #34D399 !important;
}

.cert-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 16px !important;
  margin-top: auto !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
}

/* ==========================================================================
   CONTACT DECK & EXECUTIVE CLOSING SLIDE
   ========================================================================== */
.contact-card {
  border-radius: 22px !important;
  padding: clamp(32px, 5vw, 56px) !important;
}

.contact-cards-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 24px 0;
}

.contact-micro-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  transition: all 0.2s ease;
  color: #CBD5E1;
}

.contact-micro-card:hover {
  background: rgba(22, 31, 52, 0.85);
  border-color: rgba(56, 189, 248, 0.35);
  color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.contact-micro-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-micro-content {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.contact-micro-title {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 2px;
}

.contact-micro-val {
  font-size: clamp(0.775rem, 1.15vw, 0.875rem);
  font-weight: 600;
  color: #F8FAFC;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.15s ease;
}

.contact-micro-card:hover .contact-micro-val {
  color: #38BDF8;
}

@media (max-width: 480px) {
  .contact-micro-val {
    white-space: normal;
    word-break: break-all;
  }
}

/* ==========================================================================
   Design System Utility Classes (Tailwind Parity)
   ========================================================================== */
.w-full { width: 100% !important; }
.max-w-7xl { max-width: 80rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.h-16 { height: 4rem !important; }
.h-full { height: 100% !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.shrink-0 { flex-shrink: 0 !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.text-lg { font-size: 1.125rem !important; line-height: 1.75rem !important; }
.text-base { font-size: 1rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-mono { font-family: var(--font-mono) !important; }
.text-white { color: #FFFFFF !important; }
.text-slate-200 { color: #E2E8F0 !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.text-emerald-400 { color: #34D399 !important; }
.text-cyan-400 { color: #22D3EE !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.rounded-full { border-radius: 9999px !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2) !important; }
.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1) !important; }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3) !important; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6) !important; }
.border-slate-800 { border-color: rgba(30, 41, 59, 1) !important; }
.border-slate-800\/60 { border-color: rgba(30, 41, 59, 0.6) !important; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8) !important; }
.border { border-width: 1px !important; border-style: solid !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.break-all { word-break: break-all !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.min-w-0 { min-width: 0 !important; }
.transition-all { transition: all 0.2s ease !important; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease !important; }

.max-w-6xl { max-width: 72rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-16 { margin-top: 4rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }
.p-4 { padding: 1rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.text-slate-400 { color: #94A3B8 !important; }
.text-center { text-align: center !important; }
.bg-slate-950\/60 { background-color: rgba(2, 6, 23, 0.6) !important; }

.w-2 { width: 0.5rem !important; }
.h-2 { height: 0.5rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.bg-emerald-400 { background-color: #34D399 !important; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important; }
.text-\[11px\] { font-size: 11px !important; }
.tracking-wide { letter-spacing: 0.025em !important; }

.fill-none { fill: none !important; }
.stroke-current { stroke: currentColor !important; }
.fill-current { fill: currentColor !important; }

.hover\:border-cyan-500\/40:hover { border-color: rgba(56, 189, 248, 0.4) !important; }
.hover\:bg-slate-800\/50:hover { background-color: rgba(30, 41, 59, 0.5) !important; }
.hover\:bg-cyan-500:hover { background-color: #38BDF8 !important; }
.hover\:text-slate-900:hover { color: #0F172A !important; }
.hover\:text-cyan-400:hover { color: #38BDF8 !important; }

.group { position: relative; }
.group:hover .group-hover\:bg-cyan-500 { background-color: #38BDF8 !important; }
.group:hover .group-hover\:text-slate-950 { color: #020617 !important; }
.group:hover .group-hover\:text-cyan-300 { color: #7DD3FC !important; }

/* Color Harmonization Mappings for Legacy Tokens (excludes buttons with dark text) */
i[style*="#00D2D3"],
div[style*="#00D2D3"],
span[style*="#00D2D3"]:not(.btn-hero-primary *),
p[style*="#00D2D3"] {
  color: var(--accent-cyan) !important;
}
svg line[stroke="#00D2D3"], svg circle[stroke="#00D2D3"] {
  stroke: var(--accent-cyan) !important;
}
svg circle[fill="#00D2D3"] {
  fill: var(--accent-cyan) !important;
}

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .sm\:text-sm { font-size: 0.875rem !important; }
  .sm\:break-normal { word-break: normal !important; overflow-wrap: normal !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:text-left { text-align: left !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}


