/* ---- fonts ---- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens ---- */
:root {
  --bg: #080a0b;
  --bg-1: #0d1013;
  --bg-2: #121619;
  --line: #1e2428;
  --line-2: #2a3238;
  --fg: #e6edf0;
  --fg-dim: #9aa6ad;
  --fg-faint: #5b666d;
  --accent: #00ff9d;
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 45%, transparent);
  --red: #ff6b6b;
  --amber: #ffbf47;
  --blue: #7aa2f7;
  --violet: #c4b5fd;

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --pad-y: 96px;
  --radius: 8px;
}

[data-density="compact"] {
  --pad-y: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle grid in the background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  z-index: 0;
}

/* optional CRT scanlines */
body[data-scanlines="true"]::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(255,255,255,0.018) 2px 3px
  );
  z-index: 1;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.mono  { font-family: var(--mono); }
.dim   { color: var(--fg-dim); }
.faint { color: var(--fg-faint); }
.accent { color: var(--accent); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
}
.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
}
@media (max-width: 1040px) {
  .nav-links a.secondary { display: none; }
}
@media (max-width: 780px) {
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; }
}
.nav-links a {
  padding: 6px 12px;
  color: var(--fg-dim);
  border-radius: 6px;
  transition: all .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-1); }
.nav-links a .hash { color: var(--accent); margin-right: 2px; }

.nav-cta {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--fg);
  transition: all .15s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---- hero ---- */
.hero {
  padding: 64px 0 var(--pad-y);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-dim);
  background: var(--bg-1);
}
.badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .slash {
  color: var(--fg-faint);
  font-family: var(--mono);
  font-weight: 400;
}

.hero-sub {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.6;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
}
.hero-meta .kv span:first-child { color: var(--fg-faint); }
.hero-meta .kv span:last-child  { color: var(--fg); margin-left: 6px; }

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: #001b10;
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover {
  color: #001b10;
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

/* ---- terminal widget ---- */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 40px 80px -20px rgba(0,0,0,0.6);
  font-family: var(--mono);
  font-size: 13px;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}
.term-dots span:nth-child(1) { background: #ff5f57; }
.term-dots span:nth-child(2) { background: #febc2e; }
.term-dots span:nth-child(3) { background: #28c840; }
.term-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-dim);
}
.term-body {
  padding: 18px 18px 22px;
  min-height: 280px;
  line-height: 1.7;
}
.term-line  { white-space: pre-wrap; }
.term-user  { color: var(--blue); }
.term-at    { color: var(--fg-faint); }
.term-host  { color: var(--violet); }
.term-path  { color: var(--amber); }
.term-cmd   { color: var(--fg); }
.term-out   { color: var(--fg-dim); }
.term-out.ok { color: var(--accent); }
.term-out.warn { color: var(--amber); }

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.05s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- sections ---- */
.section { padding: var(--pad-y) 0; position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 18px;
}
.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-sub {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-faint);
}

/* ---- about ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 18px;
}
.about-text p.dim { color: var(--fg-dim); }

.facts {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 8px;
  font-family: var(--mono);
  font-size: 13px;
}
.fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact-k { color: var(--fg-faint); }
.fact-v { color: var(--fg); }

/* ---- stack ---- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }

.stack-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 18px;
  transition: all .2s;
}
.stack-group:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stack-group h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-group h4::before { content: "//"; color: var(--fg-faint); }
.stack-group ul {
  list-style: none;
  padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-group li { display: flex; align-items: center; gap: 8px; }
.stack-group li::before { content: "▸"; color: var(--fg-faint); font-size: 10px; }

/* ---- experience ---- */
.exp-list { display: flex; flex-direction: column; }
.exp {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.exp:last-child { border-bottom: 1px solid var(--line); }
.exp:hover { background: linear-gradient(to right, transparent, var(--bg-1) 30%, transparent); }
.exp-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  padding-top: 4px;
}
.exp-date .current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  margin-top: 6px;
}
.exp-date .current::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}
.exp-role {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.exp-company {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.exp-company .loc { color: var(--fg-faint); margin-left: 8px; }
.exp-bullets {
  list-style: none;
  padding: 0; margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.65;
}
.exp-bullets li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.exp-bullets li::before {
  content: "$";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--fg-dim);
}

/* ---- projects ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .projects-grid { grid-template-columns: 1fr; } }
[data-projects-layout="list"] .projects-grid { grid-template-columns: 1fr; }

.project {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.project::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.project:hover::before { opacity: 1; }
.project:hover { border-color: var(--line-2); transform: translateY(-2px); }
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.project-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.project-id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
}
.project-desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  margin: 0 0 16px;
  line-height: 1.6;
  flex: 1;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.project-foot .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
}
.project-foot .status .d {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.project-foot .status.archived .d { background: var(--fg-faint); }
.project-foot .links { display: flex; gap: 12px; color: var(--fg-dim); }
.project-foot .links a:hover { color: var(--accent); }

/* ---- services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 22px;
}
.service .sv-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}
.service h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.service p  { color: var(--fg-dim); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---- github stats ---- */
.gh-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
@media (max-width: 820px) { .gh-grid { grid-template-columns: 1fr; } }

.gh-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 22px;
}
.gh-card h4 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.gh-card h4 .accent { color: var(--accent); }

.contrib-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: 3px;
}
.contrib-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-2);
}
.contrib-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  margin-top: 14px;
}
.contrib-legend .scale { display: flex; gap: 3px; }
.contrib-legend .scale span { width: 11px; height: 11px; border-radius: 2px; background: var(--bg-2); }

.stat-rows { display: flex; flex-direction: column; gap: 12px; }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 6px;
}
.stat-row .k { color: var(--fg-dim); }
.stat-row .v { color: var(--fg); font-weight: 600; }

.lang-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-top: 16px;
}
.lang-bar span { height: 100%; }
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.lang-list .l { display: flex; align-items: center; gap: 6px; color: var(--fg-dim); }
.lang-list .l .d { width: 8px; height: 8px; border-radius: 50%; }
.lang-list .l .pct { color: var(--fg-faint); margin-left: 2px; }

/* ---- writing ---- */
.writing-list { display: flex; flex-direction: column; }
.article {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: all .2s;
}
.article:last-child { border-bottom: 1px solid var(--line); }
.article:hover { padding-left: 10px; color: var(--accent); }
.article-date  { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }
.article-title { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.article-meta  { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }

/* ---- architecture ---- */
.arch-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

/* ---- contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-intro h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}
.contact-intro h2 .accent { color: var(--accent); }
.contact-intro p {
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 380px;
  margin: 0 0 24px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.contact-channels a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  transition: all .15s;
}
.contact-channels a:hover { border-color: var(--accent); color: var(--accent); }
.contact-channels .k { color: var(--fg-faint); }
.contact-channels .v { color: var(--fg); }
.contact-channels a:hover .v { color: var(--accent); }

.contact-form {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  padding: 22px;
  font-family: var(--mono);
}
.contact-form .form-head {
  font-size: 12px;
  color: var(--fg-faint);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.contact-form .form-head .accent { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--fg-faint); }
.field label::before { content: "> "; color: var(--accent); }
.field input,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 6px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  margin-top: 60px;
}
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-inner .status { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-dim); }
.foot-inner .status .d {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ---- tweaks panel (live theme editor) ---- */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.tweaks-panel h4 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-panel h4::before { content: "$ tweaks --live"; }
.tweaks-panel h4 .close {
  background: none;
  border: 0;
  color: var(--fg-faint);
  cursor: pointer;
  font-family: var(--mono);
}
.tweak-row { margin-bottom: 12px; }
.tweak-row label { display: block; color: var(--fg-faint); margin-bottom: 6px; }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatches button {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--sw);
}
.tweak-swatches button.active { border-color: var(--fg); }
.tweak-row .seg {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px;
}
.tweak-row .seg button {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}
.tweak-row .seg button.active { background: var(--bg); color: var(--accent); }

/* ---- fade-in utility ---- */
.fade-in {
  animation: fade .6s ease-out both;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
