/* FOLIO V2 — editorial security portfolio, November 2026.
 * Layout and presentation only. Existing destinations and deep links stay intact.
 * The base stylesheet retains all content-specific, print and interactive rules.
 */
:root {
  color-scheme: light;
  --bg: #f8f8f5;
  --panel: #ffffff;
  --panel-2: #f0f4f0;
  --line: #e1e6df;
  --line-soft: #ecf0eb;
  --text: #1d2928;
  --muted: #596a67;
  --soft: #788984;
  --cyan: #126d60;
  --green: #277d5b;
  --violet: #665f96;
  --amber: #b27632;
  --red: #a8464c;
  --shadow: 0 15px 40px rgba(26, 45, 38, .045);
  --ink: #1b2925;
  --brand: #126d60;
  --page-max: 1400px;
}
html { scroll-padding-top: 28px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #cce5d8; color: #123f32; }
body::before, body::after, #matrix-bg, #cursor-dot, #cursor-ring, #live-clock { display: none !important; }
.shell {
  max-width: 1850px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 100dvh;
  padding: 36px 20px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #f3f5f1;
  border-right: 1px solid #e3e8e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.profile {
  display: grid;
  gap: 10px;
  padding: 1px 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile .avatar { display: none; }
.profile::before {
  content: "KR.";
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 14px;
  background: #1a4538;
  color: #f3f6ef;
  font-size: 1.09rem;
  letter-spacing: -.08em;
  font-weight: 800;
}
.profile .name { color: var(--ink); font-size: 1.1rem; font-weight: 800; line-height: 1.27; letter-spacing: -.045em; }
.profile:hover .name { color: var(--ink); }
.profile .role { color: #6e7c74; font-size: .7rem; font-weight: 500; line-height: 1.55; }
.nav {
  display: grid;
  margin-top: 20px;
  gap: 2px;
  border-top: 1px solid #dde3dc;
  padding-top: 17px;
}
.nav a {
  position: relative;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px 0 14px;
  color: #54655e;
  background: transparent;
  border-radius: 9px;
  border: 0;
  text-decoration: none;
  text-transform: none;
  font-size: .79rem;
  font-weight: 650;
  letter-spacing: 0;
  transform: none !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease;
}
.nav a span { width: 22px; color: #a0aea6; font: 600 .62rem "JetBrains Mono",monospace; }
.nav a:hover { background: #e8eee6; color: #173f31; }
.nav a.active { background: #dfeae1; color: #1b5740; }
.nav a.active::before {
  content: "";
  position: absolute; left: 0; top: 11px; bottom: 11px;
  width: 3px; border-radius: 3px; background: #287d5a;
}
.nav a.active span { color: #53816b; }
.sidebar-status {
  margin: 20px 0 0;
  border-radius: 10px;
  padding: 15px 14px;
  border: 1px solid #dbe7dc;
  background: #e9f2e9;
  display: grid;
  gap: 8px;
}
.sidebar-status strong { color: #287553; font: 750 .67rem Inter, sans-serif; letter-spacing: .04em; }
.sidebar-status span { color: #537161; font-size: .74rem; line-height: 1.6; }
.social { padding: 0 4px; gap: 6px; display: flex; flex-wrap: wrap; }
.social a {
  min-width: 34px; height: 34px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #dce4da;
  border-radius: 8px;
  color: #4b665c;
  font-size: .65rem;
  font-weight: 750;
  transform: none !important;
  box-shadow: none !important;
}
.social a:hover { background:#e1ece4; border-color:#b3cdb9; color:#184e3d; }
.site-controls { display: flex; gap: 8px; padding: 0 8px; margin-top: 5px; }
.theme-toggle, .mobile-menu-toggle {
  min-height: 36px;
  display: inline-flex; align-items:center; justify-content:center; gap:7px;
  padding: 0 11px;
  border: 1px solid #dae3d9;
  border-radius: 9px;
  background: #fff;
  color:#47695b;
  font: 650 .72rem Inter, sans-serif;
  cursor: pointer;
}
.theme-toggle:hover, .mobile-menu-toggle:hover { background: #e7f1e8; }
.mobile-menu-toggle { display: none; }
.control-icon { font-size: 1rem; line-height: 1; }
.lang-switch {
  width: auto; margin: 18px 8px 0;
  background: #e7ece5; border: 1px solid #dde5da;
  border-radius: 9px;
}
.lang-switch button { min-height: 32px; border-radius: 7px; color: #607368; }
.lang-switch button.active { background: #fff; color: #195740; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.page {
  width: 100%; max-width: var(--page-max);
  margin: 0 auto;
  padding: 32px clamp(28px,5.3vw,92px) 65px;
  overflow-x: clip;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: #7b8983;
  font: 500 .72rem Inter,sans-serif;
}
.topline .mono { font: 600 .65rem "JetBrains Mono",monospace; color: #8d9a94; }
.crumb, .crumb strong { color: #74857b; font-weight: 600; }
.crumb a { text-decoration: none; color: #446b57; }
.crumb a:hover { color: #126d60; }
.hero {
  position: relative;
  overflow: visible;
  border: 0; border-radius: 0; box-shadow: none;
  padding: clamp(45px,6vw,89px) 0 36px;
  background: transparent;
}
.hero::before, .hero::after { display: none; animation: none !important; }
.hero > * { z-index: auto; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.48fr) minmax(200px,.67fr);
  gap: clamp(25px,4vw,65px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.intro-kicker {
  margin: 0 0 17px !important;
  color: #267655 !important;
  text-transform: uppercase;
  font: 750 .68rem "JetBrains Mono",monospace !important;
  letter-spacing: .09em;
  line-height: 1.4 !important;
}
.availability {
  margin-bottom: 25px;
  min-height: 33px;
  padding: 0 12px;
  border: 1px solid #cfe2d4;
  border-radius: 7px;
  background: #e9f3ea;
  color: #24744f;
  text-transform: none;
  letter-spacing: 0;
  font: 700 .69rem Inter,sans-serif;
}
.availability::before { background: #2d9b6a; box-shadow: 0 0 0 4px #d6ecdd; animation: none !important; }
.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.7rem,5.5vw,6.15rem);
  line-height: 1.045;
  letter-spacing: -.07em;
  font-weight: 800;
  overflow-wrap: normal;
  color: #1c2926;
}
.hero h1 .accent { color: #287b59; }
.hero p {
  max-width: 660px;
  margin-top: 23px;
  color: #60716a;
  font-size: clamp(.96rem,1.08vw,1.09rem);
  line-height: 1.78;
}
.hero .actions { margin-top: 28px; }
.hero-visual {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; min-width: 0;
}
.portrait-frame {
  width: min(100%, 293px);
  height: 352px;
  min-height: 0;
  position: relative; overflow: hidden;
  border-radius: 145px 145px 22px 22px;
  background: #d9e8dd;
  border: 8px solid #e4eee5;
  box-shadow: 0 16px 35px rgba(36,70,51,.08);
}
.portrait-frame::before {
  content: "";position: absolute;inset: 0; z-index:1;
  background: linear-gradient(to top, rgba(22,45,34,.62), transparent 49%);
}
.portrait-frame::after { display:none; }
.portrait-frame img {
  display: block;
  position: absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:50% 32%;
  filter: saturate(.93);
  transform:none;
}
.visual-label {
  position: absolute; z-index:2; top: 16px; left: 15px; right: 15px;
  text-align: center; width: fit-content; margin:auto;
  background: rgba(248,250,247,.91);
  color: #2d6151; border:0; border-radius: 100px;
  padding: 8px 10px;
  font: 650 .53rem "JetBrains Mono",monospace; letter-spacing:.015em;
}
.portrait-caption { position:absolute;z-index:2;bottom:23px;left:22px;right:22px;display:grid;gap:5px; }
.portrait-caption strong { color:white; font-size:1.25rem; letter-spacing:-.04em; line-height:1.2; }
.portrait-caption span { color:#e4ebe5;font-size:.68rem;line-height:1.5; }
.visual-bottom {
  width: min(100%,293px);
  padding: 0;
  display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;
  border:0;background:transparent;border-radius:0;
  color:#7c8b83;font:650 .59rem "JetBrains Mono",monospace;
}
.visual-bottom strong { color:#24754f; font-weight:700; }
.stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:0; margin-top: 48px;
  padding-top: 19px;
  border-top:1px solid var(--line);
}
.stat {
  min-height: 76px;
  padding: 8px clamp(10px,1.5vw,23px);
  background: transparent; border: 0; border-radius:0; box-shadow:none;
  border-right:1px solid var(--line);
  transform:none !important;
}
.stat:first-child { padding-left:0; }
.stat:last-child { border-right:0; }
.stat strong {
  display:block; color:#1a3528;
  font:800 clamp(1.4rem,2.1vw,2.05rem) Inter,sans-serif;
  letter-spacing:-.055em;
  margin-bottom:6px;line-height:1.15;
}
.stat span {color:#7a8b80;font-size:.7rem;line-height:1.45;}
.stat:hover strong { text-shadow:none; }
.btn {
  min-height: 41px; padding: 0 16px;
  border:1px solid #d4e0d5; border-radius:8px;
  background:#fff; color:#285243;
  text-decoration:none;
  font:750 .74rem Inter,sans-serif;
  text-transform:none;letter-spacing:0;
  transform:none !important;box-shadow:none;
  will-change:auto;
  transition: background .17s ease, border-color .17s ease, color .17s ease;
}
.btn.primary { background:#245c43;border-color:#245c43;color:#fff; }
.btn.primary:hover {background:#174a36;border-color:#174a36;color:#fff;}
.btn.secondary-link {background:#fff;border-color:#d8e2d6;color:#416554;}
.btn:hover {background:#eaf3ec;border-color:#9ebfaa;color:#174a36;}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {outline:2px solid #287e60;outline-offset:3px;}
.section { padding-top: clamp(36px,4.5vw,64px); }
.section-head {display:flex; align-items:end; justify-content:space-between; gap:22px; margin-bottom:24px;}
.section-head h2, .feature h2, .contact-panel h2 {
  max-width:740px;
  font-size:clamp(1.5rem,2.5vw,2.6rem);
  line-height:1.15;letter-spacing:-.05em;font-weight:800;color:var(--ink);
}
.section-note {max-width:370px;color:#77897f;font-size:.83rem;line-height:1.7;}
.meta {color:#328460;font:750 .67rem "JetBrains Mono",monospace;letter-spacing:.07em;text-transform:uppercase;margin-bottom:10px;}
.grid {gap:17px;}
.card, .feature, .timeline, .skill-box, .about-panel, .contact-panel, .stat-card, .proof-card, .blog-panel, .post-row {
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:13px;
  box-shadow:none;
}
.card {
  padding:25px;
  min-width:0;position:relative;
  overflow:hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card::before, .card::after, .skill-box::after, .stat::after, .about-panel::after {display:none;}
.card h3, .feature h3 {font-size:1.06rem;color:#1c3029;letter-spacing:-.023em;line-height:1.35;margin-bottom:11px;}
.card p {font-size:.85rem;color:#718079;line-height:1.76;}
a.card:hover, .card:hover {background:#fff;transform:translateY(-2px);border-color:#bdd3c2;box-shadow:0 8px 23px rgba(15,47,32,.07);}
.recruiter-work .evidence-card {
  display:flex;flex-direction:column;
  min-height: 0;
  padding: 17px 22px 23px;
  border-radius: 13px;
  border:1px solid #e1e6df;
}
.recruiter-work .evidence-card h3 {font-size:1.18rem;margin:3px 0 9px;letter-spacing:-.04em;}
.recruiter-work .evidence-card .meta {margin:17px 0 8px;font-size:.62rem;}
.recruiter-work .evidence-card p {max-width:520px;}
.recruiter-work .evidence-card .tags {margin-top:auto;padding-top:18px;}
.recruiter-work .evidence-card .actions {margin-top:15px;padding-top:0;}
.recruiter-work .evidence-card .btn {min-height:36px;font-size:.71rem;}
.project-art {
  width:100%;height:136px;overflow:hidden;position:relative;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;
  isolation:isolate;
}
.project-art::before {content:"";position:absolute;inset:-80px -80px -80px 35%;border-radius:50%;border:1px solid currentColor;opacity:.15;}
.project-art::after {content:"";position:absolute;width:155px;height:155px;left:13%;top:23%;border:1px solid currentColor;border-radius:19px;transform:rotate(-21deg);opacity:.17;}
.art-audit {background:#e7ede4;color:#286c52;}
.art-intel {background:#edf2e6;color:#728b3f;}
.art-soc {background:#e7eff4;color:#386f86;}
.art-linux {background:#efeaf2;color:#796182;}
.art-symbol {font-size:4.1rem;line-height:1;font-weight:750;letter-spacing:-.12em;position:relative;z-index:1;opacity:.8;}
.art-caption {position:absolute;left:13px;bottom:12px;color:currentColor;letter-spacing:.08em;text-transform:uppercase;font:750 .56rem "JetBrains Mono",monospace;z-index:2;}
.tags {gap:6px;}
.tag, .tag.blue, .tag.green, .tag.violet, .tag.amber {
  display:inline-flex;align-items:center;
  padding:4px 9px;min-height:25px;
  color:#53735f;background:#eff5ee;
  border:1px solid #e0e9dd;border-radius:6px;
  font:650 .64rem "JetBrains Mono",monospace;
  transform:none !important;
}
.tag:hover {color:#23573c;border-color:#b9d2c1;}
.whoami {gap:17px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.about-panel {padding:28px;}
.about-panel p {color:#687972;font-size:.87rem;line-height:1.76;}
.about-panel h3 {font-size:1.2rem;letter-spacing:-.025em;}
.signal-list {gap:8px;}
.signal {grid-template-columns:80px 1fr;border:0;border-top:1px solid #e9eeea;border-radius:0;padding:12px 0;background:transparent;}
.signal strong {font-size:.68rem;color:#31835f;}
.signal span {color:#697972;font-size:.8rem;}
.skills-grid {gap:10px;}
.skill-box {padding:22px;min-height:141px;border-radius:12px;}
.skill-box h3 {font-size:1.02rem;margin-bottom:8px;}
.skill-box p {font-size:.81rem;color:#73827a;line-height:1.67;}
.skill-box:hover h3 {color:#1d2928;}
.timeline {padding:14px 25px;gap:0;border-radius:13px;}
.timeline-item {padding:14px 0 18px 21px;position:relative;border-left:1px solid #d5e3d5;}
.timeline-item::before {content:"";position:absolute;width:9px;height:9px;left:-5px;top:20px;border:2px solid #fff;background:#3c9773;border-radius:50%;box-shadow:0 0 0 1px #bdd5c4;}
.timeline-item:last-child {border-left-color:transparent;}
.timeline-item strong {font-size:.95rem;letter-spacing:-.02em;}
.timeline-item p {font-size:.82rem;color:#73827a;}
.timeline-item .date {color:#3a8a64;font-size:.68rem;}
.feature {grid-template-columns:minmax(0,1fr) minmax(220px,.7fr);overflow:hidden;}
.feature-body {padding:30px;}
.feature p {color:#72827a;font-size:.9rem;}
.feature-media-grid {border-left:1px solid var(--line);background:#f4f6f2;}
.feature-media,.achievement-media img {border-color:var(--line);background:#edf1eb;}
.feature-media img {min-height:220px;}
.achievement-media img {min-height:250px;object-fit:contain;}
.feature-media:hover img,.evidence-card:hover img {transform:none;}
.contact-panel {
  padding:34px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:25px;
  background:#1d3f33;
  border-color:#1d3f33;
  border-radius:14px;
}
.contact-panel h2 {color:#fff;}
.contact-panel .meta {color:#a1d8b7;}
.contact-panel p {color:#c7ddcc;font-size:.9rem;line-height:1.65;}
.contact-panel .btn {background:transparent;color:#f0f7ef;border-color:#739b80;}
.contact-panel .btn.primary {background:#d7ebd0;border-color:#d7ebd0;color:#1d3d2d;}
.contact-panel .btn:hover {background:#34604b;color:#fff;}
.contact-panel .btn.primary:hover {background:#fff;color:#183e2a;}
.footer {border-top:1px solid var(--line);margin-top:45px;padding-top:24px;color:#829087;font-size:.72rem;}
.footer small {color:#94a198;}
/* Secondary pages */
.hero.compact {margin:0;padding:56px 0 28px;max-width:970px;}
.hero.compact h1 {font-size:clamp(2.25rem,4.2vw,4.6rem);max-width:950px;line-height:1.1;}
.hero.compact p {max-width:740px;}
.proof-card {background:var(--panel);}
.mark {background:#edf3e9;border-color:#d7e5d8;color:#317a56;}
.proof-links {gap:7px;}
.filter-toolbar,.blog-panel,.post-row,.callout,.writeup-article,.writeup-toc,.term-404 {background:#fff;border-color:var(--line);border-radius:12px;}
.filter-search {background:#f5f7f3;border-color:#dfe7dd;border-radius:8px;}
.filter-search input {color:#1e3427;}
.filter-btn {background:#f5f7f3;color:#5b7363;border-color:#dfe6de;}
.filter-btn.active {background:#226347;color:#fff;}
.writeup-filters a {background:#fff;color:#4c6a55;border-color:#e0e8dd;border-radius:7px;}
.writeup-filters a:hover {color:#176b4a;border-color:#a5ccaf;}
.post-row h2 a,.writeup-article a {color:#216a4b;}
.writeup-article p,.post-row p,.blog-panel p {color:#738079;}
.blog-panel a {color:#526a5e;}
.blog-panel a:hover {background:#ecf3eb;color:#1b6443;}
.blog-callout {background:#eaf3ec;border-color:#d2e6d5;}
.blog-callout strong,.blog-callout a {color:#287b55;}
.callout {background:#edf4eb;border-color:#d4e9d8;}
.callout strong {color:#297e57;}
.callout span {color:#647a6b;}
.writeup-article pre, .code-panel,.term-404 {background:#1d3029;color:#d9ede0;border-color:#294c39;}
.writeup-article code {color:#8eecb4;}
.evidence-card {background:#fff;border-color:var(--line);}
.evidence-card img {background:#e9ede7;}
.table-wrap {border-color:var(--line);}
th {background:#eaf1e8;color:#324c3b;}
td {color:#586b60;}
.copy-btn {color:#206c4a;border-color:#c9dfce;}
.cv-toolbar {margin:19px 0;}
.cv-sheet {background:#fff;border-color:#e0e5df;color:#1b2928;border-radius:13px;box-shadow:var(--shadow);}
.cv-head,.cv-section {border-color:#dce7de;}
.cv-head p,.cv-section p,.cv-list {color:#455f4f;}
.cv-head a,.cv-section a {color:#246b4a;}
#toTop {background:#fff;border-color:#d9e5d8;color:#23553d;}
#scroll-progress {background:#2d8c60;}
.term-404 .b-ok {color:#a3dbb6;}

/* Dark option is restrained rather than a second neon design. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#111917; --panel:#192420; --panel-2:#22312a;
  --line:#2a4035; --line-soft:#253b2d;
  --text:#e7f0e7; --muted:#b0c2b5; --soft:#90a997;
  --cyan:#91d5aa; --green:#90d2aa;
  --shadow:0 18px 50px rgba(0,0,0,.15);
  --ink:#e9f4e9; --brand:#91d5aa;
}
html[data-theme="dark"] body {background:#111917;color:#e7f0e7;}
html[data-theme="dark"] .sidebar {background:#151f1a;border-color:#2b3c30;}
html[data-theme="dark"] .profile .name,html[data-theme="dark"] .profile:hover .name {color:#e8f0e8;}
html[data-theme="dark"] .profile .role {color:#93a99a;}
html[data-theme="dark"] .profile::before {background:#c6e5cd;color:#24432e;}
html[data-theme="dark"] .nav {border-color:#304437;}
html[data-theme="dark"] .nav a {color:#a5bca9;}
html[data-theme="dark"] .nav a:hover {background:#233629;color:#e3f2e3;}
html[data-theme="dark"] .nav a.active {background:#263e2e;color:#c1e8ca;}
html[data-theme="dark"] .sidebar-status {background:#1b3123;border-color:#304b35;}
html[data-theme="dark"] .sidebar-status strong {color:#98d9ad;}
html[data-theme="dark"] .sidebar-status span {color:#a9c4ad;}
html[data-theme="dark"] .social a,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .mobile-menu-toggle {background:#1e2c23;color:#b7d3be;border-color:#38503d;}
html[data-theme="dark"] .social a:hover {background:#2a4132;}
html[data-theme="dark"] .lang-switch {background:#1c2b21;border-color:#304737;}
html[data-theme="dark"] .lang-switch button {color:#a5bbaa;}
html[data-theme="dark"] .lang-switch button.active {background:#385a41;color:#fff;}
html[data-theme="dark"] .topline,html[data-theme="dark"] .topline .mono,html[data-theme="dark"] .crumb,html[data-theme="dark"] .crumb strong {color:#8fa396;border-color:#2d4033;}
html[data-theme="dark"] .crumb a {color:#b6d2bd;}
html[data-theme="dark"] .intro-kicker {color:#9bd8b0 !important;}
html[data-theme="dark"] .availability {background:#1f3a29;border-color:#3c6547;color:#a2dfb7;}
html[data-theme="dark"] .availability::before {box-shadow:0 0 0 4px #294734;}
html[data-theme="dark"] .hero h1 {color:#eaf2e9;}
html[data-theme="dark"] .hero h1 .accent {color:#9bd3aa;}
html[data-theme="dark"] .hero p {color:#adc0af;}
html[data-theme="dark"] .portrait-frame {background:#293e2e;border-color:#314939;box-shadow:none;}
html[data-theme="dark"] .visual-bottom {color:#90a69b;}
html[data-theme="dark"] .visual-bottom strong {color:#a9d8b2;}
html[data-theme="dark"] .stat strong {color:#e4f0e8;}
html[data-theme="dark"] .stat span {color:#9fb5a4;}
html[data-theme="dark"] .section-head h2,html[data-theme="dark"] .feature h2 {color:#eaf2e9;}
html[data-theme="dark"] .section-note {color:#a3b4a4;}
html[data-theme="dark"] .meta {color:#94cfa8;}
html[data-theme="dark"] .card, html[data-theme="dark"] .feature, html[data-theme="dark"] .timeline,html[data-theme="dark"] .skill-box,html[data-theme="dark"] .about-panel,html[data-theme="dark"] .proof-card,html[data-theme="dark"] .blog-panel,html[data-theme="dark"] .post-row {background:#1a2720;border-color:#304439;}
html[data-theme="dark"] .card:hover {background:#213127;border-color:#4d7e57;}
html[data-theme="dark"] .card h3,html[data-theme="dark"] .skill-box h3,html[data-theme="dark"] .timeline-item strong {color:#ebf3e8;}
html[data-theme="dark"] .card p,html[data-theme="dark"] .skill-box p,html[data-theme="dark"] .about-panel p,html[data-theme="dark"] .timeline p {color:#abc0ad;}
html[data-theme="dark"] .recruiter-work .evidence-card {background:#1a2720;border-color:#304439;}
html[data-theme="dark"] .signal {border-color:#2c4134;}
html[data-theme="dark"] .signal span {color:#afc3b1;}
html[data-theme="dark"] .tag {background:#2a4030;border-color:#385641;color:#bde0c2;}
html[data-theme="dark"] .btn {background:#20362a;border-color:#405c47;color:#d5ebd8;}
html[data-theme="dark"] .btn.primary {background:#b6dfbf;color:#153421;border-color:#b6dfbf;}
html[data-theme="dark"] .btn.secondary-link {background:#1d3124;color:#d4e8d7;border-color:#3b5a43;}
html[data-theme="dark"] .btn:hover {background:#304a37;color:#fff;}
html[data-theme="dark"] .contact-panel {background:#244a35;border-color:#315f43;}
html[data-theme="dark"] .contact-panel h2 {color:#f4fff4;}
html[data-theme="dark"] .contact-panel .btn {background:transparent;border-color:#7da48a;color:#f0f8f0;}
html[data-theme="dark"] .contact-panel .btn.primary {background:#d7ebd0;color:#183925;}
html[data-theme="dark"] .filter-toolbar, html[data-theme="dark"] .filter-search,html[data-theme="dark"] .writeup-article,html[data-theme="dark"] .writeup-toc,html[data-theme="dark"] .cv-sheet,html[data-theme="dark"] .callout {background:#1a2920;border-color:#304a36;color:#e6f2e9;}
html[data-theme="dark"] .filter-search input {color:#e6f2e9;}
html[data-theme="dark"] .filter-btn,html[data-theme="dark"] .writeup-filters a {background:#223529;color:#d4e7d4;border-color:#34503b;}
html[data-theme="dark"] .cv-head p,html[data-theme="dark"] .cv-section p,html[data-theme="dark"] .cv-list {color:#b6cbbb;}
html[data-theme="dark"] .cv-head a,html[data-theme="dark"] .cv-section a {color:#98d9a6;}
html[data-theme="dark"] .blog-callout strong,html[data-theme="dark"] .blog-callout a {color:#a4dcaf;}
html[data-theme="dark"] .contact-panel p {color:#c4dfc9;}
html[data-theme="dark"] .feature-media-grid,html[data-theme="dark"] .feature-media {background:#253729;}
html[data-theme="dark"] .footer {color:#98b29d;}

/* Responsive: compact navigation becomes an accessible drawer. */
@media (max-width: 1220px) {
  .hero-grid {grid-template-columns:minmax(0,1.15fr) minmax(185px,.65fr);gap:25px;}
  .hero h1 {font-size:clamp(2.7rem,5vw,4.8rem);}
  .portrait-frame {width:min(100%,255px);height:318px;}
  .visual-bottom {width:min(100%,255px);}
  .section-head {display:grid;gap:9px;}
  .section-note {max-width:710px;}
  .whoami {grid-template-columns:1fr;}
}
@media (max-width: 1000px) {
  .shell {grid-template-columns:205px minmax(0,1fr);}
  .sidebar {padding:27px 15px 20px;}
  .page {padding:27px 28px 54px;}
  .hero-grid {grid-template-columns:1fr;}
  .hero-visual {display:none;} /* photo stays in the sidebar profile at this breakpoint */
  .sidebar .profile .avatar {display:block;width:59px;height:59px;border:0;box-shadow:none;border-radius:14px;}
  .sidebar .profile::before {display:none;}
  .hero h1 {font-size:clamp(2.8rem,5.8vw,5rem);}
  .grid-3,.grid-4 {grid-template-columns:repeat(2,minmax(0,1fr));}
  .feature {grid-template-columns:1fr;}
  .feature-media {border-left:0;border-top:1px solid var(--line);}
}
@media (max-width:840px) {
  html {scroll-padding-top:85px;}
  .shell {display:block;width:100%;max-width:100%;}
  .sidebar {
    position:sticky;top:0;z-index:99;
    height:auto;max-height:none;overflow:visible;
    width:100%;padding:11px 17px;
    display:flex;gap:7px;
    background:#f8f9f5;
    box-shadow:0 5px 25px rgba(22,42,29,.06);
    border:0;border-bottom:1px solid #e0e6dd;
  }
  html[data-theme="dark"] .sidebar {background:#151f1a;border-color:#2f4033;}
  .sidebar > div:first-child {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;}
  .profile {grid-column:1;grid-row:1;display:flex;gap:9px;align-items:center;padding:0;min-width:0;}
  .sidebar .profile::before {display:none;}
  .sidebar .profile .avatar {display:block;width:39px;height:39px;flex:0 0 39px;border:0;border-radius:10px;box-shadow:none;}
  .profile .name {font-size:.81rem;letter-spacing:-.03em;}
  .profile .role {display:none;}
  .site-controls {grid-column:2;grid-row:1;padding:0;margin:0;}
  .theme-toggle,.mobile-menu-toggle {min-height:35px;padding:0 10px;}
  .theme-toggle .control-label {display:none;}
  .mobile-menu-toggle {display:inline-flex;}
  .mobile-menu-toggle .control-label {display:none;}
  .nav {display:none;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px 0 3px;margin:0;border-top:1px solid var(--line);}
  .sidebar.is-open .nav {display:grid;}
  .nav a {min-height:41px;font-size:.73rem;padding:0 10px;}
  .sidebar-status {display:none;}
  .lang-switch {grid-column:1/-1;display:none;margin:4px 0;}
  .sidebar.is-open .lang-switch {display:grid;}
  .sidebar .social {display:none;padding:7px 0 4px;}
  .sidebar.is-open .social {display:flex;}
  .page {padding:18px 19px 40px;max-width:100%;}
  .topline {padding-bottom:14px;}
  .topline .mono {display:none;}
  .hero {padding:40px 0 24px;max-width:100%;width:100%;}
  .hero-grid {grid-template-columns:1fr;}
  .hero-visual {display:flex;}
  .portrait-frame {width:min(100%,270px);height:320px;}
  .visual-bottom {width:min(100%,270px);}
  .hero h1,.hero.compact h1 {font-size:clamp(2.55rem,10vw,4.4rem);max-width:none;}
  .hero p {max-width:720px;font-size:.95rem;}
  .intro-kicker {font-size:.6rem !important;}
  .availability {font-size:.64rem;line-height:1.3;padding:7px 10px;}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px;margin-top:30px;padding-top:15px;}
  .stat {padding:7px 12px;border-right:0;}
  .stat:nth-child(odd){padding-left:0;border-right:1px solid var(--line);}
  .stat strong {font-size:1.55rem;}
  .section {padding-top:39px;}
  .section-head {display:grid;}
  .grid-2,.grid-3,.grid-4,.recruiter-work,.stats + .grid,.skills-grid,.whoami,.writeup-grid,.evidence-grid,.writeup-layout,.blog-board {grid-template-columns:1fr;}
  .featured-writeup {grid-column:span 1;}
  .feature-media-grid {border-left:0;}
  .contact-panel {grid-template-columns:1fr;padding:26px;}
  .contact-actions {justify-content:flex-start;}
  .section-head h2 {font-size:clamp(1.6rem,6vw,2.2rem);}
  .hero.compact {padding:37px 0 23px;}
  .card {padding:21px;}
  .recruiter-work .evidence-card {padding:15px 18px 22px;}
  .whoami,.skills-grid {grid-template-columns:1fr;}
  .skill-box {min-height:auto;}
  .about-panel {padding:22px;}
  .writeup-toc {position:static;}
  .post-row {grid-template-columns:1fr;}
}
@media (max-width:440px) {
  .page {padding-left:16px;padding-right:16px;}
  .hero h1,.hero.compact h1 {font-size:clamp(2.25rem,10vw,3.1rem);}
  .hero-visual {align-items:flex-start;}
  .portrait-frame {height:285px;width:235px;}
  .visual-bottom {width:235px;}
  .actions {gap:7px;}
  .btn {min-height:39px;padding:0 12px;}
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
@media print {
  html {color-scheme:light!important;}
  body {background:white!important;color:#172332!important;}
  .sidebar,.site-controls,.hero-visual {display:none!important;}
  .shell {display:block!important;}
  .page {padding:0!important;max-width:none!important;}
  .cv-sheet {border:0!important;box-shadow:none!important;background:#fff!important;color:#172332!important;}
  .cv-sheet * {color:inherit;}
  .cv-head a,.cv-section a,.cv-section h2 {color:#173d6d!important;}
}


/* ========== Header/navigation refinement · 2026-11-12 ==========
 * Horizontal left-aligned navigation for large screens, compact drawer below.
 * The real portrait replaces the KR. monogram. No anchor/href changes.
 */
.shell {
  display: block;
  max-width: 1850px;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 13px clamp(24px, 5.2vw, 92px) 10px;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto auto;
  grid-template-areas:
    "identity social appearance language"
    "navigation navigation navigation navigation";
  align-items: center;
  gap: 12px 16px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 246, .97);
  box-shadow: 0 5px 22px rgba(19, 44, 31, .035);
  backdrop-filter: blur(14px);
}
.sidebar > div:first-child { display: contents; }
.sidebar .profile {
  grid-area: identity;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  width: auto;
}
.sidebar .profile::before { display: none !important; content: none !important; }
.sidebar .profile .avatar,
.sidebar .profile:hover .avatar {
  display: block !important;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 2px solid #dce9dd;
  background: #e4ece5;
  box-shadow: none !important;
  transform: none !important;
}
.sidebar .profile .name {
  font-size: .94rem;
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.sidebar .profile .role {
  display: block;
  margin-top: 4px;
  font-size: .65rem;
  line-height: 1.35;
  max-width: 285px;
}
.sidebar .nav {
  grid-area: navigation;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 0 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.sidebar .nav a {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 670;
  white-space: nowrap;
}
.sidebar .nav a span { width: auto; min-width: 16px; font-size: .6rem; }
.sidebar .nav a.active::before { display: none; }
.sidebar .sidebar-status { display: none; }
.sidebar .site-controls {
  grid-area: appearance;
  padding: 0;
  margin: 0;
  justify-self: end;
}
.sidebar .theme-toggle {
  min-height: 35px;
  padding: 0 11px;
  background: transparent;
  border-radius: 8px;
}
.sidebar .theme-toggle .control-label { display: none; }
.sidebar .lang-switch {
  grid-area: language;
  display: grid;
  width: 76px;
  margin: 0;
  justify-self: end;
}
.sidebar .social {
  grid-area: social;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  justify-self: end;
}
.sidebar .social a {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 5px;
  font-size: .62rem;
}
.page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 20px clamp(24px, 5.2vw, 92px) 65px;
}
.hero { padding-top: clamp(37px, 4.5vw, 70px); }
.hero.compact { padding-top: 41px; }
html[data-theme="dark"] .sidebar {
  background: rgba(20, 31, 25, .97);
  border-color: #304236;
  box-shadow: 0 5px 22px rgba(0,0,0,.07);
}
html[data-theme="dark"] .sidebar .profile .avatar {
  border-color: #3d5b46;
  background: #263d2c;
}

/* At laptop/tablet widths, navigation becomes a tidy expandable menu. */
@media (max-width: 1200px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(16px, 3vw, 30px);
    height: auto;
    min-height: 0;
  }
  .sidebar > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 10px;
    width: 100%;
  }
  .sidebar .profile {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }
  .sidebar .profile .avatar {
    flex-basis: 41px;
    width: 41px;
    height: 41px;
  }
  .sidebar .profile .name { font-size: .86rem; }
  .sidebar .profile .role { display: none; }
  .sidebar .site-controls {
    grid-area: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 7px;
  }
  .sidebar .mobile-menu-toggle {
    display: inline-flex;
    min-height: 36px;
    min-width: 38px;
    padding: 0 11px;
  }
  .sidebar .nav,
  .sidebar .lang-switch,
  .sidebar .social { display: none; }
  .sidebar .nav {
    grid-area: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px 0 0;
    padding: 9px 0 5px;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .sidebar.is-open .nav { display: grid; }
  .sidebar .nav a {
    width: 100%;
    padding: 0 10px;
    white-space: normal;
    min-height: 42px;
  }
  .sidebar .lang-switch {
    grid-area: auto;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 130px;
    justify-self: start;
    margin: 4px 0 2px;
  }
  .sidebar.is-open .lang-switch { display: grid; }
  .sidebar .social {
    gap: 7px;
    padding: 10px 0 2px;
    margin-top: 5px;
    border-top: 1px solid var(--line);
    justify-self: start;
  }
  .sidebar.is-open .social { display: flex; }
  .page {
    max-width: 100%;
    padding: 19px clamp(18px, 4vw, 55px) 50px;
  }
}
@media (max-width: 840px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
  }
  .sidebar > div:first-child { display: grid; }
  .sidebar .profile .avatar,
  .sidebar .profile:hover .avatar {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 50%;
  }
  .sidebar .nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .sidebar.is-open .nav { display: grid; }
  .sidebar .social { display: none; }
  .sidebar.is-open .social { display: flex; }
  .sidebar .lang-switch { display: none; }
  .sidebar.is-open .lang-switch { display: grid; }
  .page { padding: 19px 18px 42px; }
}
@media (max-width: 400px) {
  .sidebar { padding: 9px 12px; }
  .sidebar .profile .name { font-size: .77rem; }
  .sidebar .theme-toggle, .sidebar .mobile-menu-toggle { padding: 0 9px; }
  .sidebar .social { flex-wrap: wrap; }
}
@media print {
  .sidebar { display: none !important; }
  .page { max-width: none !important; padding: 0 !important; }
  .shell { display: block !important; }
}


/* =========================================================
   BLUE EDITION 2026-11-12
   Keep current top-nav layout, routes, portrait, and content.
   Dark navy is the default; blue-white is the alternate theme.
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111b2d;
  --panel-2: #17243a;
  --line: #263850;
  --line-soft: #1e3047;
  --text: #f3f7ff;
  --muted: #adbed4;
  --soft: #869bb8;
  --cyan: #78b8ff;
  --green: #6ed5b0;
  --violet: #bcaefa;
  --amber: #f2ca83;
  --red: #f38c96;
  --ink: #f3f7ff;
  --brand: #78b8ff;
  --shadow: 0 15px 42px rgba(0, 4, 18, .20);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111b2d;
  --panel-2: #17243a;
  --line: #263850;
  --line-soft: #1e3047;
  --text: #f3f7ff;
  --muted: #adbed4;
  --soft: #869bb8;
  --cyan: #78b8ff;
  --green: #6ed5b0;
  --ink: #f3f7ff;
  --brand: #78b8ff;
}
html:not([data-theme="light"]) body,
html[data-theme="dark"] body {
  color: #f3f7ff;
  background:
    radial-gradient(ellipse 1000px 510px at 85% -180px, rgba(63,110,201,.14), transparent 75%),
    #0b1220;
}
html:not([data-theme="light"]) .sidebar,
html[data-theme="dark"] .sidebar {
  background: rgba(13, 21, 36, .96);
  border-color: #26364c;
  box-shadow: 0 6px 25px rgba(0, 5, 18, .16);
}
html:not([data-theme="light"]) .sidebar .profile .name,
html[data-theme="dark"] .sidebar .profile .name,
html[data-theme="dark"] .sidebar .profile:hover .name { color: #f2f6ff; }
html:not([data-theme="light"]) .sidebar .profile .role,
html[data-theme="dark"] .sidebar .profile .role { color: #9db0ca; }
html:not([data-theme="light"]) .sidebar .profile .avatar,
html[data-theme="dark"] .sidebar .profile .avatar {
  border-color: #3e5b7c;
  background: #1d2e47;
}
html:not([data-theme="light"]) .sidebar .nav,
html[data-theme="dark"] .sidebar .nav { border-color: #29394f; }
html:not([data-theme="light"]) .sidebar .nav a,
html[data-theme="dark"] .sidebar .nav a { color: #aebfd7; }
html:not([data-theme="light"]) .sidebar .nav a span,
html[data-theme="dark"] .sidebar .nav a span { color: #7894b6; }
html:not([data-theme="light"]) .sidebar .nav a:hover,
html[data-theme="dark"] .sidebar .nav a:hover {
  background: #1b2e49;
  color: #f5f8ff;
}
html:not([data-theme="light"]) .sidebar .nav a.active,
html[data-theme="dark"] .sidebar .nav a.active {
  background: #213a5b;
  color: #b4d8ff;
}
html:not([data-theme="light"]) .sidebar .nav a.active span,
html[data-theme="dark"] .sidebar .nav a.active span { color: #94bcea; }
html:not([data-theme="light"]) .sidebar .social a,
html:not([data-theme="light"]) .sidebar .theme-toggle,
html:not([data-theme="light"]) .sidebar .mobile-menu-toggle,
html[data-theme="dark"] .sidebar .social a,
html[data-theme="dark"] .sidebar .theme-toggle,
html[data-theme="dark"] .sidebar .mobile-menu-toggle {
  background: #16263e;
  border-color: #30445e;
  color: #c9d9ef;
}
html:not([data-theme="light"]) .sidebar .social a:hover,
html:not([data-theme="light"]) .sidebar .theme-toggle:hover,
html:not([data-theme="light"]) .sidebar .mobile-menu-toggle:hover,
html[data-theme="dark"] .sidebar .social a:hover,
html[data-theme="dark"] .sidebar .theme-toggle:hover,
html[data-theme="dark"] .sidebar .mobile-menu-toggle:hover {
  background: #233d5e;
  color: #fff;
  border-color: #6295d7;
}
html:not([data-theme="light"]) .sidebar .lang-switch,
html[data-theme="dark"] .sidebar .lang-switch {
  background: #16263e;
  border-color: #30445e;
}
html:not([data-theme="light"]) .sidebar .lang-switch button,
html[data-theme="dark"] .sidebar .lang-switch button { color: #a5b9d3; }
html:not([data-theme="light"]) .sidebar .lang-switch button.active,
html[data-theme="dark"] .sidebar .lang-switch button.active {
  color: #f8fbff;
  background: #345c88;
}
html:not([data-theme="light"]) .topline,
html:not([data-theme="light"]) .topline .mono,
html:not([data-theme="light"]) .crumb,
html:not([data-theme="light"]) .crumb strong,
html[data-theme="dark"] .topline,
html[data-theme="dark"] .topline .mono,
html[data-theme="dark"] .crumb,
html[data-theme="dark"] .crumb strong {
  color: #8fa4be;
  border-color: #283952;
}
html:not([data-theme="light"]) .crumb a,
html[data-theme="dark"] .crumb a { color: #b5cde8; }
html:not([data-theme="light"]) .intro-kicker,
html[data-theme="dark"] .intro-kicker { color: #91c5ff !important; }
html:not([data-theme="light"]) .availability,
html[data-theme="dark"] .availability {
  background: #142942;
  color: #b9ddff;
  border-color: #315476;
}
html:not([data-theme="light"]) .availability::before,
html[data-theme="dark"] .availability::before {
  background: #78b8ff;
  box-shadow: 0 0 0 4px rgba(105,167,255,.10);
}
html:not([data-theme="light"]) .hero h1,
html:not([data-theme="light"]) .hero.compact h1,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero.compact h1 { color: #f5f8ff; }
html:not([data-theme="light"]) .hero h1 .accent,
html:not([data-theme="light"]) .hero.compact .accent,
html[data-theme="dark"] .hero h1 .accent,
html[data-theme="dark"] .hero.compact .accent { color: #84bdff; }
html:not([data-theme="light"]) .hero p,
html[data-theme="dark"] .hero p { color: #b3c4da; }
html:not([data-theme="light"]) .portrait-frame,
html[data-theme="dark"] .portrait-frame {
  background: #203752;
  border-color: #263d59;
  box-shadow: 0 18px 48px rgba(0, 3, 16, .27);
}
html:not([data-theme="light"]) .portrait-frame::before,
html[data-theme="dark"] .portrait-frame::before {
  background: linear-gradient(to top, rgba(6,15,31,.82), transparent 53%);
}
html:not([data-theme="light"]) .visual-label,
html[data-theme="dark"] .visual-label {
  background: rgba(15,29,50,.92);
  color: #c7e1ff;
  border: 1px solid rgba(173,205,249,.28);
}
html:not([data-theme="light"]) .visual-bottom,
html[data-theme="dark"] .visual-bottom { color: #8eaac7; }
html:not([data-theme="light"]) .visual-bottom strong,
html[data-theme="dark"] .visual-bottom strong { color: #a3ceff; }
html:not([data-theme="light"]) .stats,
html[data-theme="dark"] .stats { border-color: #293b53; }
html:not([data-theme="light"]) .stat,
html[data-theme="dark"] .stat { border-color: #293b53; }
html:not([data-theme="light"]) .stat strong,
html[data-theme="dark"] .stat strong { color: #eaf4ff; }
html:not([data-theme="light"]) .stat span,
html[data-theme="dark"] .stat span { color: #93a9c2; }
html:not([data-theme="light"]) .btn,
html[data-theme="dark"] .btn {
  background: #1a304a;
  color: #d9e9fc;
  border-color: #3b5677;
}
html:not([data-theme="light"]) .btn.primary,
html[data-theme="dark"] .btn.primary {
  background: #80baff;
  color: #0a1930;
  border-color: #80baff;
}
html:not([data-theme="light"]) .btn.secondary-link,
html[data-theme="dark"] .btn.secondary-link {
  background: #15283f;
  color: #d3e5fa;
  border-color: #324b68;
}
html:not([data-theme="light"]) .btn:hover,
html[data-theme="dark"] .btn:hover {
  background: #284362;
  color: #fff;
  border-color: #78b8ff;
}
html:not([data-theme="light"]) .btn.primary:hover,
html[data-theme="dark"] .btn.primary:hover {
  background: #b7d7ff;
  border-color: #b7d7ff;
  color: #09172b;
}
html:not([data-theme="light"]) .section-head h2,
html:not([data-theme="light"]) .feature h2,
html:not([data-theme="light"]) .contact-panel h2,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .feature h2,
html[data-theme="dark"] .contact-panel h2 { color: #f2f7ff; }
html:not([data-theme="light"]) .meta,
html[data-theme="dark"] .meta { color: #88c2ff; }
html:not([data-theme="light"]) .section-note,
html[data-theme="dark"] .section-note { color: #a1b4cd; }
html:not([data-theme="light"]) .card,
html:not([data-theme="light"]) .feature,
html:not([data-theme="light"]) .timeline,
html:not([data-theme="light"]) .skill-box,
html:not([data-theme="light"]) .about-panel,
html:not([data-theme="light"]) .stat-card,
html:not([data-theme="light"]) .proof-card,
html:not([data-theme="light"]) .blog-panel,
html:not([data-theme="light"]) .post-row,
html[data-theme="dark"] .card,
html[data-theme="dark"] .feature,
html[data-theme="dark"] .timeline,
html[data-theme="dark"] .skill-box,
html[data-theme="dark"] .about-panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .proof-card,
html[data-theme="dark"] .blog-panel,
html[data-theme="dark"] .post-row {
  background: #121e31;
  border-color: #2b405a;
  color: #ecf4ff;
}
html:not([data-theme="light"]) .recruiter-work .evidence-card,
html[data-theme="dark"] .recruiter-work .evidence-card {
  background: #121e31;
  border-color: #2b405a;
}
html:not([data-theme="light"]) .card:hover,
html[data-theme="dark"] .card:hover {
  background: #172740;
  border-color: #517bac;
  box-shadow: 0 9px 28px rgba(0,4,16,.2);
}
html:not([data-theme="light"]) .card h3,
html:not([data-theme="light"]) .feature h3,
html:not([data-theme="light"]) .skill-box h3,
html:not([data-theme="light"]) .timeline-item strong,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .feature h3,
html[data-theme="dark"] .skill-box h3,
html[data-theme="dark"] .timeline-item strong { color: #f4f8ff; }
html:not([data-theme="light"]) .card p,
html:not([data-theme="light"]) .feature p,
html:not([data-theme="light"]) .skill-box p,
html:not([data-theme="light"]) .about-panel p,
html:not([data-theme="light"]) .timeline p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .feature p,
html[data-theme="dark"] .skill-box p,
html[data-theme="dark"] .about-panel p,
html[data-theme="dark"] .timeline p { color: #aebed4; }
html:not([data-theme="light"]) .signal,
html[data-theme="dark"] .signal { border-color: #2a4058; }
html:not([data-theme="light"]) .signal strong,
html[data-theme="dark"] .signal strong { color: #8dbfff; }
html:not([data-theme="light"]) .signal span,
html[data-theme="dark"] .signal span { color: #abbcd2; }
html:not([data-theme="light"]) .tag,
html:not([data-theme="light"]) .tag.blue,
html:not([data-theme="light"]) .tag.green,
html:not([data-theme="light"]) .tag.violet,
html:not([data-theme="light"]) .tag.amber,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .tag.blue,
html[data-theme="dark"] .tag.green,
html[data-theme="dark"] .tag.violet,
html[data-theme="dark"] .tag.amber {
  color: #b6d7ff;
  background: #1b324d;
  border-color: #345271;
}
html:not([data-theme="light"]) .timeline-item,
html[data-theme="dark"] .timeline-item { border-color: #2c435c; }
html:not([data-theme="light"]) .timeline-item::before,
html[data-theme="dark"] .timeline-item::before {
  background: #80baff;
  border-color: #101f34;
  box-shadow: 0 0 0 1px #4a729d;
}
html:not([data-theme="light"]) .timeline-item .date,
html[data-theme="dark"] .timeline-item .date { color: #94c3ff; }
html:not([data-theme="light"]) .project-art.art-audit,
html[data-theme="dark"] .project-art.art-audit { background: #1b3755; color: #96c9ff; }
html:not([data-theme="light"]) .project-art.art-intel,
html[data-theme="dark"] .project-art.art-intel { background: #203753; color: #9ec8ee; }
html:not([data-theme="light"]) .project-art.art-soc,
html[data-theme="dark"] .project-art.art-soc { background: #183a56; color: #88d1ff; }
html:not([data-theme="light"]) .project-art.art-linux,
html[data-theme="dark"] .project-art.art-linux { background: #303457; color: #c2bfff; }
html:not([data-theme="light"]) .feature-media-grid,
html:not([data-theme="light"]) .feature-media,
html:not([data-theme="light"]) .achievement-media img,
html[data-theme="dark"] .feature-media-grid,
html[data-theme="dark"] .feature-media,
html[data-theme="dark"] .achievement-media img {
  background: #0e1c2e;
  border-color: #2b405a;
}
html:not([data-theme="light"]) .contact-panel,
html[data-theme="dark"] .contact-panel {
  background: linear-gradient(115deg, #193756, #123049);
  border-color: #315577;
}
html:not([data-theme="light"]) .contact-panel .meta,
html[data-theme="dark"] .contact-panel .meta { color: #a8d2ff; }
html:not([data-theme="light"]) .contact-panel p,
html[data-theme="dark"] .contact-panel p { color: #b9cee4; }
html:not([data-theme="light"]) .contact-panel .btn,
html[data-theme="dark"] .contact-panel .btn {
  background: #20415f;
  border-color: #51799b;
  color: #e7f3ff;
}
html:not([data-theme="light"]) .contact-panel .btn.primary,
html[data-theme="dark"] .contact-panel .btn.primary {
  background: #a5cfff;
  color: #10223a;
  border-color: #a5cfff;
}
html:not([data-theme="light"]) .filter-toolbar,
html:not([data-theme="light"]) .filter-search,
html:not([data-theme="light"]) .writeup-article,
html:not([data-theme="light"]) .writeup-toc,
html:not([data-theme="light"]) .callout,
html:not([data-theme="light"]) .blog-callout,
html:not([data-theme="light"]) .term-404,
html[data-theme="dark"] .filter-toolbar,
html[data-theme="dark"] .filter-search,
html[data-theme="dark"] .writeup-article,
html[data-theme="dark"] .writeup-toc,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .blog-callout,
html[data-theme="dark"] .term-404 {
  background: #13233a;
  border-color: #2c435e;
  color: #c7d9f0;
}
html:not([data-theme="light"]) .filter-search input,
html[data-theme="dark"] .filter-search input { color: #edf5ff; }
html:not([data-theme="light"]) .filter-btn,
html:not([data-theme="light"]) .writeup-filters a,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .writeup-filters a {
  background: #1c324c;
  color: #c6d9f0;
  border-color: #35526f;
}
html:not([data-theme="light"]) .filter-btn.active,
html[data-theme="dark"] .filter-btn.active {
  background: #80baff;
  color: #0b1930;
}
html:not([data-theme="light"]) .post-row p,
html:not([data-theme="light"]) .writeup-article p,
html:not([data-theme="light"]) .blog-panel p,
html[data-theme="dark"] .post-row p,
html[data-theme="dark"] .writeup-article p,
html[data-theme="dark"] .blog-panel p { color: #afc0d7; }
html:not([data-theme="light"]) .writeup-article pre,
html:not([data-theme="light"]) .code-panel,
html[data-theme="dark"] .writeup-article pre,
html[data-theme="dark"] .code-panel {
  background: #091525;
  color: #c8daed;
  border-color: #2a405a;
}
html:not([data-theme="light"]) .writeup-article code,
html[data-theme="dark"] .writeup-article code { color: #9cd2ff; }
html:not([data-theme="light"]) .blog-callout a,
html:not([data-theme="light"]) .blog-callout strong,
html:not([data-theme="light"]) .callout strong,
html[data-theme="dark"] .blog-callout a,
html[data-theme="dark"] .blog-callout strong,
html[data-theme="dark"] .callout strong { color: #9ecaff; }
html:not([data-theme="light"]) .callout span,
html[data-theme="dark"] .callout span { color: #b6c8dc; }
html:not([data-theme="light"]) .proof-card .mark,
html[data-theme="dark"] .proof-card .mark {
  color: #b2d6ff;
  background: #1c344e;
  border-color: #385674;
}
html:not([data-theme="light"]) .evidence-card img,
html[data-theme="dark"] .evidence-card img { background: #1e324d; }
html:not([data-theme="light"]) th,
html[data-theme="dark"] th { background: #1c324c; color: #e1eeff; }
html:not([data-theme="light"]) td,
html[data-theme="dark"] td { color: #afc4df; }
html:not([data-theme="light"]) .copy-btn,
html[data-theme="dark"] .copy-btn { color: #9ccaff; border-color: #4c6a89; }
html:not([data-theme="light"]) .cv-sheet,
html[data-theme="dark"] .cv-sheet {
  background: #142138;
  color: #e8f2ff;
  border-color: #304660;
}
html:not([data-theme="light"]) .cv-head,
html:not([data-theme="light"]) .cv-section,
html[data-theme="dark"] .cv-head,
html[data-theme="dark"] .cv-section { border-color: #344a63; }
html:not([data-theme="light"]) .cv-head p,
html:not([data-theme="light"]) .cv-section p,
html:not([data-theme="light"]) .cv-list,
html[data-theme="dark"] .cv-head p,
html[data-theme="dark"] .cv-section p,
html[data-theme="dark"] .cv-list { color: #b5c9df; }
html:not([data-theme="light"]) .cv-head a,
html:not([data-theme="light"]) .cv-section a,
html[data-theme="dark"] .cv-head a,
html[data-theme="dark"] .cv-section a { color: #9bc9ff; }
html:not([data-theme="light"]) .footer,
html[data-theme="dark"] .footer { color: #849bb7; border-color: #26384d; }
html:not([data-theme="light"]) .footer small,
html[data-theme="dark"] .footer small { color: #728ba9; }
html:not([data-theme="light"]) #toTop,
html[data-theme="dark"] #toTop { background: #192c45; border-color: #395675; color: #cce1fb; }
html:not([data-theme="light"]) #scroll-progress,
html[data-theme="dark"] #scroll-progress { background: #80baff; }

/* Blue-white light mode, not the previous green palette */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fc;
  --panel: #fff;
  --panel-2: #edf4fb;
  --line: #dce5f1;
  --line-soft: #e6edf5;
  --text: #15263d;
  --muted: #586d87;
  --soft: #748ba5;
  --cyan: #266fca;
  --green: #246f9f;
  --ink: #142b48;
  --brand: #286cbd;
}
html[data-theme="light"] body {
  color: #162b47;
  background: radial-gradient(ellipse 1000px 450px at 85% -170px, #e8f0ff, transparent 82%), #f5f8fc;
}
html[data-theme="light"] .sidebar {
  background: rgba(251, 253, 255, .97);
  border-color: #dce6f1;
  box-shadow: 0 4px 20px rgba(38,65,100,.045);
}
html[data-theme="light"] .sidebar .profile .name { color: #182d49; }
html[data-theme="light"] .sidebar .profile .role { color: #68809c; }
html[data-theme="light"] .sidebar .profile .avatar { border-color: #d6e4f3; background: #eaf2fa; }
html[data-theme="light"] .sidebar .nav { border-color: #e2e9f2; }
html[data-theme="light"] .sidebar .nav a { color: #4d6682; }
html[data-theme="light"] .sidebar .nav a span { color: #8ea4bc; }
html[data-theme="light"] .sidebar .nav a:hover { background: #eaf2fc; color: #214f8a; }
html[data-theme="light"] .sidebar .nav a.active { background: #e2efff; color: #1d5ba2; }
html[data-theme="light"] .sidebar .nav a.active span { color: #5386c2; }
html[data-theme="light"] .sidebar .social a,
html[data-theme="light"] .sidebar .theme-toggle,
html[data-theme="light"] .sidebar .mobile-menu-toggle {
  background: #f0f6fd;
  border-color: #d7e3f2;
  color: #365d89;
}
html[data-theme="light"] .sidebar .social a:hover,
html[data-theme="light"] .sidebar .theme-toggle:hover,
html[data-theme="light"] .sidebar .mobile-menu-toggle:hover {
  background: #e2effe;
  border-color: #b6cfee;
  color: #1f508d;
}
html[data-theme="light"] .sidebar .lang-switch { background: #eef4fb; border-color: #d7e3f1; }
html[data-theme="light"] .sidebar .lang-switch button { color: #7189a3; }
html[data-theme="light"] .sidebar .lang-switch button.active { background: #d5e8fd; color: #1b5697; }
html[data-theme="light"] .topline,
html[data-theme="light"] .topline .mono,
html[data-theme="light"] .crumb,
html[data-theme="light"] .crumb strong { color: #7a90a8; border-color: #dce6f0; }
html[data-theme="light"] .crumb a { color: #2f669b; }
html[data-theme="light"] .intro-kicker { color: #2e70bb !important; }
html[data-theme="light"] .availability {
  background: #e7f2ff;
  color: #2568aa;
  border-color: #c9dcf4;
}
html[data-theme="light"] .availability::before { background: #438de1; box-shadow: 0 0 0 4px #d7e9fc; }
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero.compact h1 { color: #162b47; }
html[data-theme="light"] .hero h1 .accent,
html[data-theme="light"] .hero.compact .accent { color: #2872be; }
html[data-theme="light"] .hero p { color: #5c738d; }
html[data-theme="light"] .portrait-frame { background: #dce9f9; border-color: #dfebf8; box-shadow: 0 18px 38px rgba(44,83,132,.10); }
html[data-theme="light"] .portrait-frame::before { background: linear-gradient(to top, rgba(15,39,70,.73), transparent 48%); }
html[data-theme="light"] .visual-label { background: rgba(255,255,255,.9); color: #2b68a8; }
html[data-theme="light"] .visual-bottom { color: #798ea7; }
html[data-theme="light"] .visual-bottom strong { color: #3173b8; }
html[data-theme="light"] .stats,
html[data-theme="light"] .stat { border-color: #dce6f0; }
html[data-theme="light"] .stat strong { color: #203b5b; }
html[data-theme="light"] .stat span { color: #6b819b; }
html[data-theme="light"] .btn {
  background: #eef5fe;
  color: #2c5f9b;
  border-color: #d1e1f2;
}
html[data-theme="light"] .btn.primary { background: #286fbe; border-color: #286fbe; color: #fff; }
html[data-theme="light"] .btn.secondary-link { background: #f5f9ff; color: #356a9e; border-color: #d4e3f2; }
html[data-theme="light"] .btn:hover { background: #dfedfc; color: #235b97; border-color: #aac8eb; }
html[data-theme="light"] .btn.primary:hover { background: #1c579a; border-color: #1c579a; color: #fff; }
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .feature h2 { color: #182e4c; }
html[data-theme="light"] .meta { color: #3775b5; }
html[data-theme="light"] .section-note { color: #70859e; }
html[data-theme="light"] .card,
html[data-theme="light"] .feature,
html[data-theme="light"] .timeline,
html[data-theme="light"] .skill-box,
html[data-theme="light"] .about-panel,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .proof-card,
html[data-theme="light"] .blog-panel,
html[data-theme="light"] .post-row { background: #fff; border-color: #dce6f1; }
html[data-theme="light"] .recruiter-work .evidence-card { background: #fff; border-color: #dce6f1; }
html[data-theme="light"] .card:hover { background: #fafdff; border-color: #b8d1ed; box-shadow: 0 9px 28px rgba(44,80,130,.07); }
html[data-theme="light"] .card h3,
html[data-theme="light"] .feature h3,
html[data-theme="light"] .skill-box h3,
html[data-theme="light"] .timeline-item strong { color: #1b3552; }
html[data-theme="light"] .card p,
html[data-theme="light"] .feature p,
html[data-theme="light"] .skill-box p,
html[data-theme="light"] .about-panel p,
html[data-theme="light"] .timeline p { color: #637b93; }
html[data-theme="light"] .signal { border-color: #e3eaf2; }
html[data-theme="light"] .signal strong { color: #2d72b7; }
html[data-theme="light"] .signal span { color: #607890; }
html[data-theme="light"] .tag,
html[data-theme="light"] .tag.blue,
html[data-theme="light"] .tag.green,
html[data-theme="light"] .tag.violet,
html[data-theme="light"] .tag.amber {
  color: #376a9b;
  background: #eaf3fd;
  border-color: #d6e5f4;
}
html[data-theme="light"] .timeline-item { border-color: #d6e5f2; }
html[data-theme="light"] .timeline-item::before { background: #478fe0; border-color: #fff; box-shadow: 0 0 0 1px #bed6f1; }
html[data-theme="light"] .timeline-item .date { color: #3479be; }
html[data-theme="light"] .project-art.art-audit { background: #e7effb; color: #336bb2; }
html[data-theme="light"] .project-art.art-intel { background: #eaf2fc; color: #537cb7; }
html[data-theme="light"] .project-art.art-soc { background: #e4f1f9; color: #3f87ae; }
html[data-theme="light"] .project-art.art-linux { background: #eeedfc; color: #7770bb; }
html[data-theme="light"] .feature-media-grid,
html[data-theme="light"] .feature-media,
html[data-theme="light"] .achievement-media img { background: #eaf2fa; border-color: #dbe6f1; }
html[data-theme="light"] .contact-panel { background: linear-gradient(110deg,#1c4677,#244a71); border-color: #315b85; }
html[data-theme="light"] .contact-panel h2 { color: #fff; }
html[data-theme="light"] .contact-panel .meta { color: #c1dcff; }
html[data-theme="light"] .contact-panel p { color: #d0dfef; }
html[data-theme="light"] .contact-panel .btn { background: rgba(255,255,255,.06); color: #f2f8ff; border-color: #7596b8; }
html[data-theme="light"] .contact-panel .btn.primary { background: #e0eeff; color: #173b68; border-color: #e0eeff; }
html[data-theme="light"] .filter-toolbar,
html[data-theme="light"] .filter-search,
html[data-theme="light"] .writeup-article,
html[data-theme="light"] .writeup-toc,
html[data-theme="light"] .callout,
html[data-theme="light"] .blog-callout { background: #fff; border-color: #dbe6f2; }
html[data-theme="light"] .filter-search { background: #f6faff; }
html[data-theme="light"] .filter-search input { color: #263d55; }
html[data-theme="light"] .filter-btn,
html[data-theme="light"] .writeup-filters a { background: #eff6fd; color: #3c668e; border-color: #d9e5f2; }
html[data-theme="light"] .filter-btn.active { background: #347cc6; color: #fff; }
html[data-theme="light"] .post-row p,
html[data-theme="light"] .writeup-article p,
html[data-theme="light"] .blog-panel p { color: #607890; }
html[data-theme="light"] .blog-callout a,
html[data-theme="light"] .blog-callout strong,
html[data-theme="light"] .callout strong { color: #2f6fb0; }
html[data-theme="light"] .callout span { color: #57718e; }
html[data-theme="light"] .proof-card .mark { background: #eaf3fe; color: #377abe; border-color: #d1e3f7; }
html[data-theme="light"] .writeup-article pre, html[data-theme="light"] .code-panel { background: #142840; color: #d5e8ff; border-color: #2a4462; }
html[data-theme="light"] .writeup-article code { color: #99d2ff; }
html[data-theme="light"] .evidence-card img { background: #edf3fa; }
html[data-theme="light"] th { background: #eaf2fc; color: #284d73; }
html[data-theme="light"] td { color: #58748f; }
html[data-theme="light"] .copy-btn { color: #3678b8; border-color: #c3d8ef; }
html[data-theme="light"] .cv-sheet { background: #fff; color: #1a2c43; border-color: #dce6f0; }
html[data-theme="light"] .cv-head, html[data-theme="light"] .cv-section { border-color: #dbe5f1; }
html[data-theme="light"] .cv-head p, html[data-theme="light"] .cv-section p, html[data-theme="light"] .cv-list { color: #475e76; }
html[data-theme="light"] .cv-head a, html[data-theme="light"] .cv-section a { color: #266cad; }
html[data-theme="light"] .footer { color: #7189a3; border-color: #dce7f0; }
html[data-theme="light"] .footer small { color: #8ba0b6; }
html[data-theme="light"] #toTop { background: #fff; border-color: #cbddec; color: #265d96; }
html[data-theme="light"] #scroll-progress { background: #347cc6; }

/* Keep printed CV neutral and readable regardless of chosen theme. */
@media print {
  html, html[data-theme="dark"], html[data-theme="light"] { color-scheme: light !important; }
  html body, html[data-theme="dark"] body, html[data-theme="light"] body {
    background: #fff !important; color: #172332 !important;
  }
  html .cv-sheet, html[data-theme="dark"] .cv-sheet, html[data-theme="light"] .cv-sheet {
    background: #fff !important; color: #172332 !important; border: 0 !important;
    box-shadow: none !important;
  }
  html .cv-sheet p, html[data-theme="dark"] .cv-sheet p, html[data-theme="light"] .cv-sheet p,
  html .cv-sheet li, html[data-theme="dark"] .cv-sheet li, html[data-theme="light"] .cv-sheet li {
    color: #293b4a !important;
  }
  html .cv-section h2, html[data-theme="dark"] .cv-section h2, html[data-theme="light"] .cv-section h2,
  html .cv-sheet a, html[data-theme="dark"] .cv-sheet a, html[data-theme="light"] .cv-sheet a {
    color: #173d6d !important;
  }
}
/* Portfolio taxonomy: compact related-work links and stable legacy deep links. */
.portfolio-crosslinks .grid .card { min-height: 0; }
.portfolio-crosslinks .grid .card .actions { margin-top: 15px; }
.portfolio-crosslinks .legacy-evidence-links { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 16px 1px 0; }
.portfolio-crosslinks .legacy-evidence-links a, .lab-certification-note a { color: var(--cyan); text-underline-offset: 3px; font-size: .77rem; }
.legacy-anchor { display: block; height: 0; scroll-margin-top: 145px; }
.lab-certification-note { margin: 30px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
html[data-theme="light"] .portfolio-crosslinks .legacy-evidence-links a,
html[data-theme="light"] .lab-certification-note a { color: #286fbe; }
@media(max-width: 840px) { .legacy-anchor { scroll-margin-top: 90px; } }

/* Header action ordering: profiles | email + copy | appearance | language. */
.sidebar .social {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  padding-right: 15px;
  border-right: 1px solid var(--line);
}
.sidebar .social-divider {
  display: block;
  flex: 0 0 1px;
  align-self: center;
  height: 23px;
  margin: 0 5px;
  background: var(--line);
}
.sidebar .social .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  font: 650 .68rem Inter, system-ui, sans-serif;
  border: 1px solid #3b5677;
  border-radius: 8px;
  background: #16263e;
  color: #c9d9ef;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.sidebar .social .copy-btn:hover {
  background: #233d5e;
  color: #fff;
  border-color: #6295d7;
}
.sidebar .site-controls {
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
html[data-theme="light"] .sidebar .social .copy-btn {
  background: #f0f6fd;
  border-color: #d7e3f2;
  color: #365d89;
}
html[data-theme="light"] .sidebar .social .copy-btn:hover {
  background: #e2effe;
  border-color: #b6cfee;
  color: #1f508d;
}
@media (max-width: 1200px) {
  .sidebar .site-controls { padding-right: 0; border-right: 0; }
  .sidebar .social {
    border-right: 0;
    padding-right: 0;
    flex-wrap: wrap;
  }
  .sidebar .social-divider { margin: 0 8px; }
}

/* Respect the collapsed header on tablet/mobile; profile controls remain in the drawer. */
@media (max-width: 1200px) {
  .sidebar .social { display: none; }
  .sidebar.is-open .social { display: flex; }
}

/* Low-priority academic work: compact entry below the primary projects. */
.academic-projects { padding-top: 32px; }
.academic-projects .section-head { margin-bottom: 13px; }
.academic-projects .section-head h2 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); }
.academic-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 19px 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
}
.academic-project-row > div { min-width: 0; max-width: 800px; }
.academic-project-row .meta { margin-bottom: 5px; }
.academic-project-row h3 { font-size: 1.02rem; line-height: 1.35; margin: 0 0 7px; }
.academic-project-row p:not(.meta) { color: var(--muted); line-height: 1.65; font-size: .8rem; }
.academic-project-row .btn { flex: 0 0 auto; min-height: 35px; }
@media (max-width: 720px) {
  .academic-project-row { align-items: flex-start; flex-direction: column; padding: 18px; gap: 14px; }
}

/* Visual technical diagrams — ONEE predictive maintenance and DotCodeApp */
.project-flow {
  margin: 22px 0 19px;
  padding: 14px;
  background: #0e192b;
  border: 1px solid #304661;
  border-radius: 11px;
  overflow-x: auto;
}
.project-flow svg {
  display: block;
  width: 100%;
  min-width: 580px;
  max-width: 742px;
  height: auto;
  margin: 0 auto;
}
.project-flow .pf-node {
  fill: #1a2c46;
  stroke: #385472;
  stroke-width: 1.2px;
}
.project-flow .pf-node-accent {
  fill: #203c5d;
  stroke: #76b4f6;
  stroke-width: 1.4px;
}
.project-flow .pf-label {
  fill: #eaf3ff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.project-flow .pf-sub {
  fill: #a9bfd9;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10.3px;
}
.project-flow .pf-kicker {
  fill: #9dcaff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
}
.project-flow .pf-note {
  fill: #aec5df;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10.6px;
}
.project-flow .pf-arrow { stroke: #7bb6ff; stroke-width: 1.7; fill: none; }
.project-flow figcaption {
  color: #a9c0dd;
  font-size: .77rem;
  line-height: 1.55;
  padding-top: 7px;
  text-align: center;
}
html[data-theme="light"] .project-flow {
  background: #ecf4fd;
  border-color: #cfdeef;
}
html[data-theme="light"] .project-flow .pf-node {
  fill: #fff; stroke: #b9d1ed;
}
html[data-theme="light"] .project-flow .pf-node-accent {
  fill: #daebff; stroke: #619fe1;
}
html[data-theme="light"] .project-flow .pf-label { fill: #183a62; }
html[data-theme="light"] .project-flow .pf-sub { fill: #527297; }
html[data-theme="light"] .project-flow .pf-kicker { fill: #3175b7; }
html[data-theme="light"] .project-flow .pf-note { fill: #cfe1f8; }
html[data-theme="light"] .project-flow figcaption { color: #4f7198; }
@media (max-width: 720px) {
  .project-flow { padding: 9px; }
  .project-flow svg { min-width: 580px; }
}

/* Featured-work preview panels (replacing decorative abstract symbols).
   These are static, schematic mini-interfaces, not live scores or screenshots. */
.recruiter-work .case-preview {
  --cp-bg: #12253d;
  --cp-surface: #182f4c;
  --cp-surface-2: #213e5e;
  --cp-line: #315272;
  --cp-primary: #e7f3ff;
  --cp-secondary: #adc6df;
  --cp-subtle: #87a8ca;
  --cp-accent: #86bcff;
  width: 100%;
  height: 206px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #315170;
  border-radius: 11px;
  overflow: hidden;
  background: radial-gradient(ellipse at 95% -25%, #25456a 0%, transparent 67%), #12253d;
  color: var(--cp-primary);
  isolation: isolate;
  font-family: Inter, system-ui, sans-serif;
}
.recruiter-work .case-preview *,
.recruiter-work .case-preview *::before,
.recruiter-work .case-preview *::after { box-sizing: border-box; }
.recruiter-work .case-preview .cp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 13px;
  min-height: 20px;
  white-space: nowrap;
}
.recruiter-work .case-preview .cp-top-title {
  color: var(--cp-accent);
  font: 700 .62rem "JetBrains Mono", monospace;
  letter-spacing: .055em;
}
.recruiter-work .case-preview .cp-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #406080;
  border-radius: 5px;
  color: #bfd8f5;
  font: 600 .52rem "JetBrains Mono", monospace;
  letter-spacing: .01em;
}
.recruiter-work .cp-audit-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 11px;
}
.recruiter-work .cp-audit-metrics,
.recruiter-work .cp-audit-findings {
  min-width: 0;
  height: 142px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(6,17,34,.29);
}
.recruiter-work .cp-audit-metrics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-rows: 49px 15px auto;
  gap: 2px 8px;
}
.recruiter-work .cp-metric { display: flex; flex-direction: column; gap: 1px; }
.recruiter-work .cp-metric strong { color: #f4f9ff; font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.recruiter-work .cp-metric small { color: var(--cp-secondary); font: 650 .54rem "JetBrains Mono",monospace; }
.recruiter-work .cp-risk-bars { grid-column: 1/-1; display: flex; gap: 3px; height: 9px; }
.recruiter-work .cp-risk-bars span { display:block; border-radius: 3px; }
.recruiter-work .cp-risk-critical { background: #fa8c9a; flex: 1; }
.recruiter-work .cp-risk-high { background: #ffc17e; flex: 7; }
.recruiter-work .cp-risk-medium { background: #84baff; flex: 4; }
.recruiter-work .cp-risk-legend {
  grid-column:1/-1;
  display:flex; flex-wrap: wrap; gap: 4px 9px;
  align-items: start;
  padding-top: 5px;
  font: 650 .50rem "JetBrains Mono", monospace;
  color: #9db3cf;
}
.recruiter-work .cp-audit-findings { display: flex; flex-direction: column; justify-content: space-evenly; padding: 8px 9px; }
.recruiter-work .cp-audit-row { display:flex;align-items:center;justify-content:space-between;gap:6px; border-bottom: 1px solid rgba(109,146,185,.16); padding: 8px 0; font-size: .63rem; line-height: 1.25; }
.recruiter-work .cp-audit-row:last-child {border:0;}
.recruiter-work .cp-audit-row span {min-width:0; color:#d6e5fa;}
.recruiter-work .cp-audit-row b {flex:0 0 auto;white-space:nowrap;font:700 .53rem "JetBrains Mono",monospace;}
.recruiter-work .cp-critical {color:#ff9aa2;}
.recruiter-work .cp-high {color:#ffc783;}
.recruiter-work .cp-medium {color:#a5cbff;}
.recruiter-work .cp-url-input {
  display:flex;align-items:center;gap:9px;
  padding: 8px 9px;
  height:36px;
  border:1px solid #426184;border-radius:7px;background:#0e1d30;
  font:600 .67rem "JetBrains Mono",monospace;
}
.recruiter-work .cp-url-lock {font-size:1rem;color:#9abfe7;}
.recruiter-work .cp-url-input > span:nth-child(2) {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#c7d9ed;}
.recruiter-work .cp-url-input b {font:700 .55rem Inter,sans-serif;background:#74b4f9;color:#102b49;padding:6px 8px;border-radius:5px;letter-spacing:.015em;}
.recruiter-work .cp-flow {display:flex;align-items:stretch;justify-content:space-between;gap:4px; margin-top:11px;}
.recruiter-work .cp-flow-step {
  min-width:0;flex:1 1 0;
  padding:10px 3px 8px;
  background: rgba(38,75,114,.57);
  border: 1px solid #3c5c7b;
  border-radius:7px;
  text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:4px;
}
.recruiter-work .cp-flow-step span {color:#88b8ee;font:700 .55rem "JetBrains Mono",monospace;}
.recruiter-work .cp-flow-step strong {color:#f0f6ff;font-size:.72rem;}
.recruiter-work .cp-flow-step small {color:#aac1db;font-size:.56rem;}
.recruiter-work .cp-flow-arrow {align-self:center;font-size:1.15rem;color:#82b7f9;line-height:1;}
.recruiter-work .cp-url-footer,
.recruiter-work .cp-investigation-footer {
  display:flex;justify-content:space-between;gap:8px;align-items:center;
  color:#a6c3e3;
  margin-top:11px;
  font:600 .57rem "JetBrains Mono",monospace;
}
.recruiter-work .cp-url-footer span::before,
.recruiter-work .cp-investigation-footer span::before {content:"●";font-size:.45rem;color:#78cda8;margin-right:6px;}
.recruiter-work .cp-searchline { display:flex;align-items:center;gap:8px;background:#0c1b2f;border:1px solid #375574;border-radius:7px;padding:7px 10px;font-size:.71rem; }
.recruiter-work .cp-searchline code {color:#c8e2ff;font:600 .62rem "JetBrains Mono",monospace;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.recruiter-work .cp-search-prompt,.recruiter-work .cp-search-indicator {color:#8dc1ff;}
.recruiter-work .cp-search-indicator {margin-left:auto;font-size:.6rem;}
.recruiter-work .cp-incident-flow {display:grid;grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px;margin-top:15px;position:relative;}
.recruiter-work .cp-incident-flow::before {content:"";position:absolute;left:10%;right:10%;top:7px;height:2px;background:#46678a;}
.recruiter-work .cp-incident-event {display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;min-width:0;position:relative;}
.recruiter-work .cp-incident-dot {width:14px;height:14px;background:#7eb9fa;border:3px solid #274561;box-shadow:0 0 0 1px #80b8f5;border-radius:50%;}
.recruiter-work .cp-incident-event strong {font-size:.62rem;color:#ebf5ff;}
.recruiter-work .cp-incident-event small {font-size:.53rem;color:#a7c0dd;}
.recruiter-work .cp-forensics-layout {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:10px;}
.recruiter-work .cp-terminal {height:142px;background:#0c1c2e;border:1px solid #345372;border-radius:8px;overflow:hidden;min-width:0;}
.recruiter-work .cp-terminal-head {display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;padding:0 9px;background:#203954;border-bottom:1px solid #345372;color:#b9d4ec;font:650 .55rem "JetBrains Mono",monospace;}
.recruiter-work .cp-terminal-dots {color:#7ba6d8;letter-spacing:3px;}
.recruiter-work .cp-terminal-row {display:flex;align-items:center;gap:7px;padding:8px 9px;white-space:nowrap;font:600 .58rem "JetBrains Mono",monospace;}
.recruiter-work .cp-terminal-row em {font-style:normal;color:#6d98c6;}
.recruiter-work .cp-terminal-row span {flex:1;min-width:0;color:#d6e8fa;overflow:hidden;text-overflow:ellipsis;}
.recruiter-work .cp-terminal-row b {font:700 .5rem "JetBrains Mono",monospace;color:#95dcb6;}
.recruiter-work .cp-response {height:142px;padding:12px 10px;border:1px solid #345372;border-radius:8px;background:#1a3452;display:flex;flex-direction:column;justify-content:space-between;min-width:0;}
.recruiter-work .cp-response-kicker {font:700 .59rem "JetBrains Mono",monospace;color:#92c4fc;}
.recruiter-work .cp-response-path {display:flex;flex-direction:column;align-items:flex-start;gap:4px;color:#e2f0ff;font-size:.66rem;font-weight:650;}
.recruiter-work .cp-response-path i {width:1px;height:5px;margin-left:4px;background:#8cb8e5;}
.recruiter-work .cp-response-tags {display:flex;flex-wrap:wrap;gap:5px;}
.recruiter-work .cp-response-tags span {font:700 .54rem "JetBrains Mono",monospace;background:#294c70;border:1px solid #456b92;border-radius:5px;padding:4px 6px;color:#c6e1ff;}
/* The blue/white theme preserves enough contrast to make mini-interfaces legible. */
html[data-theme="light"] .recruiter-work .case-preview {
  --cp-primary:#143554;
  --cp-secondary:#506f8f;
  --cp-subtle:#6288ae;
  --cp-accent:#246cb1;
  color:#153755;
  background:radial-gradient(ellipse at 95% -25%,#d5e8fb,transparent 67%),#eaf2fb;
  border-color:#c4d7ed;
}
html[data-theme="light"] .recruiter-work .cp-status {color:#316b9c;border-color:#b7d1e8;}
html[data-theme="light"] .recruiter-work .cp-audit-metrics,
html[data-theme="light"] .recruiter-work .cp-audit-findings {background:#f9fcff;border-color:#cfdfef;}
html[data-theme="light"] .recruiter-work .cp-metric strong {color:#143759;}
html[data-theme="light"] .recruiter-work .cp-metric small,
html[data-theme="light"] .recruiter-work .cp-risk-legend {color:#557796;}
html[data-theme="light"] .recruiter-work .cp-audit-row {border-color:#d9e7f4;}
html[data-theme="light"] .recruiter-work .cp-audit-row span {color:#345b7d;}
html[data-theme="light"] .recruiter-work .cp-critical {color:#b52f49;}
html[data-theme="light"] .recruiter-work .cp-high {color:#a86620;}
html[data-theme="light"] .recruiter-work .cp-medium {color:#2774bc;}
html[data-theme="light"] .recruiter-work .cp-url-input,
html[data-theme="light"] .recruiter-work .cp-searchline {background:#fbfdff;border-color:#c0d6ec;}
html[data-theme="light"] .recruiter-work .cp-url-input > span:nth-child(2),
html[data-theme="light"] .recruiter-work .cp-searchline code {color:#41698b;}
html[data-theme="light"] .recruiter-work .cp-flow-step {background:#fff;border-color:#cfdfef;}
html[data-theme="light"] .recruiter-work .cp-flow-step strong,
html[data-theme="light"] .recruiter-work .cp-incident-event strong {color:#224c76;}
html[data-theme="light"] .recruiter-work .cp-flow-step small,
html[data-theme="light"] .recruiter-work .cp-incident-event small,
html[data-theme="light"] .recruiter-work .cp-url-footer,
html[data-theme="light"] .recruiter-work .cp-investigation-footer {color:#5f7f9e;}
html[data-theme="light"] .recruiter-work .cp-incident-flow::before {background:#a4c4e6;}
html[data-theme="light"] .recruiter-work .cp-incident-dot {border-color:#edf5ff;}
html[data-theme="light"] .recruiter-work .cp-terminal {background:#fcfdff;border-color:#c8dbec;}
html[data-theme="light"] .recruiter-work .cp-terminal-head {background:#e5effa;border-color:#c8dbec;color:#476e91;}
html[data-theme="light"] .recruiter-work .cp-terminal-row span {color:#325778;}
html[data-theme="light"] .recruiter-work .cp-terminal-row b {color:#16825a;}
html[data-theme="light"] .recruiter-work .cp-response {background:#f4f9ff;border-color:#c8dbec;}
html[data-theme="light"] .recruiter-work .cp-response-kicker {color:#3374ad;}
html[data-theme="light"] .recruiter-work .cp-response-path {color:#315c7e;}
html[data-theme="light"] .recruiter-work .cp-response-path i {background:#7daed7;}
html[data-theme="light"] .recruiter-work .cp-response-tags span {background:#e3eefb;border-color:#bbd4e9;color:#356486;}
@media (max-width: 1100px) {
  .recruiter-work .case-preview {padding:11px; height:200px;}
  .recruiter-work .cp-audit-metrics,
  .recruiter-work .cp-audit-findings,
  .recruiter-work .cp-terminal,
  .recruiter-work .cp-response {height:137px;}
  .recruiter-work .cp-audit-row {font-size:.59rem;}
}
@media (max-width: 480px) {
  .recruiter-work .case-preview {height:194px;padding:10px;}
  .recruiter-work .case-preview .cp-top {margin-bottom:11px;}
  .recruiter-work .case-preview .cp-top-title {font-size:.54rem;}
  .recruiter-work .case-preview .cp-status {font-size:.46rem;padding:4px;}
  .recruiter-work .cp-audit-metrics,
  .recruiter-work .cp-audit-findings,
  .recruiter-work .cp-terminal,
  .recruiter-work .cp-response {height:133px;}
  .recruiter-work .cp-metric strong {font-size:1.32rem;}
  .recruiter-work .cp-audit-row {font-size:.54rem;gap:3px;}
  .recruiter-work .cp-audit-row b {font-size:.47rem;}
  .recruiter-work .cp-risk-legend {font-size:.45rem;gap:4px;}
  .recruiter-work .cp-flow-step strong {font-size:.63rem;}
  .recruiter-work .cp-flow-step small {font-size:.5rem;}
  .recruiter-work .cp-incident-event strong {font-size:.54rem;}
  .recruiter-work .cp-incident-event small {font-size:.48rem;}
  .recruiter-work .cp-response-path {font-size:.58rem;}
  .recruiter-work .cp-terminal-row {font-size:.5rem;padding:8px 5px;}
  .recruiter-work .cp-terminal-head {font-size:.47rem;}
  .recruiter-work .cp-terminal-row b {font-size:.43rem;}
}
