:root {
  --background: #0c0e10;
  --foreground: #e2e8f0;
  --bg2: #111418;
  --bg3: #181d22;
  --border: #1e252c;
  --border2: #252e38;
  --main: #ef4444;
  --main-dim: #dc2626;
  --cyan: #67e8f9;
  --orange: #fb923c;
  --comment: #4a5568;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #475569;

  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sans: 'Sora', sans-serif;
  --window-radius: 8px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(103, 232, 249, 0.14), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(239, 68, 68, 0.16), transparent 18%),
    radial-gradient(circle at 50% 75%, rgba(56, 189, 248, 0.08), transparent 24%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
  pointer-events: none; z-index: 1; opacity: 0.85;
  animation: float 18s ease-in-out infinite;
  will-change: transform, opacity;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.45;
}
@media (max-width: 768px) {
  body::before, body::after { display: none; }
}

.wrapper { max-width: 960px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(12,14,16,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 24px; }
.topbar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.topbar-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--main); text-decoration: none; letter-spacing: 0.05em; }
.topbar-logo::before { content: '> '; color: var(--comment); }
.topbar-logo-img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(239,68,68,0.3); }
.topbar-nav { display: flex; gap: 0; flex-wrap: wrap; }
.topbar-nav a { font-family: var(--mono); font-size: 12px; color: var(--text2); text-decoration: none; padding: 6px 14px; border-radius: 4px; transition: color 0.15s, background 0.15s; letter-spacing: 0.03em; }
.topbar-nav a:hover { color: var(--main); background: rgba(239,68,68,0.07); }
.topbar-nav a::before { content: './'; color: var(--comment); font-size: 11px; }
.topbar-nav a.active { color: var(--main); background: rgba(239,68,68,0.07); }

@media (max-width: 640px) { .wrapper { padding: 0 14px; } .topbar { padding: 0 14px; } }

.window { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--window-radius); overflow: hidden; margin-bottom: 16px; animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg3); border-bottom: 1px solid var(--border); user-select: none; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: #ff5f57; } .dot-yellow { background: #febc2e; } .dot-green { background: #28c840; }
.window-title { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-left: 6px; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; }
.window-title span { color: var(--main); }
.boot-logo-title img { width: 20px; height: 20px; border-radius: 6px; display: inline-block; }
.window-body { padding: 24px; overflow: hidden; }
.window img { max-width: 100%; height: auto; }

.window:nth-of-type(2) { animation-delay: 0.08s; }
.window:nth-of-type(3) { animation-delay: 0.16s; }
.window:nth-of-type(4) { animation-delay: 0.24s; }

main.wrapper { animation: fadeIn 0.35s ease both; }

.hero { padding: 64px 0 32px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,320px); gap: 40px; align-items: start; width: 100%; }
.hero-skin-panel { width: 100%; min-width: 0; overflow: hidden; }
.hero-prompt { font-family: var(--mono); font-size: 13px; color: var(--comment); margin-bottom: 4px; opacity: 0; animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero-prompt::before { content: '$ '; color: var(--main); }
.hero-name { font-family: var(--sans); font-size: clamp(42px, 7vw, 72px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px; opacity: 0; animation: textPop 0.8s ease both; animation-delay: 0.18s; }
.hero-name-accent { color: var(--main); }
.hero-role { font-family: var(--mono); font-size: 15px; color: var(--cyan); margin-bottom: 20px; letter-spacing: 0.02em; opacity: 0; animation: fadeUp 0.7s ease both; animation-delay: 0.26s; }
.hero-role::before { content: '// '; color: var(--comment); }
.hero-desc { font-family: var(--mono); font-size: 13px; color: var(--text2); max-width: 560px; line-height: 1.8; margin-bottom: 32px; opacity: 0; animation: fadeUp 0.7s ease both; animation-delay: 0.34s; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s ease both; animation-delay: 0.42s; }
.hero-cursor::after { content: '_'; color: var(--main); margin-left: 2px; animation: blink 1s steps(1) infinite; }

.page-hero { padding: 40px 0 20px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 24px; overflow: visible; width: 100%; }
  .page-label { font-family: var(--mono); font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 12px; display: inline-block; }
  .page-hero h1 { font-family: var(--sans); font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; margin: 0 0 12px; max-width: 100%; word-wrap: break-word; }
  .page-copy { font-family: var(--mono); font-size: 13px; color: var(--text2); max-width: 100%; line-height: 1.8; margin: 0; word-wrap: break-word; }
  .page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; overflow: hidden; }
  .page-grid > .window { min-width: 0; }
  .page-hero-about { background: linear-gradient(180deg, rgba(14,18,24,0.9), rgba(12,14,16,0.96)); padding: 40px 0 24px; border-radius: 20px; margin-bottom: 24px; overflow: hidden; }
  .page-hero-team { background: linear-gradient(180deg, rgba(239,68,68,0.08), rgba(12,14,16,0.95)); padding: 40px 0 24px; border-radius: 20px; margin-bottom: 24px; overflow: hidden; }
  .page-hero-resources { background: linear-gradient(180deg, rgba(56,189,248,0.08), rgba(12,14,16,0.95)); padding: 40px 0 24px; border-radius: 20px; margin-bottom: 24px; overflow: hidden; }
  .page-hero-contact { background: linear-gradient(180deg, rgba(239,68,68,0.08), rgba(12,14,16,0.95)); padding: 40px 0 24px; border-radius: 20px; margin-bottom: 24px; overflow: hidden; }
.window-highlight { border-color: rgba(239,68,68,0.22); background: linear-gradient(180deg, rgba(239,68,68,0.06), rgba(12,14,16,0.96)); }
.resource-highlight { display: grid; gap: 12px; }
.resource-status { font-family: var(--mono); font-size: 11px; color: var(--main); text-transform: uppercase; letter-spacing: 0.12em; }
.resource-highlight h2 { font-family: var(--sans); font-size: 24px; margin: 0 0 8px; color: var(--text); }
.resource-highlight p { font-family: var(--mono); font-size: 13px; color: var(--text2); line-height: 1.75; margin: 0 0 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 4px; font-family: var(--mono); font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.03em; transition: all 0.15s; cursor: pointer; border: none; }
.btn-primary { background: var(--main); color: #000; }
.btn-primary:hover { background: #f87171; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--main); color: var(--main); }

.status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--main); box-shadow: 0 0 8px var(--main); animation: pulse 2s ease-in-out infinite; }
.status-text { font-family: var(--mono); font-size: 12px; color: var(--main); letter-spacing: 0.05em; text-transform: uppercase; }

.skin-window .window-body { padding: 20px; background: linear-gradient(180deg, #0d1117 0%, #10161d 100%); min-height: 320px; }
.profile-card { width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; text-decoration: none; color: inherit; transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease; cursor: pointer; }
.profile-card:hover { transform: translateY(-3px); border-color: var(--main); box-shadow: 0 14px 30px -16px rgba(239,68,68,0.45); }
.skin-img { width: 180px; height: 180px; display: block; object-fit: contain; background: var(--background); padding: 12px; border-radius: 24px; border: 2px solid rgba(239,68,68,0.35); filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35)); }
.profile-name { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); line-height: 1.2; }
.profile-handle { font-family: var(--mono); font-size: 13px; color: var(--main); letter-spacing: 0.03em; }
.profile-note { font-size: 11px; color: var(--text2); letter-spacing: 0.04em; text-transform: uppercase; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2px; }
.profile-chip { font-size: 10px; color: var(--text2); border: 1px solid var(--border2); border-radius: 999px; padding: 4px 9px; background: #0f141a; letter-spacing: 0.05em; text-transform: uppercase; }
.skin-meta { padding: 14px 16px 0; display: flex; gap: 8px; }
.profile-meta-link { flex: 1; text-align: center; text-decoration: none; border: 1px solid var(--border2); border-radius: 6px; padding: 8px 10px; font-size: 11px; color: var(--text2); text-transform: lowercase; transition: all 0.15s; }
.profile-meta-link:hover { color: var(--main); border-color: var(--main); background: rgba(239,68,68,0.07); }

.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--window-radius); overflow: hidden; animation: fadeUp 0.4s ease 0.1s both; margin-bottom: 16px; }
.stat-cell { background: var(--bg2); padding: 20px 16px; text-align: center; transition: background 0.15s; }
.stat-cell:hover { background: var(--bg3); }
.stat-n { font-family: var(--sans); font-size: 28px; font-weight: 800; color: var(--main); line-height: 1; letter-spacing: -0.02em; }
.stat-l { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

section { margin-bottom: 16px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-bio { font-family: var(--mono); font-size: 13px; color: var(--text2); line-height: 1.9; white-space: pre-wrap; margin: 0; }
.kw-string { color: var(--main); } .kw-comment { color: var(--comment); font-style: italic; } .kw-var { color: var(--cyan); } .kw-fn { color: var(--orange); }

.skills-list { display: flex; flex-direction: column; gap: 8px; }
.skill-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; font-size: 12px; transition: border-color 0.15s; }
.skill-row:hover { border-color: var(--border2); }
.skill-row-name { color: var(--cyan); font-weight: 600; min-width: 110px; }
.skill-bar-track { flex: 1; height: 3px; background: var(--border2); border-radius: 2px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--main-dim), var(--main)); border-radius: 2px; transform-origin: left; animation: fillBar 1.2s ease-out both; }
.skill-pct { font-size: 11px; color: var(--text3); min-width: 32px; text-align: right; }

.tech-group { margin-top: 16px; }
.tech-group-label { font-size: 11px; color: var(--comment); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--border2); color: var(--text2); background: var(--bg3); transition: all 0.15s; }
.tag:hover { border-color: var(--main); color: var(--main); }

.section-label { font-family: var(--mono); font-size: 11px; color: var(--comment); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.portfolio-window .window-body { padding: 0; }
.portfolio-top { display: grid; grid-template-columns: 280px 1fr; }
.portfolio-img-side { background: linear-gradient(135deg, #0d1a12, #0e1a23); display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); padding: 32px; min-height: 240px; }
.portfolio-logo { width: 100%; max-width: 180px; height: auto; border-radius: 20px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(239,68,68,0.3)); }
.portfolio-info { padding: 28px; }
.portfolio-title { font-family: var(--sans); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin: 0 0 8px; }
.portfolio-desc { font-family: var(--mono); font-size: 12px; color: var(--text2); line-height: 1.8; margin-bottom: 20px; }
.portfolio-nums { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 0; }
.p-num-val { font-family: var(--sans); font-size: 20px; font-weight: 800; color: var(--main); letter-spacing: -0.02em; }
.p-num-lbl { font-family: var(--mono); font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

.commissions-wrap { padding: 22px 24px 24px; }
.commissions-head { font-family: var(--mono); font-size: 12px; color: var(--text2); margin-bottom: 14px; line-height: 1.8; }
.commissions-grid-fluid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 8px; margin-bottom: 16px; }
.commission-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 14px; transition: border-color 0.15s; min-width: 0; }
.commission-card:hover { border-color: var(--main); }
.commission-title { font-family: var(--mono); font-size: 12px; color: var(--main); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.commission-desc { font-family: var(--mono); font-size: 11px; color: var(--text2); line-height: 1.7; }

.link-sm { font-family: var(--mono); font-size: 12px; color: var(--text3); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s; }
.link-sm:hover { color: var(--main); }
.link-sm::after { content: ' →'; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; margin-bottom: 16px; }
.project-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--window-radius); overflow: hidden; transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease; animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both; min-width: 0; }
.project-card:hover { transform: translateY(-3px); border-color: var(--main); box-shadow: 0 12px 30px -16px rgba(239,68,68,0.35); }
.project-card:nth-child(2) { animation-delay: 0.08s; }
.project-card:nth-child(3) { animation-delay: 0.16s; }
.project-card:nth-child(4) { animation-delay: 0.24s; }
.project-card:nth-child(n+5) { animation-delay: 0.32s; }
.project-img { width: 100%; height: auto; max-height: 260px; object-fit: contain; background: linear-gradient(135deg, #0d1a12, #0e1a23); border-bottom: 1px solid var(--border); display: block; overflow: hidden; }
.project-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.project-name { font-family: var(--sans); font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.project-brand { font-family: var(--mono); font-size: 10px; color: var(--main); text-transform: uppercase; letter-spacing: 0.08em; }
.project-summary { font-family: var(--mono); font-size: 12px; color: var(--text2); line-height: 1.7; margin: 0; }
.project-status { font-family: var(--mono); font-size: 10px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.project-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ===== ABOUT PAGE CARDS ===== */
.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--window-radius);
  overflow: hidden;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
}

.about-card-header {
  padding: 16px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.about-card-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-card-content {
  padding: 20px;
}

.about-bio {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== RESOURCES PAGE CARDS ===== */
.resources-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.resource-featured-card {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(103,232,249,0.06)), linear-gradient(180deg, rgba(17,20,24,0.98), rgba(12,15,19,0.98));
  border: 1px solid color-mix(in srgb, var(--main) 45%, var(--border));
  border-radius: var(--window-radius);
  padding: 24px;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
  overflow: hidden;
}

.resource-featured-header {
  margin-bottom: 16px;
}

.resource-featured-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--main);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: inline-block;
}

.resource-featured-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resource-featured-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.resource-featured-summary {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.resource-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--window-radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--main);
  box-shadow: 0 12px 30px -16px rgba(239,68,68,0.35);
}

.resource-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.resource-card-icon {
  font-size: 24px;
  opacity: 0.7;
}

.resource-card-status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resource-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.resource-card-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resource-card-summary {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resource-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ===== CONTACT PAGE CARDS ===== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--window-radius);
  overflow: hidden;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
}

.contact-info-header {
  padding: 16px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.contact-info-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-note-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-note-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
}

.contact-note-value {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 600;
}

.contact-primary-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--main) 45%, var(--border));
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(103,232,249,0.06)), linear-gradient(180deg, rgba(17,20,24,0.98), rgba(12,15,19,0.98));
  box-shadow: 0 18px 34px -24px rgba(239,68,68,0.45);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
}

.contact-primary-card:hover {
  transform: translateY(-2px);
  border-color: var(--main);
  box-shadow: 0 22px 40px -24px rgba(239,68,68,0.55);
}

.contact-primary-header {
  display: flex;
  justify-content: flex-end;
}

.contact-primary-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-primary-badge {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.25);
  background: rgba(239,68,68,0.1);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--main);
}

.contact-primary-platform {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-primary-handle {
  font-family: var(--sans);
  font-size: clamp(16px,2.5vw,22px);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-primary-cta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-platforms-section {
  margin-bottom: 24px;
}

.contact-platforms-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 8px;
}

.contact-platform-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
  min-height: 80px;
  min-width: 0;
}

.contact-platform-card:hover {
  border-color: var(--main);
  background: rgba(239,68,68,0.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -22px rgba(239,68,68,0.65);
}

.contact-platform-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--main);
}

.contact-platform-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-platform-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-platform-handle {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-platform-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== TEAM PYRAMID LAYOUT ===== */
.team-pyramid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.team-pyramid-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
}

.team-pyramid-row[data-level="999"] {
  /* Top level - founder/CEO */
  margin-bottom: 8px;
}

.team-pyramid-row[data-level="100"] {
  /* Senior level */
  margin-bottom: 4px;
}

.team-pyramid-row[data-level="0"] {
  /* Base level - regular team members */
  margin-top: 8px;
}

.team-member-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--window-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,0.6);
  animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both;
  min-width: 0;
  max-width: 280px;
  width: 100%;
  transition: transform .25s ease, border-color .2s ease, box-shadow .25s ease;
}

.team-member-card:hover {
  transform: translateY(-3px);
  border-color: var(--main);
  box-shadow: 0 22px 50px -30px rgba(239,68,68,0.4);
}

.team-member-card[data-level="999"] {
  /* Founder card - slightly larger and more prominent */
  padding: 28px;
  border-color: rgba(239,68,68,0.3);
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(12,14,16,0.98));
}

.team-member-card[data-level="100"] {
  /* Senior level - medium prominence */
  padding: 24px;
}

.team-member-card[data-level="0"] {
  /* Base level - standard styling */
  padding: 20px;
}

.team-member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--main);
  box-shadow: 0 8px 20px rgba(239,68,68,0.18);
  flex-shrink: 0;
}

.team-member-card[data-level="999"] .team-member-avatar {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  border-width: 3px;
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.team-member-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.team-member-card[data-level="999"] .team-member-name {
  font-size: 20px;
}

.team-member-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--main);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-member-bio {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.featured-pill { font-family: var(--mono); font-size: 9px; padding: 2px 7px; border-radius: 999px; background: rgba(239,68,68,0.12); color: var(--main); border: 1px solid rgba(239,68,68,0.3); text-transform: uppercase; letter-spacing: 0.08em; }

.contact-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 24px; align-items: start; }
.contact-lead { display: flex; flex-direction: column; gap: 16px; animation: fadeUp 0.55s cubic-bezier(.2,.7,.2,1) both; }
.contact-kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); }
.contact-title { font-family: var(--sans); font-size: clamp(30px,5vw,48px); line-height: 1.02; letter-spacing: -0.02em; color: var(--text); max-width: 12ch; margin: 0; }
.contact-copy { font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--text2); max-width: 58ch; margin: 0; }
.contact-notes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.contact-note-card { background: linear-gradient(180deg, rgba(17,20,24,0.95), rgba(12,16,21,0.95)); border: 1px solid var(--border); border-radius: 6px; padding: 14px 15px; display: flex; flex-direction: column; gap: 6px; }
.contact-note-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); }
.contact-note-card strong { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text); font-weight: 600; }
.contact-primary-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; border-radius: 6px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--main) 45%, var(--border)); background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(103,232,249,0.06)), linear-gradient(180deg, rgba(17,20,24,0.98), rgba(12,15,19,0.98)); box-shadow: 0 18px 34px -24px rgba(239,68,68,0.45); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.contact-primary-card:hover { transform: translateY(-2px); border-color: var(--main); box-shadow: 0 22px 40px -24px rgba(239,68,68,0.55); }
.contact-primary-badge { width: fit-content; padding: 3px 6px; border-radius: 999px; border: 1px solid rgba(239,68,68,0.25); background: rgba(239,68,68,0.1); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--main); }
.contact-primary-platform { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-primary-handle { font-family: var(--sans); font-size: clamp(16px,2.5vw,22px); line-height: 1.2; color: var(--text); font-weight: 700; }
.contact-primary-cta { font-family: var(--mono); font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; }

.contact-grid-fluid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 8px; }
.contact-item { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 18px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; animation: fadeUp 0.5s cubic-bezier(.2,.7,.2,1) both; min-height: 120px; min-width: 0; justify-content: center; }
.contact-item:hover { border-color: var(--main); background: rgba(239,68,68,0.05); transform: translateY(-2px); box-shadow: 0 14px 26px -22px rgba(239,68,68,0.65); }
.contact-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: var(--main); margin-bottom: 4px; }
.contact-text-platform { font-family: var(--mono); font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-text-handle { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 600; margin-top: 2px; }
.contact-text-meta { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 5px; line-height: 1.5; }
.contact-item:hover .contact-text-handle { color: var(--main); }

.review-card { margin-top: 8px; background: linear-gradient(180deg, var(--bg3), #0f1318); border: 1px solid var(--border); border-left: 3px solid var(--main); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.review-card::before { content: '"'; position: absolute; top: -6px; right: 12px; font-family: var(--sans); font-size: 48px; line-height: 1; color: var(--main); opacity: 0.2; }
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border2); object-fit: cover; flex-shrink: 0; }
.review-meta { flex: 1; min-width: 0; }
.review-name { font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 700; letter-spacing: 0.02em; }
.review-handle { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 1px; }
.review-project { font-family: var(--mono); font-size: 10px; color: var(--comment); margin-top: 1px; }
.review-date { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 4px; }
.stars { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; letter-spacing: 1px; line-height: 1; margin-left: auto; }
.star-full { color: var(--main); } .star-empty { color: var(--border2); }
.star-half { background: linear-gradient(90deg, var(--main) 50%, var(--border2) 50%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stars-num { margin-left: 6px; font-family: var(--mono); font-size: 10px; color: var(--text3); -webkit-text-fill-color: var(--text3); }
.review-text { font-family: var(--mono); font-size: 12px; color: var(--text2); line-height: 1.7; font-style: italic; margin: 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 12px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; justify-items: center; }
.team-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 360px; width: 100%; box-shadow: 0 18px 40px -30px rgba(0,0,0,0.6); min-width: 0; }
.team-avatar { width: 100px; height: 100px; border-radius: 22px; object-fit: cover; border: 2px solid var(--main); box-shadow: 0 12px 30px rgba(239,68,68,0.18); }
.team-name { font-family: var(--sans); font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.team-role { font-family: var(--mono); font-size: 12px; color: var(--main); margin: 0; text-transform: uppercase; letter-spacing: 0.08em; }
.team-bio { font-family: var(--mono); font-size: 13px; color: var(--text2); line-height: 1.8; margin: 0; }

footer { border-top: 1px solid var(--border); padding: 24px; margin-top: 32px; position: relative; z-index: 2; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-left { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.footer-left span { color: var(--comment); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-family: var(--mono); font-size: 12px; color: var(--text3); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--main); }

.skeleton-line { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--bg3) 25%, var(--border2) 50%, var(--bg3) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(2%,-2%,0); } }
@keyframes textPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 6px var(--main); } 50% { opacity: 0.6; box-shadow: 0 0 14px var(--main); } }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 768px) {
  .hero { padding: 32px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-skin-panel { order: -1; max-width: 320px; margin: 0 auto; width: 100%; }
  .stats-row { grid-template-columns: repeat(2,1fr) !important; }
  .about-grid { grid-template-columns: 1fr; }
  .portfolio-top { grid-template-columns: 1fr; }
  .portfolio-img-side { padding: 20px; min-height: 140px; }
  .commissions-grid-fluid, .contact-grid-fluid { grid-template-columns: 1fr; }
  .topbar-nav a::before { content: ''; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; }
  .contact-title { max-width: none; }
  .contact-notes { grid-template-columns: 1fr; }
  .contact-grid-fluid { grid-template-columns: repeat(2, 1fr); }

  /* New responsive styles for remade cards */
  .about-cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .resources-grid { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-platforms-grid { grid-template-columns: 1fr; }
  .team-pyramid { gap: 16px; }
  .team-pyramid-row { flex-direction: column; gap: 12px; }

  .resource-featured-card { padding: 20px; }
  .resource-featured-title { font-size: 20px; }
  .resource-card-content { padding: 16px; }
  .team-member-card { padding: 20px; gap: 12px; max-width: none; }
  .team-member-avatar { width: 60px; height: 60px; }
  .team-member-card[data-level="999"] .team-member-avatar { width: 70px; height: 70px; }
}
@media (max-width: 480px) {
  .topbar-nav a { padding: 6px 10px; font-size: 11px; }
  .topbar-logo { font-size: 12px; }
  .window-body { padding: 16px; }
  .portfolio-info { padding: 18px; }
  .project-content { padding: 16px; }
  .commissions-wrap { padding: 16px; }
  .hero-name { font-size: clamp(36px,11vw,56px); }
  .stat-n { font-size: 22px; }
  .page-hero h1 { font-size: clamp(24px, 4vw, 32px); }
  .page-copy { font-size: 12px; }

  /* Mobile styles for remade cards */
  .resource-featured-card { padding: 16px; }
  .resource-featured-title { font-size: 18px; }
  .resource-card-content { padding: 14px; }
  .resource-card-title { font-size: 15px; }
  .contact-info-content { padding: 16px; }
  .contact-platform-card { padding: 14px; min-height: 70px; }
  .contact-platform-content { gap: 2px; }
  .team-member-card { padding: 16px; gap: 10px; }
  .team-member-name { font-size: 16px; }
  .team-member-avatar { width: 50px; height: 50px; }
}

/* ===== Home (custom layout) ===== */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.home-lead { display: flex; flex-direction: column; justify-content: center; }
.boot-pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.85;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.boot-cmd { color: #f87171; }
.boot-step { color: #94a3b8; }
.boot-ok { color: #34d399; }
.boot-line { color: #cbd5e1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.service-card {
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 12px;
  padding: 18px;
  transition: border-color .2s ease, transform .2s ease;
  min-width: 0;
}
.service-card:hover { border-color: rgba(239,68,68,0.45); transform: translateY(-2px); }
.service-icon {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 8px;
}
.service-title { font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.service-desc { color: #94a3b8; font-size: 13px; line-height: 1.55; }

.cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: center;
}
.cta-title { font-family: 'Sora', sans-serif; font-size: 26px; margin: 6px 0 4px; color: #f1f5f9; }
.cta-copy { color: #94a3b8; font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 880px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .cta-row { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

/* ===== 404 ===== */
.notfound-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.notfound-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.notfound-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(72px, 18vw, 140px);
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.notfound-title { font-family: 'Sora', sans-serif; font-size: 26px; margin: 8px 0; color: #f1f5f9; }
.notfound-copy { color: #94a3b8; margin-bottom: 18px; }
.notfound-trace {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #64748b;
  text-align: left;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 10px;
  padding: 14px;
  margin: 18px 0;
}
.notfound-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
