/* Human Copilot. Sibling of the eval-harness site system: editorial, dark-first,
   no external font or CDN requests. The accent is warm on purpose (human), where
   eval-harness is lime (machine). */
:root {
  color-scheme: dark;
  --page: #0b0b0a;
  --surface: #141413;
  --ink: #f0efec;
  --ink-2: #bdbab0;
  --muted: #85827a;
  --hair: #2a2a27;
  --accent: #ffb547;
  --accent-ink: #0b0b0a;
  --display: "Inter Tight", "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #f6f5f1; --surface: #fcfcfb;
    --ink: #0b0b0b; --ink-2: #47463f; --muted: #6f6d66; --hair: #dddbd3;
    --accent: #9a4a00; --accent-ink: #f6f5f1;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f6f5f1; --surface: #fcfcfb;
  --ink: #0b0b0b; --ink-2: #47463f; --muted: #6f6d66; --hair: #dddbd3;
  --accent: #9a4a00; --accent-ink: #f6f5f1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; }

/* ── top bar ─────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--page) 80%, transparent); border-bottom: 1px solid var(--hair); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .bar { background: var(--page); } }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font: 600 14px/1 var(--mono); letter-spacing: .04em; text-decoration: none; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; flex: none; display: block; }
.nav { display: flex; gap: 22px; align-items: center; font: 500 13px/1 var(--mono); letter-spacing: .03em; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.nav .cta { color: var(--accent-ink); background: var(--accent); padding: 9px 14px; border-radius: 999px; }
.nav .cta:hover { color: var(--accent-ink); filter: brightness(1.06); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 12px; } }
.theme { background: none; border: 1px solid var(--hair); color: var(--ink-2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; flex: none; }
.theme:hover { color: var(--accent); border-color: var(--accent); }

/* ── hero ────────────────────────────────────────────── */
.hero { padding: 112px 0 64px; border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) { .hero { padding: 64px 0 48px; } }
.kicker { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker b { color: var(--accent); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(44px, 8.4vw, 116px); line-height: .94; font-weight: 800; margin: 28px 0 32px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.dek { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; color: var(--ink); max-width: 34ch; margin: 0 0 20px; text-wrap: pretty; }
.sub { font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-2); max-width: 60ch; margin: 0; text-wrap: pretty; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 64px; align-items: start; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--hair); background: var(--surface); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 320px; }
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--hair); }
.stat { padding: 22px 20px 0 0; border-right: 1px solid var(--hair); margin-right: 20px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat .n { font: 700 clamp(22px, 2.1vw, 30px)/1.1 var(--display); letter-spacing: -0.03em; min-height: 2.2em; }
.stat .l { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat { padding-bottom: 20px; }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}

/* ── sections ────────────────────────────────────────── */
section.block { padding: 104px 0; border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) { section.block { padding: 64px 0; } }
section[id] { scroll-margin-top: 72px; }
.eyebrow { display: flex; align-items: baseline; gap: 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow .num { color: var(--accent); font-weight: 700; font-size: 13px; }
section.block h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1; font-weight: 800; margin: 22px 0 28px; max-width: 17ch; }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 62ch; margin: 0 0 48px; text-wrap: pretty; }
.lede.after { margin: 48px 0 0; }

/* ── outside work: small, uniform photos under the paragraph ─ */
.life { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 960px; }
.life figure { margin: 0; }
.life img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--hair); background: var(--surface); }
.life figcaption { margin-top: 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 640px) { .life { grid-template-columns: 1fr 1fr; gap: 12px; } }
.prose { max-width: 64ch; }
.prose p { margin: 0 0 18px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); }
.prose p strong { color: var(--ink); font-weight: 600; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 32px; } }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink); font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--display); letter-spacing: -0.02em; max-width: 24ch; margin: 0; }

/* ── numbered list (situations) ─────────────────────── */
.findings { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.findings li { counter-increment: f; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair); }
.findings li:last-child { border-bottom: 1px solid var(--hair); }
.findings li::before { content: counter(f, decimal-leading-zero); font: 700 13px/2 var(--mono); color: var(--accent); }
.findings h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 700; }
.findings p { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 600px) { .findings li { grid-template-columns: 36px 1fr; gap: 10px; } }
.closer { margin: 36px 0 0; font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: -0.025em; }

/* ── cards ───────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card .task { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; flex: 1; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.4 var(--mono); color: var(--ink-2); border-top: 1px solid var(--hair); padding-top: 14px; }
.card .meta b { color: var(--accent); font-weight: 600; }

/* ── ladder (how it starts, experience) ─────────────── */
.ladder { list-style: none; padding: 0; margin: 0; }
.ladder li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.ladder li:first-child { border-top: 1px solid var(--hair); }
.ladder .lvl { font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.ladder h3 { font-size: clamp(19px, 2vw, 22px); margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 700; }
.ladder p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 64ch; }
.ladder .cost { font: 500 13px/1.3 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 640px) { .ladder li { grid-template-columns: 36px 1fr; gap: 10px; } .ladder .cost { grid-column: 2; text-align: left; } }
.sub-h { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 64px 0 20px; }

/* ── experience ──────────────────────────────────────── */
.roles { list-style: none; padding: 0; margin: 0; }
.role { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--hair); }
.role:last-child { border-bottom: 1px solid var(--hair); }
.role .co { font: 800 clamp(24px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: -0.03em; }
.role .t { margin-top: 8px; font: 500 13px/1.45 var(--mono); color: var(--ink-2); }
.role p { margin: 0 0 12px; color: var(--ink-2); max-width: 64ch; }
.role p:last-child { margin-bottom: 0; }
.role p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; gap: 14px; } }

/* ── buttons ─────────────────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { font: 600 13px/1 var(--mono); letter-spacing: .03em; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--hair); text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { color: var(--accent-ink); filter: brightness(1.06); }

/* ── contact ─────────────────────────────────────────── */
.contact h2 { max-width: 12ch; }
.where { margin-top: 40px; font: 500 13px/1.6 var(--mono); color: var(--ink-2); }

/* ── page (privacy, 404) ─────────────────────────────── */
.page { padding: 96px 0; }
.page h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 800; margin: 22px 0 28px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.02em; }

/* ── footer ──────────────────────────────────────────── */
footer { padding: 48px 0 72px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
footer a { color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
/* Homepage footer: brand, own projects, elsewhere; legal line below. */
footer .wrap.foot { display: block; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-brand p { margin: 14px 0 0; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-col h2 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.foot-col a { text-decoration: none; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }
.foot-col a b { display: block; font: 600 15px/1.3 var(--text); color: var(--ink); }
.foot-col a:hover b { color: var(--accent); }
.foot-col a span { display: block; font-size: 13px; color: var(--muted); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--hair); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── reveal ──────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .bar, .theme, .btns { display: none; } body { background: #fff; color: #000; } }
.life .credit { display: block; color: var(--muted); opacity: .8; font-size: 11px; }
.lede.wide { max-width: none; }
.nw { white-space: nowrap; }


/* ── hero: four pillars, one yellow keyword each (business → global → scale-up → enterprise) */
.stats.pillars { list-style: none; padding: 0; margin-top: 72px; }
.stats.pillars .n { font: 800 clamp(26px, 2.7vw, 38px)/1.08 var(--display); letter-spacing: -0.03em; min-height: 2.16em; margin-bottom: 14px; }
.stats.pillars .n em { font-style: normal; color: var(--accent); }
.stats.pillars .l { font-size: 15px; }
@media (max-width: 760px) { .stats.pillars .n { min-height: 0; } }
