/* ============================================================
   PILLAR PEOPLE PARTNERS — Design tokens
   ============================================================ */
:root {
  /* Approved Pillar brand palette */
  --ivory: #F6F4EE;
  --paper: #FBFAF6;
  --charcoal: #252827;
  --charcoal-soft: #565952;
  --sage: #A6B39F;
  --sage-deep: #7E8E76;
  --slate-green: #34453A;
  --slate-green-dark: #263229;
  --stone: #D9D7CE;
  --stone-line: #CBC8BB;

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --max-w: 1160px;
  --gutter: clamp(24px, 5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-green);
}

/* ---------------- Pillar Foundation glyph (line-art) ----------------
   Custom thin-line artwork: a foundation baseline with structural
   lines of rising height and a capital line at the tallest — an
   understated architectural sketch, not a literal column icon.
------------------------------------------------------------- */
.pillar-glyph { display: block; }
.pillar-glyph .base,
.pillar-glyph .cap { stroke: var(--sage-deep); }
.pillar-glyph .col { stroke: var(--sage); }
.pillar-glyph line { stroke-width: 1.4; stroke-linecap: round; }
.pillar-glyph.large { width: 58px; height: 42px; }
.pillar-glyph.small { width: 40px; height: 30px; }

.divider-glyph { display: block; margin: 0 auto; }
.divider-glyph line { stroke-width: 1.2; stroke-linecap: round; }
.divider-glyph .base { stroke: var(--stone-line); }
.divider-glyph .col { stroke: var(--sage); }

/* ---------------- Nav ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
}
.wordmark img.logo-full {
  height: 54px;
  width: auto;
  display: block;
}
.wordmark img.logo-mark {
  height: 40px;
  width: auto;
  display: none;
}
nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
nav.primary-nav .links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
}
nav.primary-nav .links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.primary-nav .links a:hover,
nav.primary-nav .links a[aria-current="page"] {
  border-bottom-color: var(--slate-green);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  display: block;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 22px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--stone-line);
  font-size: 16px;
}
.mobile-nav.open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid var(--slate-green);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--slate-green);
  color: var(--paper);
}
.btn-primary:hover { background: var(--slate-green-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--slate-green);
}
.btn-ghost:hover { background: var(--slate-green); color: var(--paper); }

/* ---------------- Hero ---------------- */
.hero {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero .pillar-glyph { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--slate-green);
}
.hero .lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--charcoal-soft);
}
.hero .cta-row {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------------- Sections ---------------- */
section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
section.tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head .desc { margin-top: 18px; color: var(--charcoal-soft); font-size: 17px; max-width: 56ch; }

.band {
  background: var(--slate-green);
  color: var(--paper);
}
.band .eyebrow { color: var(--sage); }
.band h2, .band h3 { color: var(--paper); }
.band .desc, .band p { color: #D9E0D4; }

.band-cream { background: var(--paper); border-top: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }

/* ---------------- Grids / Cards ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.service-card {
  border-top: 1px solid var(--stone-line);
  padding-top: 26px;
}
.service-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage);
  letter-spacing: 0.08em;
}
.service-card h3 {
  font-size: 21px;
  margin-top: 14px;
  margin-bottom: 12px;
}
.service-card p { color: var(--charcoal-soft); font-size: 15.5px; }

.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; margin-top: 8px; }
.why-item h4 { font-size: 18px; margin-bottom: 10px; }
.why-item p { color: var(--charcoal-soft); font-size: 15.5px; }

/* ---------------- Build / Develop / Partner triad ---------------- */
.triad-label {
  font-family: var(--display);
  font-style: italic;
  font-size: 26px;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 16px;
}

/* ---------------- Approach stages ---------------- */
.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.stage {
  border-left: 1px solid var(--stone-line);
  padding: 0 28px 0 28px;
}
.stage:first-child { padding-left: 0; }
.stage .stage-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.1em;
}
.stage h3 { font-size: 22px; margin-top: 14px; margin-bottom: 12px; }
.stage p { font-size: 15px; color: var(--charcoal-soft); }

/* ---------------- Founder / about ---------------- */
.founder-block { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.founder-mark {
  aspect-ratio: 1/1;
  background: var(--stone);
  overflow: hidden;
}
.founder-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-block h3 { font-size: 28px; margin-bottom: 6px; }
.founder-block .role { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-green); margin-bottom: 22px; display: block; }
.founder-block .bio p { margin-bottom: 16px; color: var(--charcoal-soft); font-size: 16.5px; max-width: 62ch; }
.founder-block .bio p:last-child { margin-bottom: 0; }

/* ---------------- Contact form ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-intro h2 { font-size: clamp(30px, 3.6vw, 42px); }
.contact-intro .desc { margin-top: 20px; color: var(--charcoal-soft); font-size: 17px; max-width: 42ch; }
.contact-meta { margin-top: 40px; }
.contact-meta .item { margin-bottom: 20px; }
.contact-meta .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-soft); display: block; margin-bottom: 4px; }
.contact-meta .value { font-size: 16px; }

form.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-soft); }
.field input, .field textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--stone-line);
  border-radius: 2px;
  padding: 13px 15px;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--slate-green);
}
form.contact-form .btn { align-self: flex-start; margin-top: 6px; border: none; }

/* ---------------- Final CTA band ---------------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4vw, 46px); max-width: 20ch; margin: 0 auto; }
.final-cta .cta-row { justify-content: center; margin-top: 34px; }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--slate-green-dark);
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-links { display: flex; gap: 32px; font-size: 14.5px; color: #D9DED4; }
.footer-links a:hover { color: var(--sage); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #3E4C42;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #9FAA97;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 880px) {
  .grid-2, .why-list { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stage-row { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stage { border-left: none; border-top: 1px solid var(--stone-line); padding: 26px 0 0 0; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-mark { max-width: 220px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  nav.primary-nav .links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .wordmark img.logo-full { display: none; }
  .wordmark img.logo-mark { display: block; }
}

/* ---------------- Footer brand mark ---------------- */
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand .footer-word {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  line-height: 1.25;
}
.footer-brand .footer-word .tag {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 3px;
}

/* ---------------- Buttons: tracked uppercase ---------------- */
.btn {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

/* ---------------- Pillar Foundation methodology ---------------- */
.foundation-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.foundation-row .stage:first-child { padding-left: 0; }
.foundation-eyebrow-block { text-align: center; margin-bottom: 20px; }
.foundation-eyebrow-block .eyebrow { display: block; }
.foundation-eyebrow-block h2 { margin-top: 14px; }

/* ---------------- Architectural rule accents ---------------- */
.hairline {
  width: 1px;
  background: var(--stone-line);
}
@media (max-width: 880px) {
  .foundation-row { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 720px) {
  .foundation-row { grid-template-columns: 1fr; }
}
.band .stage p { color: #D9E0D4; }
.band .stage { border-left-color: #46564A; }
