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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── BLUEPRINT BG ─────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ─── NAV ──────────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo .dot { color: var(--blue); }
.nav-center { display: none; gap: 36px; list-style: none; }
.nav-center a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-center a:hover, .nav-center a.active { color: var(--blue); }
.nav-hire {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--blue);
  border: none; padding: 9px 18px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s; display: none;
}
.nav-hire:hover { background: var(--blue-dark); }
.nav-burger {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer; border: none; background: none; padding: 4px; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  z-index: 190;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--blue); color: var(--white); }
.mobile-menu a:hover .mm-arrow { color: var(--white); }
.mm-arrow { color: var(--blue); font-size: 18px; }

/* ─── SHARED SECTION SHELL ─────────────────────────────────────────── */
.section { padding: 56px 24px; border-bottom: 1px solid var(--line); }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 40px;
}

/* ─── TAGS ─────────────────────────────────────────────────────────── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px;
}
.tag-blue { color: var(--blue); background: var(--blue-dim); }
.tag-grey { color: var(--ink-soft); background: var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--blue);
  border: 2px solid var(--blue);
  padding: 16px 28px; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  display: block; text-align: center;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mid); background: transparent;
  border: 2px solid var(--line-heavy);
  padding: 16px 28px; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  display: block; text-align: center;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ─── SCROLL REVEAL ────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.32s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.40s; }

/* ─── CURSOR (desktop) ─────────────────────────────────────────────── */
#cursor {
  width: 8px; height: 8px; background: var(--blue);
  border-radius: 50%; position: fixed;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0;
}
#cursor.expand { width: 32px; height: 32px; opacity: 0.15; }

/* ─── FOOTER ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--ink-soft); letter-spacing: 0.04em;
}

/* ─── KEYFRAMES ────────────────────────────────────────────────────── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── DESKTOP 768+ ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
  nav { padding: 0 60px; height: 64px; }
  .nav-burger { display: none; }
  .nav-center { display: flex; }
  .nav-hire { display: block; }
  .mobile-menu { display: none; }
  .section { padding: 80px 60px; }
  footer { flex-direction: row; justify-content: space-between; align-items: center; padding: 24px 60px; }
  .btn-primary, .btn-ghost { display: inline-block; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
