/* Christopher Gordon Portfolio — chrisgordon.dev */

:root {
  --bg: #0a0e17;
  --bg-alt: #0f1520;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.15);
  --accent-glow: rgba(34, 211, 238, 0.25);
  --green: #34d399;
  --purple: #a78bfa;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1100px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text) !important;
  background: var(--surface);
}
.nav-cta:hover { background: var(--surface-hover); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

main { position: relative; z-index: 1; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 80px) 24px 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0a0e17;
}
.btn-primary:hover { background: #67e8f9; color: #0a0e17; box-shadow: 0 0 24px var(--accent-glow); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.15); color: var(--text); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
}
.stat {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.section-head { margin-bottom: 48px; }
.section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); max-width: 560px; }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}
.project-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-2px);
}
.project-card.featured {
  border-color: rgba(34, 211, 238, 0.2);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06) 0%, var(--surface) 50%);
}

.project-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.15);
}
.project-icon.qti { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.2); }
.project-icon.forge { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.2); }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-year { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); }

.project-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.project-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.project-card > p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }

.project-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.project-stack li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}

.project-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Patterns */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pattern-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pattern-card h4 { font-size: 1rem; margin-bottom: 10px; color: var(--text); }
.pattern-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.skill-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.skill-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.skill-group p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 4px;
}
.timeline-body h4 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-org { font-size: 0.9rem; color: var(--accent); margin-bottom: 10px; }
.timeline-body p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; }

/* Credentials */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cred-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cred-card h4 { font-size: 1rem; margin-bottom: 8px; }
.cred-card p { font-size: 0.9rem; color: var(--text-muted); }
.cred-minor {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Contact */
.contact-section { padding-bottom: 100px; }
.contact-inner {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, var(--surface) 60%);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius-lg);
}
.contact-inner h2 { font-size: 2rem; margin-bottom: 12px; }
.contact-inner > p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.contact-links a { font-weight: 500; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-note { margin-top: 8px; font-size: 0.8rem; }

/* Live metrics */
.live-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.live-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.live-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}
.live-card h3 { font-size: 1.1rem; }
.live-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.status-live .live-badge, .live-badge.status-live { color: var(--green); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.1); }
.status-degraded .live-badge, .live-badge.status-degraded { color: #fbbf24; border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.1); }
.status-offline .live-badge, .live-badge.status-offline { color: #f87171; border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.1); }
.live-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-stat {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.live-stat-val {
  display: block;
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
}
.live-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* Profile extras */
.hero-contact { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 16px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.skill-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.repo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.repo-link { font-weight: 600; font-size: 0.9rem; }
.project-live-stat { font-family: var(--mono); font-size: 0.8rem; color: var(--green); margin-bottom: 16px; }

/* Dev showcase pages */
.dev-page { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 80px; }
.dev-hero { margin-bottom: 48px; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.dev-hero-qti { background: linear-gradient(135deg, rgba(167,139,250,0.12) 0%, var(--surface) 50%); border-color: rgba(167,139,250,0.2); }
.dev-hero-malwatch { background: linear-gradient(135deg, rgba(34,211,238,0.1) 0%, var(--surface) 50%); }
.dev-hero-forge { background: linear-gradient(135deg, rgba(52,211,153,0.1) 0%, var(--surface) 50%); }
.dev-hero h1 { font-size: 2.25rem; margin: 12px 0 8px; }
.dev-brand { color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.dev-summary { color: var(--text-muted); max-width: 720px; margin-bottom: 24px; line-height: 1.7; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dev-live-bar { margin-top: 24px; max-width: 560px; }

.pillar-grid, .tier-grid, .compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pillar-card, .tier-card, .compliance-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pillar-card h4, .tier-card h4 { margin-bottom: 12px; color: var(--accent); font-size: 0.9rem; }
.pillar-card ul, .tier-card ul, .built-list, .bnai-rules { padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }
.pillar-card li, .tier-card li, .built-list li { margin-bottom: 6px; }

.bnai-block {
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-lg);
}
.bnai-block h3 { font-family: var(--mono); color: var(--purple); margin-bottom: 12px; }

.cycle-list { padding-left: 24px; color: var(--text-muted); }
.cycle-list li { margin-bottom: 12px; padding-left: 8px; }

.compliance-card strong { display: block; margin-bottom: 8px; color: var(--text); }
.compliance-card p { font-size: 0.9rem; color: var(--text-muted); }

.probe-list { list-style: none; }
.probe-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}
.probe-list li.ok { color: var(--green); background: rgba(52,211,153,0.08); }
.probe-list li.fail { color: #f87171; background: rgba(248,113,113,0.08); }

.site-footer code { font-family: var(--mono); font-size: 0.85em; color: var(--text-muted); }

/* Story sections */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.story-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.story-period { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 10px; }
.story-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.story-org { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.story-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.story-highlights { margin-top: 16px; padding-left: 18px; color: var(--text-dim); font-size: 0.9rem; }
.story-highlights li { margin-bottom: 6px; }

/* Demos */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.demo-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.demo-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.demo-endpoint { margin-bottom: 12px; }
.demo-endpoint code { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.demo-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.demo-try { padding: 8px 16px; font-size: 0.85rem; }
.demo-static-note { font-size: 0.8rem; color: var(--text-dim); display: block; margin-top: 8px; }
.demo-static-note code { font-family: var(--mono); font-size: 0.75rem; }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.case-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.case-card h3 { font-size: 1.1rem; margin: 12px 0; }
.case-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; line-height: 1.6; }

/* Tools */
.tools-grid { display: flex; flex-direction: column; gap: 32px; }
.tools-category h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--accent); }
.tools-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tool-card h4 { font-size: 1rem; margin-bottom: 4px; }
.tool-type { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); display: block; margin-bottom: 10px; }
.tool-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.tool-card code { font-family: var(--mono); font-size: 0.75rem; }

/* Video gallery */
.video-hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.video-featured { margin-bottom: 48px; }
.video-featured .video-card {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, var(--surface) 55%);
}
.video-featured .video-card-body { padding: 24px 28px; }
.video-featured .video-card h3 { font-size: 1.4rem; }
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border-bottom: 1px solid var(--border);
}
.video-card-featured .video-player { max-height: 560px; }

.video-spotlight {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.video-card-large { border-color: rgba(167, 139, 250, 0.3); }
.video-card-commercial { border-color: rgba(167, 139, 250, 0.15); }
.video-category-links { margin-top: 8px; font-size: 0.9rem; }
.video-category-links a { font-weight: 600; }

.video-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.video-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.video-status-preview {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.video-category { margin-bottom: 48px; }
.video-category:last-child { margin-bottom: 0; }
.video-category-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.video-category-head h3 { font-size: 1.15rem; margin-bottom: 6px; }
.video-category-forge .video-category-head h3 { color: var(--green); }
.video-category-qti .video-category-head h3 { color: var(--purple); }
.video-category-career .video-category-head h3 { color: var(--accent); }
.video-category-head p { font-size: 0.9rem; color: var(--text-muted); max-width: 560px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.video-card:hover { border-color: rgba(255, 255, 255, 0.12); }
.video-card-body { padding: 16px 20px 20px; }
.video-studio {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.video-studio-forge { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); }
.video-studio-career { color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(34, 211, 238, 0.2); }
.video-studio-qti { color: var(--purple); background: rgba(167, 139, 250, 0.12); border: 1px solid rgba(167, 139, 250, 0.2); }
.video-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.video-scene { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-bottom: 8px; }
.video-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.video-poster {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.video-placeholder-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.video-poster-military { background: linear-gradient(135deg, #1a2e1a 0%, #0f1520 100%); }
.video-poster-medic { background: linear-gradient(135deg, #1a2535 0%, #0f1520 100%); }
.video-poster-network { background: linear-gradient(135deg, #1a2030 0%, #0f1520 100%); }
.video-poster-cyber { background: linear-gradient(135deg, #0d2530 0%, #0f1520 100%); }
.video-poster-founder { background: linear-gradient(135deg, #1a1530 0%, rgba(34,211,238,0.08) 100%); }
.video-duration { display: block; font-size: 0.8rem; color: var(--text-dim); }

/* Job skills */
.section-lead { color: var(--text-muted); max-width: 720px; margin-bottom: 32px; line-height: 1.75; }
.cred-chips { margin-top: 16px; }
.subsection-title { font-size: 1.05rem; color: var(--accent); margin: 32px 0 16px; }
.skills-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 8px; }
.skill-matrix-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.skill-matrix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.skill-matrix-head h3 { font-size: 1rem; }
.skill-level { font-family: var(--mono); font-size: 0.7rem; color: var(--green); text-transform: uppercase; }
.skill-matrix-card ul { padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; }
.skill-matrix-card li { margin-bottom: 8px; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.platform-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.platform-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.platform-role { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); display: block; margin-bottom: 8px; }
.platform-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Platform presentation */
.presentation-block { margin-top: 8px; }
.presentation-showcase {
  padding: 28px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06) 0%, var(--surface) 55%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-lg);
}
.presentation-head { max-width: 760px; margin-bottom: 24px; }
.presentation-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.presentation-head h3 { font-size: 1.35rem; margin-bottom: 10px; }
.presentation-head p { color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.presentation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.presentation-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.presentation-topic {
  padding: 18px;
  background: rgba(15, 21, 32, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.presentation-topic h4 { font-size: 0.92rem; margin-bottom: 8px; color: var(--text); }
.presentation-topic p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.docs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  color: var(--text);
}
.doc-card:hover { border-color: var(--accent); color: var(--text); }
.doc-type { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.08em; }
.doc-card h4 { font-size: 0.95rem; margin: 8px 0 6px; color: var(--text); }
.doc-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Assistant */
.assistant-panel {
  max-width: 720px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: var(--radius-lg);
}
.assistant-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.assistant-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.assistant-form input:focus { outline: none; border-color: var(--accent); }
.assistant-response p { color: var(--text-muted); line-height: 1.7; }
.assistant-meta { margin-top: 12px; font-size: 0.8rem; color: var(--text-dim); font-family: var(--mono); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 14, 23, 0.98);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .video-spotlight { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card:hover { transform: none; }
}
