/* Cleaned: removed unused classes — see CHANGELOG */
/* ============================================================
   STYLE.CSS - Main Stylesheet - Terminal Mind
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #000000; --bg-secondary: #0A0E18;
  --bg-terminal: #080D16; --bg-terminal-header: #141E2A;
  --bg-card: rgba(8,13,22,0.9);
  --text-primary: #D8E2EC; --text-secondary: #8899AA; --text-heading: #FFFFFF;
  --green-primary: #00FF41; --green-dim: #00CC33;
  --green-glow: rgba(0,255,65,0.15); --cyan-accent: #00D4FF;
  --yellow-accent: #FFD700; --red-accent: #FF4444; --orange-accent: #FF8800;
  --border-default: #1E3044; --border-green: rgba(0,255,65,0.2); --border-active: #00FF41;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --text-xs: clamp(0.65rem, 1.2vw, 0.75rem);
  --text-sm: clamp(0.75rem, 1.4vw, 0.875rem);
  --text-base: clamp(0.875rem, 1.6vw, 1rem);
  --text-lg: clamp(1rem, 1.8vw, 1.125rem);
  --text-xl: clamp(1.125rem, 2vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 3vw, 2rem);
  --text-4xl: clamp(2rem, 4vw, 3rem);
  --text-hero: clamp(2.5rem, 5vw, 4.5rem);
  --dot-red: #ff5f56; --dot-yellow: #ffbd2e; --dot-green: #27c93f;
  --radius-sm: 3px; --radius-md: 6px; --radius-lg: 8px;
  --scanline-gradient: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 1px, rgba(0,255,65,0.008) 1px, rgba(0,255,65,0.008) 2px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-mono); font-size: var(--text-base); color: var(--text-primary); background-color: var(--bg-primary); background-image: url('../assets/bg-circuit.jpg'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; line-height: 1.7; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,5,15,0.82); z-index: 0; pointer-events: none; }
body::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--scanline-gradient); pointer-events: none; z-index: 9998; }
a { color: var(--green-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cyan-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(0,5,15,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-default); padding: 0 1.5rem; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; height: 60px; }
.nav__logo { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--green-primary); text-decoration: none; letter-spacing: -0.5px; }
.nav__logo:hover { color: var(--green-primary); text-shadow: 0 0 10px var(--green-glow); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; position: relative; padding-bottom: 2px; transition: color 0.2s ease; }
.nav__link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--green-primary); transition: width 0.3s ease; }
.nav__link:hover, .nav__link--active { color: var(--green-primary); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__socials { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { background: transparent; border: 1px solid var(--green-primary); color: var(--green-primary); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); cursor: pointer; letter-spacing: 1px; transition: background 0.2s ease, color 0.2s ease; }
.lang-toggle:hover { background: var(--green-primary); color: var(--bg-primary); }
.nav__social-link { color: var(--text-secondary); font-size: var(--text-sm); transition: color 0.2s ease; }
.nav__social-link:hover { color: var(--green-primary); }
.nav__hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; padding: 0; }
.nav__hamburger span { display: block; width: 100%; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__drawer { display: none; position: fixed; top: 60px; left: 0; width: 100%; background: rgba(10,15,26,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-default); padding: 2rem 1.5rem; z-index: 999; flex-direction: column; gap: 1.5rem; }
.nav__drawer.open { display: flex; }
.nav__drawer .nav__link { font-size: var(--text-lg); display: block; }
.nav__drawer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; padding: 0; margin: 0; }
.nav__drawer-links li { display: block; }
.nav__drawer-links a { font-size: var(--text-lg); color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; display: block; }
.nav__drawer-links a:hover, .nav__drawer-links a.nav__link--active { color: var(--green-primary); }
.nav__drawer-socials { display: flex; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-default); margin-top: 0.5rem; }
.nav__drawer-socials .nav__social-link { color: var(--text-secondary); transition: color 0.2s ease; }
.nav__drawer-socials .nav__social-link:hover { color: var(--green-primary); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section { padding: 4rem 0; position: relative; z-index: 1; }
.section__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--text-heading); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; display: block; }
.section__title::before { content: '> '; color: var(--green-primary); font-family: var(--font-mono); font-weight: 400; }
a.section__title--link { text-decoration: none; color: var(--text-heading); transition: color 0.2s ease; cursor: pointer; }
a.section__title--link::before { content: none !important; }
a.section__title--link:hover { color: var(--green-primary); }
.section__title--plain::before { content: none !important; }

/* Hero */
.hero { padding: 4rem 0 3rem; position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr 0.75fr; gap: 1.5rem; align-items: start; }
.hero__grid--two-col { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero__left { grid-column: 1; }
.hero__center { grid-column: 2; }
.hero__right { grid-column: 3; }

/* ── Hero left: value prop ── */
.hero__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
  opacity: 0.9;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 1rem;
  text-shadow: 0 0 40px rgba(255,255,255,0.04);
}
.hero__jobtitle {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 1.25rem;
  opacity: 0.6;
}
.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
  margin: 0 0 1.25rem;
}
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--cyan-accent);
  margin-bottom: 1.5rem;
}
.hero__location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
  box-shadow: 0 0 8px var(--green-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Hero CTA buttons ── */
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.hero__btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.hero__btn--primary {
  background: var(--green-primary);
  color: var(--bg-primary);
}
.hero__btn--primary:hover {
  background: var(--green-dim);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--green-glow);
}
.hero__btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.hero__btn--secondary:hover {
  border-color: var(--green-primary);
  color: var(--text-primary);
}

/* ── Hero terminal: systemctl styles ── */
.sctl-line { margin: 0; padding: 0; line-height: 1.6; }
.sctl-prompt { color: var(--green-primary); }
.sctl-cmd { color: var(--text-secondary); }
.sctl-output { color: var(--text-primary); }
.sctl-dot-green { color: var(--green-primary); }
.sctl-svc-header { color: var(--text-primary); }
.sctl-svc-desc { color: var(--text-secondary); opacity: 0.5; }
.sctl-info { padding-left: 0; margin: 2px 0; }
.sctl-row {
  display: flex;
  font-family: var(--font-mono);
  font-size: inherit;
  line-height: 1.6;
}
.sctl-label {
  color: var(--text-secondary);
  opacity: 0.5;
  min-width: 90px;
  text-align: right;
  padding-right: 8px;
  flex-shrink: 0;
}
.sctl-val { color: var(--text-secondary); }
.sctl-val-green { color: var(--green-primary); }
.sctl-tree { padding-left: 5px; margin: 4px 0; }
.sctl-tree-char { color: var(--border-default); }
.sctl-svc-name { color: var(--green-primary); }
.sctl-svc-active { color: var(--green-primary); }
.sctl-mission { color: var(--green-primary); }
.sctl-gap { height: 6px; }
.sctl-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--green-primary);
  vertical-align: middle;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* Homepage 3-column sections */
.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
.home-sections > .home-col {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

/* Legacy home-grid (kept for backwards compat) */
.home-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }

/* Widget */
.widget {
  background: var(--bg-card);
  border: 1px solid rgba(0,255,65,0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(6px);
}
.widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(26,43,60,0.5);
}
.widget__title {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.widget__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  color: var(--red-accent);
  font-weight: 600;
}
.widget__body { padding: 0.75rem; }
.widget__body--centered { display: flex; justify-content: center; padding: 1rem; }
.widget__counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.widget__counter-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.widget__counter {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-primary);
  font-family: var(--font-display);
}
.threat-map { width: 100%; height: auto; }

/* Uptime gauge */
.uptime-gauge__fill {
  transition: stroke-dashoffset 2s ease-out;
}

/* Profile */
/* Career Widget — terminal style */
.terminal-card--widget { height: 100%; display: flex; flex-direction: column; }
.terminal-card--widget .terminal-card__body { flex: 1; display: flex; flex-direction: column; }
.widget-career__hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.widget-career__info { flex: 1; min-width: 0; }
.widget-career__name { font-family: var(--font-display); font-size: var(--text-base); color: var(--text-heading); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-career__status { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green-primary); margin-top: 0.2rem; display: flex; align-items: center; gap: 0.4rem; }
.widget-career__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-primary); box-shadow: 0 0 6px var(--green-glow); animation: status-pulse 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes status-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.widget-career__section-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-secondary); letter-spacing: 2px; text-align: center; margin: 0.75rem 0 0.5rem; opacity: 0.6; }
.widget-career__cta { display: block; text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green-primary); text-decoration: none; padding: 0.6rem; margin-top: auto; border-top: 1px solid rgba(0,255,65,0.1); transition: background 0.2s ease; }
.widget-career__cta:hover { background: rgba(0,255,65,0.05); }

.profile__avatar-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 1.5rem; gap: 0.75rem; }

/* Shared Avatar Component */
.profile-avatar { position: relative; display: inline-block; }
.profile-avatar--lg { width: 150px; height: 150px; }
.profile-avatar--sm { width: 120px; height: 120px; }
.profile-avatar__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 65%; position: relative; z-index: 2; }
.profile-avatar__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.profile-avatar__ring--inner { top: -3px; left: -3px; right: -3px; bottom: -3px; border: 2px solid var(--green-primary); z-index: 1; }
.profile-avatar__ring--outer { top: -8px; left: -8px; right: -8px; bottom: -8px; border: 1px dashed var(--border-green); z-index: 0; animation: avatar-ring-rotate 10s linear infinite; box-shadow: 0 0 20px var(--green-glow), 0 0 40px rgba(0,255,65,0.05); }
@keyframes avatar-ring-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .profile-avatar__ring--outer { animation: none; } }
.profile__name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--text-heading); font-weight: 700; }
.widget-downloads { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.widget-dl-btn { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green-primary); border: 1px solid rgba(0,255,65,0.25); border-radius: var(--radius-sm); padding: 0.35rem 0.75rem; text-decoration: none; background: rgba(0,255,65,0.05); transition: all 0.2s ease; }
.widget-dl-btn:hover { background: rgba(0,255,65,0.12); border-color: var(--green-primary); }
.widget-dl-btn svg { stroke: var(--green-primary); }
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--border-default); }
.timeline__item { position: relative; margin-bottom: 1.25rem; }
.timeline__item::before { content: ''; position: absolute; left: -1.5rem; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-primary); border: 2px solid var(--bg-primary); z-index: 1; }
.timeline__year { font-size: var(--text-xs); color: var(--green-primary); font-weight: 600; }
.timeline__text { font-size: var(--text-sm); color: var(--text-heading); font-weight: 600; }
.timeline__company { font-size: var(--text-xs); color: var(--text-secondary); }
.timeline__desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; margin-top: 0.15rem; }
.certifications { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.cert-badge { font-size: var(--text-xs); color: var(--cyan-accent); border: 1px solid rgba(0,212,255,0.25); border-radius: var(--radius-sm); padding: 0.25rem 0.6rem; background: rgba(0,212,255,0.05); white-space: nowrap; }

/* Category Tabs */
.category-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.category-tab { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-secondary); background: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 0.35rem 0.75rem; cursor: pointer; transition: all 0.2s ease; }
.category-tab:hover { color: var(--green-primary); border-color: var(--border-green); }
.category-tab--active { color: var(--green-primary); border-color: var(--border-active); background: var(--green-glow); }

/* Article Cards — home grid */
.home-articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.article-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid rgba(0,255,65,0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.article-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.article-card__image {
  position: relative;
  height: 140px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-card__number {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 24px;
  height: 24px;
  background: var(--green-primary);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.article-card__image svg { width: 80px; height: 80px; opacity: 0.6; }
.article-card__content { padding: 0.75rem; }
.article-card__title {
  font-size: var(--text-sm);
  color: var(--text-heading);
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__date {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
.article-card:hover .article-card__title { color: var(--green-primary); }
.view-all { display: inline-block; font-size: var(--text-xs); color: var(--green-dim); margin-top: 1rem; border-bottom: 1px dashed var(--green-dim); padding-bottom: 1px; transition: color 0.2s ease; }
.view-all:hover { color: var(--green-primary); border-bottom-color: var(--green-primary); }

/* ── Articles page cards ─────────────────────────── */
/* Article-specific terminal card overrides — base styles are in terminal.css */
.terminal-card--clickable {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--green-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.terminal-card--clickable:hover {
  border-color: var(--green-primary);
  box-shadow: 0 8px 30px rgba(0,255,65,0.08);
}
.terminal-card__dots span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.terminal-card__dots span:nth-child(1) { background: var(--dot-red); }
.terminal-card__dots span:nth-child(2) { background: var(--dot-yellow); }
.terminal-card__dots span:nth-child(3) { background: var(--dot-green); }
.terminal-card__file {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
  font-family: var(--font-mono);
}
.terminal-card__output {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.terminal-card--clickable:hover .terminal-card__output { color: var(--green-primary); }
.terminal-card__desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.terminal-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.article-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--green-primary);
  background: rgba(0,255,65,0.08);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.02em;
}
.article-tag--more {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.terminal-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Project Grid */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,255,65,0.18);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.project-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.project-card__name {
  font-size: var(--text-sm);
  color: var(--text-heading);
  font-weight: 600;
}
.project-card__desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.75rem; }
.status-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge--green { color: var(--text-heading); background: rgba(0,255,65,0.8); }
.status-badge--yellow { color: var(--bg-primary); background: rgba(255,215,0,0.8); }
.status-badge--orange { color: var(--text-heading); background: rgba(255,136,0,0.8); }
.status-badge--active { color: var(--green-primary); background: rgba(0,255,65,0.1); border: 1px solid rgba(0,255,65,0.25); }
.status-badge--beta { color: var(--yellow-accent); background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.25); }
.status-badge--dev { color: var(--orange-accent); background: rgba(255,136,0,0.1); border: 1px solid rgba(255,136,0,0.25); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.65rem; color: var(--text-secondary); background: rgba(106,123,141,0.08); border: 1px solid var(--border-default); border-radius: 2px; padding: 0.15rem 0.45rem; }

/* Articles Toolbar */
.articles-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; padding-top: 1.5rem; }
.articles-search { position: relative; flex: 1; max-width: 400px; }
.articles-search__icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.articles-search__input { width: 100%; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-primary); background: var(--bg-terminal); border: 1px solid var(--border-default); border-radius: 4px; padding: 0.6rem 0.75rem 0.6rem 2.25rem; outline: none; transition: border-color 0.2s ease; }
.articles-search__input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.articles-search__input:focus { border-color: var(--green-primary); box-shadow: 0 0 8px var(--green-glow); }
.articles-toolbar__right { display: flex; align-items: center; gap: 1rem; }
.articles-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-secondary); white-space: nowrap; }
.articles-sort { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-primary); background: var(--bg-terminal); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; outline: none; cursor: pointer; }
.articles-sort:focus { border-color: var(--green-primary); }
.search-highlight { background: var(--border-green); color: var(--green-primary); padding: 0 2px; border-radius: 2px; }

/* Articles Page */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.articles-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }
.articles-empty svg { margin-bottom: 0.75rem; opacity: 0.4; }
.articles-empty p { font-family: var(--font-mono); font-size: var(--text-sm); }

/* Projects Page */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

/* Article Detail */
.article-detail { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-detail__back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 2rem; transition: color 0.2s ease; }
.article-detail__back:hover { color: var(--green-primary); }
.article-detail__title { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; color: var(--text-heading); line-height: 1.2; margin-bottom: 1rem; }
.article-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: 1rem; }
.article-detail__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.article-detail__body { line-height: 1.9; }
.article-detail__body h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--text-heading); margin-top: 2.5rem; margin-bottom: 1rem; }
.article-detail__body p { font-size: var(--text-base); color: var(--text-primary); margin-bottom: 1.25rem; }
.article-detail__body code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--green-primary); background: rgba(0,255,65,0.06); padding: 0.15rem 0.4rem; border-radius: var(--radius-sm); }
.article-detail__body .code-block { background: var(--bg-terminal); border: 1px solid var(--border-default); border-radius: 4px; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; font-size: var(--text-sm); line-height: 1.7; color: var(--text-primary); }
.article-detail__body .code-block code { background: none; padding: 0; border-radius: 0; white-space: pre-wrap; word-break: break-word; display: block; }
.related-articles { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-default); }
.related-articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Project Detail */
.project-detail { max-width: 1000px; margin: 0 auto; padding: 3rem 1.5rem; }
.project-detail__back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 2rem; transition: color 0.2s ease; }
.project-detail__back:hover { color: var(--green-primary); }
.project-detail__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.project-detail__diagram { background: var(--bg-terminal); border: 1px solid var(--border-default); border-radius: 4px; padding: 2rem; overflow-x: auto; }
.project-detail__info h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--text-heading); margin-bottom: 1rem; }
.project-detail__desc { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }

/* Project Detail — Extended Sections */
.project-section { margin-top: 3rem; }
.project-section .section__title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--green-primary); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-default); }

/* Stats row */
.project-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.project-stat { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 1rem; text-align: center; backdrop-filter: blur(6px); }
.project-stat__value { display: block; font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 700; color: var(--green-primary); line-height: 1.2; }
.project-stat__label { display: block; font-size: var(--text-xs); color: var(--text-secondary); margin-top: 0.25rem; }

/* Features grid */
.project-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.project-feature { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 1.25rem; transition: border-color 0.2s ease; backdrop-filter: blur(6px); }
.project-feature:hover { border-color: var(--green-primary); }
.project-feature__name { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text-heading); margin-bottom: 0.5rem; }
.project-feature__desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; }

/* Stack detail (categorized) */
.project-stack-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.project-stack-cat { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 1rem; backdrop-filter: blur(6px); }
.project-stack-cat__title { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; color: var(--green-primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }

/* Project timeline (vertical) */
.project-tl { position: relative; padding-left: 2rem; }
.project-tl::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border-default); }
.project-tl__item { position: relative; margin-bottom: 1.5rem; }
.project-tl__dot { position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-default); background: var(--bg-secondary); }
.project-tl__item--done .project-tl__dot { background: var(--green-primary); border-color: var(--green-primary); }
.project-tl__item--current .project-tl__dot { background: var(--green-primary); border-color: var(--green-primary); box-shadow: 0 0 8px var(--green-glow); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 4px var(--green-glow); } 50% { box-shadow: 0 0 12px rgba(0,255,65,0.4); } }
.project-tl__period { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--green-primary); margin-bottom: 0.15rem; }
.project-tl__phase { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--text-heading); margin-bottom: 0.25rem; }
.project-tl__desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; }

/* Challenges (accordion) */
.project-challenge { background: var(--bg-card); border: 1px solid var(--border-default); border-left: 3px solid var(--border-default); border-radius: var(--radius-md); margin-bottom: 0.75rem; backdrop-filter: blur(6px); }
.project-challenge[open] { border-left-color: var(--green-primary); }
.project-challenge--critical { border-left-color: var(--red-accent); }
.project-challenge--critical[open] { border-left-color: var(--red-accent); }
.project-challenge--high { border-left-color: var(--orange-accent); }
.project-challenge--high[open] { border-left-color: var(--orange-accent); }
.project-challenge__title { padding: 0.75rem 1rem; cursor: pointer; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-heading); list-style: none; }
.project-challenge__title::-webkit-details-marker { display: none; }
.project-challenge__title::before { content: '\u25B6 '; font-size: 0.6rem; color: var(--text-secondary); margin-right: 0.5rem; }
.project-challenge[open] .project-challenge__title::before { content: '\u25BC '; }
.project-challenge__severity { font-size: 0.55rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.5px; }
.project-challenge__severity--critical { color: var(--text-heading); background: rgba(255,68,68,0.8); }
.project-challenge__severity--high { color: var(--text-heading); background: rgba(255,136,0,0.8); }
.project-challenge__severity--medium { color: var(--bg-primary); background: rgba(255,215,0,0.8); }
.project-challenge__desc { padding: 0 1rem 1rem; font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.7; }

/* Live link button */
.project-detail__live { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--green-primary); border: 1px solid var(--green-primary); border-radius: 4px; padding: 0.5rem 1rem; text-decoration: none; transition: all 0.3s ease; margin-top: 0.5rem; }
.project-detail__live:hover { background: var(--green-primary); color: var(--bg-primary); }
.project-detail__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.project-detail__github { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-secondary); }

/* 404 */
.page-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 2rem; }
.page-404__btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--green-primary); border: 1px solid var(--green-primary); border-radius: 4px; padding: 0.6rem 1.5rem; text-decoration: none; transition: all 0.3s ease; }
.page-404__btn:hover { background: var(--green-primary); color: var(--bg-primary); }

/* Threat Intelligence Section */
.threat-section { padding: 2rem 0 3rem; position: relative; z-index: 1; }
.threat-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding: 0 0.25rem;
}
.threat-section__label {
  font-family: var(--font-mono); font-size: var(--text-sm);
  color: var(--green-primary); opacity: 0.8;
}
.threat-section__live {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--red-accent); font-weight: 600; letter-spacing: 1px;
}
.threat-section__credit {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-secondary); opacity: 0.7;
}
.threat-section__credit-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green-primary);
  box-shadow: 0 0 6px var(--green-glow);
  animation: status-pulse 2s ease-in-out infinite;
}
.threat-section__credit-link {
  color: var(--green-primary); text-decoration: none;
  transition: color 0.2s ease;
}
.threat-section__credit-link:hover { color: var(--cyan-accent); }
.threat-section__frame {
  border: 1px solid rgba(0,255,65,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #050812;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.threat-section__frame iframe {
  display: block;
  width: 100%;
  min-height: 500px;
}
/* Mobile threat iframe handled in responsive.css */

/* Footer */
.footer { text-align: center; padding: 3rem 1.5rem; border-top: 1px solid var(--green-glow); margin-top: 2rem; position: relative; z-index: 1; background: transparent; }
.footer__connect {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--text-heading);
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.footer__socials { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.2rem; }
.footer__social-link { color: var(--text-primary); font-size: var(--text-lg); transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer__social-link:hover { color: var(--green-primary); transform: translateY(-2px); }
.footer__social-link svg { width: 24px; height: 24px; }
.footer__copyright { font-size: var(--text-sm); color: var(--text-primary); margin-bottom: 0.5rem; opacity: 0.8; }
.footer__admin { font-size: var(--text-xs); color: var(--text-secondary); opacity: 0.5; text-decoration: none; transition: opacity 0.3s ease; }
.footer__admin:hover { opacity: 0.9; color: var(--green-primary); }

/* Preprod banner */
.preprod-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #1A0A00;
  border-bottom: 1px solid var(--orange-accent);
  padding: 0.4rem 2.5rem 0.4rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange-accent);
}
.preprod-banner__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--orange-accent);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
}
.preprod-banner__close:hover { opacity: 1; }
body.has-preprod-banner .nav { top: 28px; }
body.has-preprod-banner { padding-top: 28px; }

/* Preprod overlay / gate */
.preprod-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.preprod-overlay__card { width: 350px; max-width: 90vw; }
.preprod-overlay__input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.preprod-overlay__label {
  font-size: var(--text-sm);
  color: var(--green-primary);
}
.preprod-overlay__input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--green-primary);
  color: var(--green-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 0.3rem 0;
  outline: none;
}
.preprod-overlay__error {
  font-size: var(--text-xs);
  color: var(--red-accent);
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.preprod-overlay__footer {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Admin modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-modal__content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.admin-modal__textarea {
  width: 100%;
  min-height: 300px;
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 1rem;
  border-radius: 4px;
  resize: vertical;
}
.admin-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.admin-modal__btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.admin-modal__btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}
.shake { animation: shake 0.4s ease-in-out; }

/* ============================================================
   ARTICLE RICH CONTENT — Tables, Quotes, Infographics, Sources
   ============================================================ */

/* ═══════════════════════════════════════
   FEATURE 1 — Reading progress bar
   ═══════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 999;
}
.reading-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-primary), var(--cyan-accent));
  box-shadow: 0 0 8px rgba(0,255,65,0.4);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════
   FEATURE 2 — Stat cards animated
   ═══════════════════════════════════════ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}
.stat-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
  border-color: var(--green-primary);
  transform: translateY(-3px);
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-card__suffix {
  font-size: 0.6em;
  color: var(--cyan-accent);
  font-weight: 600;
  margin-left: 2px;
}
.stat-card__label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.stat-card__source {
  font-size: 0.6rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   FEATURE 3 — Source tooltip popup
   ═══════════════════════════════════════ */
.source-tooltip {
  position: absolute;
  z-index: 2000;
  background: var(--bg-terminal);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 12px rgba(0,255,65,0.08);
  max-width: 360px;
  font-size: var(--text-xs);
  color: var(--text-primary);
  line-height: 1.6;
  pointer-events: auto;
  animation: tooltipFadeIn 0.2s ease;
}
@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.source-tooltip__close {
  position: absolute;
  top: 6px;
  right: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.2s;
}
.source-tooltip__close:hover { color: var(--red-accent); }
.source-tooltip__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--green-primary);
  font-weight: 600;
  font-size: var(--text-xs);
}
.source-tooltip__link:hover { color: var(--cyan-accent); }

/* ═══════════════════════════════════════
   FEATURE 4 — Interactive architecture SVG
   ═══════════════════════════════════════ */
.arch-diagram {
  position: relative;
  margin: 1.5rem 0 2rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}
.arch-diagram__svg {
  width: 100%;
  height: auto;
  min-height: 600px;
}
.arch-box { transition: stroke 0.3s, filter 0.3s; }
.arch-box--nginx:hover {
  stroke: var(--green-primary);
  filter: drop-shadow(0 0 8px rgba(0,255,65,0.3));
}
.arch-detail { transition: opacity 0.2s; }
.arch-detail:hover { opacity: 1 !important; }
.arch-detail:hover text { fill: var(--green-primary) !important; }
.arch-api__dot {
  animation: apiPulse 2s ease-in-out infinite;
}
@keyframes apiPulse {
  0%, 100% { opacity: 0.6; r: 5px; }
  50% { opacity: 1; r: 8px; }
}
.arch-diagram__tooltip {
  position: absolute;
  background: rgba(0,5,15,0.95);
  border: 1px solid var(--green-primary);
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  max-width: 320px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
}
.arch-diagram__tooltip--visible { opacity: 1; }

/* ── Sources grouped by theme ── */
.article-sources__count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
}
.article-sources__group {
  margin-bottom: 1rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-sources__group-title {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-terminal-header);
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.article-sources__group-title:hover { background: rgba(0,212,255,0.08); }
.article-sources__group-count { color: var(--text-secondary); font-weight: 400; }
.article-sources__group .article-sources__list {
  padding: 0.5rem 1rem;
}

/* ── h3 sub-headings ── */
.article-detail__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--cyan-accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ── Article lists ── */
.article-list { margin: 1rem 0 1.5rem 1.5rem; }
.article-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.7;
}
.article-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-size: 0.9em;
}
.article-list--ordered { list-style: none; counter-reset: ol-counter; }
.article-list--ordered li { counter-increment: ol-counter; }
.article-list--ordered li::before {
  content: counter(ol-counter) '.';
  color: var(--green-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ── Inline reference links [N] ── */
.article-ref {
  color: var(--cyan-accent);
  font-size: 0.8em;
  font-weight: 600;
  text-decoration: none;
  vertical-align: super;
  transition: color 0.2s;
  cursor: pointer;
}
.article-ref:hover { color: var(--green-primary); text-decoration: underline; }

/* ── Author byline ── */
.article-detail__author { color: var(--green-primary); font-weight: 600; }

/* ── Blockquote / Idée-clé ── */
.article-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  background: rgba(0,255,65,0.04);
  border-left: 3px solid var(--green-primary);
  border-radius: 0 6px 6px 0;
}
.article-quote__icon {
  position: absolute;
  left: 0.8rem;
  top: 1.4rem;
  color: var(--green-primary);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  opacity: 0.6;
}
.article-quote p {
  margin: 0;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.8;
}

/* ── Data tables ── */
.article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.article-table th {
  background: var(--bg-terminal-header);
  color: var(--green-primary);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-green);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(30,48,68,0.5);
  color: var(--text-primary);
  vertical-align: top;
}
.article-table tbody tr:hover { background: rgba(0,255,65,0.03); }
.article-table tbody tr:last-child td { border-bottom: none; }

/* ── Risk matrix heatmap ── */
.risk-matrix__label { font-weight: 600; color: var(--text-heading); }
.risk-matrix__cell { text-align: center; font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 1px; border-radius: var(--radius-sm); }
.risk-matrix__cell--eleve { background: rgba(255,68,68,0.2); color: var(--red-accent); }
.risk-matrix__cell--moyen { background: rgba(255,136,0,0.2); color: var(--orange-accent); }
.risk-matrix__cell--faible { background: rgba(0,255,65,0.12); color: var(--green-primary); }

/* ============================================================
   INFOGRAPHICS — Interactive HTML/CSS components
   ============================================================ */
.infographic {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.infographic__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.infographic__title::before {
  content: '\25C8 ';
  color: var(--green-primary);
}

/* ── Stack Layers (OSI-style) ── */
.stack-layers { display: flex; flex-direction: column; gap: 4px; }
.stack-layer {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: rgba(0,212,255,0.04);
  border-left: 3px solid var(--cyan-accent);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.infographic--visible .stack-layer {
  opacity: 1;
  transform: translateX(0);
}
.stack-layer__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stack-layer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.stack-layer__col {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.stack-layer__col--ia { background: rgba(255,215,0,0.06); }
.stack-layer__col--human { background: rgba(0,255,65,0.06); }
.stack-layer__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  margin-right: 0.4rem;
  color: var(--bg-primary);
  background: var(--yellow-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.stack-layer__badge--human { background: var(--green-primary); }

/* ── Timeline ── */
.infographic-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 2rem 0 1rem;
  overflow-x: auto;
  gap: 0.5rem;
}
.infographic-timeline::before {
  content: '';
  position: absolute;
  top: calc(2rem + 20px + 8px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border-default), var(--green-primary));
}
.infographic-timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.infographic-timeline__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.infographic-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-terminal);
  border: 2px solid var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}
.infographic-timeline__node--active .infographic-timeline__dot {
  background: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 0 12px rgba(0,255,65,0.5);
}
.infographic-timeline__node--active .infographic-timeline__year { color: var(--green-primary); }
.infographic-timeline__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}
.infographic-timeline__desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
  max-width: 110px;
}

/* ── Salary bars ── */
.salary-bars { display: flex; flex-direction: column; gap: 1.5rem; }
.salary-bar-group__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.salary-bar-group__bars { display: flex; flex-direction: column; gap: 0.4rem; }
.salary-bar { display: flex; align-items: center; gap: 0.5rem; }
.salary-bar__level {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  width: 65px;
  flex-shrink: 0;
  text-align: right;
}
.salary-bar__track {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.salary-bar__fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.salary-bar__fill--junior { background: linear-gradient(90deg, #1a4a5c, var(--cyan-accent)); }
.salary-bar__fill--confirmed { background: linear-gradient(90deg, #4a3a00, var(--yellow-accent)); }
.salary-bar__fill--senior { background: linear-gradient(90deg, #0a3a0a, var(--green-primary)); }
.salary-bar__val {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-heading);
  width: 55px;
  flex-shrink: 0;
}

/* ── Radar chart (bar-based fallback) ── */
.radar-chart { display: flex; flex-direction: column; gap: 1rem; }
.radar-chart__legend { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 0.5rem; }
.radar-chart__legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: var(--text-xs); color: var(--text-secondary); }
.radar-chart__legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.radar-chart__bars { display: flex; flex-direction: column; gap: 0.6rem; }
.radar-chart__axis { display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem; align-items: center; }
.radar-chart__axis-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: right;
}
.radar-chart__axis-bars { display: flex; flex-direction: column; gap: 3px; }
.radar-chart__bar-wrap { display: flex; align-items: center; gap: 0.3rem; }
.radar-chart__bar {
  height: 8px;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22,1,0.36,1);
  opacity: 0.85;
}
.radar-chart__bar-val {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ── Sources / References ── */
.article-sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-default);
}
.article-sources h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin-bottom: 1rem;
}
.article-sources__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.article-sources__item {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.6;
  padding-left: 2.5rem;
  position: relative;
  scroll-margin-top: 80px;
}
.article-sources__item:target {
  background: rgba(0,255,65,0.06);
  border-radius: 4px;
  padding: 0.3rem 0.5rem 0.3rem 2.5rem;
}
.article-sources__num {
  position: absolute;
  left: 0;
  color: var(--cyan-accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.article-sources__link {
  color: var(--green-primary);
  word-break: break-all;
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.article-sources__link:hover { opacity: 1; color: var(--cyan-accent); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.hidden { display: none !important; }

/* ── Utility classes (extracted from inline styles) ── */

/* 404 page */
.terminal-card--centered { max-width: 500px; margin: auto; }
.terminal-output--spaced { margin: 0.5rem 0; }
.text-error { color: var(--red-accent); margin-bottom: 1rem; }
.terminal-prompt--spaced { margin-top: 1rem; }
.text-muted-block { color: var(--text-secondary); margin: 0.5rem 0; }
.mt-md { margin-top: 1.5rem; }

/* about page */
.pt-hero { padding-top: 5rem; }
.container--narrow { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.text-accent { color: var(--green-primary); }
.mb-sm { margin-bottom: 0.75rem; }

/* article page */
.article-divider { border: none; border-top: 1px solid var(--border-default); margin: 2rem 0; }

/* career page */
.display-contents { display: contents; }

/* index page */
.iframe-clean { border: none; border-radius: 8px; }
