/* ============================================================
   web3charlee — portfolio
   Design system: dark glass, violet→cyan gradient, builder-network signature
   ============================================================ */

:root {
  --bg: #06070c;
  --bg-alt: #0a0c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f4fb;
  --muted: #9aa1ba;
  --faint: #5b6178;

  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;

  --gradient: linear-gradient(135deg, var(--violet), var(--cyan));

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 12% -10%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(50vw 50vw at 100% 10%, rgba(34, 211, 238, 0.1), transparent 50%),
    linear-gradient(var(--bg), var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--muted); }
ul, ol { color: var(--muted); }

.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ============================================================
   Header — floating glass pill nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 12, 22, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a0812;
  flex-shrink: 0;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 110;
  position: relative;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--text); }

.tab-nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.tab-nav a:hover { color: var(--text); text-decoration: none; background: var(--surface-strong); }

.tab-nav a.active {
  color: var(--bg);
  background: var(--gradient);
  font-weight: 600;
}

@media (max-width: 760px) {
  /* Keep the header/nav above the backdrop so the drawer remains clickable. */
  .site-header { z-index: 120; }
  .nav-toggle { display: flex; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 10, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
  }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }

  .tab-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(10, 12, 22, 0.98);
    border-left: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }
  .tab-nav.open { transform: translateX(0); visibility: visible; }
  .tab-nav { visibility: hidden; }

  .tab-nav a {
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    font-size: 0.95rem;
    border: 1px solid transparent;
  }
  .tab-nav a:not(.active) { border-color: var(--border); }

  .header-inner { position: relative; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   Hero — orbit signature
   ============================================================ */

.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: min(340px, 80vw); max-width: 340px; margin-inline: auto; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  margin-top: 0.35em;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede { font-size: 1.08rem; max-width: 46ch; }

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); text-decoration: none; }

.btn-primary { background: var(--gradient); color: #0a0812; border-color: transparent; font-weight: 700; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-media { position: relative; aspect-ratio: 1 / 1; }

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spin 40s linear infinite;
}
.orbit-ring.ring-2 { inset: 9%; animation-duration: 55s; animation-direction: reverse; }

.orbit-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(10, 12, 22, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

@keyframes spin { to { transform: rotate(360deg); } }

.avatar-frame {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient);
}
.avatar-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.avatar-frame-inner img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .orbit-ring { animation: none; }
}

/* ============================================================
   Sections & cards
   ============================================================ */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }

.grid { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
  box-shadow: 0 16px 40px -22px rgba(139, 92, 246, 0.45);
}
.card h3 { font-size: 1.08rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.9rem 0; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* Project cards */
.project-card { display: flex; flex-direction: column; gap: 0.75rem; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.project-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.project-icon svg { width: 24px; height: 24px; }
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--border);
}
.status-live { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.status-hackathon { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.status-client { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08); }
.status-grant { color: var(--violet); border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); }

.project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; padding-top: 0.4rem; }
.project-links a { font-family: var(--font-mono); font-size: 0.82rem; }

/* ============================================================
   Table (skills)
   ============================================================ */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.skills { width: 100%; border-collapse: collapse; min-width: 460px; }
table.skills caption { text-align: left; font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); padding: 0.85rem 1.1rem 0; }
table.skills th, table.skills td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.skills thead th { font-family: var(--font-mono); font-size: 0.76rem; color: var(--cyan); background: var(--surface); }
table.skills tbody tr:last-child td { border-bottom: none; }

.meter { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; width: 140px; border: 1px solid var(--border); }
.meter > span { display: block; height: 100%; background: var(--gradient); }

/* ============================================================
   Forms
   ============================================================ */

.form-grid { display: grid; gap: 1.1rem; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { font-size: 0.78rem; color: var(--red); min-height: 1em; font-family: var(--font-mono); }

.form-status {
  font-family: var(--font-mono); font-size: 0.88rem; padding: 0.8rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); display: none;
}
.form-status.visible { display: block; }
.form-status.success { color: var(--green); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.form-status.error { color: var(--red); border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.08); }

/* ============================================================
   Planner
   ============================================================ */

.planner-shell { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.planner-toolbar { display: flex; gap: 0.75rem; padding: 1.1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.planner-toolbar input, .planner-toolbar select {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 0.65rem 0.85rem; font-family: var(--font-body);
}
.planner-toolbar input[type="text"] { flex: 1 1 220px; }

.planner-stats {
  display: flex; gap: 1.5rem; padding: 0.9rem 1.1rem; font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.planner-stats strong { color: var(--cyan); }

.task-list { list-style: none; margin: 0; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 120px; }
.task-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-alt); }
.task-item.done .task-text { text-decoration: line-through; color: var(--faint); }
.task-check {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; border: 1px solid var(--border);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 0.8rem;
}
.task-item.done .task-check { background: rgba(52, 211, 153, 0.15); border-color: var(--green); }
.task-text { flex: 1; font-size: 0.95rem; word-break: break-word; }
.task-due { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); white-space: nowrap; }
.task-delete {
  background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: var(--radius-sm);
  width: 30px; height: 30px; cursor: pointer; flex-shrink: 0;
}
.task-delete:hover { border-color: var(--red); color: var(--red); }
.empty-state { text-align: center; color: var(--faint); font-family: var(--font-mono); font-size: 0.85rem; padding: 2rem 1rem; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint);
}
.footer-inner a { color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Additions — stats bento, live badge, filters/search, GitHub feed
   ============================================================ */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.status-chip .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Bento stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* Filter + search bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.search-input-wrap { position: relative; flex: 1 1 260px; max-width: 360px; }
.search-input-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.search-input-wrap input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
.search-input-wrap::before {
  content: "⌕";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 1rem;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { color: var(--bg); background: var(--gradient); border-color: transparent; font-weight: 600; }

.no-results {
  display: none;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.no-results.visible { display: block; }

/* GitHub feed */
.gh-feed-list { display: grid; gap: 0.85rem; }
.gh-repo-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.gh-repo-card .gh-repo-name { font-family: var(--font-mono); color: var(--text); font-size: 0.94rem; }
.gh-repo-card .gh-repo-desc { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }
.gh-repo-card .gh-repo-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); white-space: nowrap; }
.gh-feed-status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--faint); padding: 1rem; }

/* Timeline (used on about.html) */
.timeline { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border); margin-left: 6px; }
.timeline-item { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
}
.timeline-item h4 { font-size: 0.98rem; margin-bottom: 0.15rem; }
.timeline-item p { margin-bottom: 0; font-size: 0.88rem; }


/* ============================================================
   Portfolio polish — social layer, CTA, live channels, fallback
   ============================================================ */

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: .7rem .2rem;
}
.text-link:hover { color: var(--cyan); text-decoration: none; }

.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(139,92,246,.15), transparent 65%),
    radial-gradient(450px 220px at 100% 100%, rgba(34,211,238,.10), transparent 65%),
    var(--surface);
  box-shadow: 0 24px 70px -45px rgba(34,211,238,.45);
}
.cta-card h2 { margin-top: .35rem; margin-bottom: .45rem; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.cta-card p:not(.eyebrow) { max-width: 58ch; margin-bottom: 0; }
.cta-actions { display:flex; gap:.7rem; flex-wrap:wrap; justify-content:flex-end; }

.social-strip {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding-bottom:1.5rem;
  margin-bottom:1.5rem;
  border-bottom:1px solid var(--border);
}
.social-label {
  color:var(--faint);
  font-family:var(--font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.social-links { display:flex; gap:.45rem; flex-wrap:wrap; justify-content:flex-end; }
.social-links a {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .7rem;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
  font-family:var(--font-mono);
  font-size:.72rem;
  transition:transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.social-links a:hover { transform:translateY(-2px); color:var(--text); border-color:var(--border-strong); background:var(--surface-strong); text-decoration:none; }
.social-icon { color:var(--cyan); font-size:.95rem; line-height:1; }
.footer-actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.footer-actions a:last-child { color:var(--muted); }

.project-summary {
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  margin-top:1.2rem;
}
.project-summary span {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:999px;
  padding:.45rem .7rem;
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--muted);
}
.project-summary strong { color:var(--text); }
.project-icon-rose {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(251,113,133,.12);
  border:1px solid rgba(251,113,133,.3);
  color:#fb7185;
  font-size:1.25rem;
}

.channel-card {
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:1.05rem 1.1rem;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--surface);
  color:var(--text);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.channel-card:hover { transform:translateY(-3px); border-color:var(--border-strong); background:var(--surface-strong); text-decoration:none; }
.channel-icon { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:rgba(34,211,238,.08); color:var(--cyan); font-size:1.1rem; }
.channel-card strong { display:block; font-family:var(--font-display); font-size:.9rem; }
.channel-card small { display:block; color:var(--faint); font-family:var(--font-mono); font-size:.7rem; margin-top:.08rem; }
.channel-arrow { margin-left:auto; color:var(--faint); }

/* A missing profile photo should never leave a broken-image icon. */
.avatar-frame-inner { position:relative; overflow:hidden; background:radial-gradient(circle at 50% 35%, rgba(139,92,246,.35), transparent 42%), #10121a; }
.avatar-frame-inner::after {
  content:"W3";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family:var(--font-display);
  font-size:clamp(2.8rem, 8vw, 5rem);
  font-weight:800;
  color:rgba(255,255,255,.12);
  pointer-events:none;
}
.avatar-frame-inner img { position:relative; z-index:1; }

@media (max-width: 760px) {
  .cta-card { grid-template-columns:1fr; }
  .cta-actions { justify-content:flex-start; }
  .social-strip { align-items:flex-start; flex-direction:column; }
  .social-links { justify-content:flex-start; }
  .footer-actions { width:100%; }
}
