/* ==========================================================================
   JASON EAD — COMMAND CENTER DESIGN SYSTEM (sitetest.jasonead.com)
   Anti-Generic AI • Hyper-Polished Dark Technical Core • High-Precision UI
   ========================================================================== */

:root {
  /* Canvas & Dark Surfaces */
  --bg-space: #03060d;
  --bg-deep: #060b17;
  --bg-surface: rgba(11, 19, 38, 0.72);
  --bg-surface-hover: rgba(18, 30, 58, 0.88);
  --bg-surface-elevated: rgba(20, 32, 64, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-card: #090e1d;
  
  /* Text & Contrast Tokens */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-inverse: #03060d;
  
  /* Accent & Telemetry Signal Colors */
  --accent-cyan: #00f0ff;
  --accent-azure: #2ea3ff;
  --accent-blue: #0284c7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  
  /* Fine Borders & Glow Reflections */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(46, 163, 255, 0.45);
  --border-cyan-glow: rgba(0, 240, 255, 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.18);
  --shadow-glow-azure: 0 0 35px rgba(46, 163, 255, 0.22);
  
  /* Typography Scale */
  --font-display: 'Syne', 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Sizing & Layout */
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0c1833 0%, #040711 75%, #02040a 100%);
  line-height: 1.6;
}

/* Background Canvas & Grid Texture */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--font-mono);
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-azure {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 40%, var(--accent-azure) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   NAVIGATION HUD
   ========================================================================== */
.navbar-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar-hud.scrolled {
  padding: 0.65rem 0;
  background: rgba(4, 8, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-frame {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(46, 163, 255, 0.25), rgba(0, 240, 255, 0.05));
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-cyan);
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.2);
}

.brand-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text span {
  color: var(--accent-azure);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-azure), var(--accent-cyan));
  border-radius: var(--radius-full);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-azure) 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(46, 163, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(46, 163, 255, 0.55);
  background: linear-gradient(135deg, #40b0ff 0%, #2563eb 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: #03060d;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.6);
  background: linear-gradient(135deg, #38f6ff 0%, #0369a1 100%);
}

.btn-terminal {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: #020409;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.btn-terminal:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 01: HERO COMMAND CENTER
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(46, 163, 255, 0.1);
  border: 1px solid rgba(46, 163, 255, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 600px;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Live Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
}

.telemetry-item {
  position: relative;
  padding-left: 0.85rem;
  border-left: 2px solid var(--border-medium);
}

.telemetry-item:first-child {
  border-left-color: var(--accent-cyan);
}

.telemetry-item:nth-child(2) {
  border-left-color: var(--accent-azure);
}

.telemetry-item:nth-child(3) {
  border-left-color: var(--accent-emerald);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.telemetry-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Hero Portrait Frame & Hologram */
.hero-portrait-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-hologram-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(145deg, rgba(46, 163, 255, 0.25) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(0, 240, 255, 0.2) 100%);
  border: 1px solid var(--border-active);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), var(--shadow-glow-azure);
  overflow: hidden;
}

.portrait-img-inner {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: #060b17;
}

.portrait-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.portrait-hologram-card:hover .portrait-img-inner img {
  transform: scale(1.03);
}

.portrait-hud-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(3, 6, 13, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-tag-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
}

.hud-tag-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION COMMON WRAPPERS
   ========================================================================== */
.section-wrapper {
  position: relative;
  padding: 6.5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-azure);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   SECTION 02: ENTERPRISE EXPERIENCE MATRIX
   ========================================================================== */
.experience-matrix-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.experience-kpi-panel {
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.kpi-big-num {
  font-family: var(--font-mono);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.kpi-big-desc {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.confidentiality-shield {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
}

.shield-icon {
  color: var(--accent-amber);
  flex-shrink: 0;
}

.shield-text h4 {
  font-size: 0.9375rem;
  color: var(--accent-amber);
  margin-bottom: 0.25rem;
}

.shield-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Discipline Cards */
.disciplines-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.discipline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.discipline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow-azure);
}

.discipline-img-box {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #020409;
}

.discipline-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.discipline-card:hover .discipline-img-box img {
  transform: scale(1.05);
}

.discipline-badge-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

.discipline-card-body {
  padding: 1.25rem;
}

.discipline-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.discipline-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 03: PROBLEM & ARCHITECTURE SCANNER
   ========================================================================== */
.problem-radar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.radar-card {
  padding: 1.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
}

.radar-top {
  margin-bottom: 1.5rem;
}

.radar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.radar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.radar-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.radar-solution {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   SECTION 04: BUSINESS TRANSFORMATION BEFORE/AFTER
   ========================================================================== */
.transformation-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.trans-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.trans-card.before {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(9, 14, 29, 0.9) 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.trans-card.after {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(9, 14, 29, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.trans-header-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.trans-card.before .trans-header-tag { color: #f87171; }
.trans-card.after .trans-header-tag { color: var(--accent-emerald); }

.trans-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.trans-visual {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 220px;
}

.trans-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trans-kpi-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.trans-kpi-item span {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.trans-card.after .trans-kpi-item span { color: var(--accent-emerald); }
.trans-card.before .trans-kpi-item span { color: #f87171; }

.trans-kpi-item label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 05: FLAGSHIP ENGINEERING WORK
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--shadow-glow-azure);
}

.work-media {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #020409;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.work-card:hover .work-media img {
  transform: scale(1.04);
}

.work-category-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(3, 6, 13, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
}

.work-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.work-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tech-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.work-action-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-azure);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.work-action-btn:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   SECTION 06: THE 5-STEP METHODOLOGY
   ========================================================================== */
.method-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.method-step-card {
  padding: 1.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
}

.method-step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46, 163, 255, 0.2), rgba(0, 240, 255, 0.05));
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-cyan);
}

.method-step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.method-step-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 07: INTERACTIVE TERMINAL & CONTACT HUB
   ========================================================================== */
.contact-hub-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.terminal-window {
  background: #020408;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  padding: 0.65rem 1rem;
  background: #090e1c;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem;
  min-height: 340px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.term-line {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.term-line.system {
  color: var(--text-muted);
}

.term-line.cyan {
  color: var(--accent-cyan);
}

.term-line.azure {
  color: var(--accent-azure);
}

.term-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.term-prompt-label {
  color: var(--accent-emerald);
  font-weight: 700;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #ffffff;
  flex-grow: 1;
}

/* Contact Form */
.contact-form-panel {
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(3, 6, 13, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-azure);
  box-shadow: 0 0 15px rgba(46, 163, 255, 0.25);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer-hud {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  background: #020408;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODAL SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #090e1d;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), var(--shadow-glow-azure);
  transform: scale(0.95);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* Mobile Menu & Drawer */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-row {
    justify-content: center;
  }
  .experience-matrix-grid {
    grid-template-columns: 1fr;
  }
  .transformation-showcase {
    grid-template-columns: 1fr;
  }
  .method-timeline {
    grid-template-columns: 1fr;
  }
  .contact-hub-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .problem-radar-grid {
    grid-template-columns: 1fr;
  }
  .disciplines-cards-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}
