/* SWARMind — avionics / systems-engineering design system */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #0A0E14;
  --bg-elev: #131A24;
  --bg-panel: #1A2330;
  --border: #2A3441;
  --text: #E7EAEE;
  --muted: #8B96A5;
  --amber: #E8A33D;
  --cyan: #4C8C93;
  --cyan-dim: rgba(76, 140, 147, 0.18);
  --amber-dim: rgba(232, 163, 61, 0.15);
  --danger: #c45c5c;
  --ok: #5a9e6f;
  --font-display: 'Syne', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max: 1120px;
  --header-h: 64px;
  --radius: 2px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    linear-gradient(180deg, rgba(10,14,20,0.2) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(76,140,147,0.12), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(42,52,65,0.35) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(42,52,65,0.25) 48px);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--amber); color: var(--bg); padding: 0.5rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10,14,20,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  min-width: 0;
}
.brand-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
}
.brand-name {
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--amber);
}
.brand-badge,
.brand span.brand-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 163, 61, 0.72);
  line-height: 1.2;
  padding: 0.12em 0.35em;
  border: 1px solid rgba(232, 163, 61, 0.28);
  background: rgba(232, 163, 61, 0.06);
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.4rem 0.55rem;
  border: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-color: var(--border); background: var(--bg-elev); }
.nav-tools { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.5rem; }
.lang-switch a {
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 0.3rem 0.45rem; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none;
}
.lang-switch a.active { color: var(--bg); background: var(--amber); border-color: var(--amber); }
.sound-btn {
  font-family: var(--font-mono); font-size: 0.7rem;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 0.3rem 0.5rem; cursor: pointer;
}
.sound-btn[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 0.4rem 0.6rem; cursor: pointer;
}

.sound-prompt {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 200;
  max-width: min(360px, calc(100vw - 2rem));
  animation: soundPromptIn 0.45s ease;
}
.sound-prompt[hidden] { display: none !important; }
.sound-prompt-card {
  background: rgba(19, 26, 36, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(10px);
}
.sound-prompt-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.sound-prompt-card .eyebrow { margin-bottom: 0.35rem; }
.sound-prompt-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem;
}
@keyframes soundPromptIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sound-prompt { animation: none; }
}

.wrap { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 0.75rem;
}
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.15rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0 0 1.5rem; }
.mono { font-family: var(--font-mono); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.15rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--amber); color: #0A0E14; border-color: var(--amber); }
.btn-primary:hover { background: #f0b456; color: #0A0E14; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero — full-bleed photo with copy overlaid on media */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-fullbleed { isolation: isolate; }
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
  pointer-events: none;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,14,20,0.15) 0%, rgba(10,14,20,0.08) 32%, rgba(10,14,20,0.45) 62%, rgba(10,14,20,0.78) 100%),
    linear-gradient(90deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.28) 45%, rgba(10,14,20,0.08) 100%);
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: end;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
}
.hero-copy {
  min-width: 0;
  max-width: min(36rem, 100%);
  position: relative;
  z-index: 1;
}
.hero-lead {
  color: #d0d6de;
  max-width: 42ch;
  margin-bottom: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.hero-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.35rem, 6.8vw, 4.75rem);
  letter-spacing: -0.03em; line-height: 0.92;
  margin: 0 0 0.85rem; color: var(--text);
  text-shadow: 0 2px 28px rgba(0,0,0,0.55);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
}
.hero-brand em { font-style: normal; color: var(--amber); }
.hero-instrument {
  position: relative;
  z-index: 0;
  border: 1px solid rgba(42,52,65,0.9);
  background: rgba(10,14,20,0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  max-width: 340px;
  justify-self: end;
  width: 100%;
}
.hero-instrument canvas { width: 100%; height: auto; display: block; aspect-ratio: 4/3; }
.hero-telemetry {
  position: absolute; left: 0.6rem; bottom: 0.6rem; right: 0.6rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted);
}
.hero-telemetry div {
  background: rgba(10,14,20,0.82); border: 1px solid var(--border); padding: 0.35rem 0.4rem;
}
.hero-telemetry strong { display: block; color: var(--cyan); font-weight: 500; }

.kpi-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem;
  margin-top: 0;
}
.kpi {
  border: 1px solid var(--border); background: var(--bg-elev); padding: 0.9rem;
}
.kpi .val { font-family: var(--font-mono); font-size: 1.15rem; color: var(--amber); margin-bottom: 0.25rem; }
.kpi .lbl { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }

/* Visual gallery band */
.visual-band {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 0;
  overflow: hidden;
}
.visual-band-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.visual-shot {
  margin: 0; position: relative; overflow: hidden;
  border-right: 1px solid var(--border);
  min-height: 240px;
}
.visual-shot:last-child { border-right: 0; }
.visual-shot img {
  width: 100%; height: 100%; min-height: 260px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.visual-shot:hover img { transform: scale(1.04); }
.visual-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10,14,20,0.92));
  color: var(--text); font-size: 0.88rem;
}
.visual-shot figcaption .mono {
  display: inline-block; color: var(--amber); margin-right: 0.45rem; font-size: 0.72rem;
}

.media-split {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.25rem;
  margin: 1.5rem 0 0; align-items: stretch;
}
.media-frame {
  border: 1px solid var(--border); overflow: hidden; background: var(--bg-panel);
  min-height: 280px;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.split-2.stacked { grid-template-columns: 1fr; }

.full-bleed-photo {
  position: relative;
  min-height: 420px;
  background-size: cover; background-position: center;
  border-block: 1px solid var(--border);
}
.full-bleed-scrim {
  min-height: 420px;
  display: grid; align-items: end;
  padding: 3.5rem 0;
  background: linear-gradient(90deg, rgba(10,14,20,0.88) 0%, rgba(10,14,20,0.45) 55%, rgba(10,14,20,0.25) 100%);
}
.cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}

.page-hero-media {
  margin: 0 0 1.5rem; border: 1px solid var(--border); overflow: hidden;
  aspect-ratio: 21 / 8; background: var(--bg-panel);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.tech-with-photo {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; align-items: start;
}
.tech-photo {
  border: 1px solid var(--border); overflow: hidden; background: var(--bg-panel);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.tech-photo img { width: 100%; height: auto; display: block; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel {
  background: var(--bg-elev); border: 1px solid var(--border); padding: 1.35rem 1.4rem;
}
.panel h3 { margin-top: 0; }
.panel p { color: var(--muted); margin: 0; }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillars-grid { grid-template-columns: repeat(4, 1fr); }
.stack-card {
  border: 1px solid var(--border); background: linear-gradient(160deg, var(--bg-elev), var(--bg-panel));
  padding: 1.25rem; position: relative;
}
.stack-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.stack-card .layer { font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.stack-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.cred-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.6rem;
}
.cred-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid var(--border); background: var(--bg-elev); padding: 0.85rem 1rem;
  color: var(--muted); font-size: 0.92rem;
}
.cred-list li::before {
  content: '▣'; color: var(--cyan); font-family: var(--font-mono); flex-shrink: 0;
}

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--bg-elev);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.2s ease;
}
.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 16/9; background: var(--bg-panel); border-bottom: 1px solid var(--border);
  display: block; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-type {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.35rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card .tagline { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.85rem; flex: 1; }
.spec-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  border-top: 1px solid var(--border); padding: 0.35rem 0; color: var(--muted);
}
.spec-list li span:last-child { color: var(--text); text-align: right; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 1.5rem;
}
.filter-bar input[type="search"] {
  flex: 1; min-width: 200px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  padding: 0.65rem 0.85rem; font-family: var(--font-body); font-size: 0.9rem;
}

.page-hero { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }

.tech-block { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.tech-block:last-child { border-bottom: 0; }
.diagram {
  margin: 1.25rem 0; border: 1px solid var(--border); background: var(--bg-elev); padding: 1rem;
}
.diagram svg { width: 100%; height: auto; }

.detail-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; }
.detail-side .panel { position: sticky; top: calc(var(--header-h) + 1rem); }
.prose { color: var(--muted); }
.prose p { margin: 0 0 1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 500; }
input, select, textarea {
  width: 100%; background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); padding: 0.65rem 0.75rem; font-family: var(--font-body); font-size: 0.95rem;
  border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--muted); font-size: 0.88rem; }
.checkbox input { width: auto; margin-top: 0.2rem; }
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.alert {
  padding: 0.85rem 1rem; border: 1px solid var(--border); margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-ok { background: rgba(90,158,111,0.12); border-color: var(--ok); color: var(--text); }
.alert-err { background: rgba(196,92,92,0.12); border-color: var(--danger); }
.error-list { color: var(--danger); font-size: 0.85rem; margin: 0 0 1rem; padding-left: 1.1rem; }

.site-footer {
  margin-top: 3rem; border-top: 1px solid var(--border);
  background: var(--bg-elev); padding: 2rem 0 2.5rem;
  color: var(--muted); font-size: 0.85rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--amber); }

/* Admin */
.admin-body { background: var(--bg); background-image: none; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--bg-elev); border-right: 1px solid var(--border); padding: 1.25rem 1rem;
}
.admin-side a {
  display: block; color: var(--muted); text-decoration: none;
  padding: 0.55rem 0.7rem; margin-bottom: 0.2rem; border: 1px solid transparent;
}
.admin-side a:hover, .admin-side a.active { color: var(--text); border-color: var(--border); background: var(--bg); }
.admin-main { padding: 1.5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th, table.data td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); text-align: left; }
table.data th { background: var(--bg-elev); color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.15rem 0.4rem; border: 1px solid var(--border); color: var(--muted);
}
.badge-new { color: var(--amber); border-color: var(--amber); }
.badge-qualified { color: var(--cyan); border-color: var(--cyan); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); padding: 1rem; }
.stat .n { font-family: var(--font-mono); font-size: 1.5rem; color: var(--amber); }
.stat .t { font-size: 0.75rem; color: var(--muted); }
.login-box {
  max-width: 400px; margin: 10vh auto; padding: 2rem;
  border: 1px solid var(--border); background: var(--bg-elev);
}
.spec-rows { display: grid; gap: 0.5rem; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; }

/* Mid widths: drop mesh panel before it collides with the wordmark */
@media (max-width: 1100px) {
  .hero-overlay {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-instrument { display: none; }
  .hero-copy { max-width: 40rem; }
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: center;
  }
  .hero-img { object-position: center 45%; }
  .hero-scrim {
    background:
      radial-gradient(ellipse 120% 80% at 50% 45%, rgba(10,14,20,0.25) 0%, rgba(10,14,20,0.55) 70%, rgba(10,14,20,0.78) 100%),
      linear-gradient(180deg, rgba(10,14,20,0.35) 0%, rgba(10,14,20,0.4) 45%, rgba(10,14,20,0.7) 100%);
  }
  .hero-overlay {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 1.5rem 0 2rem;
    width: min(100% - 1.5rem, var(--max));
  }
  .hero-brand { font-size: clamp(2.1rem, 14vw, 3.25rem); margin-bottom: 0.7rem; }
  .hero-lead { font-size: 0.98rem; max-width: 36ch; }
  .hero-copy .eyebrow { margin-bottom: 0.55rem; }
  .split-2, .stack-grid, .pillars-grid, .detail-layout, .footer-inner, .form-grid, .kpi-strip, .admin-shell,
  .media-split, .tech-with-photo, .visual-band-track {
    grid-template-columns: 1fr;
  }
  .visual-shot { border-right: 0; border-bottom: 1px solid var(--border); }
  .visual-shot:last-child { border-bottom: 0; }
  .tech-photo { position: static; }
  .page-hero-media { aspect-ratio: 16 / 9; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .brand { font-size: 1.05rem; gap: 0.35rem; }
  .brand-logo { width: 28px; height: 28px; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(10,14,20,0.98); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav-tools { margin: 0.5rem 0 0; }
}
