/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:         #f5f6f8;
  --canvas:     #ffffff;
  --border:     #e1e4eb;
  --border-mid: #c8cdd8;
  --fg:         #0c0f14;
  --fg2:        #4a5164;
  --fg3:        #8b94a8;
  --blue:       #1147a8;
  --blue-bg:    rgba(17,71,168,.07);
  --green:      #166534;
  --green-bg:   rgba(22,101,52,.08);
  --radius:     0.625rem;
  --radius-sm:  0.375rem;
  --shadow:     0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.08);
  --mono:       'JetBrains Mono', monospace;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.sidebar {
  width: 13rem; flex-shrink: 0;
  background: var(--canvas); border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
  padding: 1.5rem 1rem; gap: 1.5rem;
}
.sidebar-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--fg); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.125rem;
  font-family: var(--mono); margin-bottom: 0.625rem; letter-spacing: 0.05em;
  border: 2px solid var(--border-mid); flex-shrink: 0; overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sidebar-name  { font-size: 0.875rem; font-weight: 700; color: var(--fg); margin-bottom: 0.125rem; letter-spacing: -0.01em; }
.sidebar-title { font-size: 0.6375rem; color: var(--fg3); line-height: 1.45; margin-bottom: 0.5rem; }
.sb-bio    { font-size: 0.6rem; color: var(--fg3); line-height: 1.6; margin-top: 1rem; margin-bottom: 0.625rem; text-align: center; }
.sb-skills { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.75rem; }
.sb-skill  { font-size: 0.5rem; font-weight: 600; padding: 0.15rem 0.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: 9999px; color: var(--fg2); font-family: var(--mono); }

.avail-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.175rem 0.55rem; background: #DD9B69; color: #000;
  border-radius: 9999px; font-size: 0.5875rem; font-weight: 700;
  border: 1px solid rgba(22,101,52,.14); text-decoration: none; cursor: pointer;
  margin-top: 0.5rem;
}
.avail-dot { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--green); animation: pulse-dot 2.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.2} }

.sb-section-label { font-size: 0.5375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg3); margin-bottom: 0.375rem; font-family: var(--mono); }
.sb-link { display: flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0; font-size: 0.6875rem; color: var(--fg3); text-decoration: none; transition: color 0.15s; overflow: hidden; }
.sb-link:hover { color: var(--fg); text-decoration: none; }
.sb-link svg { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.sb-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sb-social { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.sb-social a {
  width: 1.75rem; height: 1.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.875rem; transition: all 0.18s; color: var(--fg3);
}
.sb-social a:hover { border-color: transparent; color: #fff; text-decoration: none; }
.sb-social .sb-li { color: #0A66C2; } .sb-social .sb-li:hover { background: #0A66C2; border-color: #0A66C2; }
.sb-social .sb-x  { color: #111; }    .sb-social .sb-x:hover  { background: #111; border-color: #111; }
.sb-social .sb-yt { color: #FF0000; } .sb-social .sb-yt:hover { background: #FF0000; border-color: #FF0000; }
.sb-social .sb-mail { color: var(--blue); } .sb-social .sb-mail:hover { background: var(--blue); border-color: var(--blue); }
.sb-social .sb-gh { color: #333; } .sb-social .sb-gh:hover { background: #333; border-color: #333; }

.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.sidebar-footer-btns { display: flex; gap: 0.4rem; }
.btn-cv, .btn-call {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.5rem 0.375rem; border-radius: var(--radius);
  font-family: inherit; font-size: 0.6375rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.btn-cv   { background: var(--canvas); color: var(--fg); border: 1px solid var(--border); }
.btn-cv:hover   { border-color: var(--border-mid); background: var(--bg); text-decoration: none; }
.btn-call { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-call:hover { opacity: .82; text-decoration: none; }

.sb-profile-top { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ── MAIN ───────────────────────────────────────────────────────── */
.main { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.main-inner { max-width: 1300px; margin: 0 auto; width: 100%; padding: 1.75rem 1.75rem 4rem; }

/* ── TABS ───────────────────────────────────────────────────────── */
.tabs-nav { display: flex; align-items: center; background: rgba(0,0,0,.038); border-radius: 0.625rem; padding: 0.25rem; gap: 0.125rem; margin-bottom: 1.75rem; overflow-x: auto; }
.tab-btn { padding: 0.45rem 1rem; border: none; border-radius: 0.5rem; background: transparent; font-family: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--fg3); cursor: pointer; white-space: nowrap; transition: color 0.18s; display: flex; align-items: center; gap: 0.375rem; position: relative; }
.tab-btn::after,
.tab-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #DD9B69;
  bottom: 3px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}
.tab-btn::before {
  top: 3px;
  bottom: auto;
  transform-origin: left;
}
.tab-btn:hover { color: var(--fg); background: transparent; }
.tab-btn:hover::after,
.tab-btn:hover::before { transform: scaleX(1); }
.tab-btn.active { background: var(--canvas); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.09), 0 1px 2px rgba(0,0,0,.06); }
.tab-btn.active::after,
.tab-btn.active::before { display: none; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; padding: 0.05rem 0.35rem; background: rgba(0,0,0,.06); color: var(--fg3); border-radius: 9999px; font-size: 0.5625rem; font-weight: 700; font-family: var(--mono); }
.tab-btn.active .tab-count { background: var(--blue-bg); color: var(--blue); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panel-in 0.18s ease; }
@keyframes panel-in { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:translateY(0)} }

/* ── WAVE EFFECT ────────────────────────────────────────────────── */
.sb-skill, .card, .kpi-item, .sb-social a, .pill { will-change: transform; }

/* ── CARD ───────────────────────────────────────────────────────── */
.card { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 1.25rem 1.375rem 0; }
.card-body   { padding: 1rem 1.375rem 1.375rem; }
.card-title  { font-size: 0.9375rem; font-weight: 700; margin: 0; color: var(--fg); }
.card-desc   { font-size: 0.6875rem; color: var(--fg3); margin: 0.25rem 0 0; }

/* ── SECTION HEAD ───────────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.0625rem; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.section-head .note { font-size: 0.6875rem; color: var(--fg3); font-weight: 400; }
.section-accent { width: 3px; height: 1.0625rem; border-radius: 2px; background: var(--blue); flex-shrink: 0; align-self: center; }
.section-accent.green { background: var(--green); }

/* ── SHIMMER SKELETON ───────────────────────────────────────────── */
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skel { background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); color: transparent !important; }

/* ── KPI STRIP ──────────────────────────────────────────────────── */
.kpi-strip { display: flex; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.kpi-item { flex: 1; padding: 1.25rem 1.5rem; position: relative; }
.kpi-item + .kpi-item::before { content: ''; position: absolute; left: 0; top: 1.125rem; bottom: 1.125rem; width: 1px; background: var(--border); }
.kpi-label { font-size: 0.5375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg3); margin-bottom: 0.5rem; font-family: var(--mono); }
.kpi-value { font-family: var(--mono); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--fg); margin-bottom: 0.3rem; }
.kpi-value.blue  { color: var(--blue); }
.kpi-value.green { color: var(--green); }
.kpi-desc { font-size: 0.6875rem; color: var(--fg3); line-height: 1.45; font-weight: 300; }

/* ── TWO-COLUMN ROW ─────────────────────────────────────────────── */
.two-col-row { display: grid; grid-template-columns: 2fr 3fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.left-col  { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.right-col { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; height: 100%; }

/* ── TECH STACK DONUT ───────────────────────────────────────────── */
.tech-stack-card { padding: 1.5rem; }
#donut-svg-wrap { width: 100%; line-height: 0; }
.lang-source { font-size: 0.5375rem; color: var(--fg3); margin-top: 0.375rem; font-family: var(--mono); }
#donut-tooltip { position: fixed; background: var(--fg); color: #fff; border-radius: var(--radius); padding: 0.6rem 0.85rem; font-size: 0.75rem; pointer-events: none; z-index: 200; opacity: 0; transition: opacity 0.12s; max-width: 190px; box-shadow: var(--shadow-md); line-height: 1.5; }
#donut-tooltip.show { opacity: 1; }
.donut-tt-name  { font-weight: 800; font-size: 0.8125rem; margin-bottom: 0.15rem; }
.donut-tt-stats { font-size: 0.6875rem; color: rgba(255,255,255,.6); font-family: var(--mono); }

/* ── CONTRIBUTION CALENDAR ──────────────────────────────────────── */
.contrib-card { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.contrib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.contrib-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); line-height: 1; }
.contrib-filters { display: flex; gap: 0.25rem; flex-wrap: wrap; flex-shrink: 0; align-items: center; }
.cf-chip { padding: 0.2rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.625rem; font-weight: 600; background: var(--bg); color: var(--fg3); cursor: pointer; transition: all 0.15s; font-family: var(--mono); }
.cf-chip:hover { color: var(--fg); border-color: var(--border-mid); }
.cf-chip.active { background: var(--fg); border-color: var(--fg); color: #fff; }
.cf-older-wrap { position: relative; }
.cf-older-dropdown { position: absolute; top: calc(100% + 0.3rem); right: 0; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); display: none; flex-direction: column; gap: 2px; padding: 0.25rem; z-index: 60; min-width: 4.5rem; }
.cf-older-dropdown.open { display: flex; }
.cf-older-item { padding: 0.2rem 0.55rem; border: none; background: none; font-family: var(--mono); font-size: 0.625rem; font-weight: 600; color: var(--fg3); cursor: pointer; border-radius: 0.25rem; text-align: left; transition: background 0.12s; white-space: nowrap; }
.cf-older-item:hover { background: var(--bg); color: var(--fg); }
.cf-older-item.active { background: var(--fg); color: #fff; }
.contrib-dark-wrap { background: transparent; border-radius: var(--radius-sm); padding: 0.75rem 0; overflow-x: auto; margin-bottom: 0.875rem; flex: 1; min-height: 130px; display: flex; flex-direction: column; justify-content: center; }
.contrib-inner { display: flex; gap: 0.625rem; flex-shrink: 0; }
.contrib-day-labels { display: grid; grid-template-rows: repeat(7, 13px); gap: 2px; flex-shrink: 0; padding-top: 1.375rem; }
.contrib-day-labels span { font-size: 0.5rem; font-weight: 500; color: var(--fg3); font-family: var(--mono); height: 13px; display: flex; align-items: center; }
.contrib-grid-wrap { flex: 1; min-width: 0; }
.contrib-month-row { position: relative; height: 1.25rem; margin-bottom: 0.125rem; }
.contrib-month-label { position: absolute; font-size: 0.5rem; font-weight: 600; color: var(--fg3); font-family: var(--mono); }
.contrib-grid { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.contrib-cell { border-radius: 2px; background: #ffffff; border: 1px solid rgba(0,0,0,.12); cursor: default; box-sizing: border-box; }
.contrib-cell[data-level="1"],
.contrib-cell[data-level="2"],
.contrib-cell[data-level="3"],
.contrib-cell[data-level="4"] { background: #1147a8; border-color: #0d3a8e; }
.contrib-future { background: #f8f9fb !important; border-color: rgba(0,0,0,.06) !important; }
.contrib-foot { display: flex; align-items: center; justify-content: space-between; }
.contrib-source { font-size: 0.5375rem; color: var(--fg3); font-family: var(--mono); }
.contrib-legend { display: flex; align-items: center; gap: 0.35rem; }
.contrib-legend-label { font-size: 0.5375rem; color: var(--fg3); font-family: var(--mono); }
.legend-cell { width: 10px; height: 10px; border-radius: 2px; box-sizing: border-box; background: #1147a8; border: 1px solid #0d3a8e; }

/* ── GITHUB STAT CARDS ──────────────────────────────────────────── */
.gh-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gh-stat-card { padding: 1.25rem 1.375rem; }
.gh-stat-label { font-size: 0.5375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg3); margin-bottom: 0.625rem; font-family: var(--mono); }
.gh-stat-val { font-family: var(--mono); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--fg); margin-bottom: 0.25rem; min-height: 1.875rem; }
.gh-stat-note { font-size: 0.5375rem; color: var(--fg3); font-family: var(--mono); font-weight: 300; }

/* ── EMPLOYER CAROUSEL ──────────────────────────────────────────── */
.employer-card { padding: 1.5rem 1.5rem 1.375rem; flex: 1; }
.employer-carousel-wrap { overflow: hidden; position: relative; }
.employer-carousel-wrap::before,
.employer-carousel-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3.5rem; z-index: 1; pointer-events: none; }
.employer-carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--canvas), transparent); }
.employer-carousel-wrap::after  { right: 0; background: linear-gradient(to left,  var(--canvas), transparent); }
.employer-track { display: flex; gap: 0.75rem; align-items: center; width: max-content; }
.employer-logo { flex-shrink: 0; height: 2.25rem; padding: 0.375rem 0.75rem; display: flex; align-items: center; justify-content: center; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.18s; min-width: 4.75rem; }
.employer-logo:hover { border-color: var(--border-mid); }
.employer-logo img { height: 100%; width: auto; max-width: 70px; object-fit: contain; display: block; }
.employer-arrow { width: 1.5rem; height: 1.5rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--canvas); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg3); transition: all 0.15s; font-size: 0.575rem; padding: 0; line-height: 1; }
.employer-arrow:hover { border-color: var(--border-mid); color: var(--fg); background: var(--bg); }

/* ── CAREER ARC ─────────────────────────────────────────────────── */
.arc-filter-bar { display: flex; gap: 0.375rem; align-items: center; margin-bottom: 0.875rem; flex-wrap: wrap; }
.arc-filter-label { font-size: 0.5375rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg3); margin-right: 0.25rem; font-family: var(--mono); }
.arc-chip { padding: 0.25rem 0.75rem; border: 1px solid var(--border); border-radius: 9999px; font-size: 0.6875rem; font-weight: 600; background: var(--canvas); color: var(--fg3); cursor: pointer; transition: all 0.15s; font-family: inherit; }
.arc-chip:hover { color: var(--fg); border-color: var(--border-mid); }
.arc-chip.active { background: var(--fg); border-color: var(--fg); color: #fff; }
.arc-card { padding: 1.5rem 1.5rem 1rem; }
#arc-svg-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
#donut-svg-wrap svg { width: 100%; height: auto; display: block; }
.arc-context-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); min-height: 1.75rem; }
.arc-context-text { font-size: 0.6875rem; color: var(--fg3); font-weight: 300; }
.arc-org-badge { padding: 0.125rem 0.5rem; background: var(--blue-bg); color: var(--blue); border-radius: 0.25rem; font-size: 0.5875rem; font-weight: 700; font-family: var(--mono); display: none; }
.arc-org-badge.show { display: inline; }
.arc-reset-btn { font-size: 0.6875rem; color: var(--blue); font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; display: none; }
.arc-reset-btn.show { display: inline; }
.arc-tooltip { position: fixed; background: var(--fg); color: #fff; border-radius: var(--radius); padding: 0.625rem 0.875rem; font-size: 0.75rem; pointer-events: none; z-index: 200; opacity: 0; transition: opacity 0.12s; max-width: 220px; box-shadow: var(--shadow-md); }
.arc-tooltip.show { opacity: 1; }
.arc-tt-title { font-weight: 800; font-size: 0.8125rem; margin-bottom: 0.125rem; }
.arc-tt-org   { font-size: 0.6875rem; color: rgba(255,255,255,.5); margin-bottom: 0.375rem; }
.arc-tt-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.arc-tt-chip  { padding: 0.1rem 0.35rem; background: rgba(255,255,255,.12); border-radius: 0.2rem; font-size: 0.5875rem; font-weight: 600; font-family: var(--mono); }

/* ── SYSTEM / PROJECT CARDS ─────────────────────────────────────── */
.systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.systems-grid > .system-card:nth-child(3) { grid-column: 1 / -1; }
.systems-grid > .system-card:nth-child(3) .system-body { display: grid; grid-template-columns: 1.1fr 0.9fr; column-gap: 2.5rem; row-gap: 0; align-items: start; flex: unset; }
.systems-grid > .system-card:nth-child(3) .system-tag,
.systems-grid > .system-card:nth-child(3) .system-title,
.systems-grid > .system-card:nth-child(3) .system-foot,
.systems-grid > .system-card:nth-child(3) .system-expanded { grid-column: 1 / -1; }
.systems-grid > .system-card:nth-child(3) .pbo-table { grid-column: 1; }
.systems-grid > .system-card:nth-child(3) .system-stack-row { grid-column: 2; align-self: start; padding-top: 0.25rem; }
.system-card { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color 0.2s; display: flex; flex-direction: column; }
.system-card:hover { border-color: var(--border-mid); }
.system-accent-bar { height: 2px; background: var(--blue); }
.system-accent-bar.green  { background: var(--green); }
.system-accent-bar.mixed  { background: linear-gradient(90deg, var(--blue), var(--green)); }
.system-body { padding: 1.375rem; flex: 1; display: flex; flex-direction: column; }
.system-tag   { font-size: 0.5875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg3); margin-bottom: 0.4rem; font-family: var(--mono); }
.system-title { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 0.875rem; color: var(--fg); }
.pbo-table    { display: grid; gap: 0.375rem; margin-bottom: 1rem; }
.pbo-row      { display: flex; gap: 0.625rem; font-size: 0.75rem; line-height: 1.55; }
.pbo-key      { font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg3); width: 4rem; flex-shrink: 0; padding-top: 0.175rem; font-family: var(--mono); }
.pbo-val      { color: var(--fg2); font-weight: 300; }
.pbo-val.outcome { color: var(--fg); font-weight: 600; }
.system-stack-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1rem; }
.stack-badge  { padding: 0.15rem 0.475rem; background: var(--bg); color: var(--fg2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.5875rem; font-weight: 700; font-family: var(--mono); }
.system-foot  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.625rem; border-top: 1px solid var(--border); }
.system-org   { font-size: 0.6875rem; font-weight: 600; color: var(--fg3); }
.system-expand-btn { display: flex; align-items: center; gap: 0.3rem; font-size: 0.6875rem; font-weight: 700; color: var(--blue); background: none; border: none; cursor: pointer; font-family: inherit; }
.expand-icon  { transition: transform 0.25s; display: inline-block; }
.system-card.expanded .expand-icon { transform: rotate(90deg); }
.system-expanded { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.system-card.expanded .system-expanded { max-height: 500px; margin-top: 0.875rem; }
.arch-note    { font-size: 0.75rem; line-height: 1.72; color: var(--fg2); font-weight: 300; background: var(--bg); border-radius: var(--radius-sm); padding: 0.875rem 1rem; border-left: 2px solid var(--blue); }
.arch-note strong { color: var(--fg); font-weight: 600; }

/* ── PUBLICATIONS ───────────────────────────────────────────────── */
.pub-stack   { display: flex; flex-direction: column; }
.pub-card    { background: var(--canvas); border: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.pub-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.pub-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.pub-card + .pub-card { border-top: none; }
.pub-domain  { display: inline-flex; align-items: center; padding: 0.15rem 0.525rem; border-radius: 9999px; font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; font-family: var(--mono); }
.pub-domain.amr { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,101,52,.15); }
.pub-domain.ipc { background: var(--blue-bg);  color: var(--blue);  border: 1px solid rgba(17,71,168,.15); }
.pub-title   { font-size: 0.9375rem; font-weight: 600; line-height: 1.5; margin-bottom: 0.625rem; color: var(--fg); letter-spacing: -0.01em; }
.pub-implication { font-size: 0.6875rem; font-weight: 300; color: var(--fg3); line-height: 1.65; padding-top: 0.625rem; border-top: 1px solid var(--border); margin-top: 0.375rem; }
.pub-implication strong { color: var(--fg2); font-weight: 500; }
.pub-foot    { display: flex; align-items: center; justify-content: space-between; margin-top: 0.625rem; }
.pub-year    { font-size: 0.5875rem; color: var(--fg3); font-weight: 600; font-family: var(--mono); }
.pub-link    { font-size: 0.6875rem; color: var(--blue); font-weight: 700; text-decoration: none; }
.pub-link:hover { text-decoration: underline; }

/* ── PROJECT / BLOG PILL NAV ────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 0.25rem; }
.pill { padding: 0.3rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.6875rem; font-weight: 600; cursor: pointer; background: var(--bg); color: var(--fg2); white-space: nowrap; font-family: inherit; transition: all 0.15s; }
.pill:hover { color: var(--fg); border-color: var(--border-mid); }
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── CONTENT BLOCKS (project / blog preview) ────────────────────── */
.blocks-area > * + * { margin-top: 1rem; }
pre.code-block { background: #111827; color: #e5e7eb; padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.875rem; font-family: var(--mono); }
blockquote.quote { border-left: 3px solid var(--blue); padding-left: 1rem; margin: 0; font-style: italic; color: var(--fg2); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.main-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: center; align-items: center; font-size: 0.6875rem; color: var(--fg3); }

/* ── UTILITIES ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-inner { padding: 1.5rem 1.25rem 3rem; }
  .two-col-row { gap: 1rem; }
}
@media (max-width: 960px) {
  .two-col-row { grid-template-columns: 1fr; }
  .right-col { height: auto; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .gh-stats-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-strip { flex-wrap: wrap; }
  .kpi-item { min-width: 50%; }
  .systems-grid { grid-template-columns: 1fr; }
  .systems-grid > .system-card:nth-child(3) { grid-column: 1; }
  .systems-grid > .system-card:nth-child(3) .system-body { grid-template-columns: 1fr; }
  .main-inner { padding: 1.25rem 1rem 2.5rem; }
}

/* ── MIGRATED FROM INLINE STYLES ────────────────────────────────── */
#progress-nav { display: none; }
#sb-extra .sb-section-label { margin-top: 1.5rem; }
.employer-nav-btns { margin-left: auto; display: flex; gap: 0.35rem; }

/* Skeleton placeholder widths for GitHub stat cards */
#stat-active-years, #stat-repos, #stat-prs, #stat-repos-cont { width: 2.5rem; }
#stat-contributions, #stat-commits { width: 3.5rem; }

/* Project / blog reader */
.reader-card { margin-top: 1rem; }
.reader-head { padding: 1.375rem 1.5rem 0.75rem; }
#project-read-title { font-size: 1.0625rem; font-weight: 700; margin: 0; }
#project-read-desc  { font-size: 0.8125rem; color: var(--fg3); margin: 0.25rem 0 0; }
#project-read-preview { padding: 0.75rem 1.5rem 1.375rem; }
#blog-read-area { padding: 1.375rem 1.5rem; }

/* Work tab */
#work-positions { margin-top: 1.25rem; }
.arc-reset-group { display: flex; align-items: center; gap: 0.5rem; }

/* JS-generated content ─────────────────────────────────────────── */
.proj-empty { font-size: 0.8125rem; color: var(--fg3); }
.blog-empty { font-size: 0.875rem; color: var(--fg3); }
.blog-post-title   { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.375rem; color: var(--fg); }
.blog-post-date    { font-size: 0.6875rem; color: var(--fg3); font-family: var(--mono); margin: 0 0 0.75rem; }
.blog-post-excerpt { font-size: 0.875rem; font-style: italic; color: var(--fg2); margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.metric-val  { font-size: 1.5rem; font-weight: 700; }
.highlight-title { margin: 0; font-weight: 600; }
.highlight-text  { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--fg3); }
.content-card  { overflow: hidden; margin-bottom: 1rem; }
.achieve-key   { color: var(--green); }
.cert-card     { padding: 1rem; }
.cert-name     { font-weight: 700; font-size: 0.8125rem; margin: 0 0 0.25rem; color: var(--fg); }
.cert-meta     { font-size: 0.6875rem; color: var(--fg3); font-family: var(--mono); margin: 0; }
.cert-grid     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.section-head-certs { margin: 2rem 0 1.25rem; }
.block-heading { font-size: 1.125rem; font-weight: 700; }
.block-text    { white-space: pre-wrap; line-height: 1.6; }
.block-img     { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.error-card    { border-color: #fecaca; background: #fef2f2; margin-bottom: 1rem; padding: 1rem; }
.error-msg     { font-size: 0.875rem; }

/* Overview / SVG */
.gh-source-link { color: inherit; text-decoration: none; }
.donut-seg { transition: transform 0.18s, filter 0.18s; cursor: pointer; }
.donut-anim { transition: opacity 0.18s; }
.arc-role-seg { cursor: pointer; }
