:root {
  /* ── Electronics-inspired palette: PCB substrate + copper trace + activated LED ── */
  --bg:        #0a1512;
  --surface:   #0f1f1a;
  --surface2:  #142a23;
  --border:    #1f3a30;
  --border2:   #2a4d40;
  --copper:    #ff8a3d;
  --copper2:   #ffb27a;
  --led:       #3dffb0;
  --led2:      #17c98a;
  --text:      #eef2ee;
  --muted:     #aebcb4;
  --dim:       #6d7f76;
  --display:   'Sora', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  --mono:      'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* PCB dot-grid ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--border2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
  pointer-events: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 2px; }

a { text-decoration: none; }

/* ─── NAVBAR ─────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
nav.site-nav.scrolled {
  background: rgba(10,21,18,.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--text);
  text-transform: uppercase;
}
.nav-logo .chip {
  width: 30px; height: 30px;
  border: 1.5px solid var(--led);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--led);
  position: relative;
  flex-shrink: 0;
}
.nav-logo .chip::before, .nav-logo .chip::after {
  content: '';
  position: absolute;
  left: -5px; right: -5px;
  height: 1px;
  background: var(--led);
  opacity: .6;
}
.nav-logo .chip::before { top: 6px; }
.nav-logo .chip::after { bottom: 6px; }

/* Hamburger trigger — always visible per spec */
.hamburger-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1200;
  transition: border-color .2s, background .2s;
}
.hamburger-btn:hover { border-color: var(--led); background: rgba(61,255,176,.06); }
.hamburger-btn span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #081210;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease, visibility 0s;
}
.nav-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
}
.nav-overlay-links {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-overlay-links li { border-bottom: 1px solid var(--border); }
.nav-overlay-links li:first-child { border-top: 1px solid var(--border); }
.nav-overlay-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 4px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 600;
  color: var(--text);
  transition: color .2s, padding-left .2s;
}
.nav-overlay-links a .idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--copper);
}
.nav-overlay-links a:hover { color: var(--led); padding-left: 16px; }
.nav-overlay-foot {
  position: relative;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .45;
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, transparent 30%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 48px; width: 100% !important; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--copper); }

h1.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 20px;
}
h1.hero-title span { color: var(--led); }

.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.75;
}

.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat-num { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 4px; }
.stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.btn-primary-custom {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--bg); background: var(--led); border: 1px solid var(--led);
  padding: 14px 26px; transition: background .2s, gap .2s, color .2s;
}
.btn-primary-custom:hover { background: transparent; color: var(--led); gap: 16px; }
.btn-ghost-custom {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text); background: transparent; border: 1px solid var(--border2);
  padding: 14px 26px; margin-left: 14px; transition: border-color .2s, color .2s;
}
.btn-ghost-custom:hover { border-color: var(--copper); color: var(--copper); }

/* Schematic hero panel — signature element replacing screenshot/code block */
.schematic-panel {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 20px;
}
.schematic-panel svg { width: 100%; height: auto; display: block; }
.sch-trace { fill: none; stroke: var(--border2); stroke-width: 1.5; }
.sch-trace-active { fill: none; stroke: var(--led); stroke-width: 1.5; stroke-dasharray: 6 5; animation: dashflow 1.8s linear infinite; }
.sch-node { fill: var(--bg); stroke: var(--copper); stroke-width: 1.5; }
.sch-label { font-family: 'IBM Plex Mono', monospace; font-size: 8px; fill: var(--dim); letter-spacing: .05em; }
.sch-wave { fill: none; stroke: var(--copper2); stroke-width: 1.5; }
@keyframes dashflow { to { stroke-dashoffset: -22; } }

.corner-marker { position: absolute; width: 20px; height: 20px; border-color: var(--dim); border-style: solid; opacity: .55; }
.corner-marker.tl { top: 100px; left: 20px; border-width: 1px 0 0 1px; }
.corner-marker.tr { top: 100px; right: 20px; border-width: 1px 1px 0 0; }
.corner-marker.bl { bottom: 40px; left: 20px; border-width: 0 0 1px 1px; }
.corner-marker.br { bottom: 40px; right: 20px; border-width: 0 1px 1px 0; }

.coord-label { position: absolute; bottom: 40px; right: 48px; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; }

/* ─── SECTION SHARED ─────────────────────────────────── */
section { padding: 110px 48px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); max-width: 60px; }
h2.section-title { font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 20px; color: var(--text); }
.section-intro { font-size: 15px; color: var(--muted); max-width: 640px; margin-bottom: 56px; line-height: 1.75; }

/* ─── EXPERTISE STRIP ─────────────────────────────────── */
#expertise { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0; }
.expertise-inner { display: flex; align-items: stretch; min-width: max-content; }
.expertise-chip {
  padding: 22px 28px; border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.expertise-chip i { color: var(--led); font-size: 13px; }
.expertise-chip:last-child { border-right: none; }

/* ─── CAPABILITY CARDS ────────────────────────────────── */
#capabilities { background: var(--bg); }
.capability-card {
  background: var(--bg); padding: 36px 32px; position: relative; overflow: hidden;
  border: 1px solid var(--border); height: 100%; transition: background .3s;
}
.capability-card:hover { background: var(--surface); }
.capability-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--led); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.capability-card:hover::before { transform: scaleX(1); }
.cap-icon {
  width: 44px; height: 44px; border: 1px solid var(--border2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  color: var(--copper); font-size: 18px;
}
h3.cap-name { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.25; }
.cap-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ─── PROCESS / WORKFLOW ─────────────────────────────── */
#process { background: var(--surface); }
.wf-steps { display: flex; flex-direction: column; }
.wf-step { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; position: relative; }
.wf-step:not(:last-child)::after {
  content: ''; position: absolute; left: 21px; top: 44px; bottom: -1px; width: 1px; background: var(--border2); z-index: 0;
}
.wf-num-col { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.wf-num {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border2); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono);
  font-size: 12px; font-weight: 500; color: var(--muted); flex-shrink: 0; transition: background .2s, border-color .2s, color .2s;
}
.wf-step:hover .wf-num { background: rgba(61,255,176,.08); border-color: var(--led); color: var(--led); }
.wf-body { padding: 9px 0 30px; }
.wf-step:last-child .wf-body { padding-bottom: 4px; }
.wf-label { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 4px; line-height: 1.3; }
.wf-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; max-width: 560px; }

/* ─── PLATFORMS ───────────────────────────────────────── */
#platforms { background: var(--bg); }
.platform-card {
  background: var(--surface); padding: 32px 30px; border: 1px solid var(--border); height: 100%;
  transition: border-color .2s;
}
.platform-card:hover { border-color: var(--copper); }
.platform-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.platform-icon {
  width: 40px; height: 40px; border: 1px solid var(--border2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--led); font-size: 17px; flex-shrink: 0;
}
.platform-name { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text); }
.platform-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ─── PROJECTS & DELIVERABLES (two-column lists) ──────── */
#projects { background: var(--surface); }
.list-panel { background: var(--bg); border: 1px solid var(--border); padding: 36px 32px; height: 100%; }
.list-panel-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.list-panel-title i { font-size: 13px; }
ul.check-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
ul.check-list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text);
}
ul.check-list li:last-child { border-bottom: none; }
ul.check-list li i { color: var(--led); font-size: 12px; flex-shrink: 0; }

/* ─── PRINCIPLES / ABOUT ──────────────────────────────── */
#principles { background: var(--bg); }
.about-body { font-size: 15px; color: var(--muted); line-height: 1.85; }
.about-body p { margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }
.highlights-list { list-style: none; }
.highlight-item { padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 16px; }
.highlight-item:first-child { padding-top: 0; }
.hi-bullet { font-family: var(--mono); font-size: 10px; color: var(--led); letter-spacing: .1em; flex-shrink: 0; margin-top: 3px; }
.hi-text { font-size: 14px; color: var(--muted); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--led); display: flex; align-items: center; gap: 10px; }
.footer-copy { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .1em; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--led); }

.divider-line { height: 1px; background: var(--border); margin: 0 48px; }

/* ─── FADE IN ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .08s; }
.fade-up:nth-child(3) { transition-delay: .16s; }
.fade-up:nth-child(4) { transition-delay: .24s; }
.fade-up:nth-child(5) { transition-delay: .32s; }

/* ─── CURSOR DOT ─────────────────────────────────────── */
.cursor-dot { width: 6px; height: 6px; background: var(--led); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: transform .15s; mix-blend-mode: difference; }

@media (hover: none) { .cursor-dot { display: none; } }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 767px) {
  nav.site-nav { padding: 14px 22px; }
  .nav-logo span.wordmark { font-size: 12px; }
  section { padding: 72px 22px; }
  .hero-content { padding: 0 22px; }
  .hero-stats { gap: 22px; }
  footer { padding: 36px 22px; }
  .divider-line { margin: 0 22px; }
  #expertise .expertise-chip { padding: 18px 20px; }
  .nav-overlay { padding: 90px 24px 32px; }
}
