/* ==========================================================================
   Liberty James — Portfolio
   Plain CSS. Multi-theme tokens, bento grid, terminal, palette, cursor.
   ========================================================================== */

/* ---------- THEMES ---------- */
:root {
  --bg: #0a0e1a;
  --bg-2: #0d1326;
  --surface: #111830;
  --surface-2: #182042;
  --border: rgba(255,255,255,.09);
  --text: #e8ecff;
  --muted: #a7b0d0;
  --dim: #7b86ab;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #34d399;
  --ring: color-mix(in srgb, var(--accent) 55%, transparent);
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --radius: 16px;
  --maxw: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 66px;
  --grain-opacity: .035;
  --is-light: 0;
}
[data-theme="tokyo"] {
  --bg: #0b0a16; --bg-2: #100e1f; --surface: #16132b; --surface-2: #1f1a3a;
  --accent: #bb9af7; --accent-2: #7aa2f7; --accent-3: #9ece6a;
}
[data-theme="sunset"] {
  --bg: #150a12; --bg-2: #1c0d18; --surface: #241024; --surface-2: #2f1530;
  --accent: #f472b6; --accent-2: #fb923c; --accent-3: #facc15;
}
[data-theme="forest"] {
  --bg: #08120d; --bg-2: #0a1710; --surface: #0f1f16; --surface-2: #14281d;
  --accent: #34d399; --accent-2: #4ade80; --accent-3: #a3e635;
}
[data-theme="ocean"] {
  --bg: #06111c; --bg-2: #081626; --surface: #0c1e33; --surface-2: #102844;
  --accent: #38bdf8; --accent-2: #2dd4bf; --accent-3: #60a5fa;
}
[data-theme="mono"] {
  --bg: #08080a; --bg-2: #0d0d10; --surface: #131317; --surface-2: #1b1b21;
  --accent: #e5e7eb; --accent-2: #9ca3af; --accent-3: #d1d5db;
}
[data-theme="daylight"] {
  --is-light: 1;
  --bg: #f6f7fb; --bg-2: #eef1f8; --surface: #ffffff; --surface-2: #f1f4fb;
  --border: rgba(15,23,42,.1); --text: #0d1526; --muted: #4a5470; --dim: #6b7490;
  --accent: #4f46e5; --accent-2: #0891b2; --accent-3: #059669;
  --shadow: 0 24px 55px -30px rgba(15,23,42,.4);
  --grain-opacity: .02;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--text); font-weight: 700; }
button { font-family: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
kbd {
  font-family: var(--mono); font-size: .72em; padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- CURSOR ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1.5px solid #fff; transform: translate(-50%,-50%); transition: width .18s, height .18s, background .18s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%,-50%); }
.cursor.grow { width: 56px; height: 56px; background: rgba(255,255,255,.12); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- SCROLL BAR + DOTS ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); }
.dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.dots a { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: 1px solid var(--dim); position: relative; transition: transform .2s, background .2s; }
.dots a::after { content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: .72rem; font-family: var(--mono); white-space: nowrap; background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover::after { opacity: 1; }
.dots a.active { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
@media (max-width: 980px) { .dots { display: none; } }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: var(--nav-h); padding: 0 22px; display: flex; align-items: center; gap: 14px; }
.nav__brand { font-family: var(--mono); font-weight: 700; font-size: 1.3rem; }
.nav__brand span { color: var(--accent-2); }
.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 10px; font-size: .9rem; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.k-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .84rem; cursor: pointer; transition: border-color .2s, color .2s; }
.k-btn:hover { color: var(--text); border-color: var(--accent); }
.k-btn kbd { background: transparent; border: 0; }
.theme-switch { position: relative; }
.theme-switch > button { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; display: grid; place-items: center; }
.theme-switch__dot { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--ring); }
.theme-menu { position: absolute; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 210px; }
.theme-menu.open { display: grid; }
.theme-menu button { display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--muted); font-size: .7rem; cursor: pointer; padding: 6px; border-radius: 10px; }
.theme-menu button:hover, .theme-menu button.active { background: var(--surface-2); color: var(--text); }
.theme-menu .sw { width: 22px; height: 22px; border-radius: 50%; }
.nav__toggle { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 84px) 0 84px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blob--1 { width: 460px; height: 460px; background: var(--accent); top: -120px; left: -80px; }
.blob--2 { width: 420px; height: 420px; background: var(--accent-2); top: -40px; right: -100px; opacity: .35; }
.blob--3 { width: 420px; height: 420px; background: var(--accent-3); bottom: -180px; left: 40%; opacity: .28; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%); opacity: .5; }
.hero__eyebrow { font-family: var(--mono); font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-3) 25%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero__name { font-size: clamp(2.7rem, 7.5vw, 5rem); line-height: 1; margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 900; background: linear-gradient(120deg, var(--text), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__role { font-family: var(--mono); font-size: clamp(1rem, 2.6vw, 1.4rem); color: var(--accent-2); margin: 0 0 16px; min-height: 1.6em; }
.caret { animation: blink 1s step-end infinite; }
@keyframes blink { 50%{opacity:0} }
.hero__lead { max-width: 640px; color: var(--muted); font-size: 1.06rem; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 34px; padding: 0; margin: 0 0 30px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; font-weight: 800; }
.hero__stats span { font-size: .76rem; color: var(--dim); text-transform: uppercase; letter-spacing: .09em; }
.hero__hint { background: none; border: 0; color: var(--dim); font-size: .82rem; font-family: var(--mono); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.hero__hint:hover { color: var(--accent-2); }
.hero__hint code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* ---------- BUTTONS ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .93rem; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .25s, background .2s; }
.btn--primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 14px 34px -14px var(--accent); }
.btn--ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.magnetic { will-change: transform; }

/* ---------- SECTIONS ---------- */
.section { padding: 84px 0; }
.section__title { font-size: clamp(1.55rem, 4vw, 2.1rem); margin: 0 0 32px; display: flex; align-items: baseline; gap: 12px; }
.section__title span { font-family: var(--mono); font-size: 1rem; color: var(--accent-2); }
.subhead { font-size: 1.15rem; margin: 46px 0 20px; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento__cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.bento__cell:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.bento__cell--wide { grid-column: span 2; }
.bento__label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); margin: 0 0 10px; }
.bento p { margin: 0; color: var(--muted); font-size: .94rem; }
.bento__big { font-size: 1.35rem; font-weight: 800; color: var(--text) !important; margin-bottom: 4px !important; }
.bento__sub { font-size: .88rem; color: var(--dim); }
.bento__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bento__chips span { font-family: var(--mono); font-size: .74rem; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__cell--wide { grid-column: span 1; } }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.tl-item__date { font-family: var(--mono); font-size: .8rem; color: var(--accent-2); }
.tl-item__role { margin: 4px 0 2px; font-size: 1.18rem; }
.tl-item__org { margin: 0 0 12px; color: var(--dim); font-size: .92rem; }
.tl-item__bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.tl-item__bullets li { margin-bottom: 8px; }

/* ---------- FILTERS + GRID + CARDS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font-family: var(--mono); font-size: .78rem; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.grid { display: grid; gap: 18px; }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, opacity .3s; display: flex; flex-direction: column; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.card.hide { display: none; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card__icon { font-size: 1.4rem; }
.card__tag { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); padding: 3px 9px; border-radius: 999px; }
.card__title { margin: 0 0 8px; font-size: 1.08rem; }
.card__title a:hover { color: var(--accent-2); }
.card__desc { color: var(--muted); font-size: .92rem; margin: 0 0 16px; flex: 1; }
.card__stack { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.card__stack li { font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 7px; }
.card__links { margin-top: 14px; display: flex; gap: 14px; font-size: .85rem; }
.card__links a { color: var(--accent-2); font-weight: 600; }
.card__links a:hover { text-decoration: underline; }
.card--skeleton { min-height: 200px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- SKILLS ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; margin-bottom: 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--mono); font-size: 1rem; color: var(--dim); white-space: nowrap; }
.marquee__track span::before { content: "◆"; color: var(--accent); margin-right: 10px; }
@keyframes scroll { to { transform: translateX(-50%); } }
.grid--skills { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.skill { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.skill h3 { margin: 0 0 14px; font-size: 1rem; color: var(--accent-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; color: var(--muted); }

/* ---------- EDUCATION ---------- */
.edu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.edu + .edu { margin-top: 16px; }
.edu__head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.edu__head h3 { margin: 0; }
.edu__org { margin: 4px 0 0; color: var(--dim); }
.edu__date { font-family: var(--mono); font-size: .85rem; color: var(--accent-2); }
.edu__desc { margin: 14px 0 0; color: var(--muted); }

/* ---------- CONTACT ---------- */
.section--contact { text-align: center; }
.contact__eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--accent-2); margin: 0 0 10px; }
.contact__title { font-size: clamp(2rem, 5.5vw, 3rem); margin: 0 0 12px; font-weight: 900; letter-spacing: -.02em; }
.contact__lead { max-width: 560px; margin: 0 auto 26px; color: var(--muted); }
.contact__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.contact__links { list-style: none; display: flex; justify-content: center; gap: 24px; padding: 0; margin: 0; }
.contact__links a { color: var(--muted); font-weight: 600; }
.contact__links a:hover { color: var(--accent-2); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; color: var(--dim); font-size: .85rem; }
.footer__note { font-family: var(--mono); font-size: .78rem; }
.linkbtn { background: none; border: 0; color: var(--accent-2); font-family: var(--mono); font-size: .78rem; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* ---------- BACK TO TOP ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- OVERLAYS (palette / terminal / help) ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.overlay[hidden] { display: none; }
.palette { width: 100%; max-width: 600px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.palette__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.palette__bar input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-size: 1rem; font-family: var(--font); }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 46vh; overflow-y: auto; }
.palette__list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); cursor: pointer; }
.palette__list li .pi { width: 20px; text-align: center; }
.palette__list li small { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.palette__list li.active { background: var(--surface-2); color: var(--text); }
.palette__foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--dim); font-family: var(--mono); }
.palette__empty { padding: 22px; text-align: center; color: var(--dim); }

/* terminal */
.term { width: 100%; max-width: 720px; background: #0a0c14; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-family: var(--mono); animation: pop .18s ease; }
[data-theme="daylight"] .term { background: #0f1117; }
.term__head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #12151f; border-bottom: 1px solid rgba(255,255,255,.07); }
.term__dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.term__title { margin-left: 8px; color: #8b93ad; font-size: .8rem; }
.term__close { margin-left: auto; background: none; border: 0; color: #8b93ad; cursor: pointer; font-size: .9rem; }
.term__body { padding: 16px; height: 46vh; overflow-y: auto; font-size: .86rem; line-height: 1.6; color: #cdd3e6; white-space: pre-wrap; word-break: break-word; }
.term__body .c-cmd { color: #7ee787; }
.term__body .c-err { color: #ff7b72; }
.term__body .c-dim { color: #8b93ad; }
.term__body .c-acc { color: #79c0ff; }
.term__body .c-warn { color: #d2a8ff; }
.term__input { display: flex; align-items: center; gap: 8px; padding: 10px 16px 16px; }
.term__prompt { color: #7ee787; font-size: .86rem; }
.term__input input { flex: 1; background: none; border: 0; outline: 0; color: #cdd3e6; font-family: var(--mono); font-size: .86rem; }

/* help */
.help .palette__bar { justify-content: space-between; }
.help__list { list-style: none; margin: 0; padding: 12px 16px 18px; }
.help__list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--muted); }
.help__list li:last-child { border-bottom: 0; }

/* ---------- TOAST ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--surface); border: 1px solid var(--accent); color: var(--text); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- MATRIX ---------- */
.matrix { position: fixed; inset: 0; z-index: 150; display: none; background: rgba(0,0,0,.9); }
.matrix.on { display: block; }

/* ---------- BOOT ---------- */
.boot { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(340px, 80vw); text-align: center; }
.boot__logo { font-family: var(--mono); font-weight: 700; font-size: 2.4rem; color: var(--accent-2); margin-bottom: 16px; }
.boot__bar { height: 3px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.boot__log { margin-top: 12px; font-family: var(--mono); font-size: .74rem; color: var(--dim); min-height: 1.4em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 22px 18px; transform: translateY(-140%); transition: transform .3s ease; margin-left: 0; }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 12px 8px; }
  .nav__toggle { display: flex; flex-direction: column; gap: 4px; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
  .nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .k-btn span, .k-btn kbd { display: none; }
}
@media (max-width: 520px) {
  .hero__stats { gap: 22px; }
  .footer__inner { flex-direction: column; }
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .cursor, .cursor-dot, .matrix, .blob { display: none !important; }
}
