@charset "UTF-8";

:root {
  --bg: #09090b;
  --bg-alt: #121214;
  --border: #27272a;
  
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  
  --accent-research: #f97316; /* Orange */
  --accent-systems: #3b82f6;  /* Blue */
  --accent-os: #10b981;       /* Green */
  --accent-error: #ef4444;    /* Red for failures */

  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body.engineering-theme {
  font-family: var(--font-body); background-color: var(--bg);
  color: var(--text-main); line-height: 1.6; overflow-x: hidden;
}

::selection { background: rgba(250, 250, 250, 0.2); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.mt-small { margin-top: 16px; }
.ml-small { margin-left: 16px; }
.mt-medium { margin-top: 64px; }
.mt-large { margin-top: 120px; }
.mb-large { margin-bottom: 120px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
.text-link {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-main);
  text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.2s; display: inline-block;
}
.text-link:hover { opacity: 0.7; }

/* ════════ PROGRESS & NAV ════════ */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--text-main); width: 0%; z-index: 9999; }
.nav-minimal {
  position: fixed; top: 0; left: 0; right: 0; background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 1000; transition: padding 0.3s var(--ease);
}
.nav-container { max-width: 1100px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.nav-resume { color: var(--text-main) !important; border: 1px solid var(--border); padding: 6px 12px; border-radius: 4px; }
.nav-resume:hover { background: var(--text-main); color: var(--bg) !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); cursor: pointer; }
@media(max-width: 900px) { .nav-links { display: none; } .mobile-menu-btn { display: block; } }

/* ════════ SILENCE HERO ════════ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 160px; }
.hero-center { text-align: center; max-width: 800px; margin: 0 auto; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.hero-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; letter-spacing: 0.2em; }
.hero-statement { font-size: clamp(24px, 4vw, 48px); line-height: 1.2; color: var(--text-muted); font-weight: 400; margin-bottom: 48px; }
.hero-roles {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-main);
}
.hero-roles .dot { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

.hero-visual-footer {
  width: 100%; height: 400px; background: var(--bg-alt); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.v-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* ════════ STAGES BASE ════════ */
.lifecycle-stage { padding: 140px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }
.stage-header { margin-bottom: 80px; }
.stage-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 12px; }
.stage-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 16px; }
.stage-desc { font-size: 18px; color: var(--text-muted); max-width: 600px; }
.accent-research .stage-num { color: var(--accent-research); }
.accent-systems .stage-num { color: var(--accent-systems); }
.accent-os .stage-num { color: var(--accent-os); }

/* ════════ MANIFESTO ════════ */
.manifesto-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
@media(max-width: 768px) { .manifesto-grid { grid-template-columns: 1fr; gap: 40px; } }
.manifesto-title h2 { font-size: 32px; margin-top: 12px; }
.manifesto-list { display: flex; flex-direction: column; gap: 32px; }
.principle { display: flex; gap: 24px; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.principle:last-child { border-bottom: none; }
.p-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); width: 30px; }
.principle h3 { font-size: 24px; font-weight: 400; color: var(--text-main); }

/* ════════ PHILOSOPHY & ATLAS ════════ */
.silence-block { text-align: center; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.massive-text { font-size: clamp(32px, 5vw, 64px); line-height: 1.1; }
.massive-text.muted { color: var(--text-muted); }
.lead-text { font-size: 24px; line-height: 1.5; color: var(--text-muted); }
.lead-text strong { color: var(--text-main); font-weight: 400; }

.system-list {
  display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 60px 0;
  font-family: var(--font-mono); font-size: 14px; color: var(--text-muted);
}
.system-list span:last-child { color: var(--text-main); font-size: 18px; font-weight: 600; margin-top: 16px; }

.atlas-interactive { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden; }
.atlas-header { padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--bg-alt); text-align: center; }
.atlas-graph-placeholder { height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* ════════ RESEARCH (PROOF PIPELINE) ════════ */
.proof-pipeline { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.proof-step { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); overflow: hidden; }
.proof-visual { height: 250px; background: var(--bg); border-bottom: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; text-align: center; }
.proof-text { padding: 24px; }
.proof-text h4 { font-family: var(--font-mono); font-size: 12px; color: var(--text-main); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.proof-text p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.pipeline-connector { font-family: var(--font-mono); color: var(--text-muted); margin: 16px 0; font-size: 18px; }
.final-step { border: 1px dashed var(--border); background: transparent; }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; padding: 10px 20px; border-radius: 4px; transition: all 0.2s;
}
.btn-primary { background: var(--text-main); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

/* ════════ SYSTEMS & FAILURES ════════ */
.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media(max-width: 768px) { .layout-split { grid-template-columns: 1fr; } }
.cs-content h3 { font-size: 28px; margin-bottom: 16px; }
.cs-content p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.cs-media { height: 400px; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 4px; }

/* Failure Log */
.failure-log { border: 1px solid var(--border); border-radius: 8px; background: var(--bg); overflow: hidden; }
.failure-header { padding: 32px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.f-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--accent-error); color: var(--accent-error); border-radius: 4px; margin-bottom: 12px; }
.failure-header h3 { font-size: 24px; }

.failure-timeline { padding: 32px; display: flex; flex-direction: column; gap: 32px; position: relative; }
.failure-timeline::before { content: ''; position: absolute; left: 37px; top: 32px; bottom: 32px; width: 1px; background: var(--border); }
.f-step { position: relative; padding-left: 32px; }
.f-step::before { content: ''; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; background: var(--border); border-radius: 50%; border: 2px solid var(--bg); }
.f-step.success::before { background: var(--accent-systems); border-color: var(--accent-systems); }

.f-label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.f-step p { font-size: 15px; color: var(--text-main); line-height: 1.6; margin-bottom: 8px; }
.error-text { color: var(--accent-error) !important; }

/* ════════ LAB NOTEBOOK ════════ */
.notebook-list { display: flex; flex-direction: column; }
.notebook-entry {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
@media(max-width: 600px) { .notebook-entry { grid-template-columns: 1fr; gap: 12px; } }
.notebook-entry:first-child { border-top: 1px solid var(--border); }
.n-id { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.n-content h4 { font-size: 18px; margin-bottom: 12px; }
.n-content p { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 600px; }

/* ════════ DOMAINS ════════ */
.network-placeholder {
  width: 100%; height: 400px; border: 1px dashed var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}

/* ════════ FOOTER ════════ */
.full-width-visual { width: 100%; height: 500px; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.full-width-visual.small-height { height: 300px; }
.massive-footer-photo { width: 100%; height: 60vh; background: var(--bg-alt); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }

.minimal-footer { border-top: 1px solid var(--border); padding: 64px 0; background: var(--bg); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-left strong { font-size: 18px; display: block; margin-bottom: 16px; }
.footer-links { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-main); }
.footer-right span { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }