:root {
  --black: #0a0a0c; --night: #101015; --carbon: #18181e; --graphite: #222230;
  --steel: #3a3a4a; --muted: #7a7a8e; --silver: #b0b0be; --light: #d8d8e2;
  --white: #f0f0f4;
  --accent: #3b82c4; --accent-bright: #5a9fd6; --accent-dim: #2a5f8f;
  --accent-glow: rgba(59, 130, 196, 0.06);
  /* Fault Line brand color for callout */
  --fl-accent: #d4842a; --fl-accent-dim: #a06418;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --max-w: 780px; --header-h: 64px; --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; color-scheme: dark only; background: #0a0a0c; }
body { font-family: var(--font-body); font-size: 16px; color: #d8d8e2; background: #0a0a0c !important; line-height: 1.7; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
body::after { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at 35% 40%, var(--accent-glow) 0%, transparent 55%); pointer-events: none; z-index: 0; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); background: rgba(10,10,12,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; }
.logo:hover { color: var(--white); }
.logo-initials { width: 32px; height: 32px; border: 2px solid var(--accent); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--silver); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 18px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); position: absolute; left: 0; transition: 0.3s; }
.nav-toggle span:first-child { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:last-child { top: 16px; }

/* Page content */
.page-content { position: relative; z-index: 1; padding: calc(var(--header-h) + 48px) 0 64px; }

/* Intro section */
.intro { margin-bottom: 48px; }
.name { font-family: var(--font-heading); font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 12px; }
.role { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 20px; }
.intro-text { font-size: 17px; color: var(--silver); line-height: 1.7; max-width: 56ch; }

/* FL callout card */
a.fl-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--night); border: 1px solid var(--graphite); border-radius: 8px; padding: 24px 28px; margin-bottom: 56px; transition: border-color 0.3s; text-decoration: none; color: inherit; }
a.fl-card:hover { border-color: var(--fl-accent-dim); color: inherit; }
.fl-icon { width: 24px; height: 24px; border: 2px solid var(--fl-accent); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 8px; }
.fl-icon::after { content: ''; width: 12px; height: 2px; background: var(--fl-accent); transform: rotate(-45deg); }
.fl-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fl-name { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--white); }
.fl-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.fl-arrow { font-size: 20px; color: var(--fl-accent); transition: transform 0.2s; flex-shrink: 0; }
a.fl-card:hover .fl-arrow { transform: translateX(4px); }

/* Content sections */
.content-section { margin-bottom: 48px; }
.section-heading { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--graphite); }
.content-section p { color: var(--silver); margin-bottom: 14px; line-height: 1.7; }

/* Credentials */
.cred-list { list-style: none; }
.cred-list li { padding: 14px 0; border-bottom: 1px solid var(--graphite); display: flex; align-items: baseline; gap: 14px; font-size: 15px; color: var(--silver); }
.cred-list li:first-child { border-top: 1px solid var(--graphite); }
.cred-marker { width: 6px; height: 6px; background: var(--accent-dim); border-radius: 1px; flex-shrink: 0; position: relative; top: 6px; }

/* Timeline */
.timeline-item { padding: 16px 0; border-bottom: 1px solid var(--graphite); }
.timeline-item:first-child { border-top: 1px solid var(--graphite); }
.timeline-role { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.timeline-org { font-size: 14px; color: var(--accent); }
.timeline-period { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.timeline-desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* Links row */
.links-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.link-item { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.link-item:hover { color: var(--accent-bright); }
.link-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--steel); transition: background 0.2s; }
.link-item:hover .link-dot { background: var(--accent); }

/* Page header (blog) */
.page-header { padding: calc(var(--header-h) + 48px) 24px 32px; border-bottom: 1px solid var(--graphite); }
.page-title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--white); line-height: 1.1; }
.page-subtitle { font-size: 16px; color: var(--silver); max-width: 56ch; margin-top: 12px; }
.section-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Blog */
.section { padding: 48px 24px 64px; position: relative; z-index: 1; }
.blog-list { max-width: 640px; }
.blog-post { padding: 28px 0; border-bottom: 1px solid var(--graphite); }
.blog-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.blog-title a { color: var(--white); }
.blog-title a:hover { color: var(--accent-bright); }
.blog-excerpt { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Prose */
.prose { max-width: 64ch; position: relative; z-index: 1; }
.prose p { color: var(--silver); margin-bottom: 16px; }
.prose h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--white); margin-top: 48px; margin-bottom: 16px; }
.prose h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--white); margin-top: 32px; margin-bottom: 12px; }
.prose ul, .prose ol { margin-bottom: 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; color: var(--silver); }
.prose strong { font-weight: 600; color: var(--light); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--carbon); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--graphite); }

/* Footer */
.site-footer { border-top: 1px solid var(--graphite); padding: 32px 24px; position: relative; z-index: 1; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 12px; color: var(--steel); font-family: var(--font-mono); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--accent-bright); }

/* Decorative fault line */
.fault-line { position: fixed; right: 10%; top: 8%; width: 1px; height: 84%; background: linear-gradient(to bottom, transparent, var(--accent-dim) 25%, var(--accent) 50%, var(--accent-dim) 75%, transparent); opacity: 0.08; animation: pulse 5s ease-in-out infinite; z-index: 0; }
@keyframes pulse { 0%, 100% { opacity: 0.06; } 50% { opacity: 0.14; } }

/* Animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--black); border-bottom: 1px solid var(--graphite); padding: 24px; gap: 16px; z-index: 99; }
  a.fl-card { flex-direction: column; align-items: flex-start; }
  .fl-arrow { align-self: flex-end; }
  .fault-line { display: none; }
}
