/* =================================================================
   Ground Truth Associates — design system
   Concept: survey benchmark / calibration. The verified line
   resolved out of the noise. Industrial precision, editorial gravitas.
   ================================================================= */

:root {
  /* palette */
  --paper:      #EEF1F0;  /* cool light ground */
  --paper-2:    #E5E9E8;  /* recessed panel */
  --ink:        #11161A;  /* graphite near-black */
  --ink-2:      #38434A;  /* muted ink */
  --datum:      #173B40;  /* deep petrol — structural brand */
  --datum-2:    #0E2A2E;  /* darker petrol */
  --signal:     #E0532A;  /* calibration orange — used sparingly */
  --signal-dim: #b8451f;
  --line:       #C7CFCC;  /* hairline on light */
  --line-dk:    rgba(238,241,240,0.16); /* hairline on dark */
  --sage:       #7E8C86;  /* captions / meta */

  /* type */
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --sans:    "Archivo", system-ui, -apple-system, sans-serif;
  --serif:   "Newsreader", Georgia, serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* scale */
  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: #fff; }

a { color: inherit; }

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

/* ---------- typography roles ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: var(--signal);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }

.display-xl {
  font-size: clamp(2.6rem, 6.6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-l { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.display-m { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}

.mono { font-family: var(--mono); }

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(4rem, 9vw, 8.5rem); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- benchmark mark (signature) ---------- */
.benchmark {
  width: 1em; height: 1em; flex: none;
  display: inline-block;
  vertical-align: -0.12em;
}
.benchmark circle, .benchmark line { vector-effect: non-scaling-stroke; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700;
  letter-spacing: 0.01em; font-size: 1.02rem; text-decoration: none;
  color: var(--ink);
}
.brand .benchmark { width: 1.45rem; height: 1.45rem; }
.brand b { font-weight: 700; }
.brand span { color: var(--sage); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding: 0.4rem 0; position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--signal); transition: width 0.22s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink);
  padding: 0.55rem 1rem; border-radius: 1px;
  transition: background 0.18s, color 0.18s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle svg { display: block; }

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav.open .nav__links a { padding: 0.9rem 0; font-size: 0.95rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.open .nav__cta { display: inline-block; margin: 1rem var(--gutter) 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: 1px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-dim); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: var(--line-dk); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform 0.16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  background: var(--datum-2);
  color: var(--paper);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--datum);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(5rem, 13vw, 9rem); }
.hero .eyebrow { color: #9fb1ab; }
.hero h1 { color: var(--paper); margin: 1.3rem 0 0; max-width: 16ch; }
.hero__sub {
  margin-top: 1.6rem; max-width: 46ch;
  font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.5; color: #c5d2cd;
}
.hero__coords {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: #6f857f; margin-top: 2.5rem; display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.hero__cta { display: flex; gap: 0.9rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* =================================================================
   GAP / measurement block
   ================================================================= */
.gap__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 800px) { .gap__grid { grid-template-columns: 1fr; } }

.gauge { border: 1px solid var(--line); background: #fff; padding: clamp(1.5rem,3vw,2.5rem); border-radius: 2px; }
.gauge__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.gauge__label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.gauge__num { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.gauge__num--signal { color: var(--signal); }
.gauge__num--datum { color: var(--datum); }
.gauge__track { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 0.5rem 0 1.6rem; }
.gauge__fill { height: 100%; border-radius: 99px; }
.gauge__fill--wide { width: 98%; background: var(--datum); }
.gauge__fill--narrow { width: 20%; background: var(--signal); }
.gauge__caption { font-family: var(--mono); font-size: 0.72rem; color: var(--sage); letter-spacing: 0.03em; margin-top: 0.4rem; }

/* =================================================================
   SERVICES — the two instruments
   ================================================================= */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; } }
.svc__cell { background: var(--paper); padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; }
.svc__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-bottom: 1.4rem; }
.svc__cell h3 { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 0.9rem; }
.svc__cell p { color: var(--ink-2); font-size: 1.02rem; }
.svc__list { list-style: none; padding: 0; margin: 1rem 0 0; }
.svc__list li { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); padding: 0.55rem 0; border-top: 1px solid var(--line); display: flex; gap: 0.7rem; align-items: baseline; }
.svc__list li::before { content: "↳"; color: var(--signal); }
.svc__cell .micro { margin-top: auto; }

.funnel-note {
  margin-top: 1.5rem; font-family: var(--mono); font-size: 0.78rem;
  color: var(--sage); letter-spacing: 0.03em; text-align: center;
}
.funnel-note b { color: var(--datum); }

/* =================================================================
   AUDIENCE
   ================================================================= */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2.5rem); }
@media (max-width: 700px) { .aud { grid-template-columns: 1fr; } }
.aud__card { border-left: 2px solid var(--signal); padding-left: 1.5rem; }
.aud__card h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 0.6rem; }
.aud__card p { color: var(--ink-2); font-size: 1rem; }

/* =================================================================
   CREDIBILITY
   ================================================================= */
.cred { background: var(--datum); color: var(--paper); }
.cred .eyebrow { color: #9fb1ab; }
.cred h2 { color: var(--paper); max-width: 18ch; }
.cred__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); margin-top: 3rem; border-radius: 2px; overflow: hidden; }
@media (max-width: 760px) { .cred__grid { grid-template-columns: 1fr; } }
.cred__cell { background: var(--datum); padding: clamp(1.5rem,3vw,2.2rem); }
.cred__cell .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); margin-bottom: 0.8rem; }
.cred__cell p { color: #cdd9d4; font-size: 0.98rem; margin: 0; }

/* =================================================================
   INSIGHTS teaser + index
   ================================================================= */
.posts { display: grid; gap: 0; }
.post-row {
  display: grid; grid-template-columns: 8rem 1fr auto; gap: clamp(1rem,3vw,2.5rem);
  align-items: baseline; padding: 1.8rem 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background 0.16s;
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row:hover { background: #fff; }
.post-row:hover .post-row__title { color: var(--signal); }
.post-row__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--sage); text-transform: uppercase; line-height: 1.7; }
.post-row__title { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.1; transition: color 0.16s; }
.post-row__dek { font-family: var(--serif); color: var(--ink-2); font-size: 1rem; margin-top: 0.5rem; max-width: 60ch; }
.post-row__arrow { font-family: var(--mono); color: var(--signal); font-size: 1.1rem; align-self: center; }
@media (max-width: 680px) {
  .post-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-row__arrow { display: none; }
}

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { max-width: 16ch; }
.section-head .link {
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--signal); padding-bottom: 2px; white-space: nowrap;
}

/* =================================================================
   CTA band
   ================================================================= */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--paper); max-width: 20ch; margin-inline: auto; }
.cta-band .lead { color: #b9c3c6; margin: 1.2rem auto 2.2rem; text-align: center; }
.cta-band .btn--signal { font-size: 0.9rem; padding: 1.05rem 2rem; }

/* =================================================================
   FOOTER
   ================================================================= */
.foot { background: var(--datum-2); color: #9fb1ab; padding-block: 3.5rem; }
.foot__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { color: var(--paper); }
.foot .brand span { color: var(--sage); }
.foot__tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; margin-top: 0.8rem; max-width: 32ch; line-height: 1.7; }
.foot__links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot__col h4 { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); margin: 0 0 0.9rem; font-weight: 500; }
.foot__col a { display: block; font-family: var(--mono); font-size: 0.8rem; color: #c5d2cd; text-decoration: none; padding: 0.3rem 0; }
.foot__col a:hover { color: var(--signal); }
.foot__base { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.5rem var(--gutter) 0; border-top: 1px solid var(--line-dk); font-family: var(--mono); font-size: 0.72rem; color: var(--sage); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* =================================================================
   ARTICLE (blog post)
   ================================================================= */
.article-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.article-head .wrap { max-width: 760px; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem,4vw,3rem); }
.article-meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); display: flex; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.article-meta .cat { color: var(--signal); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.04; max-width: 20ch; }
.article-head .dek { font-family: var(--serif); font-size: clamp(1.15rem,1.8vw,1.42rem); color: var(--ink-2); line-height: 1.5; margin-top: 1.4rem; max-width: 56ch; }

.article-body { max-width: 680px; margin-inline: auto; padding: clamp(2.5rem,6vw,4.5rem) var(--gutter); }
.article-body p { font-size: 1.18rem; line-height: 1.72; margin: 0 0 1.5rem; }
.article-body h2 { font-family: var(--display); font-size: clamp(1.4rem,2.6vw,1.9rem); margin: 2.8rem 0 1rem; line-height: 1.1; }
.article-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.7rem; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a { color: var(--datum); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.article-body ul { padding-left: 0; list-style: none; margin: 0 0 1.5rem; }
.article-body ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem; font-size: 1.12rem; line-height: 1.6; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border: 1.5px solid var(--signal); border-radius: 50%; }
.pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem,3vw,2.1rem);
  line-height: 1.15; color: var(--datum); border-left: 3px solid var(--signal);
  padding: 0.2rem 0 0.2rem 1.6rem; margin: 2.5rem 0; max-width: none;
}
.article-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.article-foot .byline { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2); line-height: 1.7; }
.article-foot .byline b { color: var(--ink); }
.back-link { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--signal); }

/* utilities */
.center { text-align: center; }
.mt-s { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
