/* =============================================================
   nycdev — STYLES
   Concept: a dim, late-night observatory. Deep navy void,
   glowing dev orbs, terminal-grade typography.
   ============================================================= */

/* ---------- Reset + tokens --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #050511;
  color: #d8dafc;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --bg-deep:    #050511;
  --bg-soft:    #0d0d22;
  --ink:        #e6e7ff;
  --ink-dim:    #8a8db8;
  --ink-faint:  #4a4d76;
  --accent:     #b3a8ff;
  --line:       rgba(180, 170, 255, 0.18);
  --panel-bg:   rgba(15, 15, 32, 0.78);

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Major Mono Display", "JetBrains Mono", monospace;
}

button { font-family: inherit; color: inherit; cursor: pointer; }
img { display: block; }

/* ---------- Stage ------------------------------------------ */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#cosmos-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.node-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;        /* children re-enable */
}
.node-layer > * { pointer-events: auto; }

/* ---------- Chrome (brand, legend, hint) ------------------- */
.chrome {
  position: absolute;
  z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  user-select: none;
}
.chrome-tl { top: 22px; left: 26px; }
.chrome-tr { top: 22px; right: 26px; }
.chrome-bc { bottom: 22px; left: 50%; transform: translateX(-50%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
  text-shadow: 0 0 24px rgba(170, 150, 255, 0.7);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.05em;
}

/* Nav (top-right) — projects button */
.nav-btn {
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.nav-btn:hover {
  color: white;
  border-color: rgba(180, 170, 255, 0.4);
  background: rgba(20, 18, 45, 0.85);
}
.nav-btn:active { transform: scale(0.97); }
.nav-btn-bracket {
  color: var(--ink-faint);
  transition: color 0.2s;
}
.nav-btn:hover .nav-btn-bracket { color: hsl(265, 80%, 75%); }

.hint {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-dim);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hint.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
.hint-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b3ff95;
  box-shadow: 0 0 0 0 rgba(140, 255, 100, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(140, 255, 100, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(140, 255, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 255, 100, 0); }
}

/* ---------- DEV NODES -------------------------------------- */
.dev-node {
  position: absolute; left: 0; top: 0;
  width: 88px; height: 88px;
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: filter 0.4s ease, opacity 0.4s ease;
  --accent-hue: 200;
  /* transform set by JS */
}
.dev-node.dimmed { opacity: 0.35; filter: saturate(0.6); }
.dev-node.active { filter: brightness(1.2); }

.dev-aura {
  position: absolute; inset: -22px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    hsla(var(--accent-hue), 100%, 70%, 0.55),
    hsla(var(--accent-hue), 100%, 70%, 0) 70%
  );
  filter: blur(8px);
  animation: aura-breathe 4s ease-in-out infinite;
}
@keyframes aura-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.dev-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid hsla(var(--accent-hue), 90%, 75%, 0.55);
  box-shadow:
    0 0 0 1px hsla(var(--accent-hue), 90%, 65%, 0.25) inset,
    0 0 24px hsla(var(--accent-hue), 100%, 60%, 0.5);
}
.dev-node:hover .dev-ring,
.dev-node.active .dev-ring {
  border-color: hsla(var(--accent-hue), 100%, 80%, 0.95);
  box-shadow:
    0 0 0 2px hsla(var(--accent-hue), 100%, 70%, 0.5) inset,
    0 0 36px hsla(var(--accent-hue), 100%, 70%, 0.8);
}

.dev-photo {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 30% 25%,
      hsla(var(--accent-hue), 80%, 70%, 0.5),
      hsla(var(--accent-hue), 80%, 30%, 0.95) 60%,
      hsla(var(--accent-hue), 80%, 18%, 1)
    );
  /* Placeholder: shows initials when image fails */
}
.dev-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}
.dev-photo.placeholder::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: hsla(var(--accent-hue), 100%, 92%, 1);
  text-shadow: 0 0 12px hsla(var(--accent-hue), 100%, 70%, 0.7);
  letter-spacing: 0.04em;
}
.dev-photo.placeholder img { display: none; }

.dev-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid hsla(var(--accent-hue), 100%, 70%, 0.5);
  animation: dev-pulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes dev-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  80%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.dev-tag {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dev-tag-name {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  color: hsla(var(--accent-hue), 100%, 90%, 1);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px hsla(var(--accent-hue), 100%, 60%, 0.5);
}
.dev-tag-role {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.dev-node:hover .dev-tag,
.dev-node.active .dev-tag {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* ---------- SKILL NODES ------------------------------------ */
.skill-node {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px;
  background: rgba(10, 10, 25, 0.55);
  border: 1px solid hsla(var(--skill-hue), 70%, 55%, 0.35);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: hsla(var(--skill-hue), 70%, 85%, 0.95);
  white-space: nowrap;
  backdrop-filter: blur(4px);
  cursor: default;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s, color 0.3s;
  --skill-hue: 220;
  /* transform set by JS */
}
.skill-node .skill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: hsl(var(--skill-hue), 90%, 65%);
  box-shadow: 0 0 10px hsl(var(--skill-hue), 90%, 60%);
}
.skill-node.shared {
  border-color: hsla(var(--skill-hue), 80%, 65%, 0.6);
  background: rgba(15, 12, 30, 0.72);
}
.skill-node.shared .skill-dot {
  background: hsl(var(--skill-hue), 100%, 75%);
  box-shadow: 0 0 14px hsl(var(--skill-hue), 100%, 65%);
}
.skill-shared-count {
  font-size: 9px;
  color: hsla(var(--skill-hue), 90%, 80%, 1);
  background: hsla(var(--skill-hue), 80%, 30%, 0.6);
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
}

.skill-node.lit {
  color: white;
  border-color: hsla(var(--skill-hue), 100%, 75%, 0.9);
  background: hsla(var(--skill-hue), 70%, 22%, 0.85);
  box-shadow: 0 0 24px hsla(var(--skill-hue), 100%, 60%, 0.5);
  z-index: 2;
}
.skill-node.dimmed {
  opacity: 0.18;
}

/* ---------- CHAT PANEL ------------------------------------- */
.chat-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;            /* fallback for old browsers */
  height: 100dvh;           /* dynamic viewport — accounts for iOS toolbar */
  background:
    linear-gradient(to bottom, rgba(20, 18, 45, 0.96), rgba(8, 8, 20, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -28px 0 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0.24, 1);
  z-index: 20;
  --accent-hue: 200;
}
.chat-panel.open { transform: translateX(0); }

.chat-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(var(--accent-hue), 90%, 65%),
    transparent
  );
  opacity: 0.8;
}

.chat-header {
  display: flex; align-items: center;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}
.chat-close {
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  transition: background 0.2s, color 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.06); color: white; }

.chat-id { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid hsla(var(--accent-hue), 100%, 70%, 0.7);
  box-shadow: 0 0 16px hsla(var(--accent-hue), 100%, 60%, 0.5);
  background: hsla(var(--accent-hue), 60%, 30%, 0.9);
  flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar.placeholder::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 14px;
  color: hsla(var(--accent-hue), 100%, 92%, 1);
}
.chat-avatar.placeholder img { display: none; }

.chat-meta { min-width: 0; }
.chat-name {
  font-family: var(--display);
  font-size: 14px;
  color: white;
  letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chat-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #80ffae;
  box-shadow: 0 0 8px #80ffae;
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-stream::-webkit-scrollbar { width: 6px; }
.chat-stream::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg.user .bubble {
  background: linear-gradient(135deg, #5b59c7, #4944a8);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg.dev .bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg.thinking .bubble { padding: 12px 14px; }
.msg .dots { display: inline-flex; gap: 4px; }
.msg .dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsla(var(--accent-hue), 100%, 80%, 0.6);
  animation: typing 1.2s infinite;
}
.msg .dots i:nth-child(2) { animation-delay: 0.15s; }
.msg .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

.msg.enter {
  animation: msg-enter 0.32s cubic-bezier(0.32, 0.72, 0.24, 1);
}
@keyframes msg-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-input {
  display: flex; gap: 8px;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.chat-input input:focus {
  border-color: hsla(var(--accent-hue), 100%, 70%, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.chat-input input::placeholder { color: var(--ink-faint); }

.chat-input button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: hsla(var(--accent-hue), 90%, 60%, 1);
  border: none;
  color: white;
  display: grid; place-items: center;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px hsla(var(--accent-hue), 100%, 50%, 0.3);
}
.chat-input button:hover { transform: scale(1.06); }
.chat-input button:active { transform: scale(0.96); }

/* ---------- Chat tabs (chat | contact) -------------------- */
.chat-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  margin-bottom: -1px;          /* overlap the bottom border to look continuous */
}
.chat-tab:hover { color: var(--ink-dim); }
.chat-tab.active {
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(15, 15, 32, 0.98);   /* match panel bg */
}
.chat-tab.active svg { color: hsla(var(--accent-hue), 100%, 80%, 1); }

.chat-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-view.hidden { display: none; }

/* ---------- Contact form ---------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px max(16px, env(safe-area-inset-bottom));
  flex: 1;
  overflow-y: auto;
}
.contact-to {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 4px;
}
.contact-to-lbl { color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.contact-to-email { color: hsla(var(--accent-hue), 100%, 80%, 1); }

.contact-row { display: flex; flex-direction: column; gap: 4px; }
.contact-row-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-row input,
.contact-row textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 9px 12px;
  color: white;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-row textarea { min-height: 110px; line-height: 1.45; }
.contact-row input:focus,
.contact-row textarea:focus {
  border-color: hsla(var(--accent-hue), 100%, 70%, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
.contact-row input::placeholder,
.contact-row textarea::placeholder { color: var(--ink-faint); }

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.contact-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: hsla(var(--accent-hue), 90%, 60%, 1);
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px hsla(var(--accent-hue), 100%, 50%, 0.3);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.contact-send:hover { transform: translateY(-1px); }
.contact-send:active { transform: translateY(0) scale(0.97); }
.contact-send:disabled, .contact-send.busy {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.contact-send.busy .contact-send-lbl::after {
  content: "…";
}

.contact-feedback {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}
.contact-feedback-success { color: #80ffae; }
.contact-feedback-error   { color: #ff8a99; }
.contact-feedback-info    { color: var(--ink-dim); }

/* ---------- Projects panel (slides from LEFT) ------------- */
.projects-panel {
  position: fixed;
  top: 0; left: 0;
  width: min(440px, 100vw);
  height: 100vh;            /* fallback */
  height: 100dvh;           /* dynamic viewport — accounts for iOS toolbar */
  background:
    linear-gradient(to bottom, rgba(20, 18, 45, 0.96), rgba(8, 8, 20, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 28px 0 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0.24, 1);
  z-index: 18;
}
.projects-panel.open { transform: translateX(0); }

.projects-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(265, 80%, 70%),
    transparent
  );
  opacity: 0.8;
}

.projects-header {
  display: flex; align-items: center;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 12px;
}
.projects-close {
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.projects-close:hover { background: rgba(255,255,255,0.06); color: white; }

.projects-title { flex: 1; min-width: 0; }
.projects-name {
  font-family: var(--display);
  font-size: 18px;
  color: white;
  letter-spacing: 0.06em;
}
.projects-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.projects-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.projects-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.projects-list::-webkit-scrollbar { width: 6px; }
.projects-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* ---------- Project card ---------------------------------- */
.proj-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.proj-card:hover {
  border-color: rgba(180, 170, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}
.proj-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proj-name {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  color: white;
  letter-spacing: 0.04em;
}
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.proj-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.proj-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.proj-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.proj-tech {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 2px;
}
.proj-tech-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
}
.proj-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.proj-contribs { display: flex; align-items: center; }
.proj-contrib {
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid hsla(var(--accent-hue), 100%, 70%, 0.7);
  background: hsla(var(--accent-hue), 60%, 30%, 0.9);
  margin-left: -6px;
  position: relative;
}
.proj-contrib:first-child { margin-left: 0; }
.proj-contrib img { width: 100%; height: 100%; object-fit: cover; }
.proj-contrib.placeholder::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 10px;
  color: hsla(var(--accent-hue), 100%, 92%, 1);
}
.proj-contrib.placeholder img { display: none; }

.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.proj-link:hover {
  background: hsl(265, 80%, 60%);
  color: white;
  border-color: hsl(265, 80%, 60%);
}

.proj-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}
.proj-empty-mark {
  font-family: var(--display);
  font-size: 48px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  opacity: 0.4;
}
.proj-empty code {
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Mobile ----------------------------------------- */
@media (max-width: 720px) {
  .chrome-tl { top: 14px; left: 14px; }
  .chrome-tr { top: 14px; right: 14px; }
  .brand-mark { font-size: 22px; }
  .brand-name { font-size: 15px; }
  .nav-btn { padding: 7px 12px; font-size: 10px; }

  .hint {
    font-size: 10.5px;
    padding: 6px 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: 92vw;
  }

  .dev-node { width: 64px; height: 64px; }
  .dev-photo { width: 56px; height: 56px; }
  .dev-tag-name { font-size: 11px; }
  .dev-tag-role { display: none; }

  .skill-node { font-size: 9.5px; padding: 3px 8px 3px 5px; }

  .chat-panel,
  .projects-panel { width: 100vw; }
}
