:root {
  --bg: #06080d;
  --bg-2: #0a0e17;
  --panel: rgba(18, 24, 38, 0.6);
  --panel-solid: #111725;
  --border: rgba(120, 150, 200, 0.14);
  --text: #e6ecf5;
  --muted: #8a97ad;
  --quiet: #5f6b80;
  --accent: #38e1ff;      /* cyan - signal */
  --accent-2: #7c5cff;    /* violet - events */
  --log: #4ade80;         /* green - info logs */
  --warn: #fbbf24;
  --error: #f87171;
  --event: #a78bfa;
  --glow: 0 0 24px rgba(56, 225, 255, 0.35);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #101a2e 0%, transparent 60%),
              radial-gradient(900px 700px at 0% 20%, #0c1220 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.accent { color: var(--accent); }
.at { color: var(--accent-2); font-weight: 600; }
.quiet { color: var(--quiet); }
.nowrap { white-space: nowrap; }

/* ---- Background log-stream canvas ---- */
#log-stream {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
}
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.4;
}

main, .footer { position: relative; z-index: 2; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, 0.92);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  animation: breathe 2.4s ease-in-out infinite;
}
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav-cta:hover { background: rgba(56,225,255,0.08); }

/* ---- Hero ---- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 12vh, 130px) clamp(20px, 5vw, 60px) 60px;
}
.hero-grid {
  position: absolute;
  inset: -20% 0 0 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(600px 400px at 30% 30%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--log);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--log);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.02;
  margin-bottom: 14px;
}
.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--accent);
  min-height: 1.8em;
  margin-bottom: 22px;
}
.caret { animation: blink 1s step-end infinite; color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--text); }

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  padding: 1px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.tag-log { color: var(--log); background: rgba(74,222,128,0.1); }
.tag-event { color: var(--event); background: rgba(167,139,250,0.12); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.96rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #12b6d6);
  color: #041019;
  box-shadow: 0 6px 24px rgba(56,225,255,0.28);
}
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

/* ---- Pipeline canvas ---- */
.pipeline-wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 50px auto 0;
  padding: 0 clamp(20px, 5vw, 60px);
}
#pipeline {
  width: 100%;
  height: 220px;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,14,23,0.6), rgba(6,8,13,0.6));
}
.pipeline-label {
  position: absolute;
  top: 12px; right: calc(clamp(20px, 5vw, 60px) + 14px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--quiet);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Metrics bar ---- */
.metrics-bar {
  position: relative;
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 16px clamp(20px, 5vw, 60px);
  display: flex;
  gap: clamp(18px, 4vw, 48px);
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.metric { display: flex; flex-direction: column; font-family: 'JetBrains Mono', monospace; }
.m-label { font-size: 0.66rem; color: var(--quiet); text-transform: uppercase; letter-spacing: 1px; }
.m-val { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.m-unit { font-size: 0.66rem; color: var(--muted); }
.sparkline { position: absolute; right: 0; bottom: 0; width: 40%; height: 60%; opacity: 0.5; }

/* ---- Sections ---- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 120px) clamp(20px, 5vw, 60px) 0;
  scroll-margin-top: 84px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}
.section-index {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.95rem;
  opacity: 0.7;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 70px); }
.about-copy p { margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.about-copy strong { color: var(--text); }
.about-copy em { color: var(--accent); font-style: normal; }

.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.timeline li { position: relative; margin-bottom: 26px; }
.t-dot {
  position: absolute; left: -26px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel-solid); border: 2px solid var(--muted);
}
.t-active { border-color: var(--accent); background: var(--accent); box-shadow: var(--glow); animation: breathe 2.4s infinite; }
.t-future { border-style: dashed; }
.timeline h4 { font-size: 1.02rem; }
.timeline p { color: var(--quiet); font-size: 0.92rem; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(120,150,200,0.35); }
.card-viz { height: 90px; margin-bottom: 18px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,0.25); }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.card-log h3 { color: var(--log); }
.card-event h3 { color: var(--event); }
.card-rel h3 { color: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ---- Stack ---- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stack-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.stack-item:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); }
.stack-item .sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---- Work ---- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.work-card:hover { transform: translateY(-5px); border-color: rgba(56,225,255,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.work-name { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.work-star { font-size: 0.8rem; color: var(--warn); font-family: 'JetBrains Mono', monospace; }
.work-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; min-height: 2.6em; }
.work-lang { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--quiet); font-family: 'JetBrains Mono', monospace; }
.work-more { margin-top: 26px; color: var(--muted); }
.work-more a { color: var(--accent); text-decoration: none; }

/* ---- Contact ---- */
.contact-copy { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 30px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.clink {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.clink:hover { border-color: var(--accent); background: rgba(56,225,255,0.05); transform: translateX(6px); }
.clink-k { color: var(--quiet); font-size: 0.85rem; }
.clink-v { color: var(--text); font-size: 0.95rem; }

/* ---- Footer ---- */
.footer {
  max-width: var(--maxw);
  margin: 100px auto 0;
  padding: 30px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--quiet);
}
.foot-status { display: flex; align-items: center; gap: 9px; color: var(--log); }

/* ---- Animations ---- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.7; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #log-stream, #pipeline, .sparkline { display: none; }
}

/* =========================================================
   Experience : log explorer / KQL console
   ========================================================= */
.head-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--quiet);
  letter-spacing: 0;
}
.explorer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,14,23,0.85), rgba(6,8,13,0.85));
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}

/* query bar */
.query-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.query-dots { display: flex; gap: 7px; }
.query-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a3346; }
.query-dots span:nth-child(1) { background: #f87171; }
.query-dots span:nth-child(2) { background: #fbbf24; }
.query-dots span:nth-child(3) { background: #4ade80; }
.query-title { font-size: 0.8rem; color: var(--quiet); }

.kql {
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  background: rgba(0,0,0,0.25);
  white-space: pre-wrap;
  word-break: break-word;
}
.k-tbl { color: #7dd3fc; }
.k-op { color: var(--quiet); }
.k-kw { color: #c084fc; font-weight: 500; }
.k-str { color: #4ade80; }
.k-eq { color: var(--muted); }
.k-flt { color: #fbbf24; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filter {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.filter:hover { color: var(--text); border-color: rgba(120,150,200,0.4); }
.filter.active { color: #041019; background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* histogram */
.histo-wrap { display: flex; align-items: flex-end; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.histo-label { font-size: 0.66rem; color: var(--quiet); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 4px; line-height: 1.5; }
.histo-axis { color: rgba(95,107,128,0.6); font-size: 0.58rem; letter-spacing: 0.5px; }
.histo { display: flex; align-items: flex-end; gap: 4px; height: 42px; flex: 1; }
.histo-bar { flex: 1; min-width: 3px; background: linear-gradient(180deg, var(--accent), rgba(56,225,255,0.15)); border-radius: 2px 2px 0 0; transition: height 0.5s ease, opacity 0.3s; opacity: 0.85; }
.histo-bar:hover { opacity: 1; }

/* log rows */
.log-head, .lr-summary {
  display: grid;
  grid-template-columns: 118px 78px 150px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.85rem;
}
.log-head {
  color: var(--quiet);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.log-rows { max-height: 520px; overflow-y: auto; }
.log-row {
  border-bottom: 1px solid rgba(120,150,200,0.06);
  position: relative;
}
.lr-summary {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.lr-summary:hover { background: rgba(56,225,255,0.05); }
.log-row.open .lr-summary { background: rgba(56,225,255,0.06); }
.lr-ts { color: var(--muted); }
.lr-lvl { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.5px; }
.lvl-ACTIVE { color: #041019; background: var(--accent); padding: 2px 8px; border-radius: 5px; text-align: center; animation: breathe 2.4s infinite; }
.lvl-INFO { color: var(--log); }
.lvl-DEBUG { color: #64748b; }
.lr-svc { color: var(--event); font-weight: 500; }
.lr-msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.lr-msg .role { color: var(--accent); }
.lr-caret { color: var(--quiet); transition: transform 0.2s; display: inline-block; margin-right: 6px; }
.log-row.open .lr-caret { transform: rotate(90deg); }
.lr-dur { color: var(--quiet); font-size: 0.78rem; margin-left: 8px; }

.lr-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0 0 132px;
}
.log-row.open .lr-details { max-height: 640px; padding-top: 12px; padding-bottom: 6px; }
.lr-details ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.lr-details li { color: var(--muted); font-size: 0.82rem; position: relative; padding-left: 16px; }
.lr-details li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

.query-stats { padding: 12px 18px; font-size: 0.76rem; color: var(--quiet); border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.query-stats .qs-hi { color: var(--log); }

/* education strip */
.edu-strip {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.edu-key { color: #041019; background: var(--accent-2); padding: 3px 9px; border-radius: 5px; font-size: 0.72rem; font-weight: 700; }
.edu-item { color: var(--muted); }
.edu-item strong { color: var(--text); }

@media (max-width: 720px) {
  .log-head, .lr-summary { grid-template-columns: 74px 60px 1fr; }
  .lh-svc, .lr-svc { display: none; }
  .lr-details { padding-left: 0; }
  .log-row.open .lr-details { padding-left: 0; }
}

/* =========================================================
   Impact stats
   ========================================================= */
.impact {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.stat::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.stat:hover { transform: translateY(-4px); border-color: rgba(56,225,255,0.4); }
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -1px;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.stat-note {
  display: block;
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--quiet);
}

@media (max-width: 900px) { .impact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .impact { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Work owner badge
   ========================================================= */
.work-owner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--quiet);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   Beyond the pipeline: volunteering + certifications
   ========================================================= */
.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.beyond-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
}
.beyond-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.beyond-ico { color: var(--accent); font-size: 1rem; }

.beyond-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.beyond-list li { position: relative; padding-left: 18px; }
.beyond-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2);
}
.bl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.bl-role { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.bl-org {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--accent-2);
  border: 1px solid rgba(124,92,255,0.3);
  padding: 1px 8px; border-radius: 999px;
}
.beyond-list p { color: var(--muted); font-size: 0.9rem; }

.cert-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cert-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.94rem; color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120,150,200,0.06);
}
.cert-list li:last-child { border-bottom: none; }
.cert-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(56,225,255,0.08);
  border: 1px solid rgba(56,225,255,0.2);
  padding: 2px 8px; border-radius: 5px;
  min-width: 58px; text-align: center; flex: none;
}
.award-strip {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.06);
  border-radius: 10px;
  font-size: 0.88rem; color: var(--muted);
}
.award-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 700;
  color: #041019; background: var(--warn);
  padding: 3px 9px; border-radius: 5px; flex: none;
}

@media (max-width: 820px) { .beyond-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Publications
   ========================================================= */
.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pub-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.pub-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.45); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.pub-main { min-width: 0; }
.pub-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.pub-card:hover .pub-title { color: var(--accent); }
.pub-venue { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.pub-venue em { color: var(--text); font-style: italic; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pub-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent-2);
  background: rgba(124,92,255,0.1);
  border: 1px solid rgba(124,92,255,0.25);
  padding: 2px 9px; border-radius: 5px;
}
.pub-id { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; color: var(--quiet); }
.pub-side {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  flex: none; text-align: right;
}
.pub-date { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.pub-open { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--accent); white-space: nowrap; }

@media (max-width: 620px) {
  .pub-card { flex-direction: column; gap: 12px; }
  .pub-side { flex-direction: row; align-items: center; width: 100%; text-align: left; gap: 14px; }
}

/* subtle award note */
.cert-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(120,150,200,0.06);
  font-size: 0.82rem;
  color: var(--quiet);
}

/* "not real metrics" flag on the simulated ticker */
.metrics-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 1;
}
.mf-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn);
  flex: none;
}

/* =========================================================
   Accessibility: skip link + focus styles
   ========================================================= */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #041019;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* don't show the ring on mouse click for elements that manage their own hover */
:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
  flex: none;
  width: 38px; height: 38px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }

/* =========================================================
   LIGHT THEME
   ========================================================= */
:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-2: #e9edf5;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --border: rgba(40, 60, 100, 0.16);
  --text: #101a2e;
  --muted: #47536b;
  --quiet: #64708a;
  --accent: #0c7597;            /* darker cyan for AA contrast on light */
  --accent-2: #6636e6;         /* darker violet */
  --log: #1a9c4d;
  --warn: #a86a00;
  --error: #d64545;
  --event: #7a52d8;
  --glow: 0 0 18px rgba(14, 127, 163, 0.25);
}

:root[data-theme="light"] body {
  background: radial-gradient(1200px 800px at 80% -10%, #e3ecfb 0%, transparent 60%),
              radial-gradient(900px 700px at 0% 20%, #eef2fa 0%, transparent 55%),
              var(--bg);
}
:root[data-theme="light"] .nav {
  background: rgba(245, 247, 251, 0.9);
}
:root[data-theme="light"] #log-stream { opacity: 0.14; }
:root[data-theme="light"] .scanline { opacity: 0.06; }
:root[data-theme="light"] #pipeline {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(233,237,245,0.6));
}
:root[data-theme="light"] .explorer {
  background: linear-gradient(180deg, #ffffff, #eef2f8);
}
:root[data-theme="light"] .query-bar { background: rgba(20, 30, 60, 0.03); }
:root[data-theme="light"] .kql { background: rgba(20, 30, 60, 0.05); }
/* readable KQL syntax colors on light */
:root[data-theme="light"] .k-tbl { color: #0369a1; }
:root[data-theme="light"] .k-kw  { color: #7c3aed; }
:root[data-theme="light"] .k-str { color: #157a3c; }
:root[data-theme="light"] .k-flt { color: #a86a00; }
:root[data-theme="light"] .query-stats,
:root[data-theme="light"] .log-head { background: rgba(20, 30, 60, 0.03); }
:root[data-theme="light"] .lr-summary:hover { background: rgba(14,127,163,0.07); }
:root[data-theme="light"] .log-row.open .lr-summary { background: rgba(14,127,163,0.08); }
:root[data-theme="light"] .lvl-DEBUG { color: #7a869c; }
:root[data-theme="light"] .lvl-ACTIVE,
:root[data-theme="light"] .edu-key,
:root[data-theme="light"] .btn-primary { color: #ffffff; }
:root[data-theme="light"] .hero-grid { opacity: 0.7; }
