/* ==================================================================
   chrissbill23.github.io · V2 "Geek" theme
   Tokens come straight from the Pencil design (g-* variables).
   ================================================================== */
:root {
  --bg: #07090C;
  --panel: #0C1016;
  --panel-2: #121821;
  --line: #1E2630;
  --text: #E6EDF3;
  --dim: #8B97A6;
  --faint: #566170;
  --green: #3DFFA2;
  --cyan: #5CE1E6;
  --amber: #FFC266;
  --pink: #FF7AC6;
  --violet: #A98BFF;
  --orange: #FF8F6B;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pixel: "Silkscreen", var(--mono);
  --c: var(--green);
  --shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

/* colour helpers: any component reads --c */
.c-green  { --c: var(--green); }
.c-cyan   { --c: var(--cyan); }
.c-amber  { --c: var(--amber); }
.c-pink   { --c: var(--pink); }
.c-violet { --c: var(--violet); }
.c-orange { --c: var(--orange); }
.c-dim    { --c: var(--dim); }

.g  { color: var(--green); }
.cy { color: var(--cyan); }
.am { color: var(--amber); }
.pk { color: var(--pink); }
.vi { color: var(--violet); }
.tx { color: var(--text); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.b { font-weight: 700; }

/* ---------- base ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
svg.lucide { width: var(--i, 16px); height: var(--i, 16px); flex: none; stroke-width: 2; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* blinking cursor (cursor.glsl: 1.1 Hz square wave) */
.cursor {
  display: inline-block;
  width: 3px; height: 17px;
  vertical-align: -3px;
  background: var(--c, var(--green));
  animation: blink .91s steps(1, end) infinite;
}
.cursor.big { width: .12em; height: .85em; vertical-align: -.08em; margin-left: .1em; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #07090C; font-weight: 700; }
.btn-green:hover { box-shadow: 0 0 24px rgba(61, 255, 162, .35); }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--dim); }
.btn-sm { height: 35px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn-glow { box-shadow: 0 0 28px rgba(61, 255, 162, .35); }
.btn .lucide { --i: 16px; }
.btn-sm .lucide { --i: 14px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: 3px;
  font-size: 11px; line-height: 1.3;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}

/* ---------- terminal window component ---------- */
.term {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.term-bar {
  height: 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}
.term-bar .title { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-bar .meta { text-align: right; font-size: 11px; color: var(--faint); white-space: nowrap; display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: inline-block; }
.term-body { padding: 24px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--faint) var(--panel-2); }
.term-body::-webkit-scrollbar { height: 10px; width: 10px; }
.term-body::-webkit-scrollbar-track { background: var(--panel-2); }
.term-body::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 5px; border: 2px solid var(--panel-2); }
.term-body::-webkit-scrollbar-thumb:hover { background: var(--dim); }
.code .cl { white-space: pre; font-size: 13px; line-height: 1.65; }
.code .ln { color: var(--faint); margin-right: 14px; user-select: none; }
.code .k { color: var(--cyan); }
.code .s { color: var(--amber); }
.code .n { color: var(--pink); }
.code .b { color: var(--green); font-weight: 700; }
.code .p { color: var(--dim); }

/* scanlines.glsl → CSS overlay + slow travelling band */
.scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .10) 0 1px, transparent 1px 4px);
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14%; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(61, 255, 162, .045), transparent);
  animation: band 14s linear infinite;
}
@keyframes band { from { top: -14%; } to { top: 100%; } }

/* ==================================================================
   NAV
   ================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: stretch; height: 60px; padding: 0 32px; }
.brand {
  display: flex; align-items: center; flex: none;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.brand .u { color: var(--green); }
.brand .at { color: var(--faint); font-weight: 400; }
.brand .h { color: var(--cyan); }
.brand .p { color: var(--dim); font-weight: 400; }
.brand .cursor { margin-left: 2px; width: 5px; animation: none; }
.tabs-wrap { position: relative; margin-left: clamp(24px, 9vw, 144px); min-width: 0; display: flex; }
.tabs-wrap::before, .tabs-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--panel) 20%, rgba(12, 16, 22, 0)); box-shadow: inset 24px 0 24px -16px rgba(0, 0, 0, .85); }
.tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--panel) 20%, rgba(12, 16, 22, 0)); box-shadow: inset -24px 0 24px -16px rgba(0, 0, 0, .85); }
.tabs-wrap.can-left::before, .tabs-wrap.can-right::after { opacity: 1; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 0 20px;
  border-left: 1px solid var(--line);
  color: var(--dim); font-size: 13px; text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.tab:last-child { border-right: 1px solid var(--line); }
.tab .lucide { --i: 15px; color: var(--c); }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--bg); color: var(--text); box-shadow: inset 0 2px 0 var(--c); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; flex: none; }
.resume-wrap { position: relative; display: flex; align-items: center; align-self: stretch; }
.resume-menu {
  position: absolute; top: calc(100% - 10px); right: 0; min-width: 190px; z-index: 30;
  display: grid; padding: 6px 0 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.resume-wrap:hover .resume-menu, .resume-wrap:focus-within .resume-menu { opacity: 1; visibility: visible; transform: none; }
.rm-head { padding: 6px 14px 8px; font-size: 11px; color: var(--faint); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.resume-menu a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13px; color: var(--text); text-decoration: none; }
.resume-menu a:hover, .resume-menu a:focus-visible { background: rgba(61, 255, 162, .08); color: var(--green); outline: none; }
.resume-menu a .lucide { --i: 14px; color: var(--green); }
.resume-menu a .code { font-weight: 700; color: var(--green); width: 2ch; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--green); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(61, 255, 162, .7); }

/* ==================================================================
   HOME · hero
   ================================================================== */
.hero { position: relative; overflow: hidden; min-height: 820px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .96) 0%, rgba(7, 9, 12, .85) 50%, rgba(7, 9, 12, .40) 100%),
    linear-gradient(180deg, rgba(7, 9, 12, 0) 60%, var(--bg) 100%);
}
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center;
  padding: 112px 0 120px;
}
.boot { display: grid; gap: 6px; font-size: 12px; color: var(--dim); }
.boot > div { white-space: pre-wrap; }
.boot .t { color: var(--faint); margin-right: 10px; white-space: pre; }
.boot .ok { color: var(--green); font-weight: 700; margin-left: 10px; }
.prompt { margin-top: 28px; font-size: 18px; display: flex; gap: 10px; }
.prompt .a { color: var(--green); font-weight: 700; }
.prompt .d { color: var(--cyan); font-weight: 700; }
.name {
  margin: 28px 0 4px;
  font-size: clamp(44px, 6.5vw, 80px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.05;
}
.role {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px;
  font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.3;
}
.role .amp { color: var(--faint); }
.role .cursor { width: .1em; height: 1em; vertical-align: middle; }
.bio { margin: 28px 0; max-width: 640px; color: var(--dim); font-size: 16px; line-height: 1.7; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-right { display: grid; gap: 16px; }
.model-card .term-body { padding: 20px 20px 24px; }
.train {
  background: rgba(12, 16, 22, .9);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; display: grid; gap: 10px;
}
.train .head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.prog { position: relative; height: 8px; border-radius: 2px; background: #1C232D; overflow: hidden; }
.prog i {
  position: absolute; inset: 0; width: 0;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 8px);
  animation: fill 8.3s linear infinite;
}
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------- metrics ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.metric { background: var(--panel); padding: 24px 28px; display: grid; gap: 10px; align-content: start; }
.metric .k { font-size: 12px; color: var(--faint); }
.metric .v { font-family: var(--pixel); font-size: 44px; line-height: 1.25; color: var(--c); }
.metric .d { font-size: 12px; color: var(--dim); }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section.first { padding-top: 120px; }
.section.last { padding-bottom: 140px; }
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.shead .cmt, .cmt { font-size: 13px; color: var(--faint); letter-spacing: .5px; }
.shead .cmt { margin-bottom: 14px; }
.shead h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -1px; line-height: 1.3; }
.shead a, .shead .slink {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: var(--green); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.shead a:hover { text-decoration: underline; }

/* ---------- featured experience (git log --oneline) ---------- */
.commits { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.commit {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 32px;
  padding: 28px 32px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.commit:nth-child(even) { background: var(--bg); }
.commit:last-child { border-bottom: 0; }
.commit .hash { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--amber); }
.node { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); background: var(--bg); display: inline-block; flex: none; }
.commit .br { margin-top: 6px; font-size: 12px; color: var(--c); }
.commit .date { margin-top: 6px; font-size: 12px; color: var(--faint); }
.commit .title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.commit h3 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.commit .role { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--c); }
.commit p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--dim); }
.commit .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 6px; }

/* ---------- featured projects ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ptab {
  height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.ptab .file { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.ptab .file .lucide { --i: 14px; color: var(--c); }
.ptab .open { color: var(--dim); display: inline-flex; }
.ptab a.open:hover { color: var(--text); }
.ptab .open .lucide { --i: 15px; }
.pcard-body { padding: 26px 24px 28px; display: grid; gap: 14px; }
.pcard .cat { font-size: 11px; letter-spacing: 1px; color: var(--faint); }
.pcard h3 { font-size: 21px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.pcard p { font-size: 13px; line-height: 1.65; color: var(--dim); }
.mline { font-size: 13px; padding-top: 4px; }

/* ---------- stack network (model.summary) ---------- */
.layers { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; }
.layer {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  border-radius: 8px; padding: 20px; display: grid; gap: 10px;
}
.lhead { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--c); }
.lhead .faint { font-weight: 400; }
.lsub { font-size: 11px; color: var(--faint); margin-top: -2px; }
.neuron {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; font-size: 13px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 4px;
}
.neuron i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.edge { width: 42px; padding-top: 160px; display: grid; justify-items: center; gap: 4px; color: var(--faint); font-size: 10px; }
.edge .lucide { --i: 22px; }

/* ==================================================================
   FOOTER · contact + status bar
   ================================================================== */
.footer { border-top: 1px solid var(--line); }
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 64px; align-items: center;
  padding: 120px 0;
}
.contact-copy .cmt { margin-bottom: 28px; }
.headline {
  display: grid;
  font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.headline .g { color: var(--green); }
.contact .sub { margin: 28px 0; max-width: 560px; color: var(--dim); font-size: 16px; line-height: 1.6; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-term .term-body { padding: 28px; display: grid; gap: 10px; font-size: 14px; }
.contact-term .line { display: flex; flex-wrap: wrap; align-items: center; white-space: pre-wrap; }
.contact-term .sp { height: 4px; }
.contact-term .row { display: grid; grid-template-columns: 110px 16px 1fr; }
.contact-term .row .k { color: var(--violet); padding-left: 2ch; }
.contact-term .row .sep { color: var(--faint); }
.contact-term .row a { text-decoration: none; }
.contact-term .row a:hover { text-decoration: underline; }
.statusbar {
  background: var(--green); color: #07090C;
  min-height: 30px; padding: 4px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px;
  font-size: 12px; font-weight: 600;
}
.statusbar .grp { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.statusbar span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.statusbar .lucide { --i: 13px; }

/* ==================================================================
   PAGE HEADERS (experience / projects / about)
   ================================================================== */
.phead { padding: 96px 0 56px; }
.phead.lined { border-bottom: 1px solid var(--line); padding-bottom: 64px; }
.phead .cmt { margin-bottom: 28px; }
.trow { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.trow .dollar, .trow h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.trow .dollar { color: var(--c); letter-spacing: 0; }
.phead .sub { margin-top: 28px; max-width: 760px; color: var(--dim); font-size: 16px; line-height: 1.65; }
.branches { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 13px; }
.branches .lbl, .branches .range { color: var(--faint); }
.bitem { display: inline-flex; align-items: center; gap: 8px; color: var(--c); }
.bitem i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); display: inline-block; }

/* ==================================================================
   EXPERIENCE · filter console
   ================================================================== */
.console-wrap { padding-top: 48px; }
.console {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4); overflow: hidden;
}
.qbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.qinput {
  flex: 1 1 320px; min-width: 0;
  display: flex; align-items: center; height: 44px; padding: 0 16px;
  background: var(--bg); border: 1px solid rgba(61, 255, 162, .4); border-radius: 6px;
  font-size: 15px; white-space: nowrap; cursor: text;
}
.qinput:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(61, 255, 162, .12); }
.qinput .lucide { --i: 16px; color: var(--green); margin-right: 14px; }
.qinput .pfx { color: var(--green); font-weight: 700; }
.qinput .cmd { color: var(--text); }
.qinput .flag { color: var(--cyan); }
.qinput input {
  flex: 1; min-width: 60px; height: 100%;
  background: none; border: 0; outline: none; padding: 0;
  color: var(--amber); font-weight: 700; font-size: 15px;
}
.qinput input::placeholder { color: var(--faint); font-weight: 400; font-size: 12px; }
.result {
  display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 14px;
  background: rgba(61, 255, 162, .08); border: 1px solid rgba(61, 255, 162, .25); border-radius: 6px;
  color: var(--green); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.result i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.result.is-quiet { background: transparent; border-color: var(--line); color: var(--dim); font-weight: 400; }
.result.is-quiet i { background: var(--faint); }
.clear {
  display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--dim); font-size: 13px;
}
.clear:hover { color: var(--text); border-color: var(--dim); }
.clear .lucide { --i: 14px; }
.facets { padding: 8px 20px; }
.facet { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.flabel { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--dim); }
.flabel i { width: 3px; height: 14px; background: var(--c); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px; height: 29px; padding: 0 10px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.fchip:hover { border-color: var(--dim); }
.fchip .n {
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.fchip .lucide { --i: 13px; }
.fchip.is-on { background: var(--green); border-color: var(--green); color: #07090C; font-weight: 700; box-shadow: 0 0 16px rgba(61, 255, 162, .35); }
.fchip.is-on .n { background: rgba(7, 9, 12, .2); color: #07090C; }
.opts {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px;
  min-height: 40px; padding: 8px 20px;
  background: var(--panel-2); border-top: 1px solid var(--line); font-size: 12px;
}
.opt { display: inline-flex; align-items: center; gap: 10px; }
.opt .k { color: var(--faint); }
.radio { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.radio i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); display: inline-block; }
.radio.is-on { color: var(--text); }
.radio.is-on i { background: var(--green); border-color: var(--green); }
.opts .tip { margin-left: auto; color: var(--faint); }

/* ---------- timeline (git log --graph) ---------- */
.timeline { position: relative; padding: 48px 0 120px; }
.rail {
  position: absolute; left: 11px; top: 80px; bottom: 150px; width: 2px;
  background: linear-gradient(180deg, var(--green) 0, var(--line) 15%, var(--line) 85%, var(--pink) 100%);
}
.titem {
  position: relative;
  display: grid; grid-template-columns: 24px 190px minmax(0, 1fr); grid-template-areas: "g m c"; gap: 24px;
  margin-bottom: 28px;
  transition: opacity .25s ease;
}
.titem.is-dim { opacity: .3; }
.titem .graph { grid-area: g; display: flex; justify-content: center; padding-top: 30px; }
.titem .node { width: 16px; height: 16px; border-width: 3px; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.titem .meta { grid-area: m; padding-top: 24px; font-size: 12px; }
.titem .meta .date { font-weight: 700; }
.titem .meta .loc { margin-top: 8px; color: var(--faint); }
.titem .card {
  grid-area: c;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.titem.is-hit .card { background: var(--panel-2); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.titem .top { min-height: 49px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.titem .hash { font-size: 12px; font-weight: 700; color: var(--amber); }
.titem .pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.titem .match { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); }
.titem .match .lucide { --i: 13px; }
.titem .body { padding: 22px 24px 24px; display: grid; gap: 14px; }
.titem .title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.titem h3 { font-size: 24px; font-weight: 800; letter-spacing: -.8px; line-height: 1.3; }
.titem.is-head h3 { font-size: 30px; }
.titem .role { font-size: 14px; font-weight: 500; color: var(--c); }
.titem p { font-size: 14px; line-height: 1.7; color: var(--dim); }
.diff {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  padding: 10px 14px; font-size: 12px;
  background: rgba(61, 255, 162, .04); border: 1px solid rgba(61, 255, 162, .12); border-radius: 4px;
}
.diff .lbl { color: var(--faint); }
.adds { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.add { color: var(--green); }
.add.is-hit { background: var(--green); color: #07090C; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.ttag {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 24px; align-items: center;
  min-height: 90px; margin-bottom: 0; opacity: .5;
}
.ttag .graph { display: flex; justify-content: center; }
.ttag .node { background: var(--pink); border-color: var(--pink); width: 16px; height: 16px; border-width: 3px; box-shadow: 0 0 12px rgba(255, 122, 198, .5); }
.tbody { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tpill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; color: var(--pink);
  background: rgba(255, 122, 198, .1); border: 1px solid rgba(255, 122, 198, .4); border-radius: 3px;
}
.tpill .lucide { --i: 13px; }
.tbody .deg { font-size: 16px; font-weight: 700; }
.tbody .school { font-size: 14px; color: var(--dim); }

/* ==================================================================
   PROJECTS
   ================================================================== */
.toolbar { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters .flag { color: var(--faint); font-size: 14px; margin-right: 2px; }
.pchip {
  height: 31px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  font-size: 13px; color: var(--dim);
  transition: border-color .15s ease;
}
.pchip:hover { border-color: var(--dim); color: var(--text); }
.pchip.is-on { background: var(--cyan); border-color: var(--cyan); color: #07090C; font-weight: 700; }
.search {
  position: relative; width: 360px; max-width: 100%; height: 37px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font-size: 13px;
}
.search:focus-within { border-color: var(--cyan); }
.search .lucide { --i: 15px; color: var(--dim); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0; color: var(--text); font-size: 13px; }
.search input::placeholder { color: var(--text); opacity: .9; }
.search .cursor { --c: var(--cyan); width: 3px; height: 16px; margin-left: -6px; }
.search:focus-within .cursor, .search.has-text .cursor { display: none; }
.pbody { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 120px; }
.explorer { position: sticky; top: 84px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ehead { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 11px; }
.ehead .t { font-weight: 700; letter-spacing: 1.5px; color: var(--dim); }
.ehead .n { color: var(--faint); }
.tree { padding: 10px 0 16px; }
.tnode {
  display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 16px;
  font-size: 13px; color: var(--dim); cursor: pointer; border-left: 2px solid transparent;
  transition: background .15s ease;
}
.tnode:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.tnode.is-on { background: rgba(92, 225, 230, .08); border-left-color: var(--cyan); color: var(--text); }
.tnode.d0 { color: var(--text); }
.tnode.d1 { padding-left: 32px; }
.tnode.d2 { padding-left: 48px; }
.tnode .lucide { --i: 14px; color: var(--faint); }
.tnode .fc { color: var(--c); }
.tnode .n { margin-left: auto; font-size: 11px; color: var(--faint); }
.efoot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; }
.efoot .remote { color: var(--cyan); text-decoration: none; }
.efoot .remote:hover { text-decoration: underline; }
.dirs { display: grid; gap: 48px; }
.dhead { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dhead .lucide { --i: 16px; color: var(--c); }
.dhead .path { font-size: 15px; font-weight: 700; }
.dhead .n { font-size: 13px; color: var(--faint); }
.prow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.card {
  display: flex; flex-direction: column; min-height: 250px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  color: inherit; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.card.is-link:hover { border-color: var(--c); transform: translateY(-2px); }
.ctab { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.ctab .file { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.ctab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ctab .lang { font-size: 11px; color: var(--faint); }
.cbody { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; }
.cbody h3 { font-size: 17px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
.cbody p { font-size: 13px; line-height: 1.6; color: var(--dim); }
.cfoot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cfoot .tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.cfoot .meta { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); }
.cfoot .lucide { --i: 14px; color: var(--dim); }
.empty { padding: 40px 0; font-size: 14px; line-height: 1.8; }

/* case studies: full-width cards with a README feel */
.dnote { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--faint); }
.studies { display: grid; gap: 20px; margin-top: 16px; }
.study { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sbody { display: grid; gap: 22px; padding: 22px 24px 24px; }
.shd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.shd h3 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; margin-right: 4px; }
.shd .tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.shd .meta { font-size: 12px; color: var(--faint); }
.shd .open, .shd .priv { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.shd .open { color: var(--cyan); text-decoration: none; }
.shd .open:hover { text-decoration: underline; }
.shd .priv { color: var(--faint); }
.shd .lucide { --i: 14px; }
.study .pitch { font-size: 14px; line-height: 1.7; color: var(--text); max-width: 900px; }
.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 32px; }
.ssum { display: grid; gap: 8px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.srw { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.65; }
.srw .k { color: var(--c); font-weight: 700; }
.srw .v { color: var(--dim); }
.sexpand {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel-2); font-size: 13px; color: var(--text); transition: border-color .15s ease;
}
.sexpand:hover { border-color: var(--c); }
.sexpand .lucide { --i: 14px; color: var(--c); transition: transform .2s ease; }
.sexpand .less, .study.is-open .sexpand .more { display: none; }
.study.is-open .sexpand .less { display: inline; }
.study.is-open .sexpand .lucide { transform: rotate(180deg); }
.sdetail { display: none; }
.study.is-open .sdetail { display: grid; gap: 22px; }
.study { scroll-margin-top: 80px; }
.scol { display: grid; gap: 22px; align-content: start; }
.study .sh { font-size: 13px; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
.study section p, .study section li { font-size: 13px; line-height: 1.7; color: var(--dim); }
.study section ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.study section li { padding-left: 16px; position: relative; }
.study section li::before { content: "·"; position: absolute; left: 2px; color: var(--c); font-weight: 700; }
.study .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.study .chip { color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.chals { display: grid; gap: 14px; }
.chal { display: grid; gap: 4px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; }
.chal .q { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.6; }
.chal .a { font-size: 13px; line-height: 1.7; color: var(--dim); }
.sfoot { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.kvs { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; }
.linkbtn { color: var(--cyan); text-decoration: underline; }

/* ==================================================================
   ABOUT
   ================================================================== */
.biorow { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.editor { padding: 20px 24px 28px 16px; font-size: 13px; line-height: 1.75; }
.el { display: grid; grid-template-columns: 28px 1fr; gap: 14px; white-space: pre-wrap; }
.el .ln { text-align: right; color: var(--faint); user-select: none; }
.el .ln.cur { color: var(--amber); }
.el .h1 { color: var(--green); font-weight: 700; }
.el .h2 { color: var(--cyan); font-weight: 700; }
.el .li { color: var(--text); }
.el .p { color: var(--dim); }
.el .quote { color: var(--amber); }
.el .strong { color: var(--pink); font-weight: 700; }
.el .cursor { --c: var(--green); margin-left: 4px; }
.efoot2 { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--faint); }
.neofetch { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 28px; overflow: hidden; }
.neofetch .cmd { font-size: 14px; }
.nf { display: flex; gap: 28px; margin-top: 24px; }
.nf .logo { display: grid; align-content: start; }
.nf .big { font-family: var(--pixel); font-size: 76px; line-height: 1; color: var(--green); }
.nf .ver { font-family: var(--pixel); font-size: 16px; color: var(--faint); }
.nf .info { display: grid; gap: 7px; font-size: 13px; align-content: start; }
.nf .uh { font-size: 14px; font-weight: 700; }
.nf .rule { color: var(--faint); letter-spacing: -1px; }
.nrow { display: grid; grid-template-columns: 100px 1fr; }
.nrow .k { color: var(--violet); font-weight: 700; }
.palette { display: flex; margin-top: 10px; }
.palette i { width: 22px; height: 14px; display: block; }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.skillwin .term-body { padding: 20px 22px 24px; display: grid; gap: 14px; font-size: 13px; align-content: start; }
.skillwin .pyline { color: var(--dim); }
.skillwin .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skillwin .chip { font-size: 12px; padding: 5px 10px; }
.skillwin .term-bar .meta span { color: var(--faint); }
.edurow { display: grid; grid-template-columns: minmax(0, 2.14fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.yaml .term-body { padding: 22px 24px 26px; }
.yaml .cl { line-height: 2; }
.ecards { display: grid; gap: 24px; }
.ecard {
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  border-radius: 8px; padding: 24px; display: grid; gap: 10px;
}
.ecard .kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--c); }
.ecard .big { font-family: var(--pixel); font-size: 30px; line-height: 1.3; }
.ecard p { font-size: 13px; line-height: 1.6; color: var(--dim); }

/* reveal-on-scroll (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1180px) {
  .commit { grid-template-columns: 160px minmax(0, 1fr); }
  .commit .tags { grid-column: 2; justify-content: flex-start; }
  .layers { grid-template-columns: 1fr 1fr; gap: 20px; }
  .edge { display: none; }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 96px; }
  .hero-right { max-width: 560px; }
  .hero-fade { background: linear-gradient(180deg, rgba(7, 9, 12, .85) 0%, rgba(7, 9, 12, .92) 60%, var(--bg) 100%); }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .pcards { grid-template-columns: 1fr 1fr; }
  .biorow, .edurow, .skills { grid-template-columns: 1fr; }
  .nf .big { font-size: 60px; }
}
@media (max-width: 900px) {
  .nav-in { padding: 0 16px; }
  .status span { display: none; }
  .tabs-wrap { margin-left: 16px; }
  .pbody { grid-template-columns: 1fr; }
  .explorer { display: none; }
  .prow { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .sgrid { grid-template-columns: 1fr; }
  .sbody { padding: 18px 16px 20px; }
  .shd .open, .shd .priv { margin-left: 0; flex-basis: 100%; }
  .srw { grid-template-columns: 1fr; gap: 2px; }
  .contact { grid-template-columns: 1fr; padding: 80px 0; }
  .facet { grid-template-columns: 1fr; gap: 10px; }
  .opts .tip { display: none; }
  .titem { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "g m" "g c"; gap: 12px 20px; }
  .titem .meta { padding-top: 0; display: flex; gap: 16px; align-items: center; }
  .titem .meta .loc { margin-top: 0; }
  .titem .graph { padding-top: 0; }
  .rail { top: 60px; }
  .section.first { padding-top: 80px; }
  .phead { padding-top: 64px; }
}
@media (max-width: 640px) {
  .tab span { display: none; }
  .tab { padding: 0 14px; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 0 10px; }
  .brand .p { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:last-child:nth-child(odd) { grid-column: span 2; }
  .pcards { grid-template-columns: 1fr; }
  .commit { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .commit .tags { grid-column: 1; }
  .layers { grid-template-columns: 1fr; }
  .shead { flex-direction: column; align-items: flex-start; }
  .titem .top { padding: 8px 16px; }
  .titem .body { padding: 18px 16px 20px; }
  .titem h3, .titem.is-head h3 { font-size: 22px; }
  .statusbar { justify-content: center; }
  .nf { flex-direction: column; gap: 16px; }
  .btn-lg { height: 46px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor { opacity: 1; }
  .prog i { width: 62%; }
  .reveal { opacity: 1; transform: none; }
}
