/* BNS Global Shell */

:root {
  --c-bg: #1b1d20;
  --c-surface: #232629;
  --c-surface-2: #2a2d31;
  --c-surface-deep: #141619;
  --c-rule-2: #2f3338;
  --c-rule-3: rgba(255,255,255,0.05);
  --c-text: #e4e6e8;
  --c-text-primary: #f0f2f4;
  --c-text-muted: #a8aeb4;
  --c-text-dim: #828890;
  --c-text-tertiary: rgba(164,170,178,0.6);
  --c-info: #6ea8e0;
  --c-info-bg: #1c2c3d;
  --c-warn: #e67a3d;
  --c-warn-bg: #35290f;
  --c-error: #d96b6b;
  --c-error-bg: #3a1d1d;
  --c-ok: #7fb87f;
  --c-ok-bg: #1d2f1d;
  --c-readonly: #6aa1b8;
  --c-readonly-bg: #2e3236;
  --c-derived: #b3a4dc;
  --c-derived-bg: #2a2438;
  /* Phase 5 — Semantic color system */
  --c-op: #9b8cd4;            /* operational / active (purple) */
  --c-op-dim: rgba(155,140,212,0.10);  /* purple bg tint */
  --c-attention: #c9883a;     /* amber / attention */
  --content-max: 1280px;
  --inset: max(24px, calc((100vw - var(--content-max)) / 2));
  /* Phase 8 — Typography */
  --lh-tight: 1.25;
  --lh-system: 1.3;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  overflow-x: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/* ── App Shell ── */

.app-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
}

/* ── Header ── */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  width: 100%;
  padding: 0 var(--inset);
  border-bottom: 1px solid var(--c-rule-2);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.brand img {
  height: 28px;
  width: auto;
}

.brand-sep {
  color: var(--c-text-dim);
  font-size: 12px;
}

/* ── Hamburger Menu ── */

.menu-wrap {
  position: relative;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: none;
  border: 1px solid var(--c-rule-2);
  border-radius: 3px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text-muted);
  border-radius: 1px;
}

.menu-toggle:hover {
  border-color: var(--c-text-dim);
}

.menu-toggle:hover span {
  background: var(--c-text);
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-rule-2);
  border-radius: 4px;
  min-width: 180px;
  z-index: 100;
  padding: 4px 0;
}

.menu-wrap.open .menu-dropdown {
  display: block;
}

.menu-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--c-text-muted);
  text-decoration: none;
}

.menu-dropdown a:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
  text-decoration: none;
}

.menu-dropdown a.active {
  color: var(--c-text);
}

/* ── Hero ── */

.hero {
  height: 90px;
  width: 100%;
  padding: 16px var(--inset);
  border-bottom: 1px solid var(--c-rule-2);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-desc {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Safe Zone (main) ── */

main {
  flex: 1 0 auto;
  width: 100%;
}

/* ── Page Sections (single-page scroll) ── */

.page-section {
  scroll-margin-top: 52px;
}

.page-section + .page-section > .hero {
  border-top: 2px solid var(--c-rule-2);
}

.section-content {
  padding: 8px var(--inset);
  width: 100%;
  overflow: visible;
}

.section-content.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.section-content.grid-1col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ── Footer ── */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 40px;
  width: 100%;
  padding: 0 var(--inset);
  border-top: 1px solid var(--c-rule-2);
  color: var(--c-text-dim);
  font-size: 12px;
}

footer a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 12px;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Card (Phase 3: surface only, no border walls) ── */

.card {
  background: var(--c-surface);
  border: 0;
  border-bottom: 1px solid var(--c-rule-3);
  border-radius: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex-shrink: 0;
}

.card-fill {
  flex: 1;
  flex-shrink: 1;
}

/* ── Section Title ── */

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

/* ── Data Grid (dl) ── */

.data-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
}

.data-grid dt {
  color: var(--c-text-dim);
  font-size: 12px;
  white-space: nowrap;
}

.data-grid dd {
  color: var(--c-text);
  font-size: 13px;
}

/* ── Table (scroll inside container) ── */

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  text-align: left;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
}

td {
  padding: 5px 8px;
  border-top: 1px solid var(--c-rule-2);
  color: var(--c-text);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Prose (privacy / long text) ── */

.prose-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.prose h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin: 12px 0 4px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ── Iframe embed ── */

.embed-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Mono ── */

.mono {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 12px;
}

/* ── Links ── */

a {
  color: var(--c-info);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Centered message (404) ── */

.msg-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}

.msg-code {
  font-size: 48px;
  font-weight: 700;
  color: var(--c-text-dim);
  letter-spacing: 2px;
}

.msg-text {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* ── Homepage ── */

/* .page-home .app-shell — no grid override needed with flexbox */

.hero-home {
  height: 64px;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-home .hero-name,
.hero-home .hero-desc {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.hero-home .hero-name {
  font-size: 15px;
  margin-bottom: 2px;
}

.hero-home .hero-desc {
  max-width: 840px;
}

.homepage-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.2fr) minmax(240px, 1fr);
  gap: 10px;
  align-items: start;
  overflow: visible;
}

.homepage-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.home-value-card,
.home-capability-card,
.home-org-card,
.home-fit-card,
.home-region-card {
  padding: 12px;
}

.home-kicker,
.capability-subtitle,
.home-region-copy,
.intake-hint {
  color: var(--c-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-kicker {
  margin-bottom: 10px;
}

.home-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 16px;
  color: var(--c-text);
}

.home-points li {
  line-height: 1.45;
}

.home-points-compact {
  gap: 6px;
}

.home-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.table-wrap-home {
  flex: none;
  overflow: visible;
}

.home-capability-card table {
  font-size: 12px;
}

.home-capability-card th {
  padding: 7px 8px;
  font-weight: 500;
}

.home-capability-card td {
  padding: 8px;
  vertical-align: top;
}

.cap-row td {
  border-top: 1px solid #353a40;
}

.cap-row-priority td {
  background: rgba(110, 168, 224, 0.05);
}

.cap-output {
  color: var(--c-text);
  line-height: 1.45;
}

.cap-artifacts {
  margin-top: 6px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ── Services Grid ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
  padding-right: 2px;
  align-content: start;
}

.service-card {
  min-height: 160px;
  justify-content: space-between;
}

.service-summary {
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--c-rule-2);
}

.service-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--c-info);
  font-size: 12px;
  user-select: none;
}

.service-more summary::-webkit-details-marker {
  display: none;
}

.service-more[open] summary {
  color: var(--c-text);
}

.service-detail {
  margin-top: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ── Dense list ── */

.dense-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dense-list li {
  color: var(--c-text);
  font-size: 12px;
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.dense-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--c-text-dim);
}

/* ── Sub-expand (inline details/summary) ── */

.sub-expand summary {
  list-style: none;
  cursor: pointer;
  color: var(--c-text-muted);
  font-size: 12px;
  user-select: none;
}

.sub-expand summary::-webkit-details-marker {
  display: none;
}

.sub-expand[open] summary {
  color: var(--c-text);
  margin-bottom: 4px;
}

.sub-expand-body {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ── Sub-rule (divider within a card) ── */

.sub-rule {
  border-top: 1px solid var(--c-rule-2);
  margin: 8px 0;
}

@media (max-width: 1080px) {
  .section-content.sys-top-grid {
    grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
  }

  .section-content.svc-about-grid {
    grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-item:nth-child(3n) {
    border-right: 1px solid var(--c-rule-2);
  }

  .svc-item:nth-child(2n) {
    border-right: 0;
  }

  .homepage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }

  .homepage-col-left {
    grid-column: 1;
  }

  .homepage-col-center {
    grid-column: 2;
  }

  .homepage-col-right {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════
   MOBILE MODE (≤768px)
   Removes constraints. Stacked. Scrollable.
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {

  :root {
    --inset: 16px;
  }

  html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-shell {
    min-height: 100dvh;
    padding-top: 52px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    background: var(--c-bg);
    grid-row: none;
  }

  .hero {
    height: auto;
    padding: 14px var(--inset);
  }

  .hero-home .hero-name,
  .hero-home .hero-desc {
    text-align: center;
  }

  .hero-home .hero-desc {
    max-width: none;
  }

  .section-content {
    padding: 12px var(--inset);
  }

  /* System layout — mobile stacks */
  .section-content.sys-top-grid {
    grid-template-columns: 1fr;
    padding: 0;
    border-bottom: none;
  }

  .sys-cap {
    padding: 12px var(--inset) 14px;
    border-right: 0;
    border-bottom: 1px solid var(--c-rule-2);
    overflow: visible;
  }

  .svc-main {
    padding: 12px var(--inset) 14px;
    border-right: 0;
    border-bottom: 1px solid var(--c-rule-2);
    overflow: visible;
  }

  .svc-side {
    padding: 12px var(--inset) 14px;
  }

  .section-content.svc-about-grid {
    grid-template-columns: 1fr;
  }

  .sys-info {
    padding: 12px var(--inset) 14px;
  }

  .cap-table {
    font-size: 11px;
    display: block;
    width: 100%;
    table-layout: auto;
  }

  .cap-table thead,
  .cap-table colgroup { display: none; }

  .cap-table tbody { display: block; width: 100%; }

  .cap-table .phase-band,
  .cap-table .cap-row { display: block; width: 100%; }

  .cap-table .phase-band td { display: block; }

  .cap-table .cap-row td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    border: none;
    gap: 8px;
  }

  .cap-table .cap-row td::before {
    content: attr(data-label);
    color: var(--c-text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
  }

  /* Output cell holds stacked divs — label above, content below */
  .cap-table .cap-row td:last-child { display: block; }

  .cap-table .cap-row td:last-child::before {
    display: block;
    margin-bottom: 2px;
  }

  .cap-table .cap-row {
    padding: 8px 0;
    border-top: 1px solid var(--c-rule-2);
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  .svc-item {
    border-right: 0;
  }

  .homepage-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .homepage-col-right {
    display: flex;
  }

  .home-card-head {
    flex-direction: column;
  }

  .hdr-right {
    flex-wrap: wrap;
  }

  .section-content.grid-2col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .section-content.grid-1col {
    gap: 12px;
  }

  .col-left,
  .col-right {
    overflow: visible;
    min-height: auto;
  }

  .card {
    flex-shrink: 0;
    min-height: auto;
  }

  .card-fill {
    flex: none;
    overflow: visible;
    min-height: auto;
  }

  .table-wrap {
    flex: none;
    overflow: visible;
    min-height: auto;
  }

  .prose-wrap {
    flex: none;
    overflow: visible;
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-right: 0;
    flex: none;
    align-content: normal;
  }

  .service-card {
    min-height: auto;
  }

  /* Table → stacked blocks on mobile */
  table {
    font-size: 13px;
  }

  thead {
    display: none;
  }

  .home-capability-card table,
  .home-capability-card tbody,
  .home-capability-card tr,
  .home-capability-card td {
    display: block;
    width: 100%;
  }

  .home-capability-card tr {
    padding: 10px 0;
    border-top: 1px solid var(--c-rule-2);
  }

  .home-capability-card tr:first-child {
    border-top: none;
  }

  .home-capability-card td {
    padding: 4px 0;
    border-top: none;
    display: block;
  }

  .home-capability-card td::before {
    display: block;
    margin-bottom: 2px;
  }

  .home-capability-card .mono {
    display: inline-block;
    margin-top: 2px;
  }

  tbody tr {
    display: block;
    padding: 10px 0;
    border-top: 1px solid var(--c-rule-2);
  }

  tbody tr:first-child {
    border-top: none;
  }

  td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
    border-top: none;
    gap: 8px;
    white-space: normal;
  }

  td::before {
    content: attr(data-label);
    color: var(--c-text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }

  /* Data grid stacks on mobile */
  .data-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .data-grid dt {
    margin-bottom: -4px;
  }

  /* Footer compact on mobile */
  footer {
    height: auto;
    padding: 10px var(--inset);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.45;
    gap: 4px;
    flex-shrink: 0;
  }

  footer span:nth-child(2) {
    display: none;
  }

  .msg-center {
    height: auto;
    padding: 40px 0;
  }
}

/* ═══════════════════════════════════════════════════════
   SYSTEM DESIGN — Phases 1–9
   ═══════════════════════════════════════════════════════ */

/* ── Phase 2: 7+5 top grid ── */

.section-content.sys-top-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--c-rule-2);
}

.sys-cap {
  padding: 10px 16px 14px var(--inset);
  border-right: 1px solid var(--c-rule-2);
  min-width: 0;
  overflow: hidden;
}

.sys-info {
  padding: 10px var(--inset) 14px 20px;
  background: var(--c-surface-deep);
  min-width: 0;
}

/* ── Phase 9: Block headers ── */

.sys-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--c-rule-2);
  white-space: nowrap;
  overflow: hidden;
}

.sys-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-text-primary);
  flex-shrink: 0;
}

.sys-meta {
  font-size: 10px;
  color: var(--c-text-tertiary);
  font-family: 'JetBrains Mono','Cascadia Code','Consolas',monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── Phase 4: Capability Index table ── */

.cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: var(--lh-system);
  table-layout: fixed;
}

/* Fixed column widths via th (reliable with table-layout:fixed) */
.cap-table th:nth-child(1) { width: 58px; }
.cap-table th:nth-child(2) { width: 22%; }
.cap-table th:nth-child(3) { width: 28%; }
/* th:nth-child(4) gets remaining width */

/* col fallback — kept for alignment */
.cap-table .col-code  { width: 58px; }
.cap-table .col-name  { width: 22%; }
.cap-table .col-use   { width: 28%; }

.cap-table thead th {
  background: var(--c-surface-deep);
  color: var(--c-text-dim);
  text-align: left;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--c-rule-2);
  position: sticky;
  top: 52px;
}

/* Phase 4: Phase group headers */
.cap-table .phase-band td {
  background: var(--c-surface-deep);
  color: var(--c-text-dim);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 8px 3px;
  border-top: 1px solid var(--c-rule-2);
}

.cap-table .cap-row td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--c-rule-3);
  vertical-align: top;
  overflow: hidden;
}

/* Phase 1: Priority rows get subtle highlight */
.cap-table .cap-priority td {
  background: var(--c-op-dim);
}

/* Phase 5 + 9: CAP codes — purple, monospace, distinct */
.cap-code {
  font-family: 'JetBrains Mono','Cascadia Code','Consolas',monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-op);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Phase 1: Primary tier — capability names */
.cap-table .cap-row td:nth-child(2) {
  color: var(--c-text-primary);
  font-weight: 500;
}

/* Phase 6: Structured fragments */
.cap-use {
  color: var(--c-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.cap-out-primary {
  color: var(--c-text);
  font-size: 11px;
  line-height: 1.35;
}

.cap-artifacts {
  margin-top: 3px;
  color: var(--c-text-tertiary);
  font-family: 'JetBrains Mono','Cascadia Code','Consolas',monospace;
  font-size: 10px;
  line-height: 1.4;
}

/* ── Phase 2: Right info block (tertiary tier) ── */

.info-group {
  padding: 8px 0;
}
.info-group:first-child { padding-top: 0; }

.info-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  margin-bottom: 6px;
}

.info-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 3px;
}

.info-key {
  flex: 0 0 56px;
  color: var(--c-text-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 1px;
  font-weight: 500;
}

.info-val {
  color: var(--c-text-tertiary);
  font-size: 11px;
}

.info-item {
  font-size: 11px;
  color: var(--c-text-tertiary);
  line-height: 1.45;
  margin-bottom: 3px;
  padding-left: 10px;
  border-left: 2px solid var(--c-rule-2);
}

.info-sep {
  height: 1px;
  background: var(--c-rule-2);
  margin: 4px 0;
}

/* ── Phase 7: Services grid ── */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.svc-item {
  padding: 12px;
  border-right: 1px solid var(--c-rule-2);
  border-bottom: 1px solid var(--c-rule-2);
  background: var(--c-surface);
}

.svc-item:nth-child(3n) {
  border-right: 0;
}

.svc-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--c-rule-2);
}

.svc-row {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.svc-key {
  flex: 0 0 54px;
  color: var(--c-text-dim);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.svc-val {
  color: var(--c-text-muted);
  font-size: 11px;
}

/* ── Services + About combined grid (mirrors sys-top-grid) ── */

.section-content.svc-about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--c-rule-2);
}

.svc-main {
  padding: 10px 16px 14px var(--inset);
  border-right: 1px solid var(--c-rule-2);
  min-width: 0;
  overflow: hidden;
}

.svc-side {
  padding: 10px var(--inset) 14px 20px;
  background: var(--c-surface-deep);
  min-width: 0;
  scroll-margin-top: 40px;
}

/* ═══════════════════════════════════════════════════
   PUBLIC SITE v2 — humanized dark marketing surface
   ═══════════════════════════════════════════════════ */

/* ── Visible desktop nav ── */

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--c-text-primary);
  background: var(--c-surface-2);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--c-text-primary);
  box-shadow: inset 0 -2px 0 var(--c-op);
  border-radius: 3px 3px 0 0;
}

/* Hide hamburger on desktop only where a visible nav exists (index) */
.site-nav ~ .menu-toggle {
  display: none;
}

/* ── Hero banner (video) ── */

.hero-banner {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--c-rule-2);
  background: var(--c-surface-deep);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,25,0.55) 0%, rgba(20,22,25,0.75) 70%, var(--c-bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px var(--inset);
  max-width: none;
}

.hero-inner h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 760px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-tag {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--c-text);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 26px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-op);
  color: #14161a;
  border-color: var(--c-op);
}

.btn-primary:hover {
  background: #b0a3e2;
  border-color: #b0a3e2;
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--c-text-primary);
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.09);
}

/* ── Trust strip ── */

.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding: 16px var(--inset);
  background: var(--c-surface-deep);
  border-bottom: 1px solid var(--c-rule-2);
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.trust-num {
  font-family: 'JetBrains Mono','Cascadia Code','Consolas',monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-op);
  white-space: nowrap;
}

.trust-label {
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
}

.trust-quote {
  margin-left: auto;
  font-size: 12px;
  font-style: italic;
  color: var(--c-text-dim);
}

/* ── Section framing ── */

.site-section {
  padding: 48px var(--inset) 56px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-text-primary);
  margin-bottom: 10px;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--c-op);
  margin-top: 10px;
  border-radius: 2px;
}

.section-lede {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* ── Service cards ── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.svc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule-2);
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.svc-card:hover {
  border-color: var(--c-op);
  transform: translateY(-2px);
}

.svc-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.svc-card p {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.deliverables {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--c-rule-2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.deliverables li {
  font-size: 12px;
  color: var(--c-text);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.deliverables li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--c-op);
  font-weight: 700;
}

/* ── FAA band ── */

.faa-band {
  background: var(--c-surface-deep);
  border-top: 1px solid var(--c-rule-2);
  border-bottom: 1px solid var(--c-rule-2);
}

.faa-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px var(--inset);
}

.faa-badge {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.faa-copy h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-primary);
  margin-bottom: 10px;
}

.faa-copy p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 18px;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}

.about-main p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 680px;
}

.about-main strong {
  color: var(--c-text-primary);
}

.side-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-text-dim);
  margin: 0 0 10px;
}

.about-side .dense-list {
  margin-bottom: 26px;
}

.about-side .dense-list li {
  font-size: 13px;
  line-height: 1.5;
}

/* ── Capability reference (demoted) ── */

.cap-section {
  background: var(--c-surface-deep);
  border-top: 1px solid var(--c-rule-2);
}

.cap-table-wrap {
  border: 1px solid var(--c-rule-2);
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-surface);
}

.cap-section .cap-table thead th {
  position: static;
}

/* ── Contact ── */

.contact-section {
  border-top: 1px solid var(--c-rule-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-block {
  background: var(--c-surface);
  border: 1px solid var(--c-rule-2);
  border-radius: 6px;
  padding: 22px;
}

.contact-block p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-big {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text-primary);
}

.contact-big:hover {
  color: var(--c-op);
}

/* ── v2 responsive ── */

@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .faa-inner { flex-direction: column; text-align: center; gap: 20px; }
  .trust-quote { margin-left: 0; }
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--inset);
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-rule-2);
    border-radius: 4px;
    min-width: 180px;
    padding: 4px 0;
    z-index: 200;
  }

  header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a.active {
    box-shadow: none;
    background: var(--c-surface-2);
  }

  .menu-toggle,
  .site-nav ~ .menu-toggle {
    display: flex;
  }

  .hero-banner {
    min-height: 62vh;
  }

  .hero-inner {
    padding: 40px var(--inset);
  }

  .site-section {
    padding: 32px var(--inset) 40px;
  }

  /* cap reference table: keep card look on mobile */
  .cap-table-wrap {
    padding: 0 12px;
  }
}

/* ── Bottom privacy bar ── */

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.25rem;
  padding: 12px var(--inset);
  background: rgba(11, 15, 20, 0.97);
  border-top: 1px solid var(--c-rule-2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.cookie-note-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  max-width: 60rem;
}

.cookie-note-text a {
  color: var(--c-op);
}

.cookie-note-btn {
  padding: 7px 14px;
  flex-shrink: 0;
}


