/* Karthik portfolio — engineering-log dark aesthetic */

:root {
  --accent: #3b82f6;
  --bg: #07080a;
  --bg-1: #0c0e12;
  --bg-2: #11141a;
  --line: #1a1d24;
  --line-2: #232831;
  --fg: #e6e8ec;
  --fg-2: #a8aeb9;
  --fg-3: #6b7280;
  --pass: #22c55e;
  --fail: #ef4444;
  --warn: #f59e0b;

  --f-grotesk: "Inter Tight", "Geist", -apple-system, "Helvetica Neue", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-display: var(--f-grotesk);
  --f-body: var(--f-grotesk);
  --f-code: var(--f-mono);

  --pad: 32px;
  --gap: 24px;
  --container: 1240px;
}

[data-font="serif"]  { --f-display: var(--f-serif); }
[data-font="mono"]   { --f-display: var(--f-mono); }
[data-font="grotesk"]{ --f-display: var(--f-grotesk); }

[data-density="compact"] { --pad: 22px; --gap: 16px; }

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, color-mix(in oklch, var(--accent) 5%, transparent), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

::selection { background: color-mix(in oklch, var(--accent) 40%, transparent); color: #fff; }

.app { min-height: 100vh; }
main { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.muted { color: var(--fg-3); font-weight: 400; }
.hl { color: var(--fg); border-bottom: 1px dashed color-mix(in oklch, var(--accent) 60%, transparent); padding-bottom: 1px; }

/* ─── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 85%, transparent); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; }
.brand-mark { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 12px var(--accent); }
.brand-text { letter-spacing: -0.01em; font-weight: 500; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-2); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-1);
  transition: all .15s;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 12%, transparent);
}

/* ─── HERO ──────────────────────────────────────────── */
.hero { padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1fr 560px; gap: 56px; align-items: center; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } }

.meta-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; color: var(--fg-3);
  margin-bottom: 28px;
}
.meta-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.meta-sep { color: var(--line-2); }

.hero-h {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: balance;
}
[data-font="serif"] .hero-h { font-weight: 400; letter-spacing: -0.015em; }
.hero-em { color: var(--fg); font-style: italic; }
[data-font="serif"] .hero-em { font-family: var(--f-serif); }

.hero-sub {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 540px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 8px;
  transition: all .15s;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--accent);
  color: #000;
  font-weight: 500;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 30%, transparent);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in oklch, var(--accent) 25%, transparent); }
.btn.ghost {
  border-color: var(--line-2);
  background: var(--bg-1);
  color: var(--fg-2);
}
.btn.ghost:hover { border-color: var(--fg-3); color: var(--fg); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 16px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero-stats span { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-right { display: flex; flex-direction: column; gap: 8px; }
.ascii-rule {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--fg-3);
  text-align: center; opacity: 0.7;
}

/* ─── TEST RUNNER ──────────────────────────────────────────── */
.test-runner {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 0 1px color-mix(in oklch, var(--accent) 8%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.tr-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.tr-dots { display: flex; gap: 6px; }
.tr-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.tr-dots span:nth-child(1) { background: #ff5f57; }
.tr-dots span:nth-child(2) { background: #febc2e; }
.tr-dots span:nth-child(3) { background: #28c840; }
.tr-title { color: var(--fg-2); font-size: 11.5px; flex: 1; text-align: center; }
.tr-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fg-3); }
.tr-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); }
.tr-pulse.live { background: var(--pass); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--pass) 60%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklch, var(--pass) 0%, transparent); }
}

.tr-body {
  padding: 14px 16px;
  min-height: 320px;
  max-height: 320px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.tr-line {
  display: grid;
  grid-template-columns: 14px auto 14px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  animation: lineIn .25s ease-out;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.tr-mark { font-weight: 600; }
.tr-line.pass .tr-mark { color: var(--pass); }
.tr-line.fail .tr-mark { color: var(--fail); }
.tr-file { color: var(--accent); }
.tr-arrow { color: var(--fg-3); }
.tr-name { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-line.fail .tr-name { color: var(--fg); }
.tr-ms { color: var(--fg-3); font-size: 11px; }
.tr-running { opacity: 0.7; }
.tr-spinner { color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tr-footer {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 11.5px;
}
.tr-stat { display: flex; align-items: center; gap: 6px; color: var(--fg-2); }
.tr-stat .dot { width: 6px; height: 6px; border-radius: 50%; }
.tr-stat .dot.pass { background: var(--pass); }
.tr-stat .dot.fail { background: var(--fail); }
.tr-stat .dot.mute { background: var(--fg-3); }
.tr-dur { margin-left: auto; color: var(--fg-3); }

/* agent variant */
.tr-body.agent { gap: 10px; padding: 16px; }
.agent-step { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; animation: lineIn .3s ease-out; }
.agent-kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  color: var(--fg-3);
  text-align: center;
  background: var(--bg);
}
.agent-step.user .agent-kind    { color: #fff; border-color: #fff3; }
.agent-step.thought .agent-kind { color: var(--warn); border-color: color-mix(in oklch, var(--warn) 40%, transparent); }
.agent-step.tool .agent-kind    { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 40%, transparent); }
.agent-step.done .agent-kind    { color: var(--pass); border-color: color-mix(in oklch, var(--pass) 40%, transparent); }
.agent-text { color: var(--fg); font-size: 12.5px; }
.agent-step.thought .agent-text { color: var(--fg-2); font-style: italic; }
.agent-step.tool .agent-text    { color: var(--fg); }
.agent-result { color: var(--fg-3); font-size: 11.5px; margin-top: 2px; }

/* perf variant */
.tr-body.perf { padding: 0; min-height: 320px; max-height: 320px; }
.perf-svg { width: 100%; height: 200px; display: block; }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.perf-grid > div { background: var(--bg-1); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.perf-k { font-size: 10.5px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.perf-v { font-size: 18px; font-family: var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums; }

/* ─── SECTIONS ──────────────────────────────────────────── */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
[data-density="compact"] .section { padding: 56px 0; }

.section-h {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}
.section-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--f-display);
  font-size: 44px;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  line-height: 1;
}
[data-font="serif"] .section-title { font-weight: 400; }
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
  align-self: end;
  margin-bottom: 12px;
}

/* ─── ABOUT ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-prose { font-size: 17px; color: var(--fg-2); }
.about-prose .lead { font-size: 22px; color: var(--fg); line-height: 1.4; margin-top: 0; text-wrap: pretty; }
.about-prose .lead em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--fg); }
.about-prose p { margin: 18px 0; }
.about-quote {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklch, var(--accent) 6%, transparent);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--fg-2);
  font-size: 0.92em;
}

.about-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 0;
  font-family: var(--f-mono);
  font-size: 12.5px;
  height: fit-content;
}
.card-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 11px 18px;
  border-bottom: 1px dashed var(--line);
  gap: 12px;
}
.card-row.last { border-bottom: none; }
.card-row span { color: var(--fg-3); }
.card-row strong { color: var(--fg); font-weight: 500; }
.status-live { color: var(--pass) !important; }

/* ─── SKILLS ──────────────────────────────────────────── */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
@media (max-width: 800px) { .skills-grid { grid-template-columns: 1fr; gap: 32px; } }

.skill-col-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.skill-col-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.skill-col-rule { height: 1px; flex: 1; background: var(--line); }

.skill-row {
  display: grid;
  grid-template-columns: 200px 1fr 36px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.skill-name { font-size: 14px; color: var(--fg); }
.skill-bar { position: relative; height: 8px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 10px color-mix(in oklch, var(--accent) 50%, transparent);
  transition: width .8s cubic-bezier(.5,.1,.2,1);
}
.skill-bar-ticks { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(20, 1fr); pointer-events: none; }
.skill-bar-ticks span { border-right: 1px solid color-mix(in oklch, var(--bg) 40%, transparent); }
.skill-bar-ticks span:last-child { border-right: none; }
.skill-pct { font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }

/* ─── PROJECTS ──────────────────────────────────────────── */
.proj-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.proj-filters { display: flex; gap: 6px; }
.chip {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.chip:hover { color: var(--fg); border-color: var(--fg-3); }
.chip.active { color: #000; background: var(--accent); border-color: var(--accent); }
.chip-count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: color-mix(in oklch, currentColor 20%, transparent);
}
.chip.active .chip-count { background: rgba(0,0,0,0.2); }
.proj-gh-link { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); margin-left: auto; }
.proj-gh-link:hover { color: var(--accent); }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 14px;
}
.proj-card:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.proj-card.pinned { border-color: color-mix(in oklch, var(--accent) 25%, var(--line)); }

.proj-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proj-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  flex: 1;
  min-width: 0;
}
.proj-name a { color: var(--accent); }
.proj-name a:hover { text-decoration: underline; }
.proj-name svg { color: var(--fg-3); flex-shrink: 0; }

.badge {
  font-family: var(--f-mono); font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pinned-badge { color: var(--fg-3); }
.fresh-badge { background: color-mix(in oklch, var(--accent) 12%, transparent); }

.proj-meta { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3); }

.proj-desc { font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.55; }

.proj-impact {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.impact-label {
  font-family: var(--f-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
}
.impact-val { font-size: 13.5px; color: var(--fg); font-style: italic; font-family: var(--f-serif); }

.proj-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.proj-lang { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-2); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; }
.proj-tech { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.tech-pill {
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg-3);
  border: 1px solid var(--line);
}

/* ─── JOURNEY ──────────────────────────────────────────── */
.tl { position: relative; padding-left: 24px; }
.tl-axis { position: absolute; left: 124px; top: 12px; bottom: 12px; width: 1px; }
@media (max-width: 700px) { .tl-axis { left: 8px; } }

.tl-row {
  display: grid;
  grid-template-columns: 100px 24px 1fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}
@media (max-width: 700px) { .tl-row { grid-template-columns: 0 24px 1fr; } .tl-when { display: none; } }

.tl-when {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--fg-3); text-align: right;
  padding-top: 4px;
}
.tl-row.current .tl-when { color: var(--accent); }
.tl-node { position: relative; height: 24px; display: flex; align-items: center; justify-content: center; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; z-index: 2; }
.tl-pulse {
  position: absolute;
  width: 9px; height: 9px; border-radius: 50%;
  animation: tlpulse 1.6s infinite;
}
@keyframes tlpulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}

.tl-card {
  border-left: 1px solid var(--line);
  padding: 0 0 0 20px;
  margin-left: -8px;
}
.tl-card h4 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.tl-card p { margin: 0; color: var(--fg-2); font-size: 14.5px; max-width: 640px; }
.now-tag {
  font-family: var(--f-mono); font-size: 9.5px;
  padding: 2px 7px;
  border: 1px solid;
  border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 400;
}

/* ─── NOW ──────────────────────────────────────────── */
.now-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 760px;
}
.now-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--fg-3);
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.now-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; animation: pulse 2s infinite; }
.now-loc { color: var(--fg-3); }

.now-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.now-list li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: baseline; font-size: 15px; }
.now-tag-l {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.now-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3);
}
.now-foot a { color: var(--accent); }

/* ─── EXPERIENCE ──────────────────────────────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 36px; }
.exp-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
@media (max-width: 800px) { .exp-row { grid-template-columns: 1fr; gap: 8px; } }
.exp-span { font-family: var(--f-mono); font-size: 12.5px; color: var(--fg-3); padding-top: 6px; }
.exp-body h4 {
  margin: 0 0 14px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.exp-co { color: var(--fg-3); font-weight: 400; }
.exp-body ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-body li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.55;
}
.exp-body li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
  font-family: var(--f-mono);
}

/* ─── CONTACT ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-prose h3 {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
}
.contact-prose p { color: var(--fg-2); margin: 0 0 24px; max-width: 460px; }
.contact-links { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cl {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 12px 16px;
  background: var(--bg-1);
  font-family: var(--f-mono); font-size: 13px;
  transition: all .15s;
}
.cl:hover { background: var(--bg-2); }
.cl:hover .cl-v { color: var(--accent); }
.cl-k { color: var(--fg-3); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; align-self: center; }
.cl-v { color: var(--fg); transition: color .15s; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-3);
}
.contact-form input, .contact-form textarea {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  color: var(--fg);
  font-size: 14px;
  font-family: var(--f-body);
  transition: border-color .15s, box-shadow .15s;
  resize: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 15%, transparent);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { font-family: var(--f-mono); font-size: 12px; color: var(--pass); }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 32px;
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.ascii-art {
  font-family: var(--f-mono); font-size: 10.5px;
  color: var(--fg-3);
  white-space: pre;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.6;
  overflow-x: auto;
}
.footer-row {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--fg-3);
  flex-wrap: wrap;
}
.footer-sep { color: var(--line-2); }

/* responsive nav */
@media (max-width: 720px) {
  .nav-links { display: none; }
}
