/* ── Apex Security · style.css ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }

:root {
  --bg:        #101210;
  --bg2:       #141614;
  --surface:   #1a1c1a;
  --border:    #242624;
  --border2:   #2e302e;
  --text:      #ffffff;
  --muted:     #ffffff;
  --faint:     #ffffff;
  --amber:     #c8a050;
  --amber-bg:  rgba(200,160,80,.08);
  --nav-h:     52px;
  --max:       1080px;
  --ease:      cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}
em { font-style: italic; color: var(--amber); }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(16,18,16,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--border2); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  transition: color .2s;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-size: 1rem;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--muted);
  transition: all .25s var(--ease);
}
.nav-toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

.mob { 
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .35s var(--ease);
}
.mob.open { transform: none; }
.mob a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mob a:hover { color: var(--text); }

/* ── SHARED UTILITIES ───────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: .1em;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

.chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  padding: 2px 7px;
  border: 1px solid var(--border2);
  color: var(--muted);
  border-radius: 3px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: .82rem;
  border-radius: 5px;
  transition: opacity .2s, transform .15s;
  font-family: 'Figtree', sans-serif;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-solid { background: var(--amber); color: #101210; font-weight: 500; }
.btn-outline {
  border: 1px solid var(--border2);
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--muted); color: var(--text); opacity: 1; transform: none; }

.reveal {
  opacity: 1;
  transform: none;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 80px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.footer-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}
.footer-names a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--muted);
  width: fit-content;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.footer-names a:hover { color: var(--text); border-color: var(--border2); }
.footer-names > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: var(--faint);
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: var(--faint);
  letter-spacing: .04em;
}
.footer-bar nav { display: flex; gap: 16px; }
.footer-bar nav a { color: var(--faint); transition: color .2s; }
.footer-bar nav a:hover { color: var(--muted); }

/* ── INDEX PAGE ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-content { padding: 64px 0; }
.hero-eye {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.hero-authors {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: var(--faint);
  letter-spacing: .06em;
}
.hero-aside {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}
.h-stat {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.h-stat:last-child { border-bottom: none; }
.h-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.h-stat-num sup { font-size: 1rem; color: var(--amber); vertical-align: super; }
.h-stat p {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--muted);
  letter-spacing: .05em;
  line-height: 1.4;
}

@keyframes up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.g-img { position: relative; overflow: hidden; }
.g-img img {
  height: 340px;
  filter: brightness(.65) saturate(.7);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.g-img--tall img { height: 340px; }
.g-img:hover img { filter: brightness(.8) saturate(.9); transform: scale(1.03); }
.g-img figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 14px 12px;
  background: linear-gradient(to top, rgba(16,18,16,.88), transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: rgba(226,221,214,.6);
  letter-spacing: .05em;
}

/* Features */
.sec { padding: 72px 0; }
.sec-head { margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: .9rem; font-weight: 300; max-width: 460px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s;
  position: relative;
}
.feat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.feat:hover { background: var(--surface); }
.feat:hover::before { transform: scaleX(1); }
.feat-n { font-family: 'JetBrains Mono', monospace; font-size: .58rem; color: var(--faint); }
.feat h3 { font-size: .95rem; font-family: 'Figtree', sans-serif; font-weight: 500; color: var(--text); }
.feat p { font-size: .82rem; color: var(--muted); line-height: 1.65; font-weight: 300; flex: 1; }
.feat-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; color: var(--faint);
  padding-top: 10px; border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Specs */
.sec--tint { background: var(--bg2); }
.specs-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 40px;
  align-items: start;
}
.specs-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.specs-table thead th {
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; letter-spacing: .1em;
  color: var(--faint); font-weight: 400;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
  transition: background .15s;
}
.specs-table tr:hover td { background: var(--surface); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td.part { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--text); }

.specs-aside {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.aside-block { background: var(--surface); padding: 16px; }
.aside-block h4 { font-size: .85rem; font-family: 'Figtree', sans-serif; font-weight: 500; margin-bottom: 6px; }
.aside-block p { font-size: .78rem; color: var(--muted); line-height: 1.6; font-weight: 300; }
.aside-link {
  display: inline-block; margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; color: var(--amber); letter-spacing: .04em;
  transition: opacity .2s;
}
.aside-link:hover { opacity: .7; }

/* ── DOCUMENTATION HUB ──────────────────────────────────── */
.doc-page-head {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.doc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.doc-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
  position: relative;
}
.doc-row:last-child { border-bottom: none; }
.doc-row--live:hover { background: var(--surface); }
.doc-row--soon { opacity: .45; cursor: default; }

.dr-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: var(--faint);
  letter-spacing: .04em;
}

.dr-body h3 { font-size: .95rem; font-family: 'Figtree', sans-serif; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.dr-body p { font-size: .78rem; color: var(--muted); font-weight: 300; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dr-tags .chip { font-size: .56rem; }

.dr-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.dr-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  letter-spacing: .07em;
  padding: 2px 7px;
  border-radius: 3px;
}
.dr-status--live { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(200,160,80,.2); }
.dr-status--soon { background: transparent; color: var(--faint); border: 1px solid var(--border); }
.dr-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--amber);
  opacity: 0;
  transition: opacity .2s;
}
.doc-row--live:hover .dr-arrow { opacity: 1; }

/* ── CIRCUIT PAGE ───────────────────────────────────────── */
.crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  color: var(--faint);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--amber); }

.circ-head {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.circ-head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: end;
}
.circ-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.circ-head p { font-size: .82rem; color: var(--muted); font-weight: 300; line-height: 1.65; margin-top: 8px; }

.circ-meta { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.cm-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--surface); }
.cm-row span:first-child { font-family: 'JetBrains Mono', monospace; font-size: .56rem; color: var(--faint); letter-spacing: .08em; }
.cm-row span:last-child { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--muted); }
.cm-live { color: var(--amber) !important; }

.legend {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
}
.legend-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.leg-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  letter-spacing: .1em;
  padding: 10px 14px 10px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.leg-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  overflow-x: visible;
  scrollbar-width: none;
}
.leg-items::-webkit-scrollbar { display: none; }
.li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.li i { display: block; width: 14px; height: 2px; border-radius: 1px; flex-shrink: 0; font-style: normal; }



.tabs-wrap {
  border-bottom: 1px solid var(--border);
}
.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  border-bottom: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 11px 16px;
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 7px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--amber); }
.tab-n { font-size: .54rem; color: var(--faint); }
.tab.active .tab-n { color: var(--amber); }

.panels { max-width: var(--max); margin: 0 auto; padding: 36px 24px 72px; }
.panel { display: none; }
.panel.active { display: block; animation: pIn .25s var(--ease); }
@keyframes pIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  flex-wrap: wrap;
}
.ph-info { display: flex; align-items: flex-start; gap: 10px; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.ph-info h2 { font-family: 'Figtree', sans-serif; font-size: .9rem; font-weight: 500; color: var(--text); margin-bottom: 2px; line-height: 1.2; }
.ph-info p { font-family: 'JetBrains Mono', monospace; font-size: .58rem; color: var(--faint); letter-spacing: .04em; }
.ph-chips { display: flex; gap: 5px; flex-wrap: wrap; flex-shrink: 0; }

.svg-wrap {
  border: 1px solid var(--border);
  background: #0c0e0c;
  overflow-x: auto;
  padding: 20px;
}
.svg-wrap svg { display: block; width: 100%; height: auto; min-width: 300px; max-width: 780px; margin: 0 auto; }

.p-note {
  border: 1px solid; border-top: none;
  border-radius: 0 0 5px 5px;
  padding: 12px 18px;
  font-size: .78rem; line-height: 1.65; font-weight: 300;
}
.p-note strong { font-weight: 500; }
.ny { background: rgba(200,160,80,.03); border-color: rgba(200,160,80,.14); color: #8a7248; }
.ny strong { color: #a08858; }
.nr { background: rgba(239,68,68,.03); border-color: rgba(239,68,68,.13); color: #7a4848; }
.nr strong { color: #906060; }
.nb { background: rgba(41,182,246,.03); border-color: rgba(41,182,246,.13); color: #486878; }
.nb strong { color: #587888; }
.ng { background: rgba(102,187,106,.03); border-color: rgba(102,187,106,.13); color: #487048; }
.ng strong { color: #588858; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding-bottom: 20px; }
  .hero-content { padding: 48px 0 32px; }
  .hero-aside {
    display: grid; grid-template-columns: repeat(3,1fr);
    border-left: none; border-top: 1px solid var(--border);
    padding-left: 0; padding-top: 20px;
  }
  .h-stat { padding: 14px 0; border-bottom: none; border-right: 1px solid var(--border); padding-right: 16px; }
  .h-stat:last-child { border-right: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .g-img img, .g-img--tall img { height: 220px; }
  .specs-layout { grid-template-columns: 1fr; }
  .specs-aside { position: static; }
  .circ-head-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 32px 1fr; }
  .dr-right { display: none; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* ── TAB SELECT (mobile dropdown) ──────────────────────── */
.tab-select-wrap { display: none; }

@media (max-width: 600px) {
  #tabsDesktop { display: none; }
  .tab-select-wrap {
    display: block;
    position: relative;
    padding: 0 20px;
    background: var(--bg);
  }
  .tab-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--text);
    letter-spacing: .04em;
    border-bottom: 2px solid var(--amber);
  }
  .tab-select-btn .tab-n { color: var(--amber); font-size: .58rem; }
  .tab-select-chevron {
    margin-left: auto;
    color: var(--faint);
    font-size: .7rem;
    transition: transform .2s;
    display: inline-block;
  }
  .tab-select-btn.open .tab-select-chevron { transform: rotate(180deg); }
  .tab-select-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 20px; right: 20px;
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 5px;
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .tab-select-dropdown.open { display: flex; }
  .tab-select-dropdown button {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .04em;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, color .15s;
  }
@media (max-width:640px){

  .legend-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .leg-title{
    border-right: none;
    padding-bottom: 6px;
  }

}
  .tab-select-dropdown button:last-child { border-bottom: none; }
  .tab-select-dropdown button:hover { background: var(--bg2); color: var(--text); }
  .tab-select-dropdown button.active { color: var(--amber); }
  .tab-select-dropdown button .tab-n { color: var(--amber); font-size: .56rem; }
}

/* ── MOBILE FIXES ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    padding-top: calc(var(--nav-h) + 24px);
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-content { padding: 24px 0 28px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-desc { max-width: 100%; font-size: .88rem; }
  .specs-table { font-size: .78rem; }
  .specs-table th, .specs-table td { padding: 9px 10px; }
  .doc-page-head { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .btn { width: fit-content; }
  .feat-grid { gap: 12px; }
  .feat { padding: 20px 16px; }
  .specs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .specs-table { min-width: 540px; }
  .footer-inner { padding: 0 16px; }
  .footer-names a { font-size: clamp(1.1rem, 5vw, 1.6rem); }
  .doc-list { gap: 0; }
  .doc-row { padding: 16px; }
  .doc-row h3 { font-size: .9rem; }
  .doc-row p { font-size: .78rem; }
  .dr-tags { display: none; }
  .circ-head-inner { padding: 0 16px; }
  .panels { padding: 20px 16px 48px; }
  .legend-inner { padding: 0 16px; gap: 10px; }
  .tabs { padding: 0 16px; }
  .panel-head { padding: 12px 14px; }
  .ph-chips { display: none; }
  .svg-wrap { padding: 12px 8px; }
}

/* ── PARTNERS PAGE ──────────────────────────────────────── */
.partners-head {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 40px;
}

.partner-group {
  background: var(--bg);
  padding: 0;
}

.partner-group-header {
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partner-group-header h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--faint);
  letter-spacing: .12em;
  font-weight: 400;
}

.partner-group-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  letter-spacing: .08em;
}

.partner-list { padding: 0; }

.partner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.partner-item:last-child { border-bottom: none; }
.partner-item:hover { background: var(--surface); }

.partner-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: .54rem;
  color: var(--faint);
  letter-spacing: .06em;
  width: 18px;
  flex-shrink: 0;
}

.partner-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.partner-item--lead .partner-name { color: var(--amber); }
.partner-item--lead .partner-idx { color: var(--amber); }

.partner-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: .54rem;
  color: var(--faint);
  letter-spacing: .08em;
  margin-left: auto;
  flex-shrink: 0;
}

.partners-intro {
  max-width: 560px;
  margin-top: 40px;
}

.partners-intro p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

@media (max-width: 680px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-item { padding: 14px 16px; }
  .partner-name { font-size: .9rem; }
  .partner-role { display: none; }
  .partners-head { padding-top: calc(var(--nav-h) + 20px); }
}

/* ── STATUS PAGE (assembly / testing) ──────────────────── */
.status-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.status-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  opacity: .5;
}
.status-page h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 10px;
}
.status-page p {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 380px;
  line-height: 1.7;
}
.status-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  border: 1px solid var(--border2);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: .1em;
  margin-top: 16px;
}

/* ── FIRMWARE / SYSARCH PAGES ───────────────────────────── */
.fw-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 60vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 32px 0 72px;
}

.fw-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
}

.fw-sidebar-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem;
  color: var(--faint);
  letter-spacing: .1em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.fw-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s, color .2s;
  background: none;
  border-left: 2px solid transparent;
  width: 100%;
  text-align: left;
}
.fw-nav-item:hover { background: var(--bg2); }
.fw-nav-item.active { background: var(--bg2); border-left-color: var(--amber); }
.fw-nav-item.active .fw-nav-label { color: var(--text); }
.fw-nav-num { font-family: 'JetBrains Mono', monospace; font-size: .52rem; color: var(--faint); }
.fw-nav-label { font-family: 'Figtree', sans-serif; font-size: .8rem; color: var(--muted); line-height: 1.2; }
.fw-nav-item.active .fw-nav-num { color: var(--amber); }

.fw-content {
  padding: 28px 32px;
  overflow-y: auto;
}
.fw-section { display: none; }
.fw-section.active { display: block; animation: pIn .25s var(--ease); }

.fw-section h2 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 6px;
}
.fw-section > p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}

.fw-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.fw-block h4 {
  font-family: 'Figtree', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.fw-block p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

.fw-code {
  background: #080a08;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: #8ab8a8;
  line-height: 1.7;
  margin-bottom: 14px;
  overflow-x: auto;
}
.fw-code .kw { color: var(--amber); }
.fw-code .cm { color: #4a6058; }
.fw-code .fn { color: #66bb6a; }
.fw-code .str { color: #29b6f6; }

.thresh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  margin-top: 10px;
}
.thresh-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: .56rem;
  color: var(--faint);
  letter-spacing: .08em;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.thresh-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
}
.thresh-table td:first-child { color: var(--text); font-weight: 400; }
.thresh-table td .chip { font-size: .58rem; }

@media (max-width: 700px) {
  .fw-layout { grid-template-columns: 1fr; }
  .fw-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .fw-content { padding: 20px 16px; }
  .fw-sidebar-title { display: none; }
  .fw-nav-item { border-bottom: none; border-left: none; border-bottom: 1px solid var(--border); display: inline-flex; width: auto; border-radius: 0; }
  .fw-sidebar { display: flex; flex-wrap: wrap; }
  .fw-nav-item.active { border-bottom-color: var(--amber); border-left: none; background: var(--bg2); }
}

@media (max-width: 768px) {

  .hero-aside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    gap: 10px;
  }

  .h-stat {
    border-bottom: none;
    padding: 10px 0;
    text-align: center;
  }

}
