/* ═══════════════════════════════════════════════════════
   KRISHNA — PORTFOLIO  |  Terminal / CLI Aesthetic
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:           #080808;
  --bg-card:      #0f0f0f;
  --bg-card-hov:  #141414;
  --bg-terminal:  #0b0b0b;
  --bg-termbar:   #141414;
  --border:       #1c1c1c;
  --border-hov:   #2a2a2a;
  --text:         #cdd9e5;
  --text-muted:   #4a5568;
  --accent:       #3fb950;
  --accent-dim:   #0a1f12;
  --accent-mid:   #1a4028;
  --yellow:       #d4a017;
  --red:          #f85149;
  --blue:         #58a6ff;
  --purple:       #a371f7;
  --font:         'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --radius:       4px;
  --radius-lg:    8px;
  --max-w:        920px;
  --tr:           0.18s ease;
  --sb-h:         28px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
#page-wrap { overflow-x: hidden; width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: var(--sb-h);
}
a { color: inherit; text-decoration: none; }

/* ── Global code reset (prevent white-space:pre overflow) ── */
code {
  font-family: var(--font);
  font-size: 0.88em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0 4px;
  border-radius: 2px;
  white-space: normal;        /* override browser pre default */
  word-break: break-all;
  display: inline;
  text-shadow: none;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hov); border-radius: 2px; }

/* ── Selection ─────────────────────────────────────────── */
::selection { background: var(--accent-dim); color: var(--accent); }

/* ── Utility ───────────────────────────────────────────── */
.accent  { color: var(--accent); }
.muted   { color: var(--text-muted); }
.hidden  { display: none !important; }
.mt8     { margin-top: 8px; }

/* ── Fade-in on scroll ─────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 48px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { font-size: 13.5px; font-weight: 500; color: var(--text-muted); }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12.5px; color: var(--text-muted); transition: color var(--tr); }
.nav-links a:hover  { color: var(--accent); }
.nav-links a.active { color: var(--text); }

.nav-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-muted); font-size: 18px; cursor: pointer;
  padding: 4px 8px; font-family: var(--font); line-height: 1;
}

.mobile-menu {
  position: fixed; top: 48px; left: 0; right: 0; z-index: 190;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 6px 0;
}
.mobile-menu:not(.hidden) { display: flex; }
.mobile-menu a {
  padding: 12px 24px; font-size: 13px; color: var(--text-muted);
  transition: color var(--tr), background var(--tr);
}
.mobile-menu a:hover { color: var(--accent); background: var(--bg-card-hov); }

/* ═══════════════════════════════════════════════════════
   HERO — TERMINAL
   ═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 60px;
}

.terminal-window {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6), 0 0 50px rgba(63,185,80,0.06), 0 0 0 1px rgba(63,185,80,0.04);
  position: relative;
}

/* title bar */
.terminal-bar {
  background: var(--bg-termbar);
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.terminal-title {
  margin-left: 8px; font-size: 11.5px; color: var(--text-muted);
  flex: 1; text-align: center; margin-right: 60px;
}

/* scanlines overlay */
.scanlines {
  position: absolute;
  inset: 38px 0 0 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* terminal body */
.terminal-body {
  background: var(--bg-terminal);
  padding: 20px 24px 28px;
  min-height: 300px;
  position: relative;
  z-index: 2;
  overflow-x: hidden; /* prevent serial monitor from leaking out on mobile */
}

/* section line after title */
.sect-line::after {
  content: ' ──────────────────────────────────────';
  letter-spacing: 0;
  overflow: hidden;
  display: inline-block;
  max-width: 300px;
  vertical-align: middle;
}

/* terminal lines */
.terminal-line {
  font-size: 13.5px;
  line-height: 1.8;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.prompt { color: var(--accent); user-select: none; flex-shrink: 0; }
.cmd    { color: var(--text); }

/* cursors */
.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
.cursor-idle {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── neofetch block ──────────────────────────────────────── */
.neofetch-block {
  display: flex;
  gap: 28px;
  margin: 14px 0 8px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* ASCII logo (left column) */
.nf-logo-ascii {
  font-size: 10.5px;
  line-height: 1.22;
  white-space: pre;
  flex-shrink: 0;
  font-family: var(--font);
  /* color inherited from .accent class */
  opacity: 0.82;
  user-select: none;
  /* strip default pre margin */
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  filter: drop-shadow(0 0 7px rgba(63,185,80,0.3));
}

/* info column (right) */
.nf-info { flex: 1; min-width: 220px; }
.nf-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.nf-divider { font-size: 12px; margin: 4px 0; letter-spacing: 0; }

.nf-row {
  font-size: 12.5px;
  line-height: 1.8;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.nf-key {
  color: var(--accent);
  font-weight: 500;
  min-width: 60px;
  flex-shrink: 0;
}

.nf-sep { flex-shrink: 0; }

.nf-colors {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.nf-c { width: 16px; height: 16px; border-radius: 2px; }
.c0 { background: #21262d; }
.c1 { background: #f85149; }
.c2 { background: #3fb950; }
.c3 { background: #d29922; }
.c4 { background: #58a6ff; }
.c5 { background: #a371f7; }
.c6 { background: #39c5cf; }
.c7 { background: #c9d1d9; }

/* ── ls output ───────────────────────────────────────────── */
.ls-output {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 4px 0 4px 18px;
  font-size: 13px;
}
.ls-item { }
.ls-dir  { color: var(--blue); }

/* ── link block ──────────────────────────────────────────── */
.link-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  margin-bottom: 4px;
}
.link-row {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  transition: color var(--tr);
  align-items: baseline;
}
.link-row:hover { color: var(--accent); }
.link-arrow { flex-shrink: 0; }
.link-label { color: var(--text); white-space: pre; min-width: 80px; }

/* ═══════════════════════════════════════════════════════
   SECTIONS — SHARED
   ═══════════════════════════════════════════════════════ */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  white-space: nowrap;
  overflow: hidden;
}
/* override scramble-text color inside section-title */
.section-title .scramble-text {
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
}

.section-sub {
  font-size: 12.5px;
  margin-top: -28px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Generic card ──────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  background: var(--bg-card);
  font-size: 14px;
  line-height: 1.85;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.04) 70%, transparent);
}

/* ── About typography ──────────────────────────────────── */
.about-lead {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 0;
}

/* ── Philosophy block ──────────────────────────────────── */
.philosophy-block {
  margin: 0 0 32px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(63,185,80,0.04) 0%, rgba(63,185,80,0.01) 100%);
  border: 1px solid rgba(63,185,80,0.12);
  border-left: 3px solid var(--accent);
  position: relative;
}
.philosophy-block::before {
  content: '"';
  position: absolute;
  top: 12px; left: 20px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: rgba(63,185,80,0.08);
  pointer-events: none;
  font-weight: 700;
}
.phi-quote {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  position: relative;
}
.phi-sub {
  font-size: 13px;
  line-height: 1.75;
}

/* ── Tags ──────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  font-family: var(--font);
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border-hov);
  border-radius: 20px;
  color: var(--text-muted);
  background: var(--bg);
  letter-spacing: 0.03em;
  transition: color var(--tr), border-color var(--tr);
}
.tag:hover { color: var(--accent); border-color: rgba(63,185,80,0.3); }

/* ── Vibe/method block ─────────────────────────────────── */
.vibe-block {
  margin: 28px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: rgba(63,185,80,0.02);
  font-size: 13.5px;
  line-height: 1.85;
}
.vibe-label {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 0.14em;
  margin-bottom: 12px; font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   FEATURED CARD
   ═══════════════════════════════════════════════════════ */
.featured-card {
  border: 1px solid rgba(63,185,80,0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #101510 0%, var(--bg-card) 60%);
  padding: 44px;
  position: relative;
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(63,185,80,0.3) 60%, transparent 100%);
  box-shadow: 0 0 16px rgba(63,185,80,0.5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.featured-badge {
  display: inline-block;
  font-family: var(--font);
  font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--accent); border: 1px solid rgba(63,185,80,0.3);
  padding: 3px 10px; margin-bottom: 12px; border-radius: 20px;
  background: rgba(63,185,80,0.06);
}
.featured-title {
  font-size: 21px; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; line-height: 1.3;
}
.featured-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }

.featured-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; padding-top: 8px; flex-shrink: 0;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1; box-shadow: 0 0 6px var(--yellow);} 50%{opacity:0.3; box-shadow: none;} }

.featured-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
  display: inline-block;
}
.featured-title .accent { color: var(--accent); }
.featured-subtitle {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.featured-desc {
  font-size: 13.5px;
  line-height: 1.9;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid rgba(63,185,80,0.25);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* stats bar */
.stats-bar {
  display: flex; align-items: stretch; flex-wrap: wrap;
  margin-bottom: 28px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  flex: 1;
}
.stat-item:last-child { border-right: none; }
.stat-val  {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; line-height: 1.1;
}
.stat-key  { font-size: 10px; letter-spacing: 0.06em; margin-top: 4px; text-transform: uppercase; }
.stat-div  { display: none; }

/* highlight grid */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.highlight {
  display: flex; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,0.15);
  transition: border-color var(--tr), background var(--tr);
  min-width: 0;
  overflow: hidden;
}
.highlight:hover {
  border-color: var(--border-hov);
  background: rgba(63,185,80,0.02);
}

/* inner content div — MUST have min-width:0 to shrink in flex context */
.highlight > div {
  flex: 1;
  min-width: 0;
}

.hl-num { font-size: 11px; flex-shrink: 0; line-height: 1.6; padding-top: 4px; }
.hl-num::before { content: '['; }
.hl-num::after  { content: ']'; }
.hl-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px;
}
.hl-desc  {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── priority badge on highlight cards ───────────────────── */
.highlight.is-p1   { border-left: 2px solid rgba(248,81,73,0.5); }
.highlight.is-p4   { border-left: 2px solid rgba(88,166,255,0.35); }
.highlight.is-fail { border-left: 2px solid rgba(210,153,34,0.5); }
.highlight:hover.is-p1   { border-left-color: rgba(248,81,73,0.8); }
.highlight:hover.is-p4   { border-left-color: rgba(88,166,255,0.65); }
.highlight:hover.is-fail { border-left-color: rgba(210,153,34,0.8); }

.hl-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.09em;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.7;
  text-transform: uppercase;
}
.hl-p1   { color: var(--red);    border: 1px solid rgba(248,81,73,0.28);  background: rgba(248,81,73,0.06);  text-shadow: none; }
.hl-p4   { color: var(--blue);   border: 1px solid rgba(88,166,255,0.28); background: rgba(88,166,255,0.06); text-shadow: none; }
.hl-fail { color: var(--yellow); border: 1px solid rgba(210,153,34,0.28); background: rgba(210,153,34,0.06); text-shadow: none; }

/* stack */
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.stack-tag {
  font-family: var(--font);
  font-size: 10.5px; padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted); background: rgba(0,0,0,0.2);
  letter-spacing: 0.02em;
  transition: color var(--tr), border-color var(--tr);
}
.stack-tag:hover { color: var(--text); border-color: var(--border-hov); }

/* architecture block */
.arch-block {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.arch-title { font-size: 11px; letter-spacing: 0.06em; margin-bottom: 8px; }
.arch-pre {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

/* GPIO table */
.gpio-table-wrap {
  margin-bottom: 20px;
}
.gpio-title { font-size: 11px; letter-spacing: 0.06em; margin-bottom: 8px; }
.gpio-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gpio-header {
  display: grid;
  grid-template-columns: 44px 200px 1fr;
  gap: 12px;
  padding: 7px 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.gpio-row {
  display: grid;
  grid-template-columns: 44px 200px 1fr;
  gap: 12px;
  padding: 7px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
  align-items: baseline;
}
.gpio-row:last-child { border-bottom: none; }
.gpio-row:hover { background: var(--bg-card-hov); }
.gpio-pin { font-weight: 600; flex-shrink: 0; }
.gpio-comp { color: var(--text); display: flex; align-items: center; gap: 0; }
.gpio-role { font-size: 11.5px; }

/* ── GPIO direction badge ────────────────────────────────── */
.gpio-dir {
  display: inline-block;
  font-size: 8.5px;
  padding: 0 5px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.8;
  flex-shrink: 0;
  margin-right: 7px;
  text-transform: uppercase;
}
.gpio-in  { color: var(--accent); border: 1px solid rgba(63,185,80,0.35);  background: rgba(63,185,80,0.05); text-shadow: none; }
.gpio-out { color: var(--yellow); border: 1px solid rgba(210,153,34,0.35); background: rgba(210,153,34,0.05); text-shadow: none; }

/* debug milestones */
.debug-block {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(248,81,73,0.45);
  border-radius: var(--radius);
}
.debug-title { font-size: 11px; letter-spacing: 0.06em; margin-bottom: 10px; }
.debug-list { display: flex; flex-direction: column; gap: 7px; }
.debug-row {
  display: flex; gap: 10px;
  font-size: 12px; line-height: 1.65;
  align-items: baseline;
}
.debug-id { flex-shrink: 0; font-size: 11px; width: 20px; }

/* ── Debug FIXED badge ───────────────────────────────────── */
.dbg-tag {
  display: inline-block;
  font-size: 8.5px;
  padding: 0 5px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.85;
  flex-shrink: 0;
  text-transform: uppercase;
}
.dbg-fixed { color: var(--accent); border: 1px solid rgba(63,185,80,0.35); background: rgba(63,185,80,0.05); text-shadow: none; }
.debug-row code {
  font-family: var(--font);
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0 4px;
  border-radius: 2px;
}

/* ai note */
.ai-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 24px; padding: 16px 20px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  font-size: 12.5px; line-height: 1.8; color: var(--text-muted);
}
.ai-note strong { color: var(--text); }
.ai-note-icon { flex-shrink: 0; margin-top: 2px; font-size: 14px; }

/* featured footer */
.featured-footer {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.featured-footer-note {
  font-size: 11.5px;
  letter-spacing: 0.03em;
}
.btn-outline {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  padding: 10px 22px;
  border: 1px solid rgba(63,185,80,0.5);
  color: var(--accent);
  background: rgba(63,185,80,0.04);
  border-radius: var(--radius-lg);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.btn-outline:hover {
  background: rgba(63,185,80,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(63,185,80,0.15);
}

/* ═══════════════════════════════════════════════════════
   REPO LISTING  (ls -la hybrid)
   ═══════════════════════════════════════════════════════ */
.repo-ls-header {
  display: grid;
  grid-template-columns: 70px 200px 1fr 80px;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
@media (max-width: 600px) { .repo-ls-header { display: none; } }

.repo-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.repo-card {
  display: grid;
  grid-template-columns: 70px 190px 1fr 90px;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: background var(--tr), border-color var(--tr);
  cursor: pointer;
}
.repo-card:hover {
  background: var(--bg-card-hov);
  border-color: var(--border);
}

.repo-lang {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-muted);
}
.lang-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.repo-name {
  font-size: 13px; font-weight: 500; color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.repo-card:hover .repo-name { text-decoration: underline; text-underline-offset: 3px; }

.repo-desc {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.repo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.repo-stars {
  font-size: 11px;
  color: var(--yellow);
  white-space: nowrap;
}
.repo-time {
  font-size: 11px; color: var(--text-muted);
  text-align: right; white-space: nowrap;
}

.repo-loading {
  font-size: 13px; color: var(--text-muted); padding: 10px 12px;
}
.repo-error { font-size: 12.5px; color: var(--text-muted); padding: 10px 12px; }
.repo-error a { color: var(--accent); }
.repo-error a:hover { text-decoration: underline; }

/* mobile: repo cards stacked */
@media (max-width: 600px) {
  .repo-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .repo-meta { align-items: flex-start; flex-direction: row; gap: 8px; }
  .repo-time { text-align: left; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--bg-card);
  display: flex; align-items: center; gap: 16px;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.contact-card:hover {
  border-color: rgba(63,185,80,0.35);
  background: rgba(63,185,80,0.03);
  box-shadow: 0 0 0 1px rgba(63,185,80,0.08), 0 4px 20px rgba(0,0,0,0.3);
}
.contact-icon {
  font-size: 22px; flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color var(--tr);
}
.contact-card:hover .contact-icon { color: var(--text); }
.contact-platform {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
}
.contact-handle { font-size: 11.5px; margin-top: 3px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  padding: 52px 0 60px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-note  { font-size: 11px; margin-top: 6px; letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════
   STATUS BAR  (tmux style, fixed bottom)
   ═══════════════════════════════════════════════════════ */
.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--sb-h);
  background: #161616;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11.5px;
  user-select: none;
}

.sb-left, .sb-right {
  display: flex; align-items: center; gap: 0;
}

.sb-block {
  padding: 0 10px;
  height: var(--sb-h);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.sb-right .sb-block { border-right: none; border-left: 1px solid var(--border); }

.sb-mode { font-weight: 600; letter-spacing: 0.05em; }
.sb-center { font-size: 11.5px; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-links    { display: none; }
  .nav-menu-btn { display: block; }

  .terminal-body { padding: 16px 14px 22px; }
  /* Force vertical stack — no flex-wrap calc that can flip when JS reflows */
  .neofetch-block { flex-direction: column; gap: 14px; align-items: stretch; }
  .nf-info        { min-width: 0; width: 100%; }
  .nf-logo-ascii  { font-size: 7.5px; line-height: 1.18; align-self: flex-start; }

  .section { padding: 64px 0; }
  .section-title { white-space: normal; }

  .card { padding: 24px 20px; }
  .about-lead { font-size: 15px; }
  .philosophy-block { padding: 20px 20px; }
  .phi-quote { font-size: 14px; }

  .featured-card { padding: 24px 18px; }
  .featured-title { font-size: 24px; }

  /* highlight grid — full width single column on mobile */
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .highlight {
    padding: 12px 13px;
    gap: 10px;
    align-items: flex-start;
  }
  .hl-num { padding-top: 1px; }
  .hl-desc { font-size: 11px; }

  /* stats bar — allow wrapping, smaller padding */
  .stats-bar {
    flex-wrap: wrap;
    gap: 6px 0;
    padding: 10px 12px;
    justify-content: center;
  }
  .stat-item { padding: 12px 10px; }
  .stat-val  { font-size: 18px; }

  /* arch block — allow wrapping */
  .arch-pre { font-size: 11px; white-space: pre-wrap; overflow-x: hidden; }

  /* gpio table — role col hidden, 2 col layout */
  .gpio-header { grid-template-columns: 36px 1fr; }
  .gpio-header span:last-child { display: none; }
  .gpio-row    { grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
  .gpio-role   { display: none; }

  /* debug block */
  .debug-row { flex-wrap: wrap; gap: 6px; }

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

  .statusbar { font-size: 10.5px; }
  .sb-block  { padding: 0 7px; }

  /* serial monitor — compact for mobile */
  .sm-port-info  { display: none; }            /* hide "COM3 │ 115200 baud │ 8-N-1 │" */
  .sm-ms         { display: none; }            /* hide timestamp */
  .sm-tag        { min-width: 36px; }          /* shrink tag column */
  .sm-key        { min-width: 0; }             /* natural key width */
  .serial-line   { font-size: 10.5px; gap: 6px; }
  .serial-conn   { font-size: 11px; }

  /* about section — tighter on mobile */
  .vibe-block  { padding: 16px 18px; font-size: 13px; }

  /* featured — reduce inner padding */
  .featured-desc { padding: 14px 16px; }
  .ai-note       { padding: 12px 14px; }
  .arch-block    { padding: 10px 12px; }
}

@media (max-width: 400px) {
  .contact-grid  { grid-template-columns: 1fr; }
  .nf-logo-ascii { font-size: 6px; line-height: 1.15; }
  .card          { padding: 20px 16px; }
  .featured-card { padding: 18px 14px; }
  .featured-title { font-size: 22px; }
  .highlight     { padding: 11px 12px; }
  .hl-desc       { font-size: 10.5px; }
  /* serial monitor extra compact */
  .sm-tag        { min-width: 32px; font-size: 9.5px; }
  .serial-line   { font-size: 10px; gap: 5px; }
  .serial-conn   { font-size: 10px; }
}

/* ── intermediate breakpoint ────────────────────────────── */
@media (min-width: 401px) and (max-width: 640px) {
  .stat-div { display: none; }
}

/* ═══════════════════════════════════════════════════════
   EFFECTS & ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* ── Scroll progress bar ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(63,185,80,0.5));
  box-shadow: 0 0 10px rgba(63,185,80,0.8), 0 0 20px rgba(63,185,80,0.3);
  z-index: 9999;
  transition: width 80ms linear;
}

/* ── Dot grid background ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(63,185,80,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
  animation: grid-fade-in 2s ease forwards;
}
@keyframes grid-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Cursor glow ─────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,185,80,0.045) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  top: 0; left: 0;
  will-change: transform;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ── Terminal scanline sweep ─────────────────────────────── */
.scanline-sweep {
  position: absolute;
  top: 38px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(63,185,80,0.04) 40%,
    rgba(63,185,80,0.06) 50%,
    rgba(63,185,80,0.04) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity;
  animation: sweep-down 10s ease-in-out infinite;
}
@keyframes sweep-down {
  0%   { transform: translateY(0);    opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(80vh); opacity: 0; }
}

/* ── Glitch keyframes ────────────────────────────────────── */
@keyframes glitch-shake {
  0%, 100% { transform: none; }
  10%  { transform: translate(-3px, 0) skewX(-4deg); }
  20%  { transform: translate(3px, 0)  skewX(2deg);  color: var(--red); }
  30%  { transform: translate(-2px, 1px); color: var(--blue); }
  40%  { transform: translate(2px, -1px) skewX(-1deg); color: var(--text); }
  55%  { transform: translate(0); }
}

@keyframes glitch-bar {
  0%, 90%, 100% { opacity: 0; transform: translateY(0); }
  92% { opacity: 1; transform: translateY(0.5em);  height: 3px; }
  94% {            transform: translateY(1.2em);   height: 2px; }
  96% {            transform: translateY(0.8em);   height: 4px; }
  98% { opacity: 0; }
}

.featured-title {
  position: relative;
  display: inline-block;
}
.featured-title::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 2px;
  background: rgba(248,81,73,0.7);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: glitch-bar 8s steps(1) infinite;
}

/* ── Featured badge pulse ────────────────────────────────── */
@keyframes badge-glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
.featured-badge {
  animation: badge-glow 3s ease-in-out infinite;
  will-change: opacity;
}

/* ── Highlight card entrance (JS sets opacity/transform/will-change) ─── */
.highlight {
  /* will-change set+cleared dynamically by JS */
}

/* ── Repo card left accent on hover ──────────────────────── */
.repo-card {
  border-left: 2px solid transparent;
  transition: background var(--tr), border-color var(--tr), border-left-color 0.2s ease;
}
.repo-card:hover {
  border-left-color: var(--accent);
}

/* ── Contact card icon spin ──────────────────────────────── */
.contact-icon {
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), color var(--tr);
}
.contact-card:hover .contact-icon {
  transform: rotate(20deg) scale(1.15);
}

/* ── Section title subtle flicker ───────────────────────── */
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98%           { opacity: 0.85; }
  99%           { opacity: 1; }
}
.section-title {
  animation: flicker 8s ease-in-out infinite;
}

/* ── Stat value glow on count-up ─────────────────────────── */
.stat-val.counting {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(63,185,80,0.6);
  transition: text-shadow 0.3s ease;
}

/* ── Featured card tilt reset ────────────────────────────── */
.featured-card {
  transition: transform 0.12s ease;
}

/* ═══════════════════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════════════════ */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}
#boot-screen.boot-out {
  animation: boot-fade-out 0.55s ease forwards;
  pointer-events: none;
}
@keyframes boot-fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.boot-inner {
  width: min(480px, 90vw);
}
.boot-brand {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.boot-at   { color: var(--text-muted); }
.boot-path { color: var(--text-muted); font-weight: 400; }
.boot-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

#boot-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  min-height: 120px;
}
.boot-line {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  animation: boot-line-in 0.22s ease forwards;
}
@keyframes boot-line-in {
  to { opacity: 1; transform: none; }
}
.boot-ok {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(63,185,80,0.5);
  margin-right: 4px;
}
.boot-warn { color: var(--yellow); margin-right: 4px; }

.boot-bar-wrap {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 10px;
}
.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(63,185,80,0.5));
  box-shadow: 0 0 8px rgba(63,185,80,0.7);
  transition: width 0.18s ease;
}
.boot-hint {
  font-size: 11px;
  letter-spacing: 0.06em;
  min-height: 16px;
  transition: opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   TEXT SCRAMBLE
   ═══════════════════════════════════════════════════════ */
.scramble-text { display: inline; }
.sc { color: var(--accent); opacity: 0.55; }

/* ═══════════════════════════════════════════════════════
   SERIAL MONITOR
   ═══════════════════════════════════════════════════════ */
.serial-block {
  margin-top: 16px;
}
.serial-divider {
  font-size: 11.5px;
  letter-spacing: 0;
  margin-bottom: 10px;
  opacity: 0.3;
  /* content filled by JS to fit container exactly — no overflow */
}
.serial-conn {
  font-size: 11.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* Desktop shows full port info; mobile shows compact version */
.sm-port-m { display: none; }  /* hidden by default, shown on mobile via JS+CSS */
.serial-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.serial-line {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.75;
  opacity: 0;
  will-change: opacity, transform;
  animation: sm-in 0.12s ease forwards;
}
@keyframes sm-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: none; }
}
.sm-ms  {
  color: var(--text-muted);
  min-width: 60px;
  font-size: 11px;
  flex-shrink: 0;
}
.sm-tag {
  min-width: 46px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sm-key {
  min-width: 140px;
  flex-shrink: 0;
  color: var(--text);
}
.sm-sep { color: var(--text-muted); flex-shrink: 0; }

/* tag colors */
.sm-boot { color: var(--accent); }
.sm-ok   { color: var(--accent); }
.sm-warn { color: var(--yellow); }
.sm-data { color: var(--blue);   }
.sm-init { color: var(--text-muted); }

/* val colors */
.sm-val-boot { color: var(--accent); }
.sm-val-ok   { color: var(--text);   }
.sm-val-warn { color: var(--yellow); }
.sm-val-data { color: var(--accent); }

/* ── Serial monitor mobile layout ──────────────────────────────
   On mobile, JS generates .serial-line.sm-mobile (display:block),
   with inline spans using ch units — no flex min-width overflow.
   Desktop .serial-line stays flex with full column layout.
   ─────────────────────────────────────────────────────────── */

/* Mobile: swap port info spans */
@media (max-width: 640px) {
  .sm-port-d { display: none; }
  .sm-port-m { display: inline; }
  .serial-conn { font-size: 10.5px; }
}

/* Mobile serial lines — block layout, inline spans via ch units */
.serial-line.sm-mobile {
  display: block;          /* not flex — prevents min-width overflow */
  font-size: 10px;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;        /* clip any long val gracefully */
}
.serial-line.sm-mobile .sm-ms-m {
  display: inline-block;
  min-width: 7ch;          /* [200ms] = 7 chars — widest timestamp */
  color: var(--text-muted);
  font-size: 10px;
}
.serial-line.sm-mobile .sm-tag {
  display: inline-block;
  min-width: 4ch;          /* BOOT/WARN/DATA = 4 chars */
  font-size: 10px;
  margin-left: 4px;
}
.serial-line.sm-mobile .sm-val {
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════
   GIT LOG OUTPUT
   ═══════════════════════════════════════════════════════ */
.git-log-block {
  margin-top: 6px;
}
.git-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 11.5px;
  line-height: 1.75;
  opacity: 0;
  will-change: opacity, transform;
  animation: sm-in 0.12s ease forwards;
}
.git-hash {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.git-repo {
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.git-sep {
  flex-shrink: 0;
}
.git-msg {
  color: var(--text);
}
.git-ago {
  font-size: 10.5px;
  white-space: nowrap;
}
.git-loading {
  font-size: 11px;
  animation: blink 1s step-end infinite;
}

/* Mobile: two-line block layout (JS generates .git-head-m + .git-msg-m) */
@media (max-width: 640px) {
  .git-line    { display: block; font-size: 10.5px; margin-bottom: 4px; }
  .git-head-m  { display: block; white-space: nowrap; overflow: hidden;
                 text-overflow: ellipsis; font-size: 10.5px; }
  .git-msg-m   { display: block; white-space: nowrap; overflow: hidden;
                 text-overflow: ellipsis; font-size: 10px;
                 color: var(--text-muted); padding-left: 8px; }
  .git-hash    { font-size: 10px; }
  .git-ago     { font-size: 10px; }
}
.git-empty   { font-size: 11px; line-height: 1.9; }

/* ═══════════════════════════════════════════════════════
   INTERACTIVE TERMINAL (iterm)
   ═══════════════════════════════════════════════════════ */
.iterm-wrap {
  cursor: text;
}
.iterm-history {
  margin-bottom: 2px;
}
.iterm-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  opacity: 0.65;
}
/* The prompt line with invisible input overlay */
.iterm-line {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}
.iterm-cursor {
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}
.iterm-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: transparent;
  caret-color: transparent;
  font-family: var(--font);
  font-size: 16px; /* ≥16px prevents iOS Safari auto-zoom */
  padding: 0;
  z-index: 1;
  cursor: text;
}
/* echoed command after enter */
.iterm-echo {
  font-size: 13px;
  line-height: 1.75;
  margin-top: 10px;
}
/* output block */
.iterm-out {
  margin: 3px 0 10px 0;
  font-size: 12.5px;
  line-height: 1.85;
  border-left: 2px solid rgba(63,185,80,0.15);
  padding-left: 10px;
}
/* output line types */
.it-muted  { color: var(--text-muted); }
.it-text   { color: var(--text); }
.it-blank  { height: 0.4em; }
.it-head   { color: var(--accent); font-weight: 600; margin-top: 4px; }
.it-item   { color: var(--text-muted); padding-left: 12px; }
.it-error  { color: #f85149; }
.it-kv     { display: flex; gap: 0; flex-wrap: wrap; }
.it-key    { min-width: 9ch; }
.it-cmdrow { display: flex; align-items: baseline; }
.it-cmd    { display: inline-block; min-width: 11ch; }
.it-cmddesc{ padding-left: 4px; }
.it-proj   { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.it-ps-active { color: var(--accent); }
.it-ps-this   { color: var(--text-muted); }
.it-ps-next   { color: var(--yellow); }
.it-pdesc  { font-size: 11.5px; }
.it-link   { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.it-llabel { display: inline-block; min-width: 10ch; color: var(--accent); }
.it-link a { text-decoration: none; }
.it-link a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .iterm-line  { font-size: 12px; }
  .iterm-echo  { font-size: 12px; }
  .iterm-out   { font-size: 11.5px; }
  .it-cmd      { min-width: 9ch; }
  .it-llabel   { min-width: 8ch; }
  .it-pdesc    { display: block; padding-left: 0; font-size: 10.5px; }
}

/* ═══════════════════════════════════════════════════════
   PARTICLE BURST
   ═══════════════════════════════════════════════════════ */
.particle {
  position: fixed;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent), 0 0 12px rgba(63,185,80,0.4);
  pointer-events: none;
  z-index: 99998;
  animation: particle-fly 0.75s ease-out forwards;
}
.particle.p-dim { background: rgba(63,185,80,0.5); box-shadow: none; width: 3px; height: 3px; }
@keyframes particle-fly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   CHROMATIC ABERRATION — NAV LOGO
   ═══════════════════════════════════════════════════════ */
.nav-logo {
  cursor: default;
  transition: filter 0.2s ease;
  display: inline-block;
}
.nav-logo:hover {
  filter:
    drop-shadow(-1.5px 0 0 rgba(248,81,73,0.7))
    drop-shadow( 1.5px 0 0 rgba(88,166,255,0.7));
}

/* ═══════════════════════════════════════════════════════
   FEATURED CARD — AMBIENT BORDER PULSE (opacity only — GPU composited)
   ═══════════════════════════════════════════════════════ */
@keyframes card-border-pulse {
  0%, 100% { opacity: 0.08; }
  50%       { opacity: 0.28; }
}
.featured-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  pointer-events: none;
  will-change: opacity;
  animation: card-border-pulse 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   MAGNETIC BUTTON — spring reset handled via JS
   ═══════════════════════════════════════════════════════ */
.btn-outline {
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background var(--tr);
  display: inline-block;
}
.nav-links a {
  display: inline-block;
  transition: color var(--tr), transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
