/* ==========================================================================
   NIKHIL VASHISHT — PORTFOLIO DESIGN SYSTEM (BENTO BOX & GLASSMORPHISM)
   Theme: Obsidian Slate / Electric Indigo & Cyan Glow
   ========================================================================== */

:root {
  /* Core Monochromatic Base */
  --bg-base: #05070a;
  --bg-surface: #0a0d14;
  --bg-elevated: #111622;
  --bg-card: rgba(13, 17, 26, 0.72);
  --bg-card-hover: rgba(18, 24, 38, 0.85);

  /* Glass & Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(99, 102, 241, 0.45);
  --border-glow: rgba(99, 102, 241, 0.25);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Accent Radiance */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --cyan: #06b6d4;
  --cyan-light: #38bdf8;
  --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --amber: #f59e0b;
  --emerald: #10b981;
  --rose: #f43f5e;

  /* Glow Shadows */
  --glow-accent: 0 0 35px -5px rgba(99, 102, 241, 0.35);
  --glow-cyan: 0 0 35px -5px rgba(6, 182, 212, 0.35);
  --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-elevated: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.16);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.2);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 999;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.1s linear;
}

/* Ambient Radial Glow Background */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.07) 0%, transparent 45%);
}

/* Layout Shell Container */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.brand-avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.primary-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--text-primary);
}
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease-out);
}
.tool-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.tool-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.12);
}

/* Audio Equalizer animation */
.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.audio-equalizer i {
  width: 2px;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}
.tool-btn[aria-pressed="true"] .audio-equalizer i:nth-child(1) { animation: eq 0.8s infinite ease-in-out; }
.tool-btn[aria-pressed="true"] .audio-equalizer i:nth-child(2) { animation: eq 0.6s infinite ease-in-out 0.2s; }
.tool-btn[aria-pressed="true"] .audio-equalizer i:nth-child(3) { animation: eq 1.0s infinite ease-in-out 0.4s; }

@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

.theme-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px 8px;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ==========================================================================
   GLASSMORPHISM CARD ENGINE & SPOTLIGHT EFFECT
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  border-radius: inherit;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.glass-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  line-height: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(99, 102, 241, 0.65);
}

.btn-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  opacity: 0.85;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

/* Live Status Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.badge-loc {
  color: var(--accent-light);
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-line {
  display: block;
}
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-accent {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 780px;
  margin-bottom: 36px;
}
.hero-lead strong {
  color: var(--text-primary);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 54px;
}

/* Telemetry Strip */
.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.telemetry-item {
  display: flex;
  flex-direction: column;
}
.telemetry-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
}
.telemetry-num .symbol {
  color: var(--accent-light);
  font-size: 0.8em;
  margin-left: 2px;
}
.telemetry-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding-block: clamp(70px, 10vw, 120px);
  position: relative;
  z-index: 2;
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT GRID
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.about-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.about-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.card-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-footer-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BENTO BOX ASYMMETRIC GRID
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

/* Bento Cell Spans */
.bento-hero { grid-column: span 7; }
.bento-spc { grid-column: span 5; }
.bento-hardware { grid-column: span 4; }
.bento-excel { grid-column: span 4; }
.bento-iso { grid-column: span 4; }
.bento-github { grid-column: span 12; }

.bento-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.bento-icon-wrapper {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.bento-icon-wrapper.cyan {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan-light);
}
.bento-icon-wrapper.amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}
.bento-icon-wrapper.green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}
.bento-icon-wrapper.violet {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.bento-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.bento-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Terminal Preview Inside Bento Hero */
.terminal-preview {
  margin-top: 20px;
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}
.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #eab308; }
.term-dot.green { background: #22c55e; }
.term-title {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-code {
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}
.terminal-code .kw { color: #f43f5e; font-weight: 600; }
.terminal-code .cls { color: #38bdf8; }
.terminal-code .fn { color: #a855f7; }
.terminal-code .str { color: #4ade80; }

.mini-spc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-light);
}
.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.bento-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento-list li {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bento-list li::before {
  content: "→";
  color: var(--amber);
}

/* GitHub Open Source Bento Cell */
.bento-content-github {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.github-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.github-avatar {
  font-size: 28px;
}
.github-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
.github-header p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
}

/* ==========================================================================
   FEATURED PROJECT: NHK_RIMS
   ========================================================================== */
.featured-project {
  border-color: rgba(99, 102, 241, 0.25);
}
.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.project-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.project-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.project-description {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.highlight-item {
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.highlight-item strong {
  color: var(--text-primary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Interactive RIMS Process Atlas */
.interactive-panel {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.status-badge-mini {
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-badge-mini::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.rims-stepper {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.stepper-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.stepper-tab.is-active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.rims-display {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.rims-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-light);
}
.rims-headline {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 14px;
}
.rims-metrics-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #020408;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-row span { color: var(--text-muted); }
.state-pill {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.state-pill.ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rims-control-achieved {
  font-size: 12px;
}
.control-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-light);
}
.rims-control-achieved p {
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   LIVE SPC STREAMER
   ========================================================================== */
.spc-controls-group {
  margin-top: 18px;
}
.spc-control-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spc-btn.is-active {
  background: var(--cyan-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.spc-stream-box {
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow: hidden;
}
.spc-canvas {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #000205;
  border: 1px solid var(--border-subtle);
}
.spc-readout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.spc-readout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}
.spc-readout span { color: var(--text-muted); font-size: 10px; }
.spc-readout b { color: var(--text-primary); font-size: 12px; margin-top: 2px; }
.alert-readout.is-breach b { color: var(--rose); }

/* DUAL PROJECT GRID */
.dual-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.project-card-compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.compact-header {
  margin-bottom: 12px;
}
.compact-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 4px;
}

/* Mini QR Interactive */
.segmented-qr {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}
.btn-scenario {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-scenario.is-active {
  background: var(--accent);
  color: #fff;
}
.qr-result-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #020408;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 12px;
  font-family: var(--font-mono);
}
.qr-result-box[data-state="duplicate"] { border-color: var(--amber); }
.qr-result-box[data-state="ng"] { border-color: var(--rose); }
.qr-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
}
.qr-result-box[data-state="duplicate"] .qr-icon { background: rgba(245, 158, 11, 0.2); color: var(--amber); }
.qr-result-box[data-state="ng"] .qr-icon { background: rgba(244, 63, 94, 0.2); color: var(--rose); }
.qr-result-box strong { font-size: 12px; display: block; color: var(--text-primary); }
.qr-result-box p { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* SQL Code Box */
.sql-code-box {
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 14px;
}
.sql-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.sql-code-box pre {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

/* ==========================================================================
   CONTENT CREATION & MEDIA (@nvaistudio)
   ========================================================================== */
.media-bento {
  border-color: rgba(244, 63, 94, 0.25);
  background: linear-gradient(135deg, rgba(13, 17, 26, 0.85) 0%, rgba(26, 12, 18, 0.6) 100%);
}
.media-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.yt-play-icon { font-size: 10px; }
.channel-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.channel-handle {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: #fb7185;
  font-weight: 500;
}
.channel-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}
.channel-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}
.c-metric {
  display: flex;
  flex-direction: column;
}
.c-val {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.c-lbl {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.btn-youtube {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 8px 24px -6px rgba(225, 29, 72, 0.5);
}
.btn-youtube:hover {
  box-shadow: 0 14px 32px -6px rgba(225, 29, 72, 0.7);
}

.media-previews {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.video-preview-card {
  display: flex;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all 0.3s var(--ease-spring);
}
.video-preview-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-2px);
}
.video-thumb-placeholder {
  position: relative;
  width: 140px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #1e1b4b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.thumb-ai {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
}
.thumb-tools {
  background: linear-gradient(135deg, #064e3b 0%, #1e3a8a 100%);
}
.play-overlay {
  font-size: 16px;
  color: #fff;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.video-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
}
.video-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.video-meta p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CAREER TIMELINE
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
}
.timeline-marker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.company-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.hero-badge-tag {
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
}
.edu-badge-tag {
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.timeline-company {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.timeline-bullets {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(13, 17, 26, 0.9) 0%, rgba(20, 18, 36, 0.75) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.contact-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.contact-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-item {
  display: flex;
  flex-direction: column;
}
.detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.detail-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.detail-val:hover {
  color: var(--accent-light);
}

.quick-connect-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.quick-connect-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.connect-btns-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 40px;
  background: var(--bg-base);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy p {
  font-size: 14px;
}
.footer-copy small {
  color: var(--text-muted);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   INTERACTIVE RESUME MODAL
   ========================================================================== */
.resume-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 820px;
  width: 92vw;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}
.resume-modal::backdrop {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.resume-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding: 0;
  border-color: var(--border-light);
}
.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.resume-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.resume-modal-title-group h2 {
  font-size: 1.4rem;
  font-weight: 700;
}
.resume-modal-title-group p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
}
.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.resume-nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  gap: 6px;
  overflow-x: auto;
}
.resume-tab {
  background: transparent;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.resume-tab:hover { color: var(--text-primary); }
.resume-tab.is-active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.resume-modal-content {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}
.resume-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.resume-tab-pane[hidden] { display: none; }
.resume-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.resume-highlights {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.resume-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.resume-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}
.resume-item {
  border-left: 2px solid var(--border-light);
  padding-left: 16px;
  margin-bottom: 16px;
}
.resume-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}
.resume-item-head small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.resume-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.resume-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--bg-surface);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}
.toast-notification.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-hero { grid-column: span 12; }
  .bento-spc { grid-column: span 12; }
  .bento-hardware { grid-column: span 6; }
  .bento-excel { grid-column: span 6; }
  .bento-iso { grid-column: span 12; }
  .project-grid, .media-grid, .contact-grid { grid-template-columns: 1fr; }
  .telemetry-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 860px) {
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    padding: 96px 28px 28px;
    z-index: 98;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-spring);
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .primary-nav a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-resume-btn { display: none; }
  .about-grid, .dual-projects-grid { grid-template-columns: 1fr; }
  .bento-hardware, .bento-excel { grid-column: span 12; }
}

@media (max-width: 580px) {
  .telemetry-strip { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-marker { display: none; }
  .resume-modal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .resume-modal-actions { width: 100%; justify-content: space-between; }
  .channel-metrics { flex-direction: column; gap: 12px; }
  .video-preview-card { flex-direction: column; }
  .video-thumb-placeholder { width: 100%; }
}

/* ==========================================================================
   FEATURE 1: SIX-SIGMA CPK BELL CURVE LAB
   ========================================================================== */
.cpk-sliders-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.cpk-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.custom-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}
.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.cpk-canvas-box {
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cpk-canvas {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  background: #010204;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.cpk-metrics-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cpk-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cpk-metric-card .m-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}
.cpk-metric-card .m-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.cpk-status-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
  margin-top: 2px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
}
.cpk-status-tag.six-sigma {
  background: rgba(99, 102, 241, 0.25);
  color: var(--brand-light);
}
.cpk-status-tag.warning {
  background: rgba(244, 63, 94, 0.25);
  color: var(--rose);
}

/* ==========================================================================
   FEATURE 3: ZEBRA ZPL INDUSTRIAL STUDIO
   ========================================================================== */
.zpl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.zpl-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zpl-input-group label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.zpl-input {
  background: #020408;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}
.zpl-input:focus {
  border-color: var(--brand);
}
.zpl-code-pane {
  margin-top: 16px;
  background: #020408;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.zpl-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.zpl-pre {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: #a5b4fc;
  max-height: 110px;
  overflow-y: auto;
}

/* Photorealistic Thermal Industrial Label */
.thermal-label-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}
.thermal-label {
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid #334155;
  border-radius: 4px;
  padding: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}
.label-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.label-co {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.label-doc {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}
.label-body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.label-left-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.label-field {
  display: flex;
  gap: 6px;
}
.lbl-k {
  color: #64748b;
  font-weight: 700;
  font-size: 10px;
}
.label-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.datamatrix-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.qr-canvas {
  width: 98px;
  height: 98px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
.datamatrix-caption {
  font-size: 8px;
  font-weight: 800;
  color: #475569;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.label-stamp {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border: 2px solid;
  border-radius: 3px;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.stamp-accepted {
  color: #16a34a;
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}
.stamp-hold {
  color: #d97706;
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.08);
}
.stamp-rejected {
  color: #dc2626;
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.label-barcode-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.barcode-1d-canvas {
  width: 92%;
  max-width: 320px;
  height: 38px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #ffffff;
  border-radius: 2px;
}
.barcode-human {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   FEATURE 5: COMMAND PALETTE (CTRL + K)
   ========================================================================== */
.cmd-kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text-primary);
}
.cmd-palette-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  outline: none;
}
.cmd-palette-modal::backdrop {
  background: rgba(2, 4, 8, 0.8);
  backdrop-filter: blur(8px);
}
.cmd-palette-dialog {
  width: min(90vw, 560px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-float);
}
.cmd-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
.cmd-search-icon {
  font-size: 18px;
  color: var(--amber);
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
}
.cmd-esc-kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 3px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
}
.cmd-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-secondary);
  font-size: 14px;
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmd-item-icon {
  font-size: 16px;
}
.cmd-item-title {
  font-weight: 500;
  color: var(--text-primary);
}
.cmd-item-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}
.cmd-item:hover, .cmd-item.is-selected {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-primary);
  border-left: 3px solid var(--brand);
}
.cmd-palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FEATURE 6: VIDEO THEATER MODAL (@nvaistudio)
   ========================================================================== */
.video-preview-card.js-video-trigger {
  cursor: pointer;
}
.video-preview-card.js-video-trigger:hover {
  border-color: var(--rose);
  transform: translateX(4px);
}
.video-theater-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  outline: none;
}
.video-theater-modal::backdrop {
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(10px);
}
.video-theater-dialog {
  width: min(92vw, 680px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.video-theater-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.yt-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.yt-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.yt-title-group h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.yt-title-group span {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.video-player-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #020408;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}
.video-screen-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e1b4b, #31102f, #0f172a);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.video-screen-banner:hover {
  transform: scale(1.02);
}
.video-play-pulse {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.7);
  animation: pulseGlow 2s infinite;
}
.video-screen-headline {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
}
.video-theater-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.video-summary-box h3, .video-chapters-box h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.video-summary-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.video-chapters-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.video-chapters-list li {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}
.video-chapters-list li .ts {
  color: var(--brand-light);
  font-weight: 700;
}
.video-theater-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ADVANCED MOBILE & TOUCHSCREEN OPTIMIZATION SUITE
   ========================================================================== */

/* 1. Global Touch & Viewport Bounds */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

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

.shell, main, section, article, div, pre, code {
  min-width: 0;
  max-width: 100%;
}

/* 2. Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .bento-hero, .bento-spc, .bento-hardware, .bento-excel, .bento-iso, .bento-github {
    grid-column: span 12;
  }
  .project-grid, .media-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .zpl-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3. Small Tablets & Large Phones (<= 860px) */
@media (max-width: 860px) {
  .site-header {
    height: 64px;
  }
  .header-inner {
    height: 64px;
  }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(85vw, 320px);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    padding: 84px 24px 24px;
    z-index: 98;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-spring);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  body.nav-open .primary-nav {
    transform: translateX(0);
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .primary-nav a {
    font-size: 16px;
    padding: 8px 0;
    display: block;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-resume-btn {
    display: none;
  }
  .about-grid, .dual-projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .zpl-form-grid {
    grid-template-columns: 1fr;
  }
  .cpk-metrics-readout {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* 4. Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  .shell {
    padding-inline: 16px;
  }

  /* Header compact tools */
  .header-tools {
    gap: 6px;
  }
  .header-tools .tool-label {
    display: none;
  }
  .tool-btn {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 36px;
  }

  /* Hero Section */
  .hero {
    padding-top: 88px;
    padding-bottom: 36px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    line-height: 1.4;
  }
  .hero-headline {
    font-size: clamp(1.95rem, 8vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  .hero-lead {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Telemetry 2x2 grid */
  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 20px;
  }
  .telemetry-item {
    padding: 12px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-align: center;
  }
  .telemetry-num {
    font-size: 1.35rem;
  }
  .telemetry-label {
    font-size: 10px;
    margin-top: 4px;
  }

  /* Section Headers */
  .section {
    padding: 44px 0;
  }
  .section-tag {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .section-title {
    font-size: clamp(1.55rem, 6.5vw, 2.1rem);
    margin-bottom: 10px;
    line-height: 1.2;
  }
  .section-subtitle {
    font-size: 13px;
    line-height: 1.6;
  }
  .section-header {
    margin-bottom: 24px;
  }

  /* Bento Grid Cards */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .bento-cell {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .bento-title {
    font-size: 18px;
  }
  .bento-desc {
    font-size: 13px;
  }
  .terminal-preview {
    margin-top: 14px;
  }
  .terminal-code {
    padding: 10px 12px;
    font-size: 11px;
  }
  .bento-content-github {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .bento-content-github .btn {
    width: 100%;
    justify-content: center;
  }

  /* Flagship Projects */
  .featured-project {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .project-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.25;
  }
  .project-description {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .highlight-item {
    font-size: 12px;
    padding-left: 10px;
  }

  /* NHK_RIMS Horizontally Scrollable Stepper on Mobile */
  .rims-stepper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
    margin-bottom: 14px;
  }
  .rims-stepper::-webkit-scrollbar {
    display: none;
  }
  .stepper-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 11px;
  }
  .rims-display {
    padding: 14px;
  }
  .rims-headline {
    font-size: 15px;
  }
  .rims-metrics-box {
    padding: 10px;
    font-size: 11px;
  }
  .metric-row {
    font-size: 11px;
  }
  .rims-control-achieved {
    font-size: 12px;
  }

  /* Real-Time SPC Streamer */
  .spc-stream-box {
    padding: 12px;
  }
  .spc-canvas {
    height: 170px;
  }
  .spc-controls-group .btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .spc-btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 11px;
    justify-content: center;
    text-align: center;
  }
  .spc-readout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 10px;
  }
  .spc-readout {
    padding: 8px 10px;
  }
  .spc-readout b {
    font-size: 13px;
  }

  /* Six-Sigma Cpk Lab */
  .cpk-canvas-box {
    padding: 12px;
  }
  .cpk-canvas {
    height: 160px;
  }
  .cpk-metrics-readout {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .cpk-metric-card {
    padding: 8px 10px;
  }
  .cpk-metric-card .m-val {
    font-size: 14px;
  }
  .custom-range {
    height: 8px;
  }

  /* Zebra ZPL Studio */
  .thermal-label-wrapper {
    padding: 0;
  }
  .thermal-label {
    padding: 12px;
    font-size: 10px;
  }
  .label-co {
    font-size: 13px;
  }
  .label-doc {
    font-size: 9px;
  }
  .label-body {
    flex-direction: row;
    gap: 8px;
  }
  .label-left-col {
    font-size: 10px;
    gap: 4px;
  }
  .qr-canvas {
    width: 55px;
    height: 55px;
  }
  .label-stamp {
    font-size: 9px;
    padding: 2px 6px;
  }
  .barcode-lines {
    height: 22px;
  }

  /* Dual Compact Projects */
  .project-card-compact {
    padding: 18px 14px;
  }
  .segmented-qr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .btn-scenario {
    padding: 8px 4px;
    font-size: 10px;
    text-align: center;
  }

  /* Media & YouTube Studio */
  .media-bento {
    padding: 18px 14px;
  }
  .channel-title {
    font-size: 22px;
  }
  .channel-desc {
    font-size: 13px;
  }
  .channel-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .c-val {
    font-size: 13px;
  }
  .c-lbl {
    font-size: 10px;
  }
  .btn-youtube {
    width: 100%;
    justify-content: center;
  }
  .video-preview-card {
    flex-direction: column;
    padding: 12px;
  }
  .video-thumb-placeholder {
    width: 100%;
    height: 160px;
  }

  /* Timeline & Experience */
  .timeline-content {
    padding: 18px 14px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .timeline-date {
    align-self: flex-start;
  }
  .timeline-bullets {
    padding-left: 16px;
    font-size: 12.5px;
  }

  /* Contact Section */
  .contact-card {
    padding: 22px 14px;
  }
  .contact-title {
    font-size: clamp(1.45rem, 6vw, 1.95rem);
  }
  .contact-desc {
    font-size: 13px;
  }
  .detail-val {
    font-size: 13px;
    word-break: break-all;
  }
  .connect-btns-grid .btn {
    font-size: 13px;
    padding: 12px 14px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  /* Modals on Mobile */
  .cmd-palette-dialog, .video-theater-dialog, .resume-modal-dialog {
    width: 94vw;
    max-height: 88vh;
    padding: 16px;
    margin: auto;
    border-radius: var(--radius-sm);
  }
  .resume-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .resume-modal-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .resume-nav-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 16px;
  }
  .resume-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 11px;
  }
  .resume-modal-content {
    padding: 16px;
  }
  .resume-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }
  .resume-modal-footer button {
    width: 100%;
  }

  .cmd-input-bar {
    padding: 12px 14px;
  }
  .cmd-input {
    font-size: 13px;
  }
  .cmd-results-list {
    max-height: 240px;
  }
  .cmd-item {
    padding: 8px 10px;
    font-size: 12px;
  }
  .cmd-palette-footer {
    padding: 8px 14px;
    font-size: 10px;
  }
}

/* 5. Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-name {
    font-size: 13px;
  }
  .brand-role {
    display: none;
  }
  .thermal-label .label-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .label-right-col {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
  }
  .telemetry-strip {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DIGITAL TRACEABILITY CERTIFICATE DIALOG
   ========================================================================== */
.trace-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  outline: none;
}
.trace-modal::backdrop {
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(10px);
}
.trace-dialog {
  width: min(92vw, 540px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 25px 60px -15px rgba(16, 185, 129, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #040914;
}
.trace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.trace-badge-verified {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}
.cert-company-banner {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.cert-company-banner h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.cert-company-banner span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.cert-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cert-field .c-key {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
}
.cert-field .c-val {
  font-size: 13px;
  color: var(--text-primary);
}
.c-status-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.status-accepted {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.cert-footer-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stamp-verified-seal {
  display: flex;
  align-items: center;
  gap: 8px;
}
.seal-icon {
  font-size: 24px;
}
.stamp-verified-seal strong {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: block;
}
.stamp-verified-seal p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 580px) {
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cert-footer-stamp {
    flex-direction: column;
    align-items: stretch;
  }
}
