/* ==========================================================================
   CBBA Consulting — design tokens
   Concept: systems-architecture blueprint. Graphite/navy field, one amber
   signal accent (control-room indicator), corner-bracket "frame" motif
   borrowed from schematic/registration marks, monospace used only for
   genuinely technical labels (tech stack, coordinates, capability codes).
   ========================================================================== */

:root {
  --bg: #0f1419;
  --bg-panel: #141b22;
  --bg-panel-2: #19222b;
  --text: #e8edf2;
  --text-dim: #8b98a5;
  --text-faint: #5b6672;
  --accent: #e8a33d;
  --accent-soft: rgba(232, 163, 61, 0.14);
  --line: #26313c;
  --line-bright: #37444f;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --content-w: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint blueprint grid on the page background */
body {
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #14100a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 32px;
}

p { color: var(--text-dim); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.mono { font-family: var(--font-mono); }

/* --------------------------- corner-bracket frame ------------------------ */
.frame {
  position: relative;
  border: 1px solid var(--line);
}
.frame::before,
.frame::after,
.frame > .fc-tl,
.frame > .fc-br {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* -------------------------------- header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 20, 25, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-glyph {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-bright);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-wordmark em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.63rem;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  margin-top: 4px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.primary a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
nav.primary a:hover { color: var(--text); }
nav.primary a.current { color: var(--text); }
nav.primary a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #16110a;
}
.btn-primary:hover { background: #f2b25a; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-bright);
  color: var(--text);
  border-radius: 3px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* -------------------------------- sections -------------------------------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-border-t { border-top: 1px solid var(--line); }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow-row .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--line-bright);
  padding: 3px 8px;
  border-radius: 2px;
}
.eyebrow-row .label { color: var(--text-faint); font-size: 0.85rem; }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* --------------------------------- hero ----------------------------------- */
.hero {
  padding: 88px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hero-kicker span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.hero h1 { max-width: 620px; }
.hero .lede {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 520px;
  color: var(--text-dim);
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  padding: 18px;
}
.hero-art img { border-radius: 2px; }
.hero-art .coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}
.hero-art .coord.tl { top: 4px; left: 20px; }
.hero-art .coord.br { bottom: 4px; right: 20px; }

/* ------------------------------ status strip ------------------------------ */
.status-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.status-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.status-item {
  padding: 30px 28px;
  border-left: 1px solid var(--line);
}
.status-item:first-child { border-left: none; }
.status-item .value {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
}
.status-item .label {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------------------------- capability index ----------------------------- */
.cap-list { border-top: 1px solid var(--line); }
.cap-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.3fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cap-row .code {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.88rem;
  padding-top: 3px;
}
.cap-row h3 { font-size: 1.2rem; }
.cap-row p { margin: 0; font-size: 0.98rem; }

/* --------------------------------- why grid -------------------------------- */
.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.why-list { display: flex; flex-direction: column; gap: 0; }
.why-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .mark {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item p { margin: 0; color: var(--text); font-size: 1rem; }

/* ------------------------------- tech chips -------------------------------- */
.tech-panel {
  border: 1px solid var(--line);
  padding: 40px;
  background: var(--bg-panel);
}
.tech-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--line-bright);
  padding: 7px 13px;
  border-radius: 2px;
}

/* --------------------------------- platform -------------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.platform-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.platform-list .row { display: flex; gap: 14px; }
.platform-list .row .bracket { color: var(--accent); font-family: var(--font-mono); }
.platform-list .row p { margin: 0; color: var(--text); }

/* ------------------------------- engagement -------------------------------- */
.engage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.engage-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line-bright);
}
.engage-step { position: relative; }
.engage-step .num {
  width: 44px; height: 44px;
  border: 1px solid var(--line-bright);
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.engage-step h3 { font-size: 1.05rem; }
.engage-step p { font-size: 0.94rem; margin-top: 8px; }

/* ---------------------------------- cta ------------------------------------ */
.cta-panel {
  border: 1px solid var(--line);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 200px at 85% 0%, var(--accent-soft), transparent 70%),
    var(--bg-panel);
}
.cta-panel h2 { max-width: 480px; }
.cta-panel p { margin-top: 12px; max-width: 460px; }

/* --------------------------------- footer ----------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 16px; max-width: 320px; font-size: 0.92rem; }
footer h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 400;
  margin: 0 0 16px;
}
footer .flinks { display: flex; flex-direction: column; gap: 10px; }
footer .flinks a, footer .flinks div { color: var(--text-dim); font-size: 0.92rem; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------ page hero (sub) ------------------------------ */
.page-hero { padding: 64px 0 20px; }
.page-hero .tag { display:block; margin-bottom: 16px; }
.page-hero h1 { max-width: 700px; }
.page-hero .lede { margin-top: 18px; font-size: 1.08rem; max-width: 600px; }

/* ---------------------------------- about ------------------------------------ */
.leader-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  border: 1px solid var(--line);
  padding: 44px;
  background: var(--bg-panel);
}
.leader-avatar {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  position: relative;
}
.leader-name { font-size: 1.5rem; margin-bottom: 2px; }
.leader-role { color: var(--accent); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 18px; display: block; }
.leader-bio p { margin: 0 0 14px; color: var(--text); font-size: 1rem; }
.leader-quote {
  margin-top: 24px;
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: var(--bg);
}
.leader-quote p {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-style: normal;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}
.leader-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.timeline { margin-top: 8px; }
.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-row .yr { font-family: var(--font-mono); color: var(--accent); font-size: 0.92rem; padding-top: 2px; }
.timeline-row h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-row p { margin: 0; font-size: 0.95rem; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.principle-card {
  background: var(--bg);
  padding: 36px 32px;
}
.principle-card .tag { display: block; margin-bottom: 16px; }
.principle-card p { font-size: 0.95rem; margin-top: 10px; }

/* --------------------------------- contact ------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-detail {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .k { font-family: var(--font-mono); color: var(--text-faint); font-size: 0.85rem; padding-top: 2px; }
.contact-detail .v { color: var(--text); font-size: 1.02rem; }
.contact-detail .v a:hover { color: var(--accent); }

form.inquiry { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--bg-panel);
  border: 1px solid var(--line-bright);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: -4px; }

/* --------------------------------- services page grid ------------------------------- */
.svc-help-list { display: flex; flex-direction: column; margin-top: 8px; }
.svc-help-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.svc-help-row:last-child { border-bottom: 1px solid var(--line); }
.svc-help-row .mark { color: var(--accent); font-family: var(--font-mono); }
.svc-help-row p { margin: 0; color: var(--text); }

/* ------------------------------------ responsive ------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .platform-grid, .why-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .status-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .status-item:nth-child(3) { border-left: none; }
  .status-item { border-left: 1px solid var(--line); }
  .status-item:nth-child(2n+1) { border-left: none; }
  .cap-row { grid-template-columns: 1fr; gap: 8px; }
  .engage-track { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .engage-track::before { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
  .leader-avatar { width: 100px; height: 100px; font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .status-strip .wrap { grid-template-columns: 1fr 1fr; }
  .cta-panel { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
