/* =========================================================
   Herman Ngugi — Digital Solutions Consultant
   Premium boutique-consultancy design system.
   Deep navy + warm off-white, restrained cobalt accent,
   editorial sans typography, hairline structure.
   Signature motif: connected nodes / pathways
   (Information → Technology → Strategy → Results).
   ========================================================= */

:root {
  --paper: #f6f3ee;
  --paper-deep: #efebe2;
  --card: #fffdfa;
  --ink: #10182b;
  --ink-soft: #4a5468;
  --ink-faint: #7a8397;
  --navy: #0e1a33;
  --navy-deep: #0a1426;
  --navy-soft: #16264a;
  --accent: #2c4bdb;
  --accent-deep: #1f37a8;
  --accent-soft: #e8ecfb;
  --accent-on-navy: #8fa6ff;
  --line: #e2dfd6;
  --line-soft: #ece9e0;
  --line-on-navy: rgba(255, 255, 255, 0.14);
  --text-on-navy: #c9d1e6;
  --rule: #cdc7b8;
  --pc: var(--accent); --pc-l: var(--accent-on-navy); --pc-t: var(--accent-deep);

  /* pillar identities: base (marks, borders), light (on navy), text (on paper) */
  --c-systems: #3b63f0;  --c-systems-l: #7f9bff;  --c-systems-t: #2c4bdb;
  --c-presence: #e8632c; --c-presence-l: #ff9060; --c-presence-t: #b8400f;
  --c-visual: #c99a1e;   --c-visual-l: #e9c14f;   --c-visual-t: #8a6606;
  --c-insight: #12907f;  --c-insight-l: #3fcbb5;  --c-insight-t: #0c6b5e;

  --display: "Instrument Sans", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1160px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration-color: rgba(44, 75, 219, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.35; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 54ch; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }

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

.label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
}

section { padding: 96px 0; }
section.alt { background: var(--paper-deep); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .label { margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 300;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 238, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.brand-role { display: block; font-size: 0.7rem; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 14px;
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.93rem; font-weight: 500; border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--ink); cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(14, 26, 51, 0.25);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 28px 20px; gap: 0; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); }
  .main-nav a::after { display: none; }
}
@media (max-width: 600px) { .site-header .nav-cta { display: none; } .brand-role { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(44, 75, 219, 0.7); }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* on dark surfaces */
.on-navy .btn-secondary, .hero-home .btn-secondary, .cta-band .btn-secondary {
  border-color: rgba(255,255,255,0.35); color: #fff;
}
.on-navy .btn-secondary:hover, .hero-home .btn-secondary:hover, .cta-band .btn-secondary:hover {
  background: #fff; color: var(--navy); border-color: #fff;
}

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- page hero (inner pages) ---------- */
.hero { padding: 84px 0 56px; }
.hero .label { margin-bottom: 18px; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 18px; }
.hero-trust { font-size: 0.9rem; color: var(--ink-faint); margin-top: 8px; }

/* ---------- HOME HERO ---------- */
.hero-home {
  background: var(--navy);
  color: var(--text-on-navy);
  padding: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-home::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(44, 75, 219, 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(44, 75, 219, 0.14), transparent 60%);
}
.hero-home .hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center; padding-top: 96px; padding-bottom: 96px;
}
.hero-home .eyebrow { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; line-height: 1; }
.hero-home .eyebrow .label { line-height: 1; }
.hero-home .eyebrow .label { color: var(--accent-on-navy); }
.hero-home .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-on-navy); flex: none; margin-top: 4px; }
.hero-home h1 { color: #fff; max-width: 15ch; }
.hero-home .lede { color: var(--text-on-navy); margin-top: 22px; max-width: 50ch; }
.hero-home .hero-trust { color: #8f9ab5; margin-top: 26px; }

/* ---------- pillars (numbered editorial rows) ---------- */
.pillar-row {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto; gap: 32px;
  align-items: start; padding: 40px 0; border-top: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.pillar-row:last-child { border-bottom: 1px solid var(--line); }
.pillar-row .num { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--line); line-height: 1; transition: color 0.3s var(--ease); }
.pillar-row:hover .num { color: var(--accent); }
.pillar-row h3 { font-size: 1.55rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.pillar-row .sub { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; }
.pillar-row p { margin-bottom: 14px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li, .tags li {
  font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  background: var(--paper-deep); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px;
}
section.alt .tag-list li, section.alt .tags li { background: var(--card); }
.tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .pillar-row { grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 32px 0; }
  .pillar-row .num { font-size: 1.9rem; grid-row: span 2; }
  .pillar-row .body, .pillar-row .services, .pillar-row .go { grid-column: 2; }
}

/* ---------- audience (who I help) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px 28px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.audience::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.audience:hover { transform: translateY(-3px); border-color: #cfd6ee; box-shadow: 0 22px 40px -28px rgba(14, 26, 51, 0.35); }
.audience:hover::before { transform: scaleY(1); }
.audience .glyph { width: 44px; height: 44px; margin-bottom: 20px; color: var(--accent); }
.audience h3 { margin-bottom: 8px; }
.audience p { flex: 1; }
.audience .text-link { margin-top: 18px; font-size: 0.92rem; }
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- selected work (varied editorial composition) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.work {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; min-height: 240px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(14, 26, 51, 0.35); border-color: #cfd6ee; }
.work .label { margin-bottom: 16px; }
.work h3 { font-size: 1.35rem; }
.work p { flex: 1; }
.work--feature { grid-column: span 7; background: var(--navy); border-color: var(--navy); min-height: 360px; position: relative; overflow: hidden; }
.work--feature::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(143, 166, 255, 0.25); box-shadow: 0 0 0 40px rgba(143, 166, 255, 0.05), 0 0 0 80px rgba(143, 166, 255, 0.03);
}
.work--feature .label { color: var(--accent-on-navy); }
.work--feature h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 18ch; }
.work--feature p { color: var(--text-on-navy); }
.work--feature .tags li, section.alt .work--feature .tags li { background: rgba(255,255,255,0.08); border-color: var(--line-on-navy); color: #dfe5f5; }
.work--tall { grid-column: span 5; }
.work--third { grid-column: span 4; }
@media (max-width: 900px) { .work--feature, .work--tall, .work--third { grid-column: span 12; min-height: 0; } }

/* ---------- editorial two-column ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(odd) { border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 28px; padding-right: 0; }
.principle h3 { font-size: 1.1rem; margin-bottom: 8px; }
.principle p { margin: 0; font-size: 0.98rem; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { padding: 24px 0; border-right: none; }
}

/* ---------- stats / proof strip ---------- */
.stats { background: var(--navy); color: var(--text-on-navy); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 28px; border-left: 1px solid var(--line-on-navy); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .figure { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat .figure em { font-style: normal; color: var(--accent-on-navy); }
.stat .cap { display: block; margin-top: 12px; font-size: 0.86rem; color: #9ba6c2; max-width: 22ch; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child { padding: 32px 20px; border-left: none; border-top: 1px solid var(--line-on-navy); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(odd) { padding-left: 0; }
}

/* ---------- track record (text-led list) ---------- */
.record { border-top: 1px solid var(--line); }
.record-row {
  display: grid; grid-template-columns: 1.2fr 1.4fr 200px; gap: 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.record-row h3 { margin: 0; font-size: 1.2rem; }
.record-row p { margin: 0; font-size: 0.98rem; }
.record-row .label { text-align: right; }
@media (max-width: 760px) {
  .record-row { grid-template-columns: 1fr; gap: 6px; }
  .record-row .label { text-align: left; order: -1; }
}

/* ---------- process line ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, #b9c3e8 100%);
}
.step { position: relative; padding: 40px 16px 0 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
section.alt .step::before { background: var(--paper-deep); }
.step .n { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); }
.step h3 { font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 8px; }
.step p { font-size: 0.9rem; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), #b9c3e8); }
  .step { padding: 0 0 30px 40px; }
  .step::before { left: 0; top: 4px; }
}

/* ---------- ledger (simple rows, legacy + resume) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ledger-row h3 { margin: 0; }
.ledger-row p { margin: 0; }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.index-card, .blog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.index-card:hover, .blog-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(14, 26, 51, 0.35); border-color: #cfd6ee; }
.index-card .label, .blog-card .label { color: var(--accent); margin-bottom: 12px; }
.index-card h3, .blog-card h3 { margin-bottom: 10px; }
.index-card p, .blog-card p { font-size: 0.97rem; }
.card-image { border-radius: var(--radius-sm); margin: -4px 0 18px; width: 100%; height: auto; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.blog-meta { font-size: 0.82rem; color: var(--ink-faint); margin-top: auto; padding-top: 6px; }

/* ---------- portrait / monogram ---------- */
.stamp-portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; margin-left: auto;
  background: var(--navy); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
}
.stamp-portrait::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 80% 10%, rgba(44,75,219,0.4), transparent 65%);
}
.stamp-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.stamp-portrait .ring-mark { position: relative; width: 140px; height: 140px; }
.stamp-portrait .ring {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid rgba(143,166,255,0.5); box-shadow: 0 0 0 14px rgba(143,166,255,0.06), 0 0 0 30px rgba(143,166,255,0.035);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 2.2rem; color: #fff; letter-spacing: 0.02em;
}
.stamp-portrait .cardno { position: relative; color: #8f9ab5; text-align: center; padding: 0 20px; }
@media (max-width: 900px) { .stamp-portrait { margin: 0; max-width: 320px; aspect-ratio: 1 / 1; } }

/* ---------- services page ---------- */
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; margin-bottom: 20px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { box-shadow: 0 22px 40px -30px rgba(14, 26, 51, 0.35); border-color: #cfd6ee; }
.service-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.service-card-head h2 { font-size: 1.5rem; margin: 0; }
.service-card .from { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 1rem; }
.popular-badge {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
}
.price-table { width: 100%; border-collapse: collapse; margin: 18px 0 20px; font-size: 0.97rem; }
.price-table td { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.price-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; padding-left: 20px; }
@media (max-width: 600px) { .price-table td:last-child { white-space: normal; } }
.highlight-note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.93rem; color: var(--ink); max-width: none; }

/* ---------- portfolio ---------- */
.portfolio-group { margin-bottom: 64px; }
.portfolio-group h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 28px; font-size: 1.6rem; }

/* ---------- blog ---------- */
.post-hero h1 { max-width: 20ch; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 0.9rem; text-decoration: none; font-weight: 500; }
.post-body { max-width: 68ch; }
.post-body p { max-width: none; font-size: 1.08rem; line-height: 1.75; color: #2c3547; }
.post-body h2 { margin-top: 2em; font-size: 1.6rem; }
.post-body h3 { margin-top: 1.6em; }
.post-body ul, .post-body ol { color: #2c3547; padding-left: 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--text-on-navy); position: relative; overflow: hidden; isolation: isolate; padding: 104px 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 90% at 50% 120%, rgba(44,75,219,0.4), transparent 70%);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--text-on-navy); font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; }
.cta-band .label { color: var(--accent-on-navy); margin-bottom: 16px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form-field { margin-bottom: 20px; }
.form-field legend { padding: 0; }
.form-field label, .form-field legend { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid #cfcabd; border-radius: var(--radius-sm); padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(44, 75, 219, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
fieldset.form-field { border: none; padding: 0; margin: 0 0 20px; min-width: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid #cfcabd; background: var(--card); color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.choice:hover span { border-color: var(--accent); color: var(--ink); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 0.86rem; color: var(--ink-faint); margin-top: 14px; }

.contact-card { background: var(--navy); border-radius: var(--radius); padding: 10px 30px; color: var(--text-on-navy); position: sticky; top: 100px; }
.contact-line { padding: 20px 0; border-bottom: 1px solid var(--line-on-navy); }
.contact-line:last-child { border-bottom: none; }
.contact-line .k { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-on-navy); margin-bottom: 6px; }
.contact-line .v { color: #fff; font-size: 0.98rem; }
.contact-line a { color: #fff; text-decoration-color: rgba(255,255,255,0.35); }
.contact-line a:hover { color: var(--accent-on-navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-on-navy); padding: 72px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.site-footer h4 { color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--sans); }
.site-footer .foot-name { font-family: var(--display); color: #fff; font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.site-footer p { color: #9ba6c2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; color: #b7c0d6; }
.site-footer a { color: #b7c0d6; text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer a:hover { color: #fff; }
.site-footer a.btn-primary, .site-footer a.btn-primary:hover { color: #fff; }
.pillar-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-on-navy); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 32px; border-top: 1px solid var(--line-on-navy); font-size: 0.85rem; color: #7f8aa5;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* Failsafe: if the script never runs, content still appears after 2s */
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }
.js .reveal:not(.in) { animation: reveal-failsafe 0.5s ease 2s forwards; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- small-screen rhythm ---------- */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  section { padding: 68px 0; }
  .wrap { padding: 0 22px; }
  .hero { padding: 56px 0 36px; }
  .section-head { margin-bottom: 36px; }
  .cta-band { padding: 76px 0; }
  .cta-row .btn { flex: 1 1 100%; }
}


/* =========================================================
   PILLAR IDENTITY + CONNECTED-PATHWAY MOTIF
   Colour is used only for small marks: dots, hairlines,
   labels and interactive states.
   ========================================================= */
[data-pillar="systems"]  { --pc: var(--c-systems);  --pc-l: var(--c-systems-l);  --pc-t: var(--c-systems-t); }
[data-pillar="presence"] { --pc: var(--c-presence); --pc-l: var(--c-presence-l); --pc-t: var(--c-presence-t); }
[data-pillar="visual"]   { --pc: var(--c-visual);   --pc-l: var(--c-visual-l);   --pc-t: var(--c-visual-t); }
[data-pillar="insight"]  { --pc: var(--c-insight);  --pc-l: var(--c-insight-l);  --pc-t: var(--c-insight-t); }

/* Signature motif: four nodes on one pathway */
.section-head::before,
.hero:not(.hero-home) .wrap::before,
.site-footer .wrap::before,
.cta-band .wrap::before {
  content: ""; display: block; width: 76px; height: 8px; margin-bottom: 22px;
  background:
    radial-gradient(circle at 4px 50%,  var(--c-systems-l)  3.2px, transparent 3.7px),
    radial-gradient(circle at 28px 50%, var(--c-presence-l) 3.2px, transparent 3.7px),
    radial-gradient(circle at 52px 50%, var(--c-visual-l)   3.2px, transparent 3.7px),
    radial-gradient(circle at 72px 50%, var(--c-insight-l)  3.2px, transparent 3.7px),
    linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat;
}
.section-head::before, .hero:not(.hero-home) .wrap::before {
  background:
    radial-gradient(circle at 4px 50%,  var(--c-systems)  3.2px, transparent 3.7px),
    radial-gradient(circle at 28px 50%, var(--c-presence) 3.2px, transparent 3.7px),
    radial-gradient(circle at 52px 50%, var(--c-visual)   3.2px, transparent 3.7px),
    radial-gradient(circle at 72px 50%, var(--c-insight)  3.2px, transparent 3.7px),
    linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat;
}
.site-footer .wrap::before, .cta-band .wrap::before { --rule: rgba(255,255,255,0.28); margin-bottom: 40px; }
.cta-band .wrap::before { margin: 0 auto 30px; }
.cta-band::after, .work--feature::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='360' viewBox='0 0 520 360' fill='none'><g stroke='%23ffffff' stroke-opacity='.10' stroke-width='1'><path d='M40 300 L150 210 L260 250 L370 140 L480 190'/><path d='M150 210 L190 90 L320 60 L370 140'/><path d='M260 250 L330 330'/><path d='M190 90 L90 40'/></g><g stroke-opacity='0'><circle cx='40' cy='300' r='4' fill='%237f9bff' fill-opacity='.55'/><circle cx='150' cy='210' r='4' fill='%23ff9060' fill-opacity='.55'/><circle cx='260' cy='250' r='4' fill='%23e9c14f' fill-opacity='.55'/><circle cx='370' cy='140' r='4' fill='%233fcbb5' fill-opacity='.55'/><circle cx='480' cy='190' r='4' fill='%237f9bff' fill-opacity='.4'/><circle cx='190' cy='90' r='3' fill='%23ffffff' fill-opacity='.35'/><circle cx='320' cy='60' r='3' fill='%23ffffff' fill-opacity='.35'/><circle cx='330' cy='330' r='3' fill='%23ffffff' fill-opacity='.3'/><circle cx='90' cy='40' r='3' fill='%23ffffff' fill-opacity='.3'/></g></svg>") no-repeat center / contain;
}
.cta-band::after { inset: 0; opacity: 0.9; background-position: 8% 50%; background-size: 46%; }
.work--feature::before { right: -30px; bottom: -20px; width: 420px; height: 290px; z-index: 0; background-position: right bottom; opacity: 0.9; }
.work--feature > * { position: relative; z-index: 1; }
.work--feature::after { display: none; }

/* pillar chips (hero) */
.pillar-chip {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline;
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-on-navy);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar-chip:hover { background: rgba(255, 255, 255, 0.09); }
.pillar-chip .n { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; }
.pillar-chip .t { font-family: var(--display); font-weight: 600; color: #fff; letter-spacing: 0.06em; font-size: 1rem; }
.pillar-chip .d { grid-column: 2; font-size: 0.86rem; color: #9ba6c2; }
@media (max-width: 900px) {
  .hero-home .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 64px; }
}

/* hero rail: pathway with one node per pillar */
.motif { position: relative; padding-left: 34px; }
.motif::before {
  content: ""; position: absolute; left: 6px; top: 30px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, var(--c-systems-l), var(--c-presence-l), var(--c-visual-l), var(--c-insight-l));
  opacity: 0.45;
}
.motif::after {
  content: ""; position: absolute; left: 5px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px;
  background-image: linear-gradient(180deg, transparent, #ffffff, transparent);
  background-repeat: no-repeat; background-size: 100% 90px; opacity: 0.55;
  animation: pathway 6.5s linear infinite;
}
@keyframes pathway { from { background-position: 0 -90px; } to { background-position: 0 calc(100% + 90px); } }
.pillar-stack { display: grid; gap: 14px; }
.pillar-chip { position: relative; }
.pillar-chip::before {
  content: ""; position: absolute; left: -33px; top: 24px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--pc-l); box-sizing: border-box;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar-chip::after { content: ""; position: absolute; left: -22px; top: 29px; width: 22px; height: 1px; background: var(--pc-l); opacity: 0.5; }
.pillar-chip .n { color: var(--pc-l); }
.pillar-chip:hover { border-color: var(--pc-l); transform: translateX(4px); }
.pillar-chip:hover::before { background: var(--pc-l); box-shadow: 0 0 0 5px rgba(255,255,255,0.06); }

/* problem picker (interactive) */
.picker { padding: 0; background: var(--navy-deep); }
.picker .wrap { padding-top: 34px; padding-bottom: 40px; }
.picker-head { color: #8f9ab5; margin-bottom: 16px; }
.picker-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.picker-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; line-height: 1.2;
  color: #e6ebf7; background: transparent; padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-on-navy);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.picker-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc-l, var(--accent-on-navy)); flex: none; transition: box-shadow 0.2s var(--ease); }
.picker-btn:hover { border-color: var(--pc-l); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.picker-btn[aria-expanded="true"] { border-color: var(--pc-l); background: rgba(255,255,255,0.09); color: #fff; }
.picker-btn[aria-expanded="true"]::before { box-shadow: 0 0 0 4px rgba(255,255,255,0.10); }
.picker-btn:focus-visible { outline: 2px solid var(--pc-l); outline-offset: 3px; }

.picker-panel {
  margin-top: 22px; padding: 26px 30px; border-radius: var(--radius);
  background: rgba(255,255,255,0.045); border: 1px solid var(--line-on-navy); border-left: 3px solid var(--pc-l);
  display: grid; grid-template-columns: 1.7fr auto; gap: 22px 44px; align-items: center;
  animation: panel-in 0.35s var(--ease);
}
.picker-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.picker-panel .pk-tag { color: var(--pc-l); margin-bottom: 10px; }
.picker-panel h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.picker-panel p { color: var(--text-on-navy); margin-bottom: 14px; }
.picker-panel .tags { margin: 0; }
.picker-panel .tags li { background: rgba(255,255,255,0.07); border-color: var(--line-on-navy); color: #dfe5f5; }
.pk-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pk-actions .text-link { color: #cfd8f2; font-size: 0.92rem; }
.pk-actions .text-link:hover { color: #fff; }
@media (max-width: 760px) { .picker-panel { grid-template-columns: 1fr; padding: 22px 20px; } }
.picker noscript p { color: #9ba6c2; font-size: 0.9rem; margin-top: 14px; }

/* pillar rows: a station node sits on each line */
.pillar-row { position: relative; }
.pillar-row::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--pc); box-sizing: border-box;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pillar-row:hover::before { background: var(--pc); transform: scale(1.25); }
.pillar-row .sub { color: var(--pc-t); }
.pillar-row:hover .num { color: var(--pc); }
.pillar-row .text-link:hover { color: var(--pc-t); }
:target.pillar-row .num, .pillar-row:target .num { color: var(--pc); }

/* work + record: small pillar indicators */
.work[data-pillar]:not(.work--feature) { border-top: 2px solid var(--pc); }
.work[data-pillar]:not(.work--feature) .label { color: var(--pc-t); }
.work--feature[data-pillar] .label { color: var(--pc-l); }
.work--feature[data-pillar] { border-top: 2px solid var(--pc-l); }
.record-row[data-pillar] .label { white-space: nowrap; color: var(--pc-t); display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.record-row[data-pillar] .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); flex: none; }
@media (max-width: 760px) { .record-row[data-pillar] .label { justify-content: flex-start; } }

/* footer legend */
.pillar-line span { display: inline-flex; align-items: center; gap: 7px; color: #c9d1e6; }
.pillar-line span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pc-l); }

/* brand mark */
.brand-mark { background: none; box-shadow: none; padding: 0; overflow: hidden; border-radius: 11px; }
.brand-mark svg, .mark { width: 100%; height: 100%; display: block; }

/* testimonials (only rendered when real ones exist) */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.quote { border-top: 1px solid var(--line); padding-top: 26px; margin: 0; }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); }
.quote figcaption { font-size: 0.9rem; color: var(--ink-soft); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }

.foot-mark { width: 44px; height: 44px; margin-bottom: 16px; border-radius: 11px; overflow: hidden; }
