
/* ── Global Scroll Clearance for Sticky Header ─────────────────────────── */
.services,
.ownership,
.gallery,
.process,
.estimator,
.contact {
  scroll-margin-top: 110px !important;
}
/* ============================================================================
   FIRMITAS · SYSTEMS ARCHITECTURE & SOVEREIGN COVENANT
   Ultra-clean engineering matrix and authoritative handover covenant.
   Replaces legacy canvas map and awkward card dossier.
   ========================================================================== */

/* ── Section Header Refinements ─────────────────────────────────────────── */
.services-heading {
  margin-bottom: 32px;
}
.services-heading h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--plum, #25162a);
  margin: 0;
}
.services-heading p {
  color: rgba(37, 22, 42, 0.78);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 58ch;
}

/* ── Systems Architecture Chart Container ────────────────────────────────── */
.systems-chart {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -25px rgba(5, 9, 18, 0.85);
  margin-bottom: 24px;
}

/* ── Chart Monitor Top Bar ──────────────────────────────────────────────── */
.chart-monitor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.monitor-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.status-text {
  font: 600 11px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}
.monitor-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.metric-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font: 500 11px/1 Manrope, sans-serif;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

/* ── Matrix Layout (Desktop & Tablet) ───────────────────────────────────── */
.chart-matrix {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 520px;
}

/* ── Left: Discipline Nodes List ────────────────────────────────────────── */
.chart-nodes-grid {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}
.matrix-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.matrix-node:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}
.matrix-node.is-active {
  background: rgba(255, 128, 100, 0.08);
  border-color: rgba(255, 128, 100, 0.3);
  box-shadow: 0 4px 18px -4px rgba(255, 128, 100, 0.15);
}
.node-num {
  font-family: 'Bricolage Grotesque', monospace, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  min-width: 20px;
}
.matrix-node.is-active .node-num {
  color: #ff8064;
}
.node-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.node-tag {
  font: 600 10px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}
.matrix-node.is-active .node-tag {
  color: #ff9d85;
}
.node-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.25;
}
.matrix-node.is-active .node-name {
  color: #fff;
  font-weight: 600;
}
.node-badge {
  font: 500 10px/1 Manrope, sans-serif;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  white-space: nowrap;
}
.matrix-node.is-active .node-badge {
  background: rgba(255, 128, 100, 0.15);
  border-color: rgba(255, 128, 100, 0.35);
  color: #ff8064;
}

/* ── Right: Live Capability Inspector ───────────────────────────────────── */
.chart-inspector {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: radial-gradient(circle at 80% 20%, rgba(30, 41, 69, 0.4), transparent 60%);
}
.inspector-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inspector-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inspector-tag {
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8064;
}
.inspector-speed {
  font: 500 11px/1 Manrope, sans-serif;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.inspector-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.inspector-deck {
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

.inspector-deliverables {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
}
.inspector-deliverables h4 {
  font: 600 11px/1 Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin: 0 0 10px;
}
.inspector-deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inspector-deliverables li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
}
.inspector-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 12px;
}

/* ── Code / Technical Manifest Box ──────────────────────────────────────── */
.inspector-code-block {
  border-radius: 10px;
  overflow: hidden;
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-file {
  font-family: monospace;
  font-size: 11px;
  color: #94a3b8;
}
.code-badge {
  font: 600 10px/1 Manrope, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.inspector-code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #38bdf8;
}

/* ── Inspector Action Buttons ───────────────────────────────────────────── */
.inspector-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.inspector-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #ff8064;
  color: #0c0812;
  font: 600 13px/1 Manrope, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}
.inspector-cta-primary:hover {
  background: #ff9d85;
  transform: translateY(-1px);
}
.inspector-cta-secondary {
  font: 500 13px/1 Manrope, sans-serif;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.inspector-cta-secondary:hover {
  color: #fff;
}

/* ── Foot bar ───────────────────────────────────────────────────────────── */
.services-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(37, 22, 42, 0.12);
}
.services-foot p {
  margin: 0;
  color: rgba(37, 22, 42, 0.75);
  font-size: 14px;
}
.services-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff8064;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.services-foot a svg {
  width: 14px;
  height: 14px;
}

/* ── Systems Chart Mobile Responsive Layout ─────────────────────────────── */
@media (max-width: 900px) {
  .chart-matrix {
    grid-template-columns: 1fr;
  }
  .chart-nodes-grid {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    gap: 10px;
  }
  .matrix-node {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
    scroll-snap-align: start;
    padding: 12px 14px;
  }
  .chart-inspector {
    padding: 22px 18px;
  }
}

/* ============================================================================
   SOVEREIGN COVENANT SECTION (#approach)
   Authoritative two-pillar covenant layout: Handover Custody + Commercial Terms
   ========================================================================== */
.ownership {
  position: relative;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.covenant-header {
  margin-bottom: 40px;
}
.covenant-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff8064;
  margin-bottom: 12px;
}
.covenant-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8064;
  box-shadow: 0 0 8px #ff8064;
}
.covenant-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
}
.covenant-header h2 span {
  color: #e2e8f0;
}
.covenant-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--muted, #c4b3ca);
  max-width: 65ch;
  margin: 0;
}

/* ── Covenant Two-Pillar Grid ───────────────────────────────────────────── */
.covenant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.covenant-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.covenant-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.covenant-badge {
  display: inline-block;
  font: 700 11px/1 Manrope, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8064;
  background: rgba(255, 128, 100, 0.1);
  border: 1px solid rgba(255, 128, 100, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.covenant-card-head h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.covenant-card-head p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* ── Left Pillar: Custody Items ─────────────────────────────────────────── */
.custody-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.custody-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.custody-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 128, 100, 0.1);
  border: 1px solid rgba(255, 128, 100, 0.22);
  display: grid;
  place-items: center;
  color: #ff8064;
}
.custody-icon svg {
  width: 18px;
  height: 18px;
}
.custody-text {
  flex: 1;
}
.custody-text strong {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.custody-text p {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* ── Right Pillar: Covenant Rules ───────────────────────────────────────── */
.covenant-rules {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.covenant-rule {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.rule-marker {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-family: 'Bricolage Grotesque', monospace, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ff8064;
}
.rule-content {
  flex: 1;
}
.rule-content h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #f1f5f9;
  margin: 0 0 4px;
}
.rule-content p {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}
.rule-content a {
  color: #ff8064;
  text-decoration: none;
  font-weight: 500;
}
.rule-content a:hover {
  text-decoration: underline;
}

/* ── Covenant Bottom Seal Bar ───────────────────────────────────────────── */
.covenant-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
.covenant-covenant-statement {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 13px;
}
.covenant-covenant-statement svg {
  color: #10b981;
  flex-shrink: 0;
}
.covenant-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 128, 100, 0.12);
  border: 1px solid rgba(255, 128, 100, 0.35);
  color: #ff8064;
  font: 600 13px/1 Manrope, sans-serif;
  text-decoration: none;
  transition: all 0.2s ease;
}
.covenant-cta:hover {
  background: #ff8064;
  color: #0c0812;
}

/* ── Covenant Mobile Layout ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .covenant-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .covenant-column {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .covenant-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
