/* components.css — app/product-style UI. All components + responsive. */

/* ══ SCROLL PROGRESS ══ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; pointer-events: none; }
.scroll-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 10px var(--gold-glow); }

/* ══ APP BAR ══ */
#site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono); font-size: .72rem; color: var(--gold);
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
}
.nav-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 var(--green-dim); } 50% { box-shadow: 0 0 0 6px transparent; } }

.nav-links { display: flex; gap: clamp(1.1rem, 2.4vw, 2.2rem); list-style: none; }
.nav-links a {
  position: relative; font-family: var(--mono); font-size: .68rem; color: var(--text-2);
  text-decoration: none; letter-spacing: .1em; text-transform: uppercase; padding: .4rem 0; transition: color .2s;
}
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav-links a:hover { color: var(--text); } .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  color: var(--text-2); cursor: pointer; transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .sun { display: none; } .icon-btn .moon { display: block; }
:root[data-theme="light"] .icon-btn .sun { display: block; }
:root[data-theme="light"] .icon-btn .moon { display: none; }

.cmdk-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .75rem;
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  color: var(--text-2); font-family: var(--mono); font-size: .64rem; cursor: pointer; transition: all .18s var(--ease);
}
.cmdk-btn:hover { color: var(--gold); border-color: var(--gold); }
.cmdk-btn kbd { font-family: var(--mono); font-size: .62rem; padding: .1rem .35rem; border: 1px solid var(--border-2); border-radius: 4px; color: var(--text); background: var(--ground); }

.lang-switch { display: flex; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; }
.lang-btn { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; background: transparent; color: var(--text-2); border: none; cursor: pointer; padding: 0 .6rem; height: 36px; transition: all .15s; }
.lang-btn:hover { color: var(--text); } .lang-btn.active { background: var(--gold-dim); color: var(--gold); }

.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--text-2); cursor: pointer; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { content: ''; display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, background .2s; }
.nav-toggle .bar { position: relative; } .nav-toggle .bar::before { position: absolute; top: -6px; left: 0; } .nav-toggle .bar::after { position: absolute; top: 6px; left: 0; }
#site-nav.open .nav-toggle { color: var(--gold); } #site-nav.open .nav-toggle .bar { background: transparent; }
#site-nav.open .nav-toggle .bar::before { transform: translateY(6px) rotate(45deg); } #site-nav.open .nav-toggle .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ══ SECTION HEADER ══ */
.sh { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.sh-label { font-family: var(--mono); font-size: var(--fs-mono); color: var(--gold); letter-spacing: .22em; text-transform: uppercase; margin-bottom: .85rem; display: flex; align-items: center; gap: .7rem; }
.sh-label::before { content: '//'; opacity: .5; }
.sh-title { font-family: var(--mono); font-size: var(--fs-h2); font-weight: 700; color: var(--text); letter-spacing: -.03em; line-height: 1.12; }
.sh-title em { color: var(--gold); font-style: normal; }
.sh-sub { margin-top: .9rem; font-size: var(--fs-lead); color: var(--text-2); font-weight: 300; max-width: 560px; }

/* ══ HERO (terminal) ══ */
#hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + clamp(2.5rem,7vh,5rem)) var(--gutter) var(--section-pad); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy > * { opacity: 0; animation: rise .8s var(--ease-out) forwards; }
.hero-chip { animation-delay: .05s; } .hero-name { animation-delay: .15s; } .hero-tagline { animation-delay: .26s; } .hero-links { animation-delay: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-chip { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: var(--fs-mono); color: var(--green); letter-spacing: .16em; text-transform: uppercase; padding: .32rem .8rem; border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: 100px; background: var(--green-dim); margin-bottom: 1.6rem; }
.hero-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse-dot 2.4s ease-in-out infinite; }
.hero-name { font-family: var(--mono); font-size: var(--fs-hero); font-weight: 700; color: var(--text); line-height: .98; letter-spacing: -.04em; margin-bottom: 1.1rem; }
.hero-tagline { font-size: var(--fs-lead); font-weight: 300; color: var(--text-2); line-height: 1.5; max-width: 34ch; margin-bottom: 2rem; }
.hero-tagline strong { color: var(--gold); font-weight: 500; }
.hero-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: .75rem 1.4rem; border: 1px solid; border-radius: var(--radius-sm); transition: all .18s var(--ease); display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.btn-gold { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); box-shadow: 0 0 22px var(--gold-glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--border-2); color: var(--text-2); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); transform: translateY(-2px); }

/* terminal window */
.term { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); opacity: 0; animation: rise .9s var(--ease-out) .2s forwards; }
.term-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot-r { background: #FF5F57; } .term-dot-y { background: #FEBC2E; } .term-dot-g { background: #28C840; }
.term-title { margin-left: .5rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.term-body { padding: 1.25rem 1.35rem; font-family: var(--mono); font-size: clamp(.74rem, 1.4vw, .86rem); line-height: 1.85; min-height: 300px; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line .prompt { color: var(--green); } .term-line .cmd { color: var(--text); }
.term-line .out { color: var(--text-2); } .term-line .key { color: var(--gold); } .term-line .str { color: var(--cyan); }
.term-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--gold); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ══ METRICS ══ */
#metrics { padding: clamp(2rem,5vw,3rem) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.metrics-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.metric { text-align: left; }
.metric-num { font-family: var(--mono); font-size: clamp(1.9rem, 5.5vw, 2.9rem); font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: .4rem; display: flex; align-items: baseline; gap: .08em; }
.metric-num .plus { font-size: .6em; opacity: .75; }
.metric-label { font-family: var(--mono); font-size: clamp(.58rem,1.4vw,.66rem); color: var(--text-2); letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; }

/* ══ Generic section ══ */
.section { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }

/* ══ SKILLS CHART ══ */
.skills-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.skills-chart { display: grid; gap: 1.15rem; }
.skill-row { display: grid; grid-template-columns: clamp(120px,26%,190px) 1fr auto; align-items: center; gap: 1rem; }
.skill-name { font-family: var(--mono); font-size: .74rem; color: var(--text); letter-spacing: .02em; }
.skill-track { height: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.1s var(--ease); }
.skill-val { font-family: var(--mono); font-size: .68rem; color: var(--gold); min-width: 3ch; text-align: right; }
.skills-note { font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.75; }
.skills-note p + p { margin-top: 1rem; }
.skills-note strong { color: var(--text); font-weight: 500; }

/* ══ CODE PANEL ══ */
.code-layout { display: grid; grid-template-columns: 1fr clamp(320px, 38%, 430px); gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.code-frame { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.code-titlebar { display: flex; align-items: center; gap: .55rem; padding: .7rem 1rem; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.code-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.code-dot-r { background: #FF5F57; } .code-dot-y { background: #FEBC2E; } .code-dot-g { background: #28C840; }
.code-filename { margin-left: .4rem; font-family: var(--mono); font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-lang-badge { margin-left: auto; font-family: var(--mono); font-size: .58rem; color: var(--cyan); letter-spacing: .08em; padding: .12rem .5rem; border: 1px solid var(--cyan-dim); border-radius: 4px; background: var(--cyan-dim); white-space: nowrap; }
pre { padding: 1.25rem 1.5rem; overflow-x: auto; font-family: var(--mono); font-size: clamp(.72rem, 1.4vw, .84rem); line-height: 1.75; }
pre .line { display: block; }
.kw { color: #C792EA; } .fn { color: #82AAFF; } .dec { color: var(--cyan); } .str { color: #C3E88D; }
.cmt { color: var(--muted); font-style: italic; } .typ { color: var(--gold-2); } .num { color: #F78C6C; } .op { color: var(--cyan); }
:root[data-theme="light"] .kw { color: #8B3FD6; } :root[data-theme="light"] .fn { color: #2960C4; }
:root[data-theme="light"] .str { color: #3E7A28; } :root[data-theme="light"] .num { color: #C25A2E; }
.code-caption { font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.7; margin-bottom: 1.75rem; }
.code-caption strong { color: var(--text); font-weight: 500; }
.code-points { display: grid; gap: .85rem; }
.code-point { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.55; }
.code-point-icon { width: 22px; height: 22px; flex: 0 0 auto; border: 1px solid var(--border-2); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .58rem; color: var(--gold); margin-top: 1px; }
.code-point strong { color: var(--text); font-weight: 500; }

/* ══ TIMELINE ══ */
.tl { position: relative; padding-left: clamp(1.6rem,4vw,2.5rem); border-left: 1px solid var(--border-2); display: grid; gap: clamp(1.4rem,3vw,2rem); }
.tl-item { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2rem); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.tl-item:hover { border-color: var(--border-2); transform: translateX(4px); box-shadow: var(--shadow); }
.tl-dot { position: absolute; left: calc(-1 * clamp(1.6rem,4vw,2.5rem) - 1px); top: 1.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--ground); border: 2px solid var(--gold); transform: translateX(-50%); }
.tl-dot.active { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); animation: tl-pulse 2.5s ease-in-out infinite; }
@keyframes tl-pulse { 0%,100% { box-shadow: 0 0 0 4px var(--gold-dim); } 50% { box-shadow: 0 0 0 9px transparent; } }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.tl-title { font-family: var(--mono); font-size: clamp(1rem,2.2vw,1.18rem); font-weight: 700; color: var(--text); line-height: 1.3; }
.tl-title .co { color: var(--gold); }
.tl-date { font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.tl-role { font-family: var(--mono); font-size: .64rem; color: var(--text-2); letter-spacing: .04em; margin-bottom: .9rem; }
.tl-desc { font-size: var(--fs-body); color: var(--text-2); line-height: 1.65; font-weight: 300; }
.tl-tech { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-family: var(--mono); font-size: .64rem; color: var(--text-2); padding: .22rem .55rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; letter-spacing: .03em; transition: all .15s; }
.tag:hover { color: var(--gold); border-color: var(--gold); }

/* ══ STACK MATRIX ══ */
.stack-matrix { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stack-row { display: grid; grid-template-columns: clamp(130px,24vw,190px) 1fr; border-bottom: 1px solid var(--border); }
.stack-row:last-child { border-bottom: none; }
.stack-cat { padding: clamp(1.1rem,2.5vw,1.5rem); font-family: var(--mono); font-size: .68rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; border-right: 1px solid var(--border); background: var(--panel); display: flex; align-items: center; }
.stack-items { padding: clamp(1rem,2vw,1.3rem) clamp(1.1rem,2.5vw,1.5rem); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--panel-2); }

/* ══ EDUCATION ══ */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.edu-card { background: var(--panel); padding: clamp(1.5rem,3vw,2rem); }
.edu-card .eyebrow { font-family: var(--mono); font-size: .6rem; color: var(--gold); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.edu-card h3 { font-family: var(--mono); font-size: 1rem; color: var(--text); margin-bottom: .3rem; }
.edu-card .sub { font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-bottom: .8rem; }
.edu-card p { font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.6; }
.edu-langs { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.edu-lang b { display: block; font-family: var(--mono); font-size: 1.4rem; color: var(--gold); }
.edu-lang span { font-family: var(--mono); font-size: .62rem; color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }

/* ══ WORK / CONSULTING ══ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.work-card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.2rem); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.work-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold); }
.work-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card--alt::before { background: var(--cyan); }
.work-eyebrow { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.work-card--alt .work-eyebrow { color: var(--cyan); }
.work-card h3 { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .7rem; }
.work-card p { font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.7; }
.work-card p strong { color: var(--text); font-weight: 500; }
.work-offer { list-style: none; display: grid; gap: .7rem; margin: 1.3rem 0 1.6rem; }
.work-offer li { position: relative; padding-left: 1.3rem; font-size: var(--fs-body); color: var(--text-2); font-weight: 300; line-height: 1.55; }
.work-offer li::before { content: '▹'; position: absolute; left: 0; color: var(--cyan); }
.work-offer li b { color: var(--text); font-weight: 500; }
.work-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-cyan { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.btn-cyan:hover { background: color-mix(in srgb, var(--cyan) 18%, transparent); box-shadow: 0 0 22px var(--cyan-dim); transform: translateY(-2px); }
.work-note { font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .04em; }

/* ══ CONTACT ══ */
#contact { text-align: center; }
.contact-title { font-family: var(--mono); font-size: var(--fs-h2); font-weight: 700; color: var(--text); letter-spacing: -.03em; margin-bottom: 1rem; line-height: 1.2; }
.contact-sub { font-size: var(--fs-lead); color: var(--text-2); font-weight: 300; margin-bottom: clamp(2rem,5vw,3rem); }
.contact-email { font-family: var(--mono); font-size: clamp(.95rem,3vw,1.35rem); color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border-2); padding-bottom: .25rem; transition: color .2s, border-color .2s; word-break: break-word; }
.contact-email:hover { color: var(--gold); border-color: var(--gold); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin: clamp(2.5rem,6vw,3.5rem) 0 clamp(3rem,7vw,4.5rem); }
.contact-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .72rem; color: var(--text-2); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; transition: color .2s, transform .2s var(--ease); }
.contact-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.contact-link:hover { color: var(--gold); transform: translateY(-2px); }
.footer { font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .06em; line-height: 1.8; }

/* ══ GITHUB STATS ══ */
.gh-stats { display: flex; justify-content: center; border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); padding: clamp(1.5rem,4vw,2.5rem); box-shadow: var(--shadow); transition: border-color .2s; }
.gh-stats:hover { border-color: var(--border-2); }
.gh-stats img { width: 100%; max-width: 500px; height: auto; }

/* ══ COMMAND PALETTE ══ */
.cmdk-overlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: flex-start; justify-content: center; padding: clamp(3rem,12vh,9rem) 1rem 1rem; background: color-mix(in srgb, var(--ground) 60%, transparent); backdrop-filter: blur(4px); }
.cmdk-overlay.open { display: flex; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cmdk-modal { width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: pop .22s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.cmdk-input { width: 100%; border: none; background: transparent; color: var(--text); font-family: var(--sans); font-size: 1.05rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); outline: none; }
.cmdk-input::placeholder { color: var(--muted); }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: .5rem; }
.cmdk-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-2); font-size: .92rem; }
.cmdk-item[aria-selected="true"] { background: var(--gold-dim); color: var(--text); }
.cmdk-item .ic { width: 20px; text-align: center; font-family: var(--mono); font-size: .8rem; color: var(--gold); }
.cmdk-item .hint { margin-left: auto; font-family: var(--mono); font-size: .6rem; color: var(--muted); }
.cmdk-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; } .term { order: 2; }
  .skills-wrap { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
}
@media (max-width: 680px) {
  .nav-links, .cmdk-btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; justify-content: center; align-items: flex-start; gap: .25rem; padding: 2rem var(--gutter); background: color-mix(in srgb, var(--ground) 97%, transparent); backdrop-filter: blur(18px); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  #site-nav.open .nav-links { display: flex; opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 1.1rem; text-transform: none; letter-spacing: .02em; padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .skill-row { grid-template-columns: 1fr auto; }
  .skill-name { grid-column: 1 / -1; }
  .stack-row { grid-template-columns: 1fr; }
  .stack-cat { border-right: none; border-bottom: 1px solid var(--border); }
  .term-body { min-height: 260px; }
  .tl-item:hover { transform: none; }
}
