/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:      #07111c;
  --navy2:     #0c1e2e;
  --navy3:     #122437;
  --blue:      #4db8ff;
  --blue-dim:  #1a4a6e;
  --amber:     #f0a22e;
  --amber-dim: #4a2f00;
  --white:     #e8f4ff;
  --dim:       #2a4a66;
  --text:      #a8c8e0;
  --text-dim:  #4a7090;
  --grid:      rgba(77,184,255,0.06);
  --border:    rgba(77,184,255,0.18);
  --f-mono:    'IBM Plex Mono', monospace;
  --f-cond:    'Barlow Condensed', sans-serif;
  --f-body:    'Barlow', sans-serif;
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--white); }

/* ── BLUEPRINT GRID BACKGROUND ──────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(77,184,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,184,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  background: rgba(7,17,28,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
}
.nav-id {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.12em;
}
.nav-id em { color: var(--amber); font-style: normal; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 0 1rem;
  height: 56px;
  display: flex; align-items: center;
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.08em;
}
.nav-links li:first-child a { border-left: 1px solid var(--border); }
.nav-links a:hover { color: var(--blue); background: rgba(77,184,255,0.05); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.page { position: relative; z-index: 1; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 6rem 0 3rem; }
.section-header { margin-bottom: 3rem; }

.section-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-tag::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--amber); }
.section-tag::after  { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

h2.title {
  font-family: var(--f-cond);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h2.title span { color: var(--blue); }

/* ── BRACKET BOX ─────────────────────────────────────────── */
.bracket-box {
  position: relative;
  padding: 1.8rem 2rem;
  background: rgba(12,30,46,0.7);
  border: 1px solid var(--border);
}
.bracket-box::before, .bracket-box::after,
.bracket-box > .bc-br, .bracket-box > .bc-bl {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--amber);
  border-style: solid;
}
.bracket-box::before  { top: -1px; left: -1px;  border-width: 2px 0 0 2px; }
.bracket-box::after   { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bracket-box > .bc-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.bracket-box > .bc-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-solid {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 600;
}
.btn-solid:hover { background: transparent; color: var(--blue); }
.btn-outline { background: transparent; border-color: var(--dim); color: var(--text-dim); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── HERO ────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  padding-top: 56px;
  display: flex; align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.hero-kicker {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-kicker::before {
  content: 'NODE_01';
  background: var(--amber);
  color: var(--navy);
  padding: 0.15rem 0.5rem;
  font-weight: 600;
}
h1 {
  font-family: var(--f-cond);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}
h1 .surname { color: var(--blue); }
.hero-subtitle {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  line-height: 2.2;
}
.hero-subtitle strong { color: var(--blue); font-weight: 400; }
.hero-desc {
  max-width: 500px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── TOPO PANEL ──────────────────────────────────────────── */
.topo-box {
  position: relative;
  padding: 2rem;
  background: rgba(12,30,46,0.6);
  border: 1px solid var(--border);
}
.topo-box::before, .topo-box::after,
.topo-box > .tb-br, .topo-box > .tb-bl {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--blue);
  border-style: solid;
}
.topo-box::before  { top: -1px; left: -1px;  border-width: 2px 0 0 2px; }
.topo-box::after   { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.topo-box > .tb-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.topo-box > .tb-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.topo-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}
.topo-svg { width: 100%; display: block; }
.status-list { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.3rem 0;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(77,184,255,0.1);
}
.status-row:last-child { border-bottom: none; }
.status-val       { color: var(--blue); }
.status-val.ok    { color: #4dffa0; }
.status-val.am    { color: var(--amber); }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }
.about-text p { color: var(--text); font-size: 0.98rem; line-height: 1.85; margin-bottom: 1.3rem; }
.about-text p:last-child { margin-bottom: 0; }
.spec-table { font-family: var(--f-mono); font-size: 0.7rem; width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px dashed rgba(77,184,255,0.12); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 0.6rem 0.3rem; vertical-align: top; }
.spec-table td:first-child { color: var(--text-dim); width: 40%; }
.spec-table td:last-child  { color: var(--white); }

/* ── EXPERIENCE ──────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 1.5rem; }
.exp-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid var(--border);
  background: rgba(12,30,46,0.5);
  transition: border-color 0.25s;
}
.exp-card:hover { border-color: rgba(77,184,255,0.45); }
.exp-date {
  padding: 1.5rem 1.2rem;
  border-right: 1px solid var(--border);
  background: rgba(7,17,28,0.5);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  line-height: 1.8;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.2rem;
}
.exp-date .exp-type {
  color: var(--text-dim);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}
.exp-body { padding: 1.5rem 1.8rem; }
.exp-role {
  font-family: var(--f-cond);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.exp-company { font-family: var(--f-mono); font-size: 0.72rem; color: var(--blue); margin-bottom: 0.8rem; }
.exp-desc { font-size: 0.93rem; color: var(--text-dim); line-height: 1.75; }
.exp-desc ul { list-style: none; margin-top: 0.4rem; }
.exp-desc ul li { padding-left: 1.2rem; position: relative; margin-bottom: 0.25rem; }
.exp-desc ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}

/* ── EDUCATION — rack ────────────────────────────────────── */
.edu-rack {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
  background: rgba(12,30,46,0.5);
}
.edu-unit {
  display: grid; grid-template-columns: 60px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.edu-unit:last-child { border-bottom: none; }
.edu-unit:hover { background: rgba(77,184,255,0.04); }
.edu-slot {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0.5rem; gap: 0.4rem;
  background: rgba(7,17,28,0.4);
}
.slot-num {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transform: rotate(-90deg);
  white-space: nowrap;
}
.slot-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}
.slot-led.am { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.edu-info { padding: 1.4rem 1.8rem; }
.edu-year  { font-family: var(--f-mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.edu-degree { font-family: var(--f-cond); font-size: 1.1rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.edu-school { font-family: var(--f-mono); font-size: 0.72rem; color: var(--blue); }

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cert-cell {
  background: rgba(12,30,46,0.7);
  padding: 1.6rem 1.4rem;
  transition: background 0.2s;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.cert-cell:hover { background: rgba(77,184,255,0.06); }
.cert-id {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--blue-dim);
  display: inline-block;
  padding: 0.1rem 0.5rem;
  align-self: flex-start;
}
.cert-name { font-family: var(--f-cond); font-size: 1.2rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; }
.cert-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.cert-score { font-family: var(--f-mono); font-size: 0.68rem; color: var(--amber); margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed rgba(240,162,46,0.25); }

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.skill-group {
  background: rgba(12,30,46,0.6);
  padding: 1.8rem 2rem;
  transition: background 0.2s;
}
.skill-group:hover { background: rgba(77,184,255,0.04); }
.sg-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 1.1rem;
}
.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sk-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(7,17,28,0.5);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sk-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(77,184,255,0.05);
}
.sk-tag.sk-hi {
  border-color: rgba(77,184,255,0.4);
  color: var(--blue);
  background: rgba(77,184,255,0.07);
}
.sk-tag.sk-hi:hover {
  border-color: var(--blue);
  background: rgba(77,184,255,0.13);
  color: var(--white);
}

/* ── PROJECTS ────────────────────────────────────────────── */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.proj-card {
  border: 1px solid var(--border);
  background: rgba(12,30,46,0.5);
  display: flex; flex-direction: column;
  transition: border-color 0.25s;
  position: relative; overflow: hidden;
}
.proj-card:hover { border-color: rgba(77,184,255,0.45); }
.proj-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(240,162,46,0.07), transparent 70%);
  pointer-events: none;
}
.proj-header {
  padding: 1.4rem 1.8rem 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.proj-tag {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  color: var(--amber);
  border: 1px solid rgba(240,162,46,0.35);
  padding: 0.1rem 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.proj-links { display: flex; gap: 0.5rem; }
.proj-links a {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  transition: all 0.2s;
  letter-spacing: 0.08em;
}
.proj-links a:hover { color: var(--blue); border-color: var(--blue); }
.proj-body { padding: 1rem 1.8rem 1.6rem; flex: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.proj-name {
  font-family: var(--f-cond);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.proj-desc { font-size: 0.93rem; color: var(--text-dim); line-height: 1.75; }
.proj-roles {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 0.4rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.8rem;
}
.proj-role-row {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(77,184,255,0.08);
  font-size: 0.88rem;
}
.proj-role-row:last-child { border-bottom: none; }
.proj-role-key {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--amber);
  min-width: 90px;
  padding-top: 0.18rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proj-role-val { color: var(--text); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.f-block-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.f-name { font-family: var(--f-cond); font-size: 1.8rem; font-weight: 800; color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.f-role { font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-dim); margin-top: 0.4rem; }
.f-links { display: flex; flex-direction: column; gap: 0.5rem; }
.f-links a {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.2s;
}
.f-links a::before { content: '↗'; color: var(--blue); }
.f-links a:hover { color: var(--blue); }
.f-stack {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 2.2;
  letter-spacing: 0.08em;
}
.footer-bottom {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  border-top: 1px dashed var(--border);
  padding-top: 1.2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── AVAILABILITY BADGE ──────────────────────────────────── */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  margin-bottom: 1.5rem;
}
.av-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Colors per state */
.av-green { border-color: rgba(77,255,160,0.35); color: #4dffa0; background: rgba(77,255,160,0.05); }
.av-green .av-dot { background: #4dffa0; box-shadow: 0 0 6px #4dffa0; animation: pulse-green 2s ease-in-out infinite; }

.av-amber { border-color: rgba(240,162,46,0.35); color: var(--amber); background: rgba(240,162,46,0.05); }
.av-amber .av-dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: pulse-amber 2s ease-in-out infinite; }

.av-red { border-color: rgba(255,80,80,0.35); color: #ff6060; background: rgba(255,80,80,0.05); }
.av-red .av-dot { background: #ff6060; box-shadow: 0 0 6px #ff6060; }

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 4px #4dffa0; opacity: 1; }
  50%      { box-shadow: 0 0 10px #4dffa0; opacity: 0.7; }
}
@keyframes pulse-amber {
  0%,100% { box-shadow: 0 0 4px var(--amber); opacity: 1; }
  50%      { box-shadow: 0 0 10px var(--amber); opacity: 0.7; }
}

/* ── TYPEWRITER ──────────────────────────────────────────── */
.typewriter { display: inline-block; }
.tw-active::after {
  content: '▋';
  display: inline-block;
  color: var(--blue);
  animation: blink 0.7s step-end infinite;
  margin-left: 2px;
  font-size: 0.75em;
  vertical-align: baseline;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  width: 40px;
  height: 40px;
  background: rgba(7,17,28,0.9);
  border: 1px solid var(--border);
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(77,184,255,0.08);
}

/* ── ACTIVE NAV LINK ─────────────────────────────────────── */
.nav-links a.active {
  color: var(--blue);
  background: rgba(77,184,255,0.07);
}

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--blue);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  background: rgba(7,17,28,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 190;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0.5rem 0;
}
.mobile-menu ul li {
  border-bottom: 1px dashed rgba(77,184,255,0.08);
}
.mobile-menu ul li:last-child { border-bottom: none; }
.mm-link {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  transition: color 0.2s, background 0.2s;
}
.mm-link:hover { color: var(--blue); background: rgba(77,184,255,0.05); }
.mm-link::before { content: '> '; color: var(--amber); }
body.menu-open { overflow: hidden; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 820px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    padding-top: 2rem;
    gap: 2rem;
  }
  .topo-panel { display: none; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-subtitle { font-size: 0.78rem; line-height: 2; }
  .hero-actions { gap: 0.6rem; }
  .btn { padding: 0.65rem 1.2rem; font-size: 0.67rem; }

  /* Sections */
  .section { padding: 4rem 0 2rem; }
  .container { padding: 0 1.5rem; }
  .section-header { margin-bottom: 2rem; }
  h2.title { font-size: clamp(1.8rem, 8vw, 2.8rem); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Experience */
  .exp-card { grid-template-columns: 1fr; }
  .exp-date {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.8rem 1.2rem;
  }
  .exp-body { padding: 1.2rem; }
  .exp-role { font-size: 1.05rem; }

  /* Education */
  .edu-info { padding: 1rem 1.2rem; }
  .edu-degree { font-size: 0.95rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { padding: 1.4rem 1.5rem; }
  /* Certs */
  .cert-grid { grid-template-columns: 1fr 1fr; }

  /* Projects */
  .proj-grid { grid-template-columns: 1fr; }
  .proj-body { padding: 0.8rem 1.2rem 1.2rem; }
  .proj-name { font-size: 1.2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 2.5rem 1.5rem; }

  /* Scroll to top */
  .scroll-top { bottom: 1.2rem; right: 1.2rem; }
}

@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}
