/* ================================================
   NORTH STAR — Design System
   style.css | Unified v2.5
   ================================================ */

:root {
  --bg-0:  #05050e;
  --bg-1:  #08081a;
  --bg-2:  #0c0c1e;
  --bg-card: rgba(255, 255, 255, 0.036);
  --bg-card-h: rgba(255, 255, 255, 0.065);

  --gold:        #e8b84b;
  --gold-dim:    rgba(232, 184, 75, 0.12);
  --gold-border: rgba(232, 184, 75, 0.25);
  --gold-glow:   0 0 35px rgba(232, 184, 75, 0.12);

  --blue:        #4da6ff;
  --blue-dim:    rgba(77, 166, 255, 0.09);
  --blue-border: rgba(77, 166, 255, 0.22);

  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0, 212, 255, 0.08);
  --cyan-border: rgba(0, 212, 255, 0.2);

  --green:       #4ade80;
  --green-dim:   rgba(74, 222, 128, 0.09);
  --green-border:rgba(74, 222, 128, 0.2);

  --t1: #f4f6fb;
  --t2: #b8c4d8;
  --t3: #92a2bc; /* High WCAG AAA contrast */

  --border: rgba(255, 255, 255, 0.08);

  --f-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --nav-h: 72px;
  --r:     12px;
  --r-sm:  6px;
  --r-lg:  20px;
  --pad:   1.75rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tx:   all 0.3s var(--ease);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--f-body);
  background: var(--bg-0);
  color: var(--t1);
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.section-sub   { color: var(--t2); font-size: 1.05rem; max-width: 650px; line-height: 1.75; }
.section-head  { margin-bottom: 3.5rem; }

.divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0.9rem 0 1.4rem;
}

/* === LAYOUT GRIDS === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5.5rem 0; position: relative; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* === NAV === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(5, 5, 14, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
  background: rgba(5, 5, 14, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t1);
}
.nav-logo .star { color: var(--gold); font-size: 1.3rem; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  transition: var(--tx);
}
.nav-links a:hover { color: var(--t1); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--gold); }
.nav-links a.nav-cta {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  margin-left: 0.5rem;
}
.nav-links a.nav-cta:hover { background: var(--gold); color: #000; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: var(--tx);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(5, 5, 14, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  transition: var(--tx);
}
.mobile-menu a:hover { color: var(--t1); background: rgba(255, 255, 255, 0.05); }
.mobile-menu a.active { color: var(--gold); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.85rem;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--tx);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: #f5c556; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 184, 75, 0.35); }
.btn-outline { background: transparent; color: var(--t1); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.75rem; }

/* === HERO STYLES === */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-family: var(--f-head); font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-hero p { font-size: 1.15rem; color: var(--t2); line-height: 1.7; max-width: 680px; margin: 0 auto; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(77, 166, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 166, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 20%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* === HOMEPAGE HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#starCanvas { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 3; text-align: center; max-width: 900px; padding: 0 2rem; }
.hero-content h1 { font-family: var(--f-head); font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 1rem; text-shadow: 0 4px 24px rgba(0,0,0,0.8); }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg-0)); z-index: 2; }

/* === ONSIGHT HERO & SOLID AIRPLANE FLYBY === */
.hero-onsight {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg-onsight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #0d122e 0%, #05050e 80%);
  z-index: 0;
}
.hero-overlay-onsight {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 14, 0.4);
  z-index: 1;
}

/* High performance, fully solid plane flyby (runs once) */
.jet-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.jet-solid {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  height: auto;
  opacity: 1 !important; /* Fully opaque */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  /* Smooth transform path from bottom-left to top-right */
  animation: jetFlightOnce 3.4s cubic-bezier(0.25, 1, 0.5, 1) 0.3s 1 normal forwards;
  will-change: transform;
}

.jet-solid svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes jetFlightOnce {
  0% {
    transform: translate3d(-300px, 85vh, 0) rotate(35deg) scale(0.85);
  }
  100% {
    transform: translate3d(115vw, -300px, 0) rotate(35deg) scale(1.15);
  }
}

/* === CARDS & DETAILS === */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--pad);
  transition: var(--tx);
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tech-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--gold-glow);
}
.tech-card:hover::before { transform: scaleX(1); }

.tech-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}
.tech-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.tech-card p  { font-size: 0.9rem; color: var(--t2); line-height: 1.7; }

/* Tags & Badges */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.tech-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--t2);
}

.badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.badge-gold  { background: var(--gold-dim);  color: var(--gold);  border: 1px solid var(--gold-border); }
.badge-blue  { background: var(--blue-dim);  color: var(--blue);  border: 1px solid var(--blue-border); }
.badge-cyan  { background: var(--cyan-dim);  color: var(--cyan);  border: 1px solid var(--cyan-border); }
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--tx);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--gold-glow);
}
.project-card-visual {
  height: 170px;
  background: linear-gradient(135deg, #090b1e 0%, #111833 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.project-card-body {
  padding: var(--pad);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.project-card-body p { font-size: 0.88rem; color: var(--t2); line-height: 1.65; margin-bottom: 1rem; }

/* Status Bar Legend on Projects */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 0 0 2.5rem;
}
.status-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
}

/* Roadmap */
.roadmap-wrap { position: relative; }
.roadmap-wrap::before {
  content: '';
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-border), var(--border) 85%, transparent);
}
.roadmap-item { display: flex; gap: 2rem; align-items: flex-start; padding: 1.75rem 0; position: relative; }
.rmap-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: var(--tx);
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--t3);
}
.roadmap-item.active .rmap-num { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.rmap-body { flex: 1; padding-top: 0.6rem; }
.rmap-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.rmap-body p { font-size: 0.9rem; color: var(--t2); line-height: 1.7; }

.status-pill { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; }
.sp-active   { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.sp-upcoming { background: rgba(255, 255, 255, 0.04); color: var(--t3); border: 1px solid var(--border); }
.sp-future   { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue-border); }

/* Stage Pills */
.stage-pills { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin: 2.5rem 0; }
.stage-pill { padding: 0.6rem 1.35rem; background: var(--bg-card); border: 1px solid var(--border); font-family: var(--f-mono); font-size: 0.78rem; color: var(--t2); }
.stage-pill:first-child { border-top-left-radius: var(--r-sm); border-bottom-left-radius: var(--r-sm); }
.stage-pill:last-child { border-top-right-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.stage-pill:not(:last-child)::after { content: '→'; margin-left: 1rem; color: var(--t3); }

/* OnSight Specific Panels */
.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--t3); }
.info-value { font-family: var(--f-mono); font-size: 0.85rem; color: var(--t1); }

.arch-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0.5rem; margin: 2rem 0; }
.arch-box { background: var(--bg-card); border: 1px solid var(--gold-border); border-radius: var(--r); padding: 1.5rem; }
.arch-box h4 { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 1rem; }
.arch-row { font-family: var(--f-mono); font-size: 0.78rem; color: var(--t2); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.arch-row:last-child { border-bottom: none; }
.arch-arrow { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gold); }

.dev-flow { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 1.5rem 0; position: relative; }
.dev-step { flex: 1; min-width: 140px; text-align: center; position: relative; z-index: 1; }
.dev-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600;
  margin: 0 auto 0.75rem;
  background: var(--bg-1); border: 1px solid var(--border); color: var(--t3);
}
.dev-step.done .dev-step-num { background: var(--gold); color: #000; border-color: var(--gold); }
.dev-step.current .dev-step-num { background: var(--gold-dim); border: 1px solid var(--gold); color: var(--gold); }
.dev-connector { position: absolute; top: 19px; left: 50%; width: 100%; height: 1px; background: var(--border); z-index: 0; }

.cap-card { text-align: left; }
.cap-status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.65rem; color: var(--t3); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cap-status.confirmed { color: var(--green); }

/* Stack Tags in About */
.stack-cat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: var(--pad); transition: var(--tx); }
.stack-cat:hover { border-color: var(--gold-border); }
.stack-cat h3 { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stack-tag {
  font-family: var(--f-mono); font-size: 0.78rem;
  padding: 0.35rem 0.85rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--t2);
}
.stack-tag:hover { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

/* Contact Terminal Styles */
.contact-wrapper { max-width: 680px; margin: 0 auto; }
.contact-row { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.c-label { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); }
.c-link { color: var(--t1); font-family: var(--f-mono); font-size: 0.85rem; transition: var(--tx); }
.c-link:hover { color: var(--gold); text-decoration: underline; }

.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.form-group label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t2); }
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  color: var(--t1);
  font-family: var(--f-body);
  font-size: 0.9rem;
  transition: var(--tx);
  outline: none;
}
.form-input:focus { border-color: var(--gold); background: rgba(232, 184, 75, 0.04); box-shadow: var(--gold-glow); }
textarea.form-input { min-height: 120px; resize: vertical; }

/* === UTILITY CLASSES === */
.section-bg-0 { background: var(--bg-0); }
.section-bg-1 { background: var(--bg-1); }
.section-bg-2 { background: var(--bg-2); }
.text-t1 { color: var(--t1); }
.text-t2 { color: var(--t2); }
.text-t3 { color: var(--t3); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.font-mono { font-family: var(--f-mono); }
.lead-text { font-size: 1.05rem; line-height: 1.8; color: var(--t2); margin-bottom: 1.5rem; }

/* === SVG ICONS === */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: currentColor;
  display: block;
}
.tech-icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--gold);
  transition: var(--tx);
}
.tech-icon-svg svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tech-card:hover .tech-icon-svg {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
  filter: drop-shadow(0 0 16px rgba(232, 184, 75, 0.4));
}

/* === TECHNICAL SPECIFICATIONS TABLE === */
.spec-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
}
.spec-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 1rem;
}
.spec-table-title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.spec-table-meta {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 580px; /* Ensures clean readable columns in scroll wrapper */
}
.spec-table th {
  padding: 1rem 1.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--t3);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.spec-table td {
  padding: 1.1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.spec-param {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.84rem;
  white-space: nowrap;
  width: 28%;
}
.spec-value {
  font-family: var(--f-mono);
  color: var(--t1);
  font-size: 0.88rem;
}
.spec-notes {
  color: var(--t2);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* === INTERACTIVE TELEMETRY HUD === */
.telemetry-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.telemetry-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.telemetry-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.telemetry-instrument {
  background: rgba(5, 5, 14, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center;
}
.instrument-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.attitude-canvas {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  display: block;
}
.waveform-canvas {
  width: 100%;
  height: 180px;
  background: rgba(5, 5, 14, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: block;
}
.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.85rem;
  text-align: left;
}
.metric-name {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t3);
  margin-bottom: 0.35rem;
}
.metric-value {
  font-family: var(--f-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--t1);
}
.metric-unit {
  font-size: 0.75rem;
  color: var(--gold);
  margin-left: 0.2rem;
  font-weight: 400;
}
.telemetry-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* === INSTITUTIONAL & ACADEMIC PAPERS === */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}
.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--tx);
  position: relative;
}
.doc-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.doc-ref {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doc-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--t1);
}
.doc-abstract {
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--t3);
}

/* Institutional Badges Strip */
.inst-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
}
.inst-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--t2);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.inst-item svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

/* === FOUNDER REDESIGN === */
.founder-stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.founder-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
}
.founder-stat-num {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.founder-stat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--t3);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.founder-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.founder-highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.founder-highlight-icon {
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1.3;
}
.founder-highlight-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--t1);
}
.founder-highlight-text p {
  font-size: 0.88rem;
  color: var(--t2);
  line-height: 1.65;
  margin: 0;
}

/* === CODE VIEWER EMBED === */
.code-viewer {
  background: #03030a;
  border: 1px solid var(--gold-border);
  border-radius: var(--r);
  overflow: hidden;
  margin: 2rem 0;
  font-family: var(--f-mono);
  box-shadow: var(--shadow);
}
.code-viewer-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--t3);
}
.code-viewer pre {
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #e2e8f0;
}
.code-viewer code {
  font-family: var(--f-mono);
}
.code-kw { color: #f472b6; }
.code-type { color: #38bdf8; }
.code-func { color: #fbbf24; }
.code-num { color: #a78bfa; }
.code-str { color: #34d399; }
.code-comm { color: #64748b; font-style: italic; }

@media (max-width: 900px) {
  .telemetry-grid { grid-template-columns: 1fr; }
}

/* === FOOTER === */
#footer { background: var(--bg-0); border-top: 1px solid var(--border); padding: 4.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .f-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t1); margin-bottom: 0.85rem;
}
.footer-brand .f-logo .star { color: var(--gold); font-size: 1.25rem; }
.footer-brand p { font-size: 0.88rem; color: var(--t3); line-height: 1.7; max-width: 300px; margin-bottom: 0.75rem; }
.f-tagline { font-family: var(--f-mono); font-size: 0.72rem; color: var(--t3); letter-spacing: 0.08em; }
.footer-col h4 { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.88rem; color: var(--t3); transition: var(--tx); }
.footer-col ul a:hover { color: var(--t1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--f-mono); font-size: 0.75rem; color: var(--t3); }
.footer-hud { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.72rem; color: var(--t3); }
.footer-hud .star { color: var(--gold); }

/* === BACK TO TOP === */
#btt {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: var(--tx);
  z-index: 100;
  font-size: 1.1rem;
}
#btt.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#btt:hover { background: var(--gold); color: #000; transform: translateY(-3px); }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.00s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.08s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.16s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.24s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.32s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.40s; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .arch-diagram { grid-template-columns: 1fr; gap: 1rem; }
  .arch-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .stage-pill { width: 100%; border-radius: var(--r-sm) !important; margin-bottom: 0.4rem; }
  .stage-pill:not(:last-child)::after { display: none; }
}

/* ================================================
   UTILITY CLASSES — Extracted from inline styles
   Replaces the most repeated style="" attributes
   across all pages for maintainability.
   ================================================ */

/* Background fills */
.bg-0  { background: var(--bg-0); }
.bg-1  { background: var(--bg-1); }
.bg-2  { background: var(--bg-2); }
.bg-green { background: var(--green); }

/* Text colour shortcuts */
.text-t1  { color: var(--t1); }
.text-t2  { color: var(--t2); }
.text-t3  { color: var(--t3); }
.text-gold  { color: var(--gold); }
.text-cyan  { color: var(--cyan); }
.text-green { color: var(--green); }

/* Monospace label – xs dim (0.75rem t3) */
.text-xs-dim {
  font-size: 0.75rem;
  color: var(--t3);
}

/* Monospace sm t2 (repeated 8×) */
.mono-sm-t2 {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--t2);
}

/* Mono xs cyan (code viewer header link) */
.mono-xs-cyan {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

/* Mono label gold – uppercase tracking (repeated 3×) */
.mono-label-gold {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Mono label gold variant – display:block (repeated 2×) */
.mono-label-gold-block {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* Team card h3 label (0.72rem gold mono) */
.mono-xs-gold {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--gold);
}

/* Mono t3 uppercase tiny */
.mono-xs-t3-upper {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--t3);
  text-transform: uppercase;
}

/* Mono green sm (packet stream label) */
.mono-sm-green {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

/* Section label – heading style (repeated 6×) */
.label-t3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--t3);
}
.label-gold {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--gold);
}
.label-t1 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--t1);
}

/* Heading sizes */
.text-md-mb {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.text-lg-mb-sm {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}
.text-xl-t1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--t1);
}

/* Body paragraph style (repeated 3×) */
.body-t2 {
  color: var(--t2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.body-t2-lg {
  color: var(--t2);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Gold accent margin-bottom */
.gold-mb-lg {
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.mb-2 { margin-bottom: 2rem; }

/* Left gold border rule */
.gold-border-l {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

/* Flexbox utilities */
.flex-center-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.flex-center-wrap-sm {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.flex-row-gap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.flex-center-gap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flex-center-gap-sm {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.flex-col-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flex-col-gap-sm {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.flex-telemetry-readout {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
}

/* Architecture detail card */
.arch-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
}

/* Small button padding override */
.btn-sm-tight {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
}

/* Telemetry HUD head label */
.hud-head {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--t1);
}

/* Hero HUD text (gold sub-label above h1) */
.hud-gold-label {
  margin-bottom: 1.5rem;
  color: var(--gold);
}

/* HUD-style mono label typography (used with .hud-gold-label) */
.hud-text {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Small status/indicator dot — color set via inline style or .bg-green etc. */
.hud-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero sub-paragraph (onsight hero) */
.hero-sub {
  font-size: 1.15rem;
  color: var(--t1);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Spec table container (mobile-safe horizontal scroll) */
.spec-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  .spec-table-container table {
    min-width: 520px;
  }
}