/* Clarity Networks: v2 styles. Calm, light, orange as accent only. */

:root {
  --accent: #E8590C;        /* brand orange, used sparingly */
  --ink: #1F2328;           /* headings, primary buttons */
  --text: #3D434A;          /* body copy */
  --muted: #6B7178;         /* secondary copy */
  --faint: #8D9399;         /* labels, notes */
  --line: #E7E5E1;          /* borders */
  --soft: #F7F6F3;          /* alternate section background */
  --white: #FFFFFF;

  --max: 1120px;
  --radius: 8px;
  --section: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section) 0; }
.alt { background: var(--soft); }

/* Type */
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; margin: 14px 0 18px; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 64px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none;
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-secondary { border-color: #CFCCC7; color: var(--ink); background: #fff; }
.btn-secondary:hover { border-color: var(--ink); }
.text-link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid #CFCCC7; padding-bottom: 2px; }
.text-link:hover { border-color: var(--accent); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 32px; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14.5px; }

/* Hero */
.hero { padding: 112px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero .sub { font-size: 19px; color: var(--ink); margin-bottom: 14px; }
.hero .body { font-size: 17.5px; color: var(--muted); max-width: 540px; margin-bottom: 40px; }
.hero .ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Survey sketch (decorative) */
.survey { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.survey-top {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint); margin-bottom: 16px;
}
.survey-top b { color: var(--text); font-weight: 500; }
.survey svg { width: 100%; height: auto; display: block; }
.survey-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.survey-legend span { display: inline-flex; align-items: center; gap: 7px; }
.survey-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Stats */
.stats { padding: 0; }
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 40px 28px 40px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 36px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.stats .note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* Problems */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.pcard .tag { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.pcard q { display: block; margin: 12px 0 14px; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; letter-spacing: -0.01em; quotes: "\201C" "\201D"; }
.pcard p { color: var(--muted); font-size: 16px; }

/* How we work */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step .n { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }
.step h3 { margin: 8px 0 10px; font-size: 21px; }
.step p { font-size: 15.5px; color: var(--muted); }

.pull {
  margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  background: var(--soft); border-radius: var(--radius); padding: 56px;
}
.alt .pull { background: #fff; border: 1px solid var(--line); }
.pull h3 { font-size: 26px; line-height: 1.3; margin-top: 14px; letter-spacing: -0.02em; }
.pull p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.pull ol { list-style: none; counter-reset: q; }
.pull li {
  counter-increment: q; position: relative;
  padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line);
  font-size: 16.5px; color: var(--ink);
}
.pull li:first-child { padding-top: 0; }
.pull li:first-child::before { top: 1px; }
.pull li::before {
  content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 17px;
  font-size: 13px; color: var(--faint);
}

/* Services */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.svc svg { width: 28px; height: 28px; margin-bottom: 18px; }
.svc h3 { margin-bottom: 8px; }
.svc p { font-size: 15.5px; color: var(--muted); }

/* Projects */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.case .meta { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.case h3 { margin: 10px 0 20px; font-size: 19px; }
.case dl { display: grid; gap: 14px; font-size: 15.5px; }
.case dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.case dd { color: var(--muted); margin-top: 2px; }

.case.feature { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 48px; }
.case.feature h3 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 32px; }
.case.feature .nums { display: flex; gap: 40px; flex-wrap: wrap; }
.case.feature .nums b { display: block; font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.case.feature .nums span { font-size: 13.5px; color: var(--muted); }
.case.feature dl { gap: 20px; }
.cgrid .case:last-child { grid-column: span 2; }
.small-note { margin-top: 28px; font-size: 14px; color: var(--faint); }

/* Health check */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; background: #fff; }
.tier.featured { border-color: var(--ink); }
.tier .who { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.tier h3 { font-size: 22px; margin: 10px 0 4px; }
.tier .price { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 8px 0 4px; }
.tier .price small { font-size: 14px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.tier ul { margin: 20px 0 32px; display: grid; gap: 10px; font-size: 15.5px; color: var(--muted); }
.tier li { padding-left: 24px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.credit { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--ink); }
.credit svg { flex: none; }

/* Sectors & credentials */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: #fff; color: var(--text); }
.creds { margin-top: 28px; }
.cred { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cred:first-child { border-top: 1px solid var(--line); }
.cred .badge { flex: none; width: 92px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--faint); }
.cred b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.cred span { display: block; font-size: 14.5px; color: var(--muted); }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.about p { margin-bottom: 18px; font-size: 17px; }
.about p strong { color: var(--ink); font-weight: 600; }
.sig { margin-top: 28px; font-size: 15px; color: var(--ink); font-weight: 500; }
.sig span { color: var(--faint); font-weight: 400; }
.timeline { border-left: 1px solid var(--line); margin-top: 8px; }
.timeline li { position: relative; padding: 0 0 26px 28px; font-size: 15px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; border: 1px solid #B9B6B1;
}
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 96px; }
.cline { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: 16px; color: var(--ink); }
.cline svg { flex: none; }
.cline:first-of-type { margin-top: 36px; }
form { display: grid; gap: 18px; }
label { font-size: 14px; font-weight: 500; color: var(--ink); display: grid; gap: 6px; }
label .opt { font-weight: 400; color: var(--faint); }
input, select, textarea {
  font: inherit; font-size: 16px; padding: 11px 13px; color: var(--ink);
  border: 1px solid #D6D3CE; border-radius: 6px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form .btn { justify-self: start; }
#thanks { display: none; border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; font-size: 15px; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.site-footer img { height: 30px; width: auto; margin-bottom: 12px; }
.site-footer .legal { text-align: right; line-height: 1.7; }

/* Responsive */
@media (max-width: 980px) {
  :root { --section: 96px; }
  .nav ul { display: none; }
  .hero { padding: 80px 0 88px; }
  .hero .wrap, .split, .about .wrap, .contact .wrap, .pull { grid-template-columns: 1fr; gap: 56px; }
  .survey { max-width: 520px; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chain { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .sgrid, .cgrid, .tiers { grid-template-columns: repeat(2, 1fr); }
  .case.feature { grid-column: span 2; grid-template-columns: 1fr; gap: 32px; }
  .pull { padding: 40px; margin-top: 72px; }
}
@media (max-width: 640px) {
  :root { --section: 72px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 64px; }
  .nav img { height: 28px; }
  .hero { padding: 56px 0 72px; }
  .section-head { margin-bottom: 40px; }
  .pgrid, .sgrid, .cgrid, .tiers, .chain, .row2 { grid-template-columns: 1fr; }
  .sgrid { gap: 40px; }
  .case.feature, .cgrid .case:last-child { grid-column: span 1; }
  .case.feature, .pcard, .case, .tier { padding: 28px 24px; }
  .pull { padding: 32px 24px; }
  .stat { padding: 28px 16px 28px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat b { font-size: 28px; }
  .site-footer .legal { text-align: left; }
}
