/* ============================================================
   roshanisah.com.np — violet / magenta, dark only
   ============================================================ */
:root {
  --bg:        #0b0812;
  --bg-2:      #120c1c;
  --surface:   #17101f;
  --surface-2: #1e1530;
  --border:    #291f3d;
  --border-2:  #3a2c56;
  --text:      #f4f1f8;
  --text-2:    #b4a8c9;
  --text-3:    #7d7196;
  --accent:    #a855f7;   /* violet  */
  --accent-2:  #ec4899;   /* magenta — used sparingly (terminal, warn states) */
  --accent-hover: #c084fc;
  --accent-3:  #fbbf24;   /* amber, sparingly */
  --accent-dim: rgba(168,85,247,.14);
  --ok:        #34d399;
  --danger:    #fb7185;
  --font:      "Space Grotesk", system-ui, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, monospace;
  --radius:    14px;
  --shadow:    0 24px 70px rgba(0,0,0,.55);
  --glow:      0 0 0 1px rgba(168,85,247,.18), 0 0 32px rgba(168,85,247,.08);
  --grid-line: rgba(255,255,255,.028);
  --flow-a:    #a855f7;
  --flow-b:    #ec4899;
  --portrait-bg: #100a1c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.dim { color: var(--text-3); }
.accent { color: var(--accent); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.kbd { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 6px;
  border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; color: var(--text-2); background: var(--surface); }

/* ---------- unique background: drifting aurora + flow field ---------- */
.grid-bg { position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 78%); }
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .22; }
.aurora .a1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: radial-gradient(circle, #7c3aed, transparent 65%); animation: drift1 26s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; right: -6vw; top: 6vh; background: radial-gradient(circle, #9333ea, transparent 65%); animation: drift2 32s ease-in-out infinite; }
.aurora .a3 { width: 38vw; height: 38vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, #7c3aed, transparent 65%); animation: drift3 29s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-12vw, 10vh) scale(1.1); } }
@keyframes drift3 { 50% { transform: translate(8vw, -12vh) scale(1.2); } }
#flow { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .45; }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 74%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--text); display: flex; align-items: center; }
.brand-prompt { color: var(--accent); }
.brand-sep { color: var(--text-2); }
.cursor { display: inline-block; width: 8px; height: 1.05em; margin-left: 4px; vertical-align: text-bottom; background: var(--accent); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--accent); transition: right .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn-icon { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; color: var(--text-2); transition: border-color .2s, color .2s; }
.btn-icon:hover { border-color: var(--accent); color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 36px; justify-content: center; }
.nav-toggle span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(168,85,247,.25); color: #fff; }
.btn-ghost { background: color-mix(in srgb, var(--surface) 78%, transparent); border-color: var(--border-2); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-link { color: var(--text-2); padding-inline: 6px; }
.btn-link:hover { color: var(--accent-hover); }
.btn-mini { font-size: 11px; padding: 4px 8px; border-radius: 6px; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); }
.btn-mini:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   HERO — flow background, portrait built from 1/0
   ============================================================ */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 56px 0; }
.hero-text { max-width: 620px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.dot-live { background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(46px, 7.5vw, 84px); font-weight: 700; letter-spacing: -.03em; }
.hero-hi { display: block; font-size: clamp(15px, 2vw, 19px); font-weight: 500; color: var(--text-2); letter-spacing: .04em; margin-bottom: 6px; }
.hero-title { font-size: clamp(20px, 2.6vw, 27px); font-weight: 500; margin: 16px 0 4px; color: var(--text); }
.hero-tag { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); margin-bottom: 18px; }
.hero-sub { font-size: 14px; color: var(--text); background: color-mix(in srgb, var(--bg) 60%, transparent); display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); min-height: 22px; margin-bottom: 30px; backdrop-filter: blur(6px); }
.typer-prefix { color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--mono); font-size: 20px; color: var(--text); }
.hero-stats span { font-size: 12.5px; color: var(--text-3); }
.hero-portrait { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: end; width: 100%; max-width: 460px; }
.hero-portrait-glow { position: absolute; inset: -6% -4% 8% -4%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 52% 42%, rgba(168,85,247,.14), transparent 70%); filter: blur(8px); }
#hero-portrait { position: relative; z-index: 1; display: block; width: 100%; height: auto; cursor: crosshair; }
.hero-portrait-status { position: relative; z-index: 1; font-size: 11.5px; color: var(--text-3); margin-top: 6px; letter-spacing: .06em; }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1; color: var(--text-3); font-family: var(--mono); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; position: relative; z-index: 1; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.section-num { color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.section-num::after { content: " //"; color: var(--text-3); }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }

/* about + portrait card */
.about-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 48px; align-items: start; }
.about-text p { font-size: 17px; color: var(--text-2); }
.about-facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 20px; margin-top: 20px; }
.fact { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fact:last-child { border-bottom: 0; }
.fact .label { color: var(--text-3); font-size: 12px; padding-top: 2px; }
.portrait-frame { width: 100%; background: var(--portrait-bg); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.portrait-head, .portrait-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11.5px; color: #b8a6d6; background: rgba(255,255,255,.03); position: relative; z-index: 3; }
.portrait-head span { white-space: nowrap; }
.portrait-head { border-bottom: 1px solid rgba(255,255,255,.07); }
.portrait-head .dot { background: var(--accent); margin-right: 6px; vertical-align: middle; }
.portrait-foot { border-top: 1px solid rgba(255,255,255,.07); }
#portrait { display: block; width: 100%; height: auto; cursor: crosshair; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; overflow: hidden; }
.seg button { font-family: var(--mono); font-size: 11px; padding: 4px 10px; background: transparent; color: #b8a6d6; border: 0; border-right: 1px solid rgba(255,255,255,.12); }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--accent); color: #fff; }
.portrait-caption { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 10px; }

/* cards */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-dim), transparent 45%); }
.card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-icon { font-size: 22px; color: var(--accent); margin-bottom: 14px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.card li { font-size: 14px; color: var(--text-2); padding-left: 18px; position: relative; }
.card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 2px; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; }
.project-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 4px; }
.project h3 { font-size: 20px; }
.project .sub { color: var(--accent); font-size: 14px; font-weight: 500; }
.project .meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin: 8px 0 14px; }
.project .year { font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; border: 1px solid var(--border); padding: 3px 8px; border-radius: 6px; }
.project ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.project li { font-size: 14px; color: var(--text-2); padding-left: 18px; position: relative; }
.project li::before { content: ">"; font-family: var(--mono); position: absolute; left: 0; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-dim); padding: 3px 8px; border-radius: 5px; }
.project .link { margin-top: 14px; font-size: 13.5px; font-weight: 600; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border-2); }
.tl-item { position: relative; padding: 0 0 34px 40px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.tl-when { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.tl-what { font-size: 18px; font-weight: 600; margin: 4px 0 2px; }
.tl-where { color: var(--text-2); font-size: 14px; }
.tl-desc { color: var(--text-3); font-size: 14px; margin-top: 6px; }

/* certs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.chips button { font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all .2s; }
.chips button:hover { border-color: var(--border-2); color: var(--text); }
.chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert { display: flex; gap: 14px; align-items: start; padding: 20px; }
.cert.hide { display: none; }
.cert-badge { flex: 0 0 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border-2); }
.cert h3 { font-size: 15.5px; margin-bottom: 4px; line-height: 1.3; }
.cert .issuer { font-size: 13px; color: var(--text-2); }
.cert .cert-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.cert-more { align-items: center; justify-content: center; text-align: center; border-style: dashed; border-color: var(--border-2); color: var(--text-3); flex-direction: column; gap: 6px; min-height: 104px; }
.cert-more strong { color: var(--text-2); font-size: 15px; }
.cert-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 30px; border: 1px dashed var(--border-2); border-radius: var(--radius); }

/* community */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.bullets li { padding-left: 26px; position: relative; color: var(--text-2); font-size: 16px; }
.bullets li::before { content: "◆"; position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 12px; }
.terminal { background: var(--portrait-bg); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a2c56; }
.terminal-bar span:nth-child(1) { background: #fb7185; } .terminal-bar span:nth-child(2) { background: #fbbf24; } .terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: #7d7196; }
.terminal pre { margin: 0; padding: 18px; font-size: 13px; line-height: 1.7; color: #cbb9e6; white-space: pre-wrap; }
.c-prompt { color: #c084fc; } .c-ok { color: #34d399; } .c-warn { color: #fbbf24; } .c-dim { color: #7d7196; } .c-accent { color: #f472b6; }

/* contact */
.contact-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 48px; }
.contact-card p { color: var(--text-2); font-size: 16.5px; margin-top: 12px; }
.contact-links { display: grid; gap: 10px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-weight: 500; transition: border-color .2s, transform .15s; }
.contact-links a:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-links a span { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* footer */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 32px 0 40px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--border); position: relative; z-index: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* command palette */
.palette { position: fixed; inset: 0; z-index: 100; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(6,3,12,.64); backdrop-filter: blur(4px); }
.palette-box { position: relative; width: min(600px, 100% - 32px); margin: 12vh auto 0; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--accent); }
.palette-input input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: var(--mono); font-size: 15px; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.palette-list li .pi { font-family: var(--mono); font-size: 12px; color: var(--accent); width: 28px; }
.palette-list li .ph { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.palette-list li.sel, .palette-list li:hover { background: var(--accent-dim); }
.palette-list .none { color: var(--text-3); cursor: default; }

/* AI chat */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: #fff; border: 0; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.chat-fab:hover { transform: translateY(-2px); background: var(--accent-hover); }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: min(380px, 100% - 40px); height: min(560px, 80vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: pop .2s ease-out; }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head .dim { font-size: 11px; }
.chat-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggest button { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: transparent; border: 1px solid var(--border-2); color: var(--text-2); }
.chat-suggest button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 14px; outline: 0; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form button { width: 42px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-size: 14px; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-portrait { order: -1; max-width: 320px; }
  .hero-text { max-width: none; }
  .about-grid, .community-grid, .contact-card { grid-template-columns: 1fr; }
  .focus-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  #palette-btn .kbd:first-child { display: none; }
  .section { padding: 64px 0; }
  .focus-grid, .cert-grid, .project-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px; }
  .hero-stats { gap: 22px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 14px; }
}

/* ============================================================
   BOOT INTRO — secure-shell loader
   ============================================================ */
body.booting { overflow: hidden; }
.boot { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; background: radial-gradient(120% 90% at 50% 30%, #140b22 0%, var(--bg) 60%); overflow: hidden;
  transition: opacity .7s ease, visibility .7s; }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-grid { position: absolute; left: -20%; right: -20%; bottom: -2px; height: 48vh; pointer-events: none;
  background-image: linear-gradient(rgba(168,85,247,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(168,85,247,.14) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(420px) rotateX(72deg); transform-origin: bottom center;
  mask-image: linear-gradient(transparent 0%, #000 55%); }
.boot-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 38% at 50% 52%, rgba(168,85,247,.10), transparent 62%); }
.boot-title { position: relative; z-index: 1; font-size: clamp(34px, 7vw, 74px); font-weight: 700; letter-spacing: .06em; color: var(--text); }
.boot-term { position: relative; z-index: 1; width: min(600px, 92vw); background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--glow), var(--shadow); backdrop-filter: blur(8px); overflow: hidden; }
.boot-term-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.boot-term-head #boot-pct { color: var(--accent); font-weight: 700; }
.boot-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; }
.boot-log { height: 190px; padding: 14px 16px; font-size: 13px; line-height: 1.85; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.boot-line { display: flex; justify-content: space-between; gap: 16px; white-space: nowrap; }
.boot-line .cmd { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.boot-line .cmd::before { content: "› "; color: var(--accent); }
.boot-line .st { flex: 0 0 auto; font-weight: 700; }
.st-exec { color: var(--accent-3); } .st-ok { color: var(--ok); } .st-warn { color: var(--accent-2); }
.boot-bar { height: 6px; background: rgba(255,255,255,.06); }
.boot-bar #boot-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width .18s ease; }
.boot-skip { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text-2); font-size: 12px; letter-spacing: .08em; }
.boot-skip:hover { color: var(--text); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .boot { transition: none; } }
