/* ==========================================================================
   KPI Marketing Consulting — Brand Style System
   Per Brand Style Guide, 2026 Edition
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --charcoal:    #2A2B2D;  /* Primary   — headlines, primary text */
  --steel:       #4E555E;  /* Secondary — body text, UI elements */
  --slate:       #80858B;  /* Tertiary  — captions, metadata (on dark only) */
  --taupe:       #D1BAA6;  /* Accent    — highlights on dark backgrounds */
  --stone:       #B9ADA2;  /* Neutral warm — borders, dividers */
  --ice:         #CDD6DF;  /* Neutral cool — backgrounds, panels */

  /* Derived surfaces */
  --ice-tint:    #EDF1F5;  /* Light wash of Ice for large page bands */
  --ice-line:    #DDE4EB;
  --white:       #FFFFFF;
  --charcoal-90: #35373A;

  /* Type */
  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max:   1120px;
  --gutter: 32px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  color: var(--charcoal);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 62ch;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
  display: block;
}

.caption {
  font-size: 0.85rem;
  color: var(--steel);
  font-weight: 500;
}

/* Rules for dark surfaces */
.on-dark, .on-dark p, .on-dark li { color: var(--ice); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .eyebrow { color: var(--taupe); }
.on-dark .caption { color: var(--slate); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ice-line);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: auto; }

.brand-text { line-height: 1.05; }
.brand-name {
  display: block;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}
.brand-sub {
  display: block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--steel);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--charcoal); border-bottom-color: var(--taupe); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--charcoal);
  color: var(--white);
  border: 2px solid var(--charcoal);
  transition: background .18s, color .18s;
}
.btn:hover { background: var(--charcoal-90); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--stone);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.btn-light {
  background: var(--taupe);
  color: var(--charcoal);
  border-color: var(--taupe);
}
.btn-light:hover { background: var(--white); border-color: var(--white); }

.link-arrow {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid var(--taupe);
  padding-bottom: 2px;
  transition: border-color .18s;
}
.link-arrow:hover { border-bottom-color: var(--charcoal); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-ice { background: var(--ice-tint); }
.section-dark { background: var(--charcoal); }

.section-head { max-width: 68ch; margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  padding: 104px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(209,186,166,0.16);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; margin-bottom: 26px; }
.hero .lead { color: var(--ice); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--charcoal);
  border-top: 1px solid rgba(209,186,166,0.2);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(209,186,166,0.18);
}
.stat {
  background: var(--charcoal-90);
  padding: 34px 26px;
}
.stat-num {
  display: block;
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--taupe);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ice);
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(42,43,45,0.07);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 18px; }

.card-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-bottom: 14px;
}

/* Pillar card sits on the ice band */
.pillar {
  background: var(--white);
  border-left: 3px solid var(--taupe);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 28px;
}
.pillar h3 { margin-bottom: 8px; font-size: 1.05rem; }
.pillar p { font-size: 0.93rem; margin: 0; }

/* Case study card */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.case-card:hover {
  border-color: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(42,43,45,0.07);
}
.case-card-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.case-sector {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.case-card h3 { margin-bottom: 10px; }
.case-card p { font-size: 0.95rem; flex: 1; }
.case-metrics {
  list-style: none;
  margin: 4px 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--ice-line);
}
.case-metrics li {
  font-size: 0.87rem;
  color: var(--steel);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.case-metrics li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--taupe);
}
.case-metrics strong { color: var(--charcoal); font-weight: 700; }

/* ---------- Profile / About ---------- */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.headshot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--ice-line);
}
.profile-meta {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.8;
}
.profile-meta strong { color: var(--charcoal); display: block; font-weight: 700; }

/* ---------- Quote ---------- */
.quote {
  border-left: 3px solid var(--taupe);
  padding: 6px 0 6px 26px;
  max-width: 66ch;
}
.quote p {
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.quote cite {
  font-style: normal;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.03em;
}

/* ---------- Articles ---------- */
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.article-card:hover {
  border-color: var(--stone);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(42,43,45,0.07);
}
.article-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.article-card h3 { font-size: 1.28rem; margin-bottom: 12px; line-height: 1.25; }
.article-card p { font-size: 0.95rem; margin-bottom: 18px; }

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  margin-bottom: 34px;
  border-top: 1px solid var(--ice-line);
  border-bottom: 1px solid var(--ice-line);
}
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.byline-name { font-weight: 700; color: var(--charcoal); font-size: 0.95rem; display: block; }
.byline-meta { font-size: 0.8rem; color: var(--steel); }

/* Long-form article body */
.article-body { max-width: 70ch; }
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 46px;
  margin-bottom: 16px;
}
.article-body h3 {
  font-size: 1.08rem;
  margin-top: 32px;
  margin-bottom: 10px;
}
.article-body > h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--charcoal); font-weight: 700; }

.callout {
  background: var(--ice-tint);
  border-left: 3px solid var(--taupe);
  padding: 24px 26px;
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--charcoal); }

.timeline { list-style: none; padding-left: 0; }
.timeline li {
  padding: 16px 0 16px 96px;
  border-bottom: 1px solid var(--ice-line);
  position: relative;
  margin-bottom: 0;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .era {
  position: absolute;
  left: 0;
  top: 16px;
  font-weight: 900;
  color: var(--charcoal);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.source-note {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--ice-line);
  font-size: 0.85rem;
  color: var(--steel);
}

/* ---------- Recommendations ---------- */
.rec-group { margin-bottom: 64px; }
.rec-group:last-child { margin-bottom: 0; }

.rec-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--charcoal);
}
.rec-group-head h2 { font-size: 1.5rem; }
.rec-group-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.rec {
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-left: 3px solid var(--taupe);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 32px;
  margin-bottom: 22px;
}
.rec:last-child { margin-bottom: 0; }
.rec-body p {
  font-size: 0.97rem;
  line-height: 1.68;
  margin-bottom: 14px;
}
.rec-body p:last-child { margin-bottom: 0; }

.rec-attr {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ice-line);
}
.rec-name {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
  transition: border-color .18s;
}
a.rec-name:hover { border-bottom-color: var(--taupe); }
.rec-role {
  display: block;
  font-size: 0.84rem;
  color: var(--steel);
  margin-top: 3px;
}
.rec-date {
  display: block;
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- Leadership competencies ---------- */
.comp {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--ice-line);
  align-items: start;
}
.comp:last-of-type { border-bottom: 0; }
.comp-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.comp-index {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-bottom: 8px;
}
.comp-body p { font-size: 0.96rem; margin-bottom: 0; }

.instrument {
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-top: 3px solid var(--taupe);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 24px;
}
.instrument h3 { font-size: 1rem; margin-bottom: 6px; }
.instrument .caption { display: block; margin-bottom: 12px; }
.instrument p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 760px) {
  .comp { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Capability list ---------- */
.cap-list { list-style: none; }
.cap-list li {
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--ice-line);
  position: relative;
  font-size: 0.96rem;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 23px;
  width: 10px; height: 2px;
  background: var(--taupe);
}
.cap-list li:last-child { border-bottom: 0; }
.cap-list strong { color: var(--charcoal); font-weight: 700; }

/* ---------- Case study detail ---------- */
.case-hero { background: var(--charcoal); padding: 76px 0 64px; }
.case-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; margin-bottom: 18px; }
.case-hero .caption { color: var(--taupe); font-weight: 600; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin: 8px 0 0;
}
.result {
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-top: 3px solid var(--taupe);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px 24px;
}
.result-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.result-label { font-size: 0.86rem; color: var(--steel); line-height: 1.5; }

.prose { max-width: 68ch; }
.prose h2 { margin-bottom: 16px; }
.prose + .prose { margin-top: 44px; }

.back-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 26px;
}
.back-link:hover { color: var(--charcoal); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; }
.contact-list li {
  border-bottom: 1px solid var(--ice-line);
  padding: 22px 0;
}
.contact-list li:first-child { border-top: 1px solid var(--ice-line); }
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 5px;
}
.contact-value {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 2px solid transparent;
  transition: border-color .18s;
}
a.contact-value:hover { border-bottom-color: var(--taupe); }

/* ---------- Contact form ---------- */
.contact-form { max-width: 100%; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.field .req { color: var(--charcoal); }

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234E555E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--charcoal);
  box-shadow: 0 0 0 3px rgba(209,186,166,0.35);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--slate); }

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Honeypot: hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { margin-top: 28px; }
.form-actions .btn { border: 0; cursor: pointer; font-family: var(--font); }
.form-note {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 14px;
}

/* ---------- Thank you page ---------- */
.confirm {
  text-align: center;
  padding: 96px 0 88px;
  max-width: 60ch;
  margin: 0 auto;
}
.confirm-mark {
  width: 54px;
  height: 54px;
  border: 2px solid var(--taupe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  font-size: 1.4rem;
  color: var(--charcoal);
  font-weight: 700;
}
.confirm h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.confirm .lead { margin: 0 auto 30px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--charcoal); padding: 76px 0; text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 32px; color: var(--ice); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(209,186,166,0.2);
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 30px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--slate); }
.footer-links { display: flex; gap: 26px; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--ice); font-weight: 500; }
.footer-links a:hover { color: var(--taupe); }
.footer-legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.09);
  font-size: 0.78rem;
  color: var(--slate);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .profile-photo { max-width: 220px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 66px; }
}

@media (max-width: 620px) {
  :root { --gutter: 22px; }
  .site-header .container { min-height: 66px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.8rem; }
  .brand-sub { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
