/* ==========================================================================
   shariarkabir.com — researcher profile, modern CS edition
   ========================================================================== */

:root {
  --font-head: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f6f7fa;
  --bg-elev: #ffffff;
  --bg-soft: #eef1f6;
  --text: #0e1320;
  --text-2: #444c5e;
  --text-3: #6d7588;
  --line: #e3e7ee;
  --line-2: #cfd6e2;
  --accent: #2f6df6;
  --accent-2: #19b6d9;
  --accent-soft: #e9f0ff;
  --accent-ink: #1f4fc4;
  --warm: #b26a00;
  --warm-soft: #fff3df;
  --band: #0a1226;
  --band-2: #10204a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 19, 32, .05), 0 1px 3px rgba(14, 19, 32, .04);
  --shadow: 0 12px 32px -14px rgba(14, 19, 32, .22), 0 2px 6px rgba(14, 19, 32, .05);
  --shadow-lg: 0 24px 60px -24px rgba(10, 18, 38, .45);
  --page: 1120px;
  --side: 300px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-elev: #111726;
  --bg-soft: #161d2e;
  --text: #e8ecf5;
  --text-2: #b5bdcf;
  --text-3: #808a9f;
  --line: #222b40;
  --line-2: #2f3a53;
  --accent: #6b9cff;
  --accent-2: #3dd3f0;
  --accent-soft: #15254a;
  --accent-ink: #9dbcff;
  --warm: #f0b357;
  --warm-soft: #3a2a0f;
  --band: #070b16;
  --band-2: #0d1a3d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 12px 32px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.skip-link:focus { top: 12px; }
.page { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header--band { background: transparent; border-bottom-color: rgba(255,255,255,.08); }
.site-header--band.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom-color: var(--line); }
.site-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1f4fc4, #19b6d9); box-shadow: 0 4px 12px -4px rgba(47,109,246,.6); }
.site-header--band:not(.is-scrolled) .brand { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--text-2); padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.site-header--band:not(.is-scrolled) .site-nav a { color: rgba(255,255,255,.78); }
.site-header--band:not(.is-scrolled) .site-nav a:hover, .site-header--band:not(.is-scrolled) .site-nav a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); background: var(--bg-elev); transition: color .15s, border-color .15s; }
.tool-btn:hover { color: var(--accent); border-color: var(--accent); }
.tool-btn svg { width: 16px; height: 16px; }
.site-header--band:not(.is-scrolled) .tool-btn { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.theme-toggle .icon-moon, .nav-toggle .icon-close { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 800px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 1.25rem 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-header--band:not(.is-scrolled) .site-nav a { color: var(--text); padding: 11px 10px; font-size: 15px; }
}

/* ---------- Band (animated network) ---------- */
.band { position: relative; margin-top: -64px; padding-top: 64px; background: radial-gradient(120% 90% at 20% 0%, var(--band-2), var(--band) 60%); color: #fff; overflow: hidden; min-height: 300px; isolation: isolate; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 40%, rgba(10,18,38,.55) 100%); }
.band__inner { position: relative; z-index: 2; padding: 44px 0 132px; display: flex; flex-direction: column; gap: 10px; }
.band__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8fd8ea; }
.band__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3dd3f0; box-shadow: 0 0 0 4px rgba(61,211,240,.2); }
.band__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; color: #fff; max-width: 760px; }
.band__title span { color: #8fb4ff; }
.band__topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.band__topics span { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 6px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
@media (max-width: 800px) { .band__inner { padding: 28px 0 96px; } }

/* ---------- Profile layout ---------- */
.profile { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 48px); position: relative; z-index: 1; padding-bottom: clamp(56px, 8vw, 96px); }
.sidebar { position: sticky; top: 84px; }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar__card { padding: 18px; }
.sidebar__photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 5; }
.sidebar__photo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar__photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: 12px; pointer-events: none; }
.sidebar h1 { font-size: 1.5rem; margin: 16px 0 2px; }
.sidebar__role { font-weight: 600; color: var(--text); margin: 0 0 2px; font-size: .95rem; }
.sidebar__org { color: var(--text-2); font-size: .9rem; margin: 0; line-height: 1.45; }
.sidebar__org a { color: inherit; }
.sidebar__chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; color: var(--warm); background: var(--warm-soft); border: 1px solid color-mix(in srgb, var(--warm) 25%, transparent); }
.sidebar__chip svg { width: 13px; height: 13px; }
.sidebar__links { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sidebar__links a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar__links a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.sidebar__links svg { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.sidebar__links a:hover svg { color: var(--accent); }
.sidebar__links .ext { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.sidebar__meta { margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); display: grid; gap: 4px; }
.sidebar__meta b { color: var(--text-2); font-weight: 600; }
@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; margin-top: 20px; gap: 24px; }
  .sidebar { position: static; }
  .sidebar__card { display: grid; grid-template-columns: 120px 1fr; gap: 6px 18px; align-items: start; }
  .sidebar__photo { grid-row: 1 / span 4; }
  .sidebar h1 { margin-top: 0; font-size: 1.35rem; }
  .sidebar__links, .sidebar__meta { grid-column: 1 / -1; }
}

/* ---------- Content ---------- */
.content { min-width: 0; padding-top: 6px; }
@media (max-width: 800px) { .content { padding-top: 0; } }
.content > section + section { margin-top: clamp(44px, 6vw, 64px); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-head .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.sec-head h2 { font-size: 1.35rem; }
.sec-head .aside { margin-left: auto; font-size: 13px; color: var(--text-3); }
.content p { max-width: 70ch; color: var(--text-2); }
.content p strong { color: var(--text); font-weight: 600; }
.lead { font-size: 1.08rem; color: var(--text); }
.lead strong { color: var(--accent-ink); }

/* interests chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 6px; background: var(--bg-elev); color: var(--text-2); border: 1px solid var(--line); }
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* news timeline */
.news { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.news::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--line)); border-radius: 2px; }
.news li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.news li::before { content: ""; position: absolute; left: -22px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); }
.news li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.news time { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.news span { color: var(--text-2); }
.news strong { color: var(--text); font-weight: 600; }

/* project cards */
.projects { display: grid; gap: 14px; }
.project { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.project__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), transparent); color: var(--accent); border: 1px solid var(--line); }
.project__ico svg { width: 22px; height: 22px; }
.project h3 { font-size: 1.05rem; margin-bottom: 3px; }
.project__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-bottom: 8px; }
.project p { margin-bottom: 10px; font-size: .95rem; }
.project .chips { gap: 6px; }
.project .chip { font-size: 11px; padding: 4px 8px; }
.project__links { margin-top: 10px; font-size: 13px; font-weight: 600; display: flex; gap: 14px; }
.project--compact { grid-template-columns: 1fr; padding: 18px 20px; }
.project--compact p { margin: 0; font-size: .93rem; }
@media (max-width: 520px) { .project { grid-template-columns: 1fr; } }

/* publications */
.pubs { display: grid; gap: 10px; counter-reset: pub; }
.pub { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 16px 18px; align-items: start; transition: border-color .15s, transform .15s; }
.pub:hover { border-color: var(--accent); transform: translateX(2px); }
.pub__n { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding-top: 4px; }
.pub__n::before { counter-increment: pub; content: "[" counter(pub) "]"; }
.pub__title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.35; margin-bottom: 4px; }
.pub__authors { font-size: .9rem; color: var(--text-2); }
.pub__authors .me { color: var(--text); font-weight: 600; }
.pub__venue { margin-top: 6px; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.pub__venue em { font-style: italic; }
.badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--line);  margin-right: 8px; vertical-align: middle; }
.badge--ieee { background: #e6f0ff; color: #1f4fc4; border-color: transparent; }
.badge--elsevier { background: #fff0e6; color: #b3470f; border-color: transparent; }
.badge--journal { background: #eaf7ee; color: #1b7a3d; border-color: transparent; }
.badge--preprint { background: #f3eefc; color: #5b3fb0; border-color: transparent; }
:root[data-theme="dark"] .badge--ieee { background: #16254d; color: #9dbcff; }
:root[data-theme="dark"] .badge--elsevier { background: #3b2416; color: #ffb98a; }
:root[data-theme="dark"] .badge--journal { background: #14301f; color: #86e0a3; }
:root[data-theme="dark"] .badge--preprint { background: #291f45; color: #c9b8ff; }
.pub__links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--text-2); white-space: nowrap; transition: border-color .15s, color .15s; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn-sm svg { width: 12px; height: 12px; }
@media (max-width: 600px) { .pub { grid-template-columns: 1fr; } .pub__n { display: none; } .pub__links { flex-direction: row; align-items: center; } }

/* awards */
.awards { display: grid; gap: 10px; }
.award { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
.award__ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--warm-soft); color: var(--warm); }
.award__ico svg { width: 20px; height: 20px; }
.award strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.award span { font-size: .9rem; color: var(--text-2); }
.award time { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
@media (max-width: 520px) { .award { grid-template-columns: 44px 1fr; } .award time { grid-column: 2; } }

/* timeline entries (experience, education) */
.timeline { position: relative; display: grid; gap: 12px; }
.entry { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 20px; }
.entry__when { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding-top: 4px; line-height: 1.5; }
.entry__when .pill { display: inline-block; margin-top: 6px; font-family: var(--font-body); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6f7ee; color: #1b7a3d; }
:root[data-theme="dark"] .entry__when .pill { background: #14301f; color: #86e0a3; }
.entry h3 { font-size: 1.02rem; margin-bottom: 2px; }
.entry__meta { font-size: .88rem; color: var(--accent-ink); font-weight: 500; margin-bottom: 8px; }
.entry p { font-size: .93rem; margin-bottom: 0; }
.entry ul { display: grid; gap: 4px; margin-top: 6px; }
.entry li { position: relative; padding-left: 16px; font-size: .93rem; color: var(--text-2); }
.entry li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 560px) { .entry { grid-template-columns: 1fr; gap: 6px; } }

/* skills */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill { padding: 16px 18px; }
.skill__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.skill__head svg { width: 16px; height: 16px; color: var(--accent); }
.skill .chip { font-size: 11px; padding: 4px 8px; }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }

/* posts */
.post-list { display: grid; gap: 10px; }
.post-list li a { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; color: inherit; transition: border-color .15s, transform .15s; }
.post-list li a:hover { text-decoration: none; border-color: var(--accent); transform: translateX(2px); }
.post-list time { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.post-list strong { display: block; font-family: var(--font-head); font-size: .98rem; margin-bottom: 2px; }
.post-list p { margin: 0; font-size: .88rem; color: var(--text-2); }
.post-list .arrow { width: 16px; height: 16px; color: var(--text-3); }
.more-link { margin-top: 14px; font-size: 14px; font-weight: 500; }
@media (max-width: 560px) { .post-list li a { grid-template-columns: 1fr; gap: 4px; } .post-list .arrow { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--text-3); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--text-2); font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Blog pages ---------- */
.band--slim { min-height: 0; }
.band--slim .band__inner { padding: 36px 0 44px; gap: 8px; }
.band--slim .crumbs { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.6); }
.band--slim .crumbs a { color: rgba(255,255,255,.8); }
.band--slim .crumbs span { margin: 0 8px; opacity: .5; }
.band--slim h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.03em; color: #fff; max-width: 820px; }
.band--slim .band__desc { color: rgba(255,255,255,.78); font-size: 1.02rem; max-width: 720px; margin: 0; }
.band--slim .band__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; }
.article { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.article__cover { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p { margin: 0 0 1.15em; color: var(--text); max-width: none; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose pre { background: #0b1020; color: #e6ebf5; border: 1px solid #1c2440; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-family: var(--font-mono); font-size: .86rem; line-height: 1.6; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-family: var(--font-head); font-size: 13px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.article__tags { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-3); }
.author-box { margin-top: 28px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; }
.author-box img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.author-box strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.author-box p { margin: 0; font-size: .9rem; color: var(--text-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.post-nav a { padding: 14px 16px; color: inherit; transition: border-color .15s; }
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.post-nav strong { font-family: var(--font-head); font-size: .93rem; line-height: 1.3; }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
.list-page { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 88px); }
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound h1 { font-size: 4rem; letter-spacing: -0.05em; color: var(--accent); }

/* ---------- Blog pages (index + article) ---------- */
.band--slim .band__meta { align-items: center; }
.band--slim .band__meta span, .band__author { display: inline-flex; align-items: center; gap: 6px; }
.band--slim .band__meta svg { width: 14px; height: 14px; opacity: .8; }
.band__author { color: #fff; font-weight: 600; text-decoration: none; }
.band__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.25); }
.band__author:hover { text-decoration: underline; }
.band--slim .band__meta a { color: #cfe0ff; }
.band--slim .band__topics { margin-top: 10px; }
.band--slim .band__topics a { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 6px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.band--slim .band__topics a:hover { background: rgba(255,255,255,.14); }
.blog-index { padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 7vw, 88px); }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tagbar button { font: 500 12.5px/1 var(--font-mono); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.tagbar button small { font-size: 11px; color: var(--text-3); margin-left: 2px; }
.tagbar button:hover { border-color: var(--accent); color: var(--text); }
.tagbar button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tagbar button.is-active small { color: rgba(255,255,255,.75); }
.tagbar__empty { color: var(--text-3); font-size: .95rem; }
.blog-index .post-list { gap: 12px; }
.post-list li[hidden] { display: none; }
.post-list__tags { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.post-list li a { border: 1px solid var(--line); }
.article__tags a { color: var(--accent-ink); font-weight: 500; }
.article__tags a:hover { text-decoration: underline; }
.author-box p a { font-weight: 500; }
@media (max-width: 640px) {
  .post-list li a { grid-template-columns: 1fr auto; }
  .post-list time { grid-column: 1 / -1; }
}

/* ---------- Academic intro band (homepage) ---------- */
.band--intro { min-height: 0; }
.band--intro .band__inner { padding: 44px 0 56px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; align-items: start; }
.intro__photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #0b1020; box-shadow: 0 24px 60px -24px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.16); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.intro__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; color: #fff; margin: 0; line-height: 1.05; }
.intro__role { margin: 0; color: rgba(255,255,255,.86); font-size: 1.02rem; line-height: 1.5; }
.intro__role a { color: #cfe0ff; }
.intro__bio { margin: 4px 0 0; color: rgba(255,255,255,.74); max-width: 700px; font-size: .98rem; line-height: 1.65; }
.intro__bio a { color: #8fb4ff; font-weight: 500; }
.intro__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.intro__links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); text-decoration: none; transition: background .15s, border-color .15s; }
.intro__links a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); }
.intro__links svg { width: 14px; height: 14px; flex: none; }
.intro__links .ext { display: none; }
.intro__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.62); }
.intro__meta span { display: inline-flex; align-items: center; gap: 7px; }
.intro__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3dd3f0; box-shadow: 0 0 0 3px rgba(61,211,240,.18); }
@media (max-width: 720px) {
  .band--intro .band__inner { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 40px; }
  .intro__photo { width: 148px; aspect-ratio: 1; border-radius: 14px; }
  .intro__name { font-size: 2rem; }
}

/* ---------- Centred academic hero (homepage) ---------- */
.band--hero { min-height: 0; }
.band--hero .band__inner { padding: 52px 0 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.hero__photo { width: 172px; height: 172px; border-radius: 50%; overflow: hidden; background: #0b1020; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 0 5px rgba(61,211,240,.35), 0 28px 60px -24px rgba(0,0,0,.9); margin-bottom: 10px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin: 0; }
.hero__role { margin: 0; color: #cfe0ff; font-weight: 600; font-size: 1.06rem; }
.hero__org { margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.hero__org a { color: rgba(255,255,255,.9); }
.hero__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.hero__icons a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; transition: background .15s, transform .15s, border-color .15s; }
.hero__icons a:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); transform: translateY(-2px); text-decoration: none; }
.hero__icons svg { width: 18px; height: 18px; }
.hero__icons .ext { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__bio { margin: 10px 0 0; max-width: 700px; color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.65; }
.hero__bio a { color: #8fb4ff; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-decoration: none; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: #4a80ff; border-color: #4a80ff; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.62); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #3dd3f0; box-shadow: 0 0 0 3px rgba(61,211,240,.18); }
.sec-head .aside a, a.aside { color: var(--accent-ink); font-weight: 500; }
.sub-h { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin: 22px 0 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .hero__photo { width: 140px; height: 140px; } .band--hero .band__inner { padding: 36px 0 44px; } }

/* ---------- Full-page network animation (fixed behind everything) ---------- */
.bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }
.site-header, main, .site-footer, .band { position: relative; z-index: 1; }
.site-header { z-index: 100; }
.band { background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--band-2) 88%, transparent), color-mix(in srgb, var(--band) 90%, transparent) 60%); }
.band canvas { display: none; }
.site-footer { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
