/* Layout: an operator's console — one column of reading, with the four core workflows drawn as live pipelines a founder can diagnose against. */
:root {
  --bg: #f1f3f2;
  --surface: #ffffff;
  --ink: #15181d;
  --muted: #5b6168;
  --line: #d9dddb;
  --accent: #2f45cc;
  --accent-soft: #e4e8fb;
  --signal: #4f7a3f;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1a1d22; --ink: #eceef0; --muted: #9aa1a8; --line: #2c3036;
    --accent: #8e9cff; --accent-soft: #232a4d; --signal: #8fbf7a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1a1d22; --ink: #eceef0; --muted: #9aa1a8; --line: #2c3036;
  --accent: #8e9cff; --accent-soft: #232a4d; --signal: #8fbf7a; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 960px; margin: 0 auto; padding-block: 40px 72px; display: grid; gap: 72px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

/* Hero */
.hero { display: grid; gap: 20px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 62ch; }

/* Diagnostic */
.diag { display: grid; gap: 20px; }
.diag-head { display: grid; gap: 8px; }
.diag-head h2 { font-size: 26px; }
.symptoms { display: flex; flex-wrap: wrap; gap: 8px; }
.symptoms button {
  font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  transition: border-color .15s, background .15s;
}
.symptoms button:hover { border-color: var(--accent); }
.symptoms button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; }
.flow {
  display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center;
  padding-block: 16px; border-bottom: 1px solid var(--line); transition: opacity .2s;
}
.flow:last-of-type { border-bottom: 0; }
.flow-name { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.stages { display: flex; align-items: center; min-width: 0; }
.stage {
  font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; border: 1px solid transparent;
}
.link { flex: 1; min-width: 10px; height: 1px; background: var(--line); }
.console.focused .flow { opacity: .35; }
.console.focused .flow.hit { opacity: 1; }
.flow.hit .flow-name { color: var(--accent); }
.flow.hit .link { background: var(--accent); opacity: .5; }
.stage.break { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.readout {
  font-family: var(--mono); font-size: 14px; padding: 14px 0 12px; border-top: 1px dashed var(--line); margin-top: 4px;
  color: var(--muted); min-height: 3.2em;
}
.readout strong { color: var(--ink); font-weight: 500; }

/* Sections */
section { display: grid; gap: 24px; }
section > header { display: grid; gap: 6px; }
section h2 { font-size: 30px; letter-spacing: -0.01em; }

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.offer { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.offer h3 { font-size: 19px; }
.offer p { color: var(--muted); font-size: 15px; }

.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 6px; }
.step { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.step .when { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }


.timeline { display: grid; }
.role { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.role .years { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.role-body { display: grid; gap: 6px; min-width: 0; }
.role h3 { font-size: 19px; }
.role .org { font-size: 14px; color: var(--muted); }
.role ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; font-size: 15px; }
.facts div { display: grid; gap: 6px; align-content: start; }

.contact { background: var(--ink); color: var(--bg); border-radius: 16px; padding: 32px; display: grid; gap: 16px; }
.contact h2 { font-size: 30px; }
.contact p { opacity: .8; max-width: 56ch; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.email { font-family: var(--mono); font-size: 16px; user-select: all; word-break: break-all; }
.contact button, .contact a.btn {
  font: inherit; font-size: 14px; cursor: pointer; border-radius: 999px; padding: 8px 16px;
  border: 1px solid var(--bg); background: transparent; color: var(--bg); text-decoration: none;
}
.contact button:hover, .contact a.btn:hover { background: var(--bg); color: var(--ink); }

footer { font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symptoms button {
    min-width: 0; min-height: 48px; padding: 10px 12px;
    border-radius: 12px; line-height: 1.4; text-align: left;
    overflow-wrap: break-word; text-wrap: pretty;
  }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .stages { overflow-x: auto; padding-bottom: 2px; }
  .role { grid-template-columns: 1fr; gap: 6px; }
  .offers { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; row-gap: 6px; }
  .step + .step { margin-top: 20px; }
  .contact { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.bio-copy { display: grid; gap: 20px; max-width: 70ch; font-size: 18px; }
.bio-copy p { color: var(--muted); }
.resume-link { justify-self: start; font-weight: 500; text-underline-offset: 4px; }
.top a.name { color: var(--ink); text-decoration: none; }
