/* ------------------------------------------------------------------
   Lean Sigma Advisors — design tokens
   Concept: the page is set like a beautifully drafted A3 report.
   ------------------------------------------------------------------ */
:root {
  --paper:      #F7F8F6;   /* cool technical white */
  --paper-deep: #EEF1ED;   /* section alternation */
  --ink:        #1D2B33;   /* drafting ink */
  --ink-soft:   #46565F;   /* body text */
  --grid:       #DBE2DC;   /* faint grid lines */
  --grid-faint: #E8ECE7;   /* even fainter — hero backdrop only */
  --amber:      #9C6A14;   /* andon amber accent */
  --amber-deep: #7C5410;
  --white:      #FFFFFF;

  --serif: "IBM Plex Serif", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", "SF Mono", monospace;

  --wrap: 1060px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---- Header ------------------------------------------------------ */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { display: flex; align-items: center; }
.wordmark img { display: block; width: 270px; max-width: 56vw; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--amber-deep); }
.nav-cta {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav-toggle { display: none; }

/* ---- Hero: drafting-grid backdrop -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(to right, transparent 0 47px, var(--grid-faint) 47px 48px),
    repeating-linear-gradient(to bottom, transparent 0 47px, var(--grid-faint) 47px 48px),
    var(--paper);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
/* Target motif, bleeding off the right edge — the signature element */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -140px;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
  background-image:
    radial-gradient(circle, transparent 0 58px, var(--ink) 58px 60.5px, transparent 60.5px),
    radial-gradient(circle, transparent 0 122px, var(--ink) 122px 124.5px, transparent 124.5px),
    radial-gradient(circle, transparent 0 186px, var(--ink) 186px 188.5px, transparent 188.5px),
    radial-gradient(circle, transparent 0 250px, var(--ink) 250px 252.5px, transparent 252.5px);
  opacity: 0.16;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 108px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
@media (max-width: 880px) {
  .hero::after, .hero::before { display: none; }
}
.hero .wrap { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 14ch;
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 46ch;
  margin-top: 1.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

/* ---- Buttons ----------------------------------------------------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  display: inline-block;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--white); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---- Sections ---------------------------------------------------- */
.section .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }

.condition { background: var(--paper-deep); }
.condition .wrap { text-align: center; }
.statement {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  max-width: 38ch;
  margin: 0 auto;
}
.statement-follow { max-width: 52ch; margin: 1.3rem auto 0; }

.services h2, .followup h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2.2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  overflow: visible;
}
.service-icon .si-ln { fill: none; stroke: var(--ink); }
.service-icon .si-am { fill: none; stroke: var(--amber); }

.service { background: var(--white); padding: 1.9rem 1.7rem; }
.service h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.service p { font-size: 0.97rem; }

/* ---- Metric row: dark panel, contained within its section ------------ */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
}
.metric dd {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--white);
  letter-spacing: -0.02em;
  order: -1;
}
.metric dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FB0B8;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.metric { display: flex; flex-direction: column; border-top: 2px solid var(--amber); padding-top: 1rem; }
.metric-row-flush { margin-top: 0; }
.results-note { color: var(--ink-soft); margin-top: 2rem; max-width: 60ch; }
.results-note a { color: var(--amber-deep); }
.results-note a:hover { color: var(--ink); }

/* ---- Follow-up --------------------------------------------------- */
.services-cta {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--grid);
  text-align: center;
}
.services-cta-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  color: var(--ink);
  max-width: 26ch;
  margin: 0 auto 0.6rem;
}
.services-cta p { max-width: 44ch; margin: 0 auto 1.6rem; }

.followup h2 { max-width: 22ch; }
.followup p { max-width: 44ch; margin-bottom: 2rem; }

/* ---- Interior page hero (shorter than homepage) ------------------ */
.hero-page .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.hero-page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 16ch;
}
.hero-page .lede { margin-top: 1rem; }

/* ---- Services detail list ----------------------------------------- */
.service-detail-list .wrap { max-width: 820px; }
.service-detail + .service-detail { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--grid); }
.service-detail h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  color: var(--ink);
  margin: 0.6rem 0 0.4rem;
}
.service-detail-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.dmaic-strip {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.8rem 0 0.5rem;
}

.detail-points {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.detail-points li {
  font-size: 0.95rem;
  padding-left: 1.3rem;
  position: relative;
}
.detail-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--amber);
}

/* ---- Case studies -------------------------------------------------- */
.case-list { background: var(--paper-deep); }
.case-list .wrap { max-width: 820px; }
.case + .case { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--grid); }
.case h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.7rem);
  color: var(--ink);
  margin: 0.6rem 0 0.4rem;
}
.case-lede { font-weight: 500; color: var(--ink); margin-bottom: 0.9rem; }
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--grid);
}
.case-metrics dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case-metrics dd {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--amber-deep);
  margin-top: 0.2rem;
}

/* ---- About + Contact: two-column ------------------------------------ */
.hero-compact .wrap { padding-top: 3rem; padding-bottom: 2.5rem; }

.about-contact { background: var(--paper-deep); }
.about-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-col .statement {
  font-size: 1.15rem;
  max-width: none;
  margin-bottom: 1.1rem;
}
.about-col p { margin-bottom: 1.1rem; max-width: 56ch; font-size: 0.97rem; }
.credentials-inline {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-top: 1rem;
  border-top: 1px solid var(--grid);
  margin-bottom: 0;
}
.credentials-inline strong { color: var(--ink); font-weight: 600; }

.contact-col {
  background: var(--white);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-col h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.25;
}
.contact-lede { font-size: 0.93rem; margin: 0.6rem 0 1.5rem; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-sent {
  background: #EEF5E9;
  border: 1px solid #B9D9A8;
  color: #385C24;
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  margin: 0.6rem 0 1.2rem;
}
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--grid);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--amber); outline: none; }
.contact-form .btn { justify-self: start; margin-top: 0.2rem; }
.contact-alt { margin-top: 1.3rem; font-size: 0.9rem; }

@media (max-width: 880px) {
  .about-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---- Footer ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--grid); background: var(--paper-deep); }
.site-footer .wrap {
  padding-top: 2.5rem; padding-bottom: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem;
}
.wordmark-footer { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--amber-deep); }
.colophon { font-family: var(--mono); font-size: 0.75rem; margin-left: auto; color: var(--ink-soft); }

/* ---- Mobile nav --------------------------------------------------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    padding: 0.55rem 0.7rem;
    cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; content: ""; width: 18px; height: 2px; background: var(--ink);
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 4.6rem; left: 1rem; right: 1rem;
    background: var(--white);
    border: 1px solid var(--grid);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(29, 43, 51, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    gap: 0.2rem;
    z-index: 10;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.8rem; }
  .nav-cta { border: none; background: var(--ink); color: var(--paper); text-align: center; margin-top: 0.4rem; }
  .site-header { position: relative; }

  .hero .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section .wrap { padding-top: 3rem; padding-bottom: 3rem; }
  .metric-row { padding: 2rem 1.5rem; }
  .colophon { margin-left: 0; }
}
