:root {
  --bg: #0a0d13;
  --bg-raise: #10141d;
  --bg-card: #12161f;
  --bg-deep: #0c0f16;
  --line: #232936;
  --text: #e8ebf1;
  --text-dim: #9aa3b2;
  --muted: #5b6474;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 19, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 15px; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  font-size: 14px; text-decoration: none; padding: 8px 16px;
  border: 1px solid var(--accent); border-radius: 8px; color: var(--accent);
  transition: background .15s, color .15s;
}
.nav-cta:hover { background: var(--accent); color: #06281f; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
header.hero { padding: 110px 0 70px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; right: -140px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.14) 0%, rgba(94, 234, 212, 0.06) 40%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; max-width: 780px; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.hero p.lede { margin-top: 24px; max-width: 640px; font-size: 1.13rem; color: var(--text-dim); }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; transition: transform .15s, background .15s;
}
.btn-primary { background: var(--accent); color: #06281f; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }
.stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.stat { background: var(--bg-raise); padding: 22px 20px; }
.stat b { display: block; font-family: "Space Grotesk"; font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.facts-line { margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.wrap-wide { max-width: 1520px; }

/* ---------- compact page masthead ---------- */
.page-strip { padding: 52px 0 34px; border-bottom: 1px solid var(--line); }
.page-strip h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
.page-strip h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.strip-line { margin-top: 10px; font-size: 15.5px; color: var(--text-dim); max-width: 640px; }
.page-strip .facts-line { margin-top: 14px; font-size: 12px; }
.page-strip .eyebrow { margin-bottom: 12px; }

/* ---------- CRT: old-tube treatment ---------- */
:root {
  /* fine pixel-matrix texture, like a monitor up close */
  --pix: radial-gradient(circle, rgba(232, 235, 241, 0.040) 0.6px, transparent 0.7px);
}
body { background-image: var(--pix); background-size: 3px 3px; background-attachment: fixed; }
.tex-raise, #work, #pipeline, #capabilities { background-image: var(--pix) !important; background-size: 3px 3px; background-attachment: fixed; }

/* slow CRT roll bar drifting down the tube */
body::after {
  content: ""; position: fixed; left: 0; right: 0; top: -30%; height: 22%;
  z-index: 199; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(232, 235, 241, 0.045), transparent);
  animation: crt-roll 10s linear infinite;
}
@keyframes crt-roll { from { transform: translateY(0); } to { transform: translateY(600%); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; display: none; } }

/* RGB split on display headings only */
h1, h2, .section-title {
  text-shadow:
    -3px 0 rgba(255, 70, 120, 0.5),
    3px 0 rgba(70, 220, 255, 0.5);
}
.hero h1 em, .page-strip h1 em, .masthead h1 span { text-shadow: none; }

/* phosphor glow on the mono accents */
.section-label, .eyebrow { text-shadow: 0 0 10px rgba(94, 234, 212, 0.55); }
.logo span { text-shadow: 0 0 8px rgba(94, 234, 212, 0.8); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-label { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 14px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; max-width: 720px; }
.section-sub { margin-top: 16px; color: var(--text-dim); max-width: 680px; }

/* ---------- shared bits ---------- */
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-family: var(--mono); color: var(--text-dim); background: var(--bg-raise); }
.chip.hl { color: var(--accent); border-color: rgba(94, 234, 212, 0.3); }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px;
}

/* ---------- contact / footer ---------- */
#contact { border-top: 1px solid var(--line); text-align: center; padding: 110px 0; }
#contact .section-title { margin: 0 auto; }
#contact .section-sub { margin: 16px auto 0; }
.contact-email {
  display: inline-block; margin-top: 36px; font-family: var(--mono); font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(94, 234, 212, 0.35);
  padding-bottom: 4px; transition: border-color .15s;
}
.contact-email:hover { border-color: var(--accent); }
footer { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 10px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
