/* Nexus Development — global stylesheet
   Edit tokens here; every page reads this file. */
:root {
  --bg: #0e0e10;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --border: #26262a;
  --border-strong: #3a3a40;
  --text: #f0eff3;
  --muted: #9b9aa2;
  --dim: #67666e;
  --accent: #cf84e6;
  --accent-strong: #bd6fd8;
  --accent-soft: rgba(207,132,230,0.08);
  --accent-line: rgba(207,132,230,0.3);
  --green: #7ee0a3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .nav-links a, .logo, .footer-brand, .exec-name {
  font-family: 'Sora', system-ui, sans-serif;
}
.mono, .section-label, .exec-role, .hero-badge, .term, .partner-hint, .exec-index, .stat-key {
  font-family: 'DM Mono', monospace;
}

::selection { background: var(--accent); color: #1a1220; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* ===== Shared header (injected by /assets/components.js) ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(14,14,16,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  color: var(--text);
}
.logo-icon { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
}

/* ===== Layout ===== */
.wrap { width: 100%; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.section-label { font-size: 0.78rem; color: var(--dim); margin-bottom: 1rem; }
.section-label b { color: var(--accent); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  min-height: 48px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #1a1220; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ===== Hero ===== */
.hero { padding: 9.5rem 0 6rem; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero { padding: 7.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Terminal card */
.term {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.1rem;
  line-height: 2.05;
  max-width: 660px;
  width: 100%;
  margin-left: auto;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.term-bar .tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term-bar .tdot:first-child { background: var(--accent); }
.term-bar .tpath { margin-left: 0.5rem; color: var(--dim); font-size: 0.9rem; }
.term-body { padding: 1.9rem 2rem 2.1rem; color: var(--muted); }
.term-body .p { color: var(--accent); }
.term-body .out { color: var(--text); }
.term-body .ok { color: var(--green); }
.term-body .cmt { color: var(--dim); }
.cursor {
  display: inline-block;
  width: 10px; height: 20px;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 920px) { .term { margin-left: 0; } }

/* ===== Track record logline ===== */
.stats { border-bottom: 1px solid var(--border); }
.logline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding: 2.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.88rem;
  color: var(--muted);
}
.log-prompt { color: var(--accent); }
.log-item b {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-right: 0.4rem;
}
.log-sep { color: var(--dim); }

/* ===== Partner ===== */
.partner { padding: 5.5rem 0; border-bottom: 1px solid var(--border); text-align: center; }
.partner-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.75rem;
}
.partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 3.5rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.partner-card:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.partner-card img { height: 42px; width: auto; display: block; }
.partner-sub { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }
.partner-hint { font-size: 0.72rem; color: var(--dim); margin-top: 0.5rem; }
.partner-hint b { color: var(--accent); font-weight: 400; }

/* ===== Executives ===== */
.execs { padding: 6.5rem 0; }
.execs-header { max-width: 620px; margin-bottom: 1rem; }
.execs-header h2, .page-section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.execs-header p { color: var(--muted); line-height: 1.75; }

.exec-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.75rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.exec-row:first-of-type { margin-top: 2.5rem; }
.exec-index { grid-column: 1 / -1; font-size: 0.72rem; color: var(--dim); letter-spacing: 0.1em; margin-bottom: -0.5rem; }
.exec-index b { color: var(--accent); font-weight: 400; }
.exec-avatar { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); }
.exec-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.exec-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.exec-name a { text-decoration: none; transition: color 0.2s; }
.exec-name a:hover { color: var(--accent); }
.exec-role { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-left: 0.75rem; }
.exec-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin: 0.9rem 0 1.25rem; max-width: 720px; }
.exec-tasks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.exec-task {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .exec-row { grid-template-columns: 48px 1fr; gap: 1.1rem; padding: 2.25rem 0; }
  .exec-avatar { width: 48px; height: 48px; }
  .exec-role { display: block; margin: 0.3rem 0 0; }
}

/* ===== CTA ===== */
.cta { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 5.5rem 0; position: relative; }
.cta::after { content: ''; position: absolute; top: 0; left: 0; width: 64px; height: 3px; background: var(--accent); }
.cta-inner { max-width: 620px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 1rem; }
.cta p { color: var(--muted); margin-bottom: 2.25rem; line-height: 1.75; }
.cta .hero-actions { justify-content: flex-start; }

/* ===== Shared footer (injected by /assets/components.js) ===== */
.site-footer { padding: 3.5rem 0 2.25rem; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.footer-brand { color: var(--text); display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.95rem; }
.footer-brand .logo-icon { width: 26px; height: 26px; }
.footer-about p { color: var(--dim); font-size: 0.82rem; line-height: 1.7; max-width: 30ch; margin: 0.9rem 0 1rem; }
.footer-socials { display: flex; gap: 0.25rem; margin-left: -0.85rem; }
.footer-socials a { color: var(--muted); font-size: 0.85rem; font-weight: 500; padding: 0.5rem 0.85rem; display: inline-flex; align-items: center; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.footer-socials a:hover { color: var(--text); background: var(--surface-2); }
.footer-col h4 { font: 500 0.68rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 0.85rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.86rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.footer-btn { display: inline-block; margin-top: 0.7rem; padding: 0.4rem 0.85rem; border: 1px solid var(--border-strong); border-radius: 8px; font: 500 0.78rem 'DM Mono', monospace; transition: color 0.2s, border-color 0.2s; }
.footer-col a.footer-btn:hover { border-color: var(--accent-line); }
.footer-copy { color: var(--dim); font-size: 0.78rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-about { grid-column: 1 / -1; } .footer-about p { max-width: 46ch; } }
@media (max-width: 460px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; } }

/* ===== Inner pages ===== */
.page-hero {
  padding: 10rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 1.25rem; max-width: 760px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 620px; line-height: 1.75; }

.page-section { padding: 4.5rem 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }
.page-desc { color: var(--muted); max-width: 640px; line-height: 1.75; margin-bottom: 2.5rem; }

/* Services tables */
.table-scroll { overflow-x: auto; }
.service-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; min-width: 620px; }
.service-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.service-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.service-table td:first-child { color: var(--text); font-weight: 500; }
.service-table tr:hover td { background: var(--surface); }
.price-tag {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Info / warning / requirement boxes */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 2rem 0 0;
}
.info-box h4 { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.info-box p { color: var(--muted); line-height: 1.7; }
.info-box a, .content a { color: var(--accent); text-decoration: none; }
.info-box a:hover, .content a:hover { text-decoration: underline; }

.warning-box {
  background: rgba(234,179,8,0.05);
  border: 1px solid rgba(234,179,8,0.2);
  border-left: 3px solid #eab308;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.warning-box svg { width: 20px; height: 20px; color: #eab308; flex-shrink: 0; margin-top: 0.15rem; }
.warning-box p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.warning-box strong { color: var(--text); }

.req-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.req-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); }
.req-card h3 { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.req-card ul { color: var(--muted); padding-left: 1.25rem; }
.req-card ul li { margin-bottom: 0.4rem; line-height: 1.7; }
.req-card strong { color: var(--text); }

/* Contact cards */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 860px; }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
  text-align: center;
}
.contact-card:hover { border-color: var(--accent-line); }
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }

/* Legal content */
.content { max-width: 780px; padding: 4rem clamp(1.25rem, 4vw, 3rem) 6rem; }
.content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.content p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.content ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.content ul li { margin-bottom: 0.5rem; line-height: 1.7; }
.content strong { color: var(--text); }

/* Portfolio (profile pages) */
.profile-hero { padding: 9rem 0 4rem; border-bottom: 1px solid var(--border); }
.profile-hero .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; align-items: center; }
@media (max-width: 640px) { .profile-hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.profile-avatar { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong); }
.profile-avatar { position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-family: 'Sora', sans-serif; font-weight: 800; font-size: 3rem; color: var(--accent); }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.profile-badge {
  display: inline-flex;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.profile-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }
.profile-role { font-size: 1.05rem; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.profile-desc { color: var(--muted); max-width: 560px; line-height: 1.75; }

.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .server-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .server-grid { grid-template-columns: 1fr; } }
.server-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.server-card:hover { border-color: var(--accent-line); }
.server-logo {
  width: 100%; height: 140px;
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 1rem;
}
.server-logo img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.server-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.server-card-header h3 { font-size: 1.1rem; }
.server-role {
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.server-role.owner { background: rgba(126,224,163,0.08); color: var(--green); border-color: rgba(126,224,163,0.3); }
.server-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin: 0; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.25s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.resource-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.resource-type { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; font-family: 'DM Mono', monospace; }
.resource-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.resource-url { font-size: 0.75rem; color: var(--dim); word-break: break-all; }

.link-list { display: flex; flex-direction: column; gap: 0.75rem; }
.link-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.link-item:hover { border-color: var(--accent-line); }
.link-item h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.2rem; }
.link-item p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.link-arrow { color: var(--dim); flex-shrink: 0; }
.link-item:hover .link-arrow { color: var(--accent); }

/* Error pages */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
}
.error-code {
  font-size: clamp(5.5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-family: 'DM Mono', monospace;
}
.error-page h1 { font-size: 1.5rem; font-weight: 700; margin: 1.25rem 0 0.75rem; }
.error-page p { color: var(--muted); max-width: 440px; margin-bottom: 2rem; line-height: 1.7; }
.error-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,8,10,0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 2.5rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box img.partner-img { height: 44px; width: auto; margin: 0 auto 1.25rem; display: block; }
.modal-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-box > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-code {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Mono', monospace;
  font-size: 1.6rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  border-radius: 8px;
  padding: 0.9rem 1.9rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  user-select: all;
  transition: border-color 0.2s;
}
.modal-code:hover { border-color: var(--accent); }
.modal-code svg { width: 18px; height: 18px; color: var(--muted); }
.modal-note { font-size: 0.78rem; color: var(--dim); margin-bottom: 1.5rem; }
.modal-box .btn { width: 100%; }
.modal-box .btn + .btn { margin-top: 0.6rem; }
.modal-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 40px; height: 40px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

/* ===== Staff directory (portfolios/index.html) ===== */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.staff-card { display: flex; align-items: center; gap: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.4rem; transition: border-color 0.25s, transform 0.2s; }
a.staff-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.staff-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.staff-avatar { position: relative; }
.staff-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; background: var(--surface-2); }
.staff-name { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.staff-role { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.15rem; }
.staff-link { font-size: 0.78rem; color: var(--dim); margin-top: 0.25rem; }
a.staff-card:hover .staff-link { color: var(--accent); }
.execs-more { margin-top: 1rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
