:root {
  --background: #0a0a0a;
  --foreground: #f0f0f0;
  --card: #0f0f0f;
  --muted: #888;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #1c69d4;
  --violet: #6f52b8;
  --accent: #e8001a;
  --warning: #f59e0b;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.m-stripe {
  display: flex;
  width: 100%;
  height: 3px;
}

.m-stripe span {
  flex: 1;
}

.m-stripe span:nth-child(1) {
  background: var(--primary);
}

.m-stripe span:nth-child(2) {
  background: var(--violet);
}

.m-stripe span:nth-child(3) {
  background: var(--accent);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.25em;
}

.brand span,
.eyebrow,
.text-link span,
.primary-btn span {
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.desktop-nav button,
.mobile-nav button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.desktop-nav button:hover,
.mobile-nav button:hover {
  color: var(--foreground);
}

.desktop-nav .hire-btn {
  padding: 12px 24px;
  color: #fff;
  background: var(--primary);
  letter-spacing: 0.2em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-fade {
  position: absolute;
  inset: 0;
}

.hero-fade.side {
  background: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.75), transparent);
}

.hero-fade.bottom {
  background: linear-gradient(0deg, #000, transparent 45%, rgba(0, 0, 0, 0.4));
}

.speed-lines i {
  position: absolute;
  width: 1px;
  transform: rotate(-15deg);
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  opacity: var(--opacity);
  height: var(--height);
  right: var(--right);
  top: var(--top);
}

.speed-lines i:nth-child(1) {
  --line: var(--primary);
  --opacity: 0.15;
  --height: 280px;
  --right: 22%;
  --top: 20%;
}

.speed-lines i:nth-child(2) {
  --line: var(--violet);
  --opacity: 0.09;
  --height: 180px;
  --right: 30%;
  --top: 30%;
}

.speed-lines i:nth-child(3) {
  --line: var(--accent);
  --opacity: 0.07;
  --height: 220px;
  --right: 16%;
  --top: 35%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 112px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-kicker p,
.eyebrow,
.production-note span,
.scroll-cue span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.hero-kicker p {
  margin: 0;
  color: var(--primary);
}

.pit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.pit-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: readyPulse 1.6s infinite;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 56px;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.outline-title,
.outline-small {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

.hero-copy {
  max-width: 540px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.production-note {
  position: absolute;
  bottom: 32px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.production-note span,
.scroll-cue span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.3em;
}

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue i {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrollCue 1.6s infinite;
}

.section {
  padding-block: 144px;
}

.split,
.gear-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}

.lead,
.section-copy,
.reveal p:not(.eyebrow),
.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.125rem;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: 11px;
}

.section-copy {
  max-width: 450px;
  margin: -40px 0 64px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  gap: 20px;
}

.text-link.muted {
  color: var(--muted);
  border-color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card,
.skill-card,
.project-card,
.gear-panel,
.telemetry-panel,
.gear-box,
.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
}

.stat-card {
  padding: 28px;
  transition: border-color 0.25s ease;
}

.stat-card:hover {
  border-color: rgba(28, 105, 212, 0.4);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.stat-card span,
.skill-card p,
.gear-box p,
.tag,
.spec-row small,
.footer-row p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.career,
.telemetry,
.contact {
  background: var(--card);
}

.gear-box {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(28, 105, 212, 0.05), transparent 70%);
}

.carbon,
.scan-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.carbon {
  opacity: 0.03;
  background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 6px);
}

#gearSvg {
  position: relative;
  z-index: 1;
  width: 100%;
}

.gear-node {
  cursor: pointer;
}

.gear-box p {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  text-align: center;
}

.gear-panel {
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gear-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gear-meta span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.gear-role {
  padding: 4px 12px;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
}

.gear-panel h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--border);
  letter-spacing: 0.2em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.skill-card {
  padding: 32px;
  border-width: 0 1px 0 0;
}

.skill-card:last-child {
  border-right: 0;
}

.skill-card p {
  margin: 0 0 28px;
  color: var(--primary);
  letter-spacing: 0.45em;
}

.skill-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-card li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: rgba(28, 105, 212, 0.5);
}

.telemetry-panel {
  position: relative;
  padding: clamp(32px, 4vw, 48px);
  background: var(--background);
  overflow: hidden;
}

.scan-lines {
  opacity: 0.025;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #fff 2px 3px);
  background-size: 100% 4px;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(28, 105, 212, 0.6);
}

.tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.telemetry-head,
.spec-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.telemetry-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.telemetry-head span:first-child {
  color: var(--primary);
}

.telemetry-head i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: readyPulse 1.6s infinite;
}

.gauge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-block: 40px;
}

.gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.gauge svg {
  width: 160px;
  height: 160px;
  overflow: visible;
}

.gauge p {
  max-width: 140px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.spec-row {
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.spec-row small {
  display: block;
  margin-bottom: 4px;
}

.spec-row strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.project-card:hover {
  border-color: rgba(28, 105, 212, 0.3);
}

.project-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
}

.project-media {
  min-height: 280px;
  background: #000;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.project-card:hover img {
  opacity: 0.75;
  transform: scale(1.05);
}

.project-body {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 48px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.4em;
}

.project-body h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  transition: color 0.2s ease;
}

.project-card:hover h3 {
  color: var(--primary);
}

.view-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  background: var(--background);
  border-color: rgba(28, 105, 212, 0.4);
}

.contact-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

footer {
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
}

.footer-row p {
  margin: 0;
}

.reveal,
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { box-shadow: 0 0 8px 3px rgba(34, 197, 94, 0.6); }
}

@keyframes scrollCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .production-note {
    display: none;
  }

  .split,
  .gear-layout,
  .project-inner {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .gauge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    border-width: 0 0 1px 0;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 32px, 1280px);
  }

  .section {
    padding-block: 96px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  h2 {
    margin-bottom: 40px;
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid,
  .skills-grid,
  .gauge-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-head,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-media {
    min-height: 220px;
  }
}
