/* =========================================================================
   SKA Consulting LLC
   Design system: "Structured systems" — engineered, steady, institutional.
   Display: Archivo  ·  Body: Public Sans  ·  Data/labels: IBM Plex Mono
   ========================================================================= */

:root {
  /* Ink — deep navy-slate, used for dark sections and primary text */
  --ink:      #0c1a2b;
  --ink-2:    #102438;
  --ink-3:    #1a3650;   /* borders / panels on dark */
  --ink-4:    #244a6b;

  /* Cool neutrals — "paper", not warm cream */
  --paper:    #f2f5f9;
  --surface:  #e9eef4;
  --white:    #ffffff;
  --line:     #d9e1ea;

  /* Text */
  --text:     #0c1a2b;
  --text-2:   #46596d;
  --on-dark:     #e8eef5;
  --on-dark-2:   #9bb0c6;

  /* Signal — instrument teal, the single accent ("systems that stay up") */
  --signal:    #18b4be;
  --signal-d:  #11838b;   /* readable on light */
  --signal-l:  #5cd6dd;   /* bright on dark */

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Public Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Shape & rhythm */
  --r:     6px;
  --r-lg:  12px;
  --container: 1120px;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --pad-y: clamp(4rem, 8vw, 7rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--signal-d);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --------------------------------------------------------------- eyebrow  */
/* Mono "field label" device — reads like a schema column, not decoration.  */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-d);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--accent { color: var(--signal-l); }

/* ---------------------------------------------------------------- buttons */
.button {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.button.primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.button.primary:hover { background: var(--signal-l); transform: translateY(-2px); }
.button.ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--ink-4);
}
.button.ghost:hover { border-color: var(--signal-l); color: var(--signal-l); transform: translateY(-2px); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 249, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 245, 249, 0.94);
}
.navbar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.18rem 0.42rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
}
.logo-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
}
.nav-links .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
/* faint blueprint grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 160, 195, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 160, 195, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 85% 0%, #000 0%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(24, 180, 190, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.4rem;
  max-width: 16ch;
}
.hero-copy {
  color: var(--on-dark-2);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* spec panel — the metrics, reframed as a live system readout */
.spec {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(180deg, var(--ink-2), #0c1d2e);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 70px -34px rgba(0, 0, 0, 0.72);
}

/* engineering corner brackets — the panel's signature detail */
.spec-bracket {
  position: absolute;
  width: 13px; height: 13px;
  border: 1.5px solid var(--signal);
  pointer-events: none;
}
.spec-bracket--tl { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-lg); }
.spec-bracket--tr { top: -1px; right: -1px; border-left: 0;  border-bottom: 0; border-top-right-radius: var(--r-lg); }
.spec-bracket--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; border-bottom-left-radius: var(--r-lg); }
.spec-bracket--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; border-bottom-right-radius: var(--r-lg); }

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.spec-id {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--on-dark-2); letter-spacing: 0.03em;
}
.spec-prompt {
  width: 7px; height: 7px;
  background: var(--signal);
  border-radius: 1px;
  box-shadow: 0 0 9px rgba(24, 180, 190, 0.75);
}
.spec-status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--signal-l);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}
.spec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(24, 180, 190, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(24, 180, 190, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(24, 180, 190, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 180, 190, 0); }
}
.spec-body { padding: 0.5rem 0.55rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.62rem 0.55rem;
  border-radius: var(--r);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  transition: background 0.18s var(--ease);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { background: rgba(24, 180, 190, 0.07); }
.spec-row dt { color: var(--on-dark-2); letter-spacing: 0.02em; }
.spec-row dd { color: #fff; margin: 0; text-align: right; }
.spec-row dd.spec-accent { color: var(--signal-l); }

.spec-foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.spec-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.spec-bars i { width: 3px; border-radius: 1px; background: var(--signal); }
.spec-bars i:nth-child(1) { height: 4px;  opacity: 0.45; }
.spec-bars i:nth-child(2) { height: 7px;  opacity: 0.65; }
.spec-bars i:nth-child(3) { height: 10px; opacity: 0.85; }
.spec-bars i:nth-child(4) { height: 13px; opacity: 1; }

/* --------------------------------------------------------------- sections */
.section { padding-block: var(--pad-y); }
.section--paper   { background: var(--paper); color: var(--text); }
.section--surface { background: var(--surface); color: var(--text); }
.section--dark    { background: var(--ink); color: var(--on-dark); }

.section-heading { max-width: 40ch; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section--dark .section-heading h2 { color: #fff; }
.section--dark .eyebrow { color: var(--signal-l); }

/* ------------------------------------------------------------------ about */
.intro-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.intro-inner .section-heading { margin-bottom: 0; }
.intro-text {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-2);
  border-left: 2px solid var(--signal);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

/* --------------------------------------------------------------- services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.7rem;
  position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 1.5rem; top: 0;
  width: 32px; height: 3px;
  background: var(--signal);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c4d2df;
  box-shadow: 0 22px 40px -28px rgba(12, 26, 43, 0.35);
}
.card:hover::before { transform: scaleX(1); }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-d);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.7rem 0 0.6rem;
}
.card p { color: var(--text-2); font-size: 0.97rem; }

/* -------------------------------------------------------------- expertise */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill-grid li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--on-dark);
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background 0.18s var(--ease);
}
.pill-grid li:hover {
  border-color: var(--signal);
  color: var(--signal-l);
  background: rgba(24, 180, 190, 0.06);
}

/* ------------------------------------------------------------- experience */
/* Pipeline of capability nodes — connective line is the signature element. */
.pipeline {
  position: relative;
  max-width: 760px;
  margin-left: 6px;
}
.pipeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--signal), rgba(24, 180, 190, 0.15));
}
.pipeline-node {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
}
.pipeline-node:last-child { padding-bottom: 0; }
.pipeline-marker {
  position: absolute;
  left: 0; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--signal);
  box-shadow: 0 0 0 4px rgba(24, 180, 190, 0.12);
}
.pipeline-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-d);
}
.pipeline-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.35rem 0 0.55rem;
}
.pipeline-body p { color: var(--text-2); max-width: 60ch; }

/* --------------------------------------------------------------- highlight */
.highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: linear-gradient(135deg, var(--ink-2), #0d2236);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
}
.highlight-text { max-width: 52ch; }
.highlight-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 0.9rem; }
.highlight-text p { color: var(--on-dark-2); }
.highlight-card .button { flex-shrink: 0; }

/* ---------------------------------------------------------------- contact */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
}
.contact-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; margin-bottom: 0.9rem; }
.contact-intro p { color: var(--on-dark-2); max-width: 36ch; }
.contact-details { border-top: 1px solid var(--ink-3); }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.contact-row dt {
  color: var(--on-dark-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.contact-row dd { margin: 0; text-align: right; color: #fff; }
.contact-row dd a { color: var(--signal-l); }
.contact-row dd a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-2);
  padding-block: 2.25rem;
  border-top: 1px solid var(--ink-3);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.footer-mark { color: var(--on-dark); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .spec { max-width: 460px; }
  .intro-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight-card { flex-direction: column; align-items: flex-start; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.5rem 0.55rem; font-size: 0.76rem; }
  .logo-text { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-copy { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spec-dot { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
