/* =========================================================
   VELIXO — style.css
   ========================================================= */
:root {
  --bg: #eef1f5;
  --card: #ffffff;
  --ink: #0d1526;
  --muted: #5b6577;
  --line: #e3e8ef;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --navy: #0b1220;
  --chip: #f1f4f9;
  --shadow: 0 12px 32px rgba(13, 21, 38, 0.07);
  --radius: 24px;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}
[data-theme="dark"] {
  --bg: #0a0e16;
  --card: #121a29;
  --ink: #eef2f8;
  --muted: #9aa6ba;
  --line: #202b3f;
  --navy: #060a12;
  --chip: #1a2334;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(13, 21, 38, 0.1) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  transition: background-color 0.3s, color 0.3s;
}
[data-theme="dark"] body { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: relative; z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between;
  max-width: 1280px; margin: 0 auto 30px; padding: 16px 20px 0;
  gap: 16px;
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.logo span { color: var(--blue); }
.nav { display: flex; gap: 12px; justify-content: flex-end; }
.nav a, .theme-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 90px; height: 90px; flex-shrink: 0;
  border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
  text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); transition: 0.25s;
}
.nav a i { font-size: 22px; margin-bottom: 8px; }
.nav a:hover, .theme-btn:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4); }
.nav a.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; border-color: transparent;
}
/* ---------- Layout & cards ---------- */
.page { display: grid; gap: 26px; padding-bottom: 40px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; position: relative; overflow: hidden;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.panel-head h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.sec-num { color: #b9c2d0; font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Dark hero panels ---------- */
.hero-dark {
  background: radial-gradient(120% 160% at 85% -20%, #1d3a8a 0%, #0e1a33 45%, var(--navy) 100%);
  color: #fff; border: none;
}
.hero-dark .sec-num { color: rgba(255, 255, 255, 0.35); }
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.tag-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #8b9dff; box-shadow: 0 0 10px #8b9dff; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-box {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px; padding: 24px 18px; text-align: center;
}
.stat-box .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }
.stat-box .lbl { color: rgba(255, 255, 255, 0.55); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; transition: 0.25s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.4); }

/* ---------- HOME ---------- */
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 30px; }
.avatar-xl {
  width: 170px; height: 170px; border-radius: 40px; object-fit: cover;
  border: 5px solid var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.home-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.03em; margin-top: 26px; }
.home-hero .role { color: var(--muted); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: clamp(11px, 1.6vw, 15px); margin-top: 8px; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--chip); border: 1px solid var(--line); font-size: 17px; transition: 0.25s;
}
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 960px; margin-top: 60px; }
.contact-card {
  background: var(--chip); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.contact-card i { font-size: 24px; color: var(--blue); }
.contact-card .lbl { font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; }
.contact-card .val { color: var(--muted); font-size: 15px; }
.home-hero .btn { margin-top: 44px; }
/* ---------- RESUME ---------- */
.profile-hero { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; }
.profile-hero .avatar-xl { border-radius: 50%; width: 130px; height: 130px; }
.profile-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; }
.profile-hero .role { color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; margin-top: 6px; line-height: 1.8; }
.profile-hero .stat-row { margin: 20px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.tl-item { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-num { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: #d4dbe6; line-height: 1; }
.tl-period { display: inline-block; background: #eaf0fe; color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 8px; margin-bottom: 10px; }
.tl-item h3 { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.tl-org { color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 5px 0 10px; }
.tl-item p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

.edu-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px 0; }
.edu-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 19px; }
.edu-item .school { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.edu-item .school span { color: var(--blue); }
.edu-item h3 { font-size: 16px; margin: 4px 0; }
.edu-item p { color: var(--muted); font-size: 14px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.cert-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); border: 1px solid var(--line); border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.sub-h { font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }

.skills-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.skill { text-align: center; }
.ring { position: relative; width: 110px; height: 110px; margin: 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--chip); }
.ring .bar { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.22,.9,.35,1); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.skill .lbl { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 14px; line-height: 1.7; }

.stack-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--chip); border: 1px solid var(--line); border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 14.5px; }
.mastery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mastery-item { display: flex; align-items: center; gap: 14px; background: var(--chip); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; }
.mastery-item i { color: var(--blue); font-size: 18px; }

.awards-grid { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 10px; }
.awards-total .num { font-family: var(--font-head); font-weight: 800; font-size: 60px; color: var(--blue); line-height: 1; }
.awards-total .lbl { font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.award-item { display: flex; gap: 14px; padding: 10px 0; }
.award-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.award-item h4 { font-family: var(--font-head); font-size: 15px; }
.award-item p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; opacity: 0.55; }
.partners span { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--muted); }
/* ---------- WORKS ---------- */
.works-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; margin-top: 22px; }
.works-hero h1 .grad {
  background: linear-gradient(90deg, #6d8dff, #a78bfa, #f87171);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.works-hero .lead { color: rgba(255,255,255,.6); max-width: 420px; margin-top: 20px; font-size: 16px; line-height: 1.7; }
.works-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.filter-btn {
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--chip); color: var(--ink); font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; transition: 0.25s;
}
.filter-btn:hover { border-color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(37,99,235,.35); }

.project-card {
  display: grid; grid-template-columns: 42% 1fr; gap: 30px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin-bottom: 26px;
  animation: fadeUp 0.5s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.project-card .thumb { border-radius: 18px; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 300px; object-fit: cover; transition: transform .5s; }
.project-card:hover .thumb img { transform: scale(1.05); }
.pc-body { position: relative; }
.pc-ghost { position: absolute; top: -8px; right: 0; font-family: var(--font-head); font-weight: 800; font-size: 64px; color: #e8edf5; line-height: 1; user-select: none; }
[data-theme="dark"] .pc-ghost { color: #1d2941; }
.cat-badge { display: inline-block; background: #eaf0fe; color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.pc-body h3 { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin-bottom: 10px; position: relative; z-index: 1; }
.pc-body .desc { color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 480px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.pc-foot .stack-chips { gap: 10px; }
.pc-foot .chip { padding: 8px 15px; font-size: 13px; }
.pc-detail { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: none; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; transition: .25s; }
.pc-detail:hover { background: var(--blue-2); transform: translateY(-2px); }
/* ---------- BLOG ---------- */
.blog-list { display: grid; gap: 22px; }
.blog-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; cursor: pointer; transition: .25s;
  animation: fadeUp 0.5s both;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.blog-card .thumb { border-radius: 16px; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 190px; object-fit: cover; }
.blog-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.blog-meta .date { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.blog-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 21px; margin-bottom: 10px; }
.blog-card .excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 14px; }
.load-wrap { display: flex; justify-content: center; margin-top: 8px; }
.load-more { padding: 14px 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; transition: .25s; }
.load-more:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
.contact-hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; margin: 22px 0; }
.contact-hero h1 .b { color: var(--blue); }
.contact-hero h1 .r { color: #e5484d; }
.contact-hero .lead { color: var(--muted); line-height: 1.8; font-size: 15.5px; margin-bottom: 30px; }
.info-line { display: flex; align-items: center; gap: 16px; background: var(--chip); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 14px; }
.info-line .icon { width: 42px; height: 42px; border-radius: 12px; background: #eaf0fe; color: var(--blue); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.info-line .lbl { font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-line .val { font-weight: 700; font-size: 15px; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  border: 1px solid var(--line); background: var(--chip); border-radius: 14px;
  padding: 15px 18px; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  outline: none; transition: .25s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: var(--card); }
.form-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.form-note i { color: var(--blue); }
.reach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reach-item { text-align: center; padding: 10px 14px; border-left: 1px solid var(--line); }
.reach-item:first-child { border-left: none; }
.reach-item .icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; }
.reach-item .icon.ok { background: #e5f6ec; color: #1a9d5f; }
.reach-item .icon.time { background: #eaf0fe; color: var(--blue); }
.reach-item .icon.trophy { background: #fdeeee; color: #e5484d; }
.reach-item .icon.globe { background: #f1ecfe; color: #7c3aed; }
.reach-item .big { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.reach-item .big.ok { background: #e5f6ec; color: #1a9d5f; display: inline-block; padding: 0 10px; border-radius: 8px; }
.reach-item .big.trophy { background: #fdeeee; color: #e5484d; display: inline-block; padding: 0 10px; border-radius: 8px; }
.reach-item .lbl { font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; }
.reach-item p { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.6; }
/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 10, 18, 0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 26px; max-width: 760px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 40px; position: relative;
  transform: translateY(20px) scale(.97); transition: transform .3s;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--chip);
  color: var(--ink); font-size: 15px; display: grid; place-items: center; transition: .2s; z-index: 2;
}
.modal-close:hover { background: var(--blue); color: #fff; }
.modal h2 { font-family: var(--font-head); font-weight: 800; font-size: 26px; margin: 16px 0 20px; }
.modal .m-img { border-radius: 18px; overflow: hidden; margin-bottom: 26px; }
.modal .m-img img { width: 100%; }
.m-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.m-cols h4 { font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.m-cols p { color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.m-meta div { margin-bottom: 16px; }
.m-meta .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #b0bac9; }
.m-meta .val { font-weight: 700; font-size: 15px; margin-top: 3px; }
.article-body p { color: var(--muted); line-height: 1.85; font-size: 15px; margin-bottom: 16px; }
.article-body blockquote {
  border-left: 4px solid var(--blue); background: var(--chip);
  padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 22px 0;
  font-size: 15.5px; line-height: 1.7;
}
.article-body ol, .article-body ul { margin: 0 0 16px 22px; color: var(--muted); line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 30px 20px 40px; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .works-hero-grid { grid-template-columns: 1fr; }
  .stat-row { max-width: 560px; }
}
@media (max-width: 991px) {
  .site-header { flex-direction: column; align-items: center; gap: 8px; }
  .nav { width: 100%; justify-content: center; flex-wrap: nowrap; gap: clamp(5px, 1.5vw, 12px); }
  .nav a, .theme-btn {
    width: clamp(48px, 12.5vw, 72px); height: clamp(48px, 12.5vw, 72px);
    border-radius: 14px; padding: 0;
  }
  .nav a i { font-size: clamp(14px, 3vw, 18px); margin-bottom: 3px; }
  .nav a, .theme-btn { font-size: clamp(7px, 1.6vw, 9px); }
}
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-hero .socials { justify-content: center; }
  .profile-hero .stat-row { max-width: none; }
  .two-col, .contact-grid, .m-cols { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card .thumb img { height: 240px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card .thumb img { height: 210px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .panel { padding: 26px 20px; }
  .contact-cards, .reach-grid, .form-grid, .mastery-grid { grid-template-columns: 1fr; }
  .reach-item { border-left: none; border-top: 1px solid var(--line); padding: 20px 0; }
  .reach-item:first-child { border-top: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .pc-ghost { display: none; }
}
