/* Base reset (standalone) */
html{-webkit-text-size-adjust:100%}
img{max-width:100%}
[hidden]{display:none!important}
/* Layout: a year of monthly "releases" — left-aligned thesis, then evidence sections, each on one 1080px column. */
:root {
  --bg: #f3f5f7;
  --surface: #fbfcfd;
  --ink: #12161c;
  --ink-2: #4a5361;
  --muted: #6f7987;
  --line: #dde2e8;
  --grid: #e4e8ec;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-wash: rgba(42,120,214,.08);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --good: #006300;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #171b21; --ink: #eef1f4; --ink-2: #b8c0cb; --muted: #8b95a3;
    --line: #2a3038; --grid: #242a31; --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: rgba(57,135,229,.12);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good: #0ca30c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #171b21; --ink: #eef1f4; --ink-2: #b8c0cb; --muted: #8b95a3;
  --line: #2a3038; --grid: #242a31; --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: rgba(57,135,229,.12);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --good: #0ca30c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
}
a { color: var(--accent-ink); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 64px; border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.nav-name { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); }

/* type */
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.lede { color: var(--ink-2); max-width: 64ch; margin: 12px 0 0; }
.section-head { display: grid; gap: 4px; margin-bottom: 32px; }

/* hero */
.hero { padding-block: 64px 56px; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin-top: 14px; }
.hero h1 .thin { font-weight: 500; color: var(--ink-2); }
.role { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; }
.thesis { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.archetype { font-family: var(--display); font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.12; }
.archetype span { color: var(--accent-ink); }
.thesis p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.thesis p + p { margin-top: 12px; }
.thesis strong { color: var(--ink); font-weight: 600; }

.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.stat:nth-child(3n) { border-right: 0; }
.stat:nth-last-child(-n+3) { border-bottom: 0; }
.stat b { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.stat b small { font-size: 22px; color: var(--ink-2); font-weight: 500; }
.stat span { font-size: 14px; color: var(--ink-2); }
.stat em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* how built */
.built { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.built ol { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.src { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg); display: grid; gap: 2px; min-width: 0; }
.src b { font-size: 14px; font-weight: 600; }
.src span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.excluded { margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: var(--accent-wash); font-size: 14px; color: var(--ink-2); }
.excluded b { color: var(--ink); }

/* charts */
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 12px; min-width: 0; }
.band.alt .chart-card { background: var(--bg); }
.chart-card h3 { font-size: 16px; }
.chart-card .sub { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 7px 10px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; z-index: 2; transform: translate(-50%, -100%); }
.tip b { font-weight: 600; }
.tip .row { display: flex; gap: 8px; align-items: center; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
details.data { margin-top: 6px; font-size: 13px; }
details.data summary { cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 4px 0; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12.5px; margin: 6px 0 4px; }
th, td { padding: 4px 10px 4px 0; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 500; }
.charts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }

/* timeline */
.months { display: grid; gap: 0; }
.month { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding-block: 26px; border-top: 1px solid var(--line); }
.month:first-child { border-top: 0; padding-top: 0; }
.m-tag { display: grid; gap: 2px; align-content: start; }
.m-tag code { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); background: var(--accent-wash); padding: 2px 8px; border-radius: 5px; justify-self: start; }
.m-tag span { font-family: var(--display); font-size: 22px; font-weight: 700; }
.m-body h3 { font-size: 21px; }
.m-body p { margin: 6px 0 0; color: var(--ink-2); max-width: 70ch; }
.m-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-stats b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.chip.ai { border-color: color-mix(in srgb, var(--s3) 55%, var(--line)); }
.chip.people { border-color: color-mix(in srgb, var(--s2) 55%, var(--line)); }
.chip.platform { border-color: color-mix(in srgb, var(--s1) 55%, var(--line)); }
.milestone { border-left: 3px solid var(--accent); padding-left: 10px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--surface); display: grid; gap: 4px; align-content: start; }
.band.alt .tile { background: var(--bg); }
.tile b { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.tile span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.delta { font-family: var(--mono); font-size: 12px; color: var(--good); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--surface); margin-top: 16px; }
.band.alt .feature { background: var(--bg); }
.feature p { margin: 8px 0 0; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.steps li code { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.steps b { color: var(--ink); font-weight: 600; }

/* ai stages */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stage { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--surface); display: grid; gap: 8px; align-content: start; min-width: 0; }
.stage .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stage p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.stage ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.built-tools { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.bt { display: grid; grid-template-columns: 220px minmax(0, 1fr) 90px; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: baseline; }
.bt:first-child { border-top: 0; }
.bt code { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.bt span { font-size: 14px; color: var(--ink-2); }
.bt em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; font-size: 14.5px; color: var(--ink-2); align-items: baseline; }
.facts li b { font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 700; }
.interests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.interests span { font-size: 13.5px; padding: 4px 10px; border-radius: 999px; background: var(--accent-wash); color: var(--ink); }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.proj { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--bg); display: grid; gap: 6px; align-content: start; }
.proj .meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.proj p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

footer { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer p { margin: 0 0 6px; max-width: 80ch; }

@media (max-width: 820px) {
  .thesis, .built, .feature, .charts-2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .month { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .m-tag { grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .bt { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bt em { text-align: left; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat b { font-size: 30px; }
  .band { padding-block: 48px; }
  .feature { padding: 20px; }
  .facts li { grid-template-columns: 84px minmax(0, 1fr); }
  .nav ul { display: none; }
}

/* -- Color layer: three threads (platform = s1 blue, people = s2 orange, ai = s3 green) -- */
:root {
  --s1-ink: #1c5cab; --s2-ink: #b34515; --s3-ink: #0d7a52;
  --s1-wash: rgba(42,120,214,.09); --s2-wash: rgba(235,104,52,.10); --s3-wash: rgba(27,175,122,.11);
  --s1-band: #eef4fc; --s2-band: #fdf3ee; --s3-band: #edf8f3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s1-ink: #86b6ef; --s2-ink: #f0935f; --s3-ink: #4fd1a1;
    --s1-wash: rgba(57,135,229,.16); --s2-wash: rgba(217,89,38,.17); --s3-wash: rgba(25,158,112,.18);
    --s1-band: #141c27; --s2-band: #1f1813; --s3-band: #121f1a;
  }
}
:root[data-theme="dark"] {
  --s1-ink: #86b6ef; --s2-ink: #f0935f; --s3-ink: #4fd1a1;
  --s1-wash: rgba(57,135,229,.16); --s2-wash: rgba(217,89,38,.17); --s3-wash: rgba(25,158,112,.18);
  --s1-band: #141c27; --s2-band: #1f1813; --s3-band: #121f1a;
}
.t-platform { --t: var(--s1); --t-ink: var(--s1-ink); --t-wash: var(--s1-wash); --t-band: var(--s1-band); }
.t-people   { --t: var(--s2); --t-ink: var(--s2-ink); --t-wash: var(--s2-wash); --t-band: var(--s2-band); }
.t-ai       { --t: var(--s3); --t-ink: var(--s3-ink); --t-wash: var(--s3-wash); --t-band: var(--s3-band); }

/* hero */
.hero { background:
  radial-gradient(60% 80% at 100% 0%, var(--s1-wash), transparent 70%),
  radial-gradient(40% 60% at 0% 100%, var(--s2-wash), transparent 70%),
  radial-gradient(35% 55% at 55% 105%, var(--s3-wash), transparent 70%); }
.key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.key span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--t-wash); color: var(--t-ink); }
.key span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--t); }
.archetype span { color: var(--s1-ink); }

/* stat tiles */
.stat { position: relative; }
.stat[class*="t-"]::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--t); }
.stat[class*="t-"] b { color: var(--t-ink); }
.stat[class*="t-"] b small { color: var(--t-ink); opacity: .7; }

/* tinted bands */
.band[class*="t-"] { background: var(--t-band); }
.band[class*="t-"] .eyebrow { color: var(--t-ink); font-weight: 500; }
.band[class*="t-"] .chart-card, .band[class*="t-"] .tile, .band[class*="t-"] .feature, .band[class*="t-"] .stage, .band[class*="t-"] .built-tools { background: var(--surface); }
.band[class*="t-"] .tile b { color: var(--t-ink); }
.band[class*="t-"] .steps li code { color: var(--t-ink); }
.band[class*="t-"] .feature { border-color: color-mix(in srgb, var(--t) 30%, var(--line)); }

/* stages */
.stage { border-top: 3px solid var(--s3); }
.stage .when { color: var(--s3-ink); font-weight: 500; }
.bt em { color: var(--s3-ink); }

/* month timeline */
.month[class*="t-"] .m-tag code { background: var(--t-wash); color: var(--t-ink); }
.month[class*="t-"] .m-body.milestone { border-left-color: var(--t); }
.month[class*="t-"] .m-body h3 { color: var(--ink); }
.chip { border: 0; font-weight: 500; }
.chip.platform { background: var(--s1-wash); color: var(--s1-ink); }
.chip.people   { background: var(--s2-wash); color: var(--s2-ink); }
.chip.ai       { background: var(--s3-wash); color: var(--s3-ink); }

/* habits + outside */
.interests span { background: var(--s3-wash); color: var(--ink); }
.facts li b { color: var(--s2-ink); }
.proj { border-top: 3px solid var(--t, var(--line)); }
.proj[class*="t-"] .meta { color: var(--t-ink); }
.excluded { background: var(--s2-wash); }
.src { border-left: 3px solid var(--t, var(--line)); }

/* -- In my words / What's next / case study / footer links -- */
.context { margin: 6px 0 0; max-width: 62ch; font-size: 15px; color: var(--muted); }
.motto { font-family: var(--body); font-size: 15px; font-weight: 500; font-style: italic; color: var(--s2-ink); margin-top: 10px; letter-spacing: 0; }
.voice { background: var(--surface); }
.voice-body { margin-top: 14px; max-width: 70ch; border-left: 3px solid var(--s2); padding-left: 22px; display: grid; gap: 14px; }
.voice-body p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.voice .voice-body p:first-child { font-family: var(--display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; line-height: 1.4; }
.sig { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.next-body { margin-top: 0; }
.case blockquote { margin: 0 0 14px; padding: 14px 18px; border-radius: 8px; background: var(--s3-wash); font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.case p b, .feature p b { color: var(--ink); }
.case { border-color: color-mix(in srgb, var(--s3) 35%, var(--line)); margin-top: 24px; }
.learn p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.built h3 { font-size: 18px; }
.built ol b { color: var(--ink); font-weight: 600; }
footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-bottom: 14px; font-size: 15px; }
footer .links .sep { margin: 0 14px; color: var(--muted); }
footer .links a { font-weight: 500; overflow-wrap: anywhere; }
