/* =========================================================================
   [Your Name] Consulting — stylesheet
   Design language: "empirical" — serif scholarship + monospace evidence voice,
   ink/paper/teal palette, and a confidence-interval motif as the signature.
   ========================================================================= */

:root {
  /* ---- color ---- */
  --ink:        #15202b;   /* primary text, deep blue-slate            */
  --ink-soft:   #45545f;   /* secondary text                          */
  --ink-faint:  #76828b;   /* captions, meta                          */
  --paper:      #f6f6f3;   /* page background, cool off-white          */
  --paper-2:    #ecefe9;   /* alternating section background           */
  --card:       #ffffff;   /* raised surfaces                         */
  --teal:       #0e6e63;   /* primary accent                          */
  --teal-deep:  #0a3a35;   /* dark sections + footer                  */
  --teal-tint:  #e2efec;   /* faint teal wash                         */
  --amber:      #b9772d;   /* sparing highlight                       */
  --line:       #d8dad3;   /* hairline borders                        */
  --line-soft:  #e7e8e2;

  /* ---- type ---- */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---- scale ---- */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;

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

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--paper-2); }
.section--teal { background: var(--teal-deep); color: #e8efed; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }

/* eyebrow — the "data label" voice */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section--teal .eyebrow { color: #7fd3c6; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- confidence-interval motif (the signature) ---------- */
/* A horizontal interval with end caps and a point estimate. Reused as a
   divider and, at small size, as a list marker. It encodes the core idea:
   an estimate reported with its bounds. */
.ci {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 260px;
  margin: 28px 0;
  color: var(--teal);
}
.ci .cap { width: 1.5px; height: 13px; background: currentColor; flex: 0 0 auto; }
.ci .bar { height: 1.5px; background: currentColor; flex: 1 1 auto; opacity: .55; }
.ci .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 auto; margin-inline: -1px; }
.ci--center { margin-inline: auto; }
.section--teal .ci { color: #5cc4b6; }

/* small CI used as a list bullet */
.ci-list { list-style: none; padding: 0; margin: 0; }
.ci-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.ci-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.72em;
  width: 18px; height: 7px;
  background:
    radial-gradient(circle at 50% 50%, var(--teal) 0 2.6px, transparent 2.7px) center/100% 100% no-repeat,
    linear-gradient(var(--teal), var(--teal)) left center/100% 1.4px no-repeat;
  opacity: .9;
}
.ci-list li::after {
  /* end caps */
  content: "";
  position: absolute; left: 0; top: calc(0.72em - 3px);
  width: 18px; height: 13px;
  border-left: 1.4px solid var(--teal);
  border-right: 1.4px solid var(--teal);
  opacity: .9;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--teal); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  padding: 13px 24px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bg);
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(14,110,99,.7); }
.btn svg { width: 16px; height: 16px; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--teal-deep); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--teal); display: block; font-weight: 500; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s var(--ease); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(60px, 11vw, 130px) clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lede { margin-top: 22px; }
/* the faint distribution behind the hero figure */
.hero-figure { position: relative; }
.hero-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 26px 26px 30px;
  box-shadow: 0 30px 60px -40px rgba(21,32,43,.4);
}
.hero-card .fig-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.hero-card .stat { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hero-card .stat:last-child { border-bottom: 0; }
.hero-card .stat .k { font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }
.hero-card .stat .v { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 500; }

/* ---------- audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.split-col { padding: clamp(28px, 4vw, 44px); position: relative; }
.split-col + .split-col { border-left: 1px solid var(--line); }
.split-col h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 6px; }
.split-col .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.split-col p { color: var(--ink-soft); font-size: 16px; }
.split-col .more { font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.split-col .more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.split-col .more:hover svg { transform: translateX(4px); }

/* ---------- generic cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -30px rgba(21,32,43,.55); border-color: var(--teal); }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: .1em; }
.card h3 { font-size: 20px; margin: 12px 0 8px; }
.card p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

.section-head { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; }

/* ---------- phase / process list ---------- */
.phases { border-top: 1px solid var(--line); }
.phase { display: grid; grid-template-columns: 60px 1fr; gap: clamp(16px, 3vw, 40px); padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.phase .ph-num { font-family: var(--mono); font-size: 13px; color: var(--teal); padding-top: 6px; }
.phase h3 { font-size: 21px; margin-bottom: 8px; }
.phase p { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 70ch; }

/* ---------- credibility band ---------- */
.cred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cred .item { text-align: left; }
.cred .num { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 600; color: #fff; line-height: 1; }
.cred .lab { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: #8fd0c5; margin-top: 10px; text-transform: uppercase; }

/* ---------- quote / testimonial ---------- */
.quote { border-left: 2px solid var(--teal); padding-left: 26px; }
.quote p { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); font-style: italic; color: var(--ink); line-height: 1.45; }
.quote cite { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--ink-faint); letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--teal); font-size: 22px; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 16px; padding-bottom: 8px; max-width: 75ch; margin: 0 0 8px; }

/* ---------- CTA strip ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #cfe0dc; max-width: 52ch; margin: 16px auto 0; }

/* ---------- contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); width: 100%; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; } /* honeypot */
.form-note { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 15px; margin-bottom: 22px; border: 1px solid; }
.alert--ok { background: var(--teal-tint); border-color: #9fd1c8; color: #0a4a43; }
.alert--err { background: #fbeee6; border-color: #e3bd9b; color: #8a4a16; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c2c9; padding-block: 56px 32px; }
.site-footer a { color: #cfd6db; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 15px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 15px; color: #9aa6ad; max-width: 38ch; margin-top: 14px; }
.footer-bottom { border-top: 1px solid #2a3946; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: #74828b; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 18ch; }
.page-hero .lede { margin-top: 20px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-col + .split-col { border-left: 0; border-top: 1px solid var(--line); }
  .cred { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }

  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
    transform: translateY(-130%); transition: transform .3s var(--ease);
    box-shadow: 0 20px 30px -24px rgba(0,0,0,.4);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 15px 0; font-size: 17px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .cred { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
