/* Layout: a calm executive briefing. Narrow reading column for prose, a hero with portrait,
   a mono "readout" strip for results, one dark band for the three questions. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #15212c;
  --muted: #56646f;
  --line: #d8dfe5;
  --accent: #1d4c7a;
  --accent-hover: #163c61;
  --accent-ink: #ffffff;
  --accent-soft: #e3ebf3;
  --band: #15212c;
  --band-ink: #e7edf2;
  --band-muted: #9fb0bf;
  --band-line: #2a3946;
  --band-accent: #8dbbe8;

  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.5rem);
  --step-4: clamp(2.2rem, 5.2vw, 3.4rem);
  --wrap: 72rem;
  --read: 42rem;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f161d; --surface: #16202a; --ink: #e6ecf1; --muted: #9eabb6; --line: #263340;
    --accent: #84b5e6; --accent-hover: #a6c9ee; --accent-ink: #0f161d; --accent-soft: #1b2a39;
    --band: #182531; --band-ink: #e6ecf1; --band-muted: #9fb0bf; --band-line: #2b3b4a; --band-accent: #8dbbe8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f161d; --surface: #16202a; --ink: #e6ecf1; --muted: #9eabb6; --line: #263340;
  --accent: #84b5e6; --accent-hover: #a6c9ee; --accent-ink: #0f161d; --accent-soft: #1b2a39;
  --band: #182531; --band-ink: #e6ecf1; --band-muted: #9fb0bf; --band-line: #2b3b4a; --band-accent: #8dbbe8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 38rem; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 14px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.brand-sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav a.btn { padding: 8px 16px; border: 0; color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46rem; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.portrait { justify-self: center; width: min(320px, 100%); }
.portrait img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.portrait figcaption { text-align: center; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.portrait figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

/* Results readout */
.readout { border-block: 1px solid var(--line); background: var(--surface); }
.readout ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.readout li { padding: 26px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.readout li + li { border-left: 1px solid var(--line); }
.readout .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.readout .value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.readout .desc { font-size: 0.93rem; color: var(--muted); line-height: 1.5; }

/* Trigger list */
.triggers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.triggers li { padding-block: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
.triggers strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.triggers span { color: var(--muted); }

/* Three questions band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band .section-head p { color: var(--band-muted); }
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 0; }
.questions li {
  counter-increment: q;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 4px 16px;
  padding-block: 24px; border-top: 1px solid var(--band-line);
}
.questions li::before {
  content: counter(q, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--band-accent); padding-top: 6px;
}
.questions strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.25; }
.questions span { color: var(--band-muted); font-size: var(--step-1); }
.verdict { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.verdict p { padding: 22px 24px; border: 1px solid var(--band-line); border-radius: var(--radius); }
.verdict p:last-child { border-color: var(--band-accent); }
.band .btn { background: var(--band-accent); color: var(--band); }
.band .btn:hover { background: var(--band-ink); color: var(--band); }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.tile p { color: var(--muted); }

/* CTA */
.cta { display: grid; gap: 18px; justify-items: start; max-width: 44rem; }
.cta p { color: var(--muted); font-size: var(--step-1); }

/* Page header */
.page-head { padding-block: clamp(48px, 7vw, 80px) 8px; }
.page-head .wrap { display: grid; gap: 18px; }

/* Services detail */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service-intro { display: grid; gap: 14px; align-content: start; }
.service-intro p { color: var(--muted); }
.fit { font-size: 0.95rem; padding: 14px 16px; background: var(--accent-soft); border-radius: var(--radius); color: var(--ink) !important; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--accent); min-width: 0; }
.steps li::before { content: "Step " counter(s); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.steps p { color: var(--muted); font-size: 0.97rem; }
.callout { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; max-width: var(--read); display: grid; gap: 8px; }
.callout p { color: var(--muted); }

/* Prose (about, articles) */
.prose { max-width: var(--read); display: grid; gap: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 0.8em; }
.prose h3 { margin-top: 0.6em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: var(--step-1); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.about-aside { display: grid; gap: 16px; position: sticky; top: 110px; }
.about-aside img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.about-aside p { font-size: 0.93rem; color: var(--muted); }

/* Insights */
.articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 48rem; }
.articles li { border-top: 1px solid var(--line); padding-block: 28px; display: grid; gap: 10px; }
.articles a.title { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.25; }
.articles a.title:hover { color: var(--accent); }
.articles p { color: var(--muted); }
.article-meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article-end { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list .val { font-size: var(--step-1); }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-status { font-size: 0.95rem; }
.form-status[data-state="ok"] { color: var(--accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero .wrap, .about-grid, .contact-grid, .service { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 32px; }
  .portrait { order: -1; justify-self: start; width: 160px; }
  .portrait figcaption { display: none; }
  .readout ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout li:nth-child(3) { border-left: 0; }
  .readout li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .triggers, .tiles, .verdict { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-aside { position: static; max-width: 260px; }
}
@media (max-width: 520px) {
  .readout ul, .steps, .row-2 { grid-template-columns: minmax(0, 1fr); }
  .readout li + li { border-left: 0; border-top: 1px solid var(--line); }
  .questions li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .nav { gap: 4px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, a { transition: color .15s, background-color .15s, border-color .15s; }
}
.triggers li:last-child:nth-child(odd) { grid-column: 1 / -1; }
