/* Layout concept: an architect's system diagram. Colour-coded components and wired
   connectors on cool drafting paper; mono labels name the parts; one live diagram in the hero. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Colour: diagram component palette on cool paper */
  --paper: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #ebeef7;
  --ink: #101a2f;
  --muted: #4a5673;
  --line: #dbe0ec;
  --wire: #97a1ba;
  --cobalt: #2f54eb;
  --coral: #e5482a;
  --saffron: #c98a00;
  --teal: #00897f;
  --magenta: #c92a72;
  --on-accent: #ffffff;
  --band: #101a2f;
  --on-band: #eef2fb;

  /* Type: characterful display, humanist body, mono for component labels */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.6rem);

  /* Space and shape */
  --gutter: 20px;
  --max: 74rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(16 26 47 / .06), 0 8px 24px -12px rgb(16 26 47 / .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0f1e;
    --surface: #111a2d;
    --surface-2: #162038;
    --ink: #e8edf8;
    --muted: #a3aec7;
    --line: #243050;
    --wire: #56628a;
    --cobalt: #7d96ff;
    --coral: #ff7a5c;
    --saffron: #ffc23d;
    --teal: #2fd1bf;
    --magenta: #f06aa8;
    --on-accent: #0a0f1e;
    --band: #141f3a;
    --on-band: #eef2fb;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* Colour roles: any component can pick a hue with .c-<name> */
.c-cobalt { --c: var(--cobalt); }
.c-coral { --c: var(--coral); }
.c-saffron { --c: var(--saffron); }
.c-teal { --c: var(--teal); }
.c-magenta { --c: var(--magenta); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 16px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .75rem;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.2em; border-radius: 999px;
  background: var(--cobalt); color: var(--on-accent);
  font-weight: 600; text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--cobalt);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); }
.button.light { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .15s ease; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: conic-gradient(from 210deg, var(--cobalt), var(--magenta), var(--coral), var(--saffron), var(--teal), var(--cobalt));
  color: #fff; font-size: .85rem; letter-spacing: .02em;
}
.nav-desktop ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.nav-desktop a, .nav-mobile a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav-desktop a:hover, .nav-mobile a:hover { color: var(--ink); background: var(--surface-2); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-mobile { display: none; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after { top: 5px; }
.nav-mobile[open] .bars { background: transparent; }
.nav-mobile[open] .bars::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .bars::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px;
}
.nav-mobile ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.nav-mobile a { padding: 12px 14px; border-radius: var(--radius-sm); }
@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40rem 26rem at 88% 8%, color-mix(in srgb, var(--magenta) 16%, transparent), transparent 70%),
    radial-gradient(34rem 24rem at 64% 96%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 0% 0%, color-mix(in srgb, var(--saffron) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy .eyebrow { margin: 0; color: var(--magenta); }
.hero-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.portrait {
  flex: none; padding: 4px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--cobalt), var(--magenta), var(--coral), var(--saffron), var(--teal), var(--cobalt));
}
.portrait img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--paper); display: block; }
.glance-photo { width: 100%; aspect-ratio: 1; max-width: 100%; height: auto; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.hero-name { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero-tagline { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.25; color: var(--ink); max-width: 22ch; }
.hero-bio { color: var(--muted); max-width: 60ch; }
.hero-meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--step--1); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual { margin: 0; min-width: 0; display: grid; gap: 10px; }
.hero-visual figcaption { font-size: .78rem; color: var(--muted); text-align: right; }
.diagram { width: 100%; height: auto; display: block; }
.diagram .dot { fill: var(--wire); opacity: .45; }
.diagram .wire { stroke: var(--wire); stroke-width: 2.4; stroke-dasharray: 5 7; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.diagram .node rect { stroke-width: 1.5; }
.diagram .node-plain rect { fill: var(--surface); stroke: var(--line); }
.diagram .node-plain text { fill: var(--ink); }
.diagram .node-plain .n-sub { fill: var(--muted); }
.diagram .n-magenta rect { fill: #c92a72; stroke: #c92a72; }
.diagram .n-cobalt rect { fill: #2f54eb; stroke: #2f54eb; }
.diagram .n-coral rect { fill: #e5482a; stroke: #e5482a; }
.diagram .n-teal rect { fill: #13b5a4; stroke: #13b5a4; }
.diagram .n-saffron rect { fill: #ffb000; stroke: #ffb000; }
.diagram .n-magenta text, .diagram .n-cobalt text, .diagram .n-coral text { fill: #ffffff; }
.diagram .n-teal text, .diagram .n-saffron text { fill: #101a2f; }
.diagram text { text-anchor: middle; }
.diagram .n-label { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.diagram .n-big { font-size: 21px; }
.diagram .n-sub { font-family: var(--font-mono); font-size: 10px; opacity: .92; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* Stats band */
.stats-band { border-block: 1px solid var(--line); background: var(--surface); }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-block: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.stat dt { color: var(--muted); font-size: var(--step--1); max-width: 22ch; }
.stat-1 dd { color: var(--cobalt); }
.stat-2 dd { color: var(--magenta); }
.stat-3 dd { color: var(--teal); }
.stat-4 dd { color: var(--coral); }

/* Sections */
.section { padding-block: 80px; }
.section.first { padding-block: 48px 80px; }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 46rem; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; max-width: none; }

/* Services */
.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.service { display: grid; gap: 10px; align-content: start; min-width: 0; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.service-icon .icon { width: 26px; height: 26px; }
.service h3 { margin-top: 6px; }
.service p { color: var(--muted); }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.work-media { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--c); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-body { display: grid; gap: 10px; padding: 20px 22px 24px; align-content: start; }
.work-client { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.work-body p { color: var(--muted); font-size: .98rem; }
.work-body .work-client { color: var(--c); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips li {
  font-family: var(--font-mono); font-size: .74rem; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
}
.links { display: flex; gap: 16px; }

/* Project filters (CSS only: radios + :has) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { border: 0; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters input { position: absolute; opacity: 0; pointer-events: none; }
.filters label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.filters label:hover { color: var(--ink); border-color: var(--wire); }
.filters .count { font-family: var(--font-mono); font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.filters input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters input:checked + label .count { background: color-mix(in srgb, var(--paper) 20%, transparent); color: var(--paper); }
.filters input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.projects:has(#f-ai:checked) .work-card:not([data-cat~="ai"]),
.projects:has(#f-cloud:checked) .work-card:not([data-cat~="cloud"]),
.projects:has(#f-enterprise:checked) .work-card:not([data-cat~="enterprise"]),
.projects:has(#f-web3:checked) .work-card:not([data-cat~="web3"]),
.projects:has(#f-systems:checked) .work-card:not([data-cat~="systems"]) { display: none; }

/* Icon covers for projects without an illustration (fixed hues so white icons read in both themes) */
.work-cover { position: relative; display: grid; place-items: center; overflow: hidden; }
.work-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / .22) 1.3px, transparent 1.5px); background-size: 22px 22px;
}
.work-cover::after {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -30%; border-radius: 50%;
  background: rgb(255 255 255 / .12);
}
.cover-cobalt { background: linear-gradient(135deg, #1f3fd1, #5b7bff); }
.cover-magenta { background: linear-gradient(135deg, #7a2cbf, #d63384); }
.cover-coral { background: linear-gradient(135deg, #e5482a, #ff8a5c); }
.cover-teal { background: linear-gradient(135deg, #008f87, #18c2a8); }
.cover-saffron { background: linear-gradient(135deg, #f29100, #ffc23d); }
.cover-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 26px;
  background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .35); color: #ffffff;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .35);
}
.cover-icon .icon { width: 48px; height: 48px; }
.cover-saffron .cover-icon { color: #3a2400; }
.cover-tech { position: absolute; z-index: 1; left: 16px; bottom: 12px; font-size: .75rem; color: rgb(255 255 255 / .92); }
.cover-saffron .cover-tech { color: #3a2400; }

/* Project role line and the compact Earlier work list */
.work-role { display: flex; gap: 8px; align-items: baseline; font-size: .92rem; font-weight: 600; color: var(--ink); }
.work-body .work-role { color: var(--ink); }
.work-role .mono { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.earlier { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.earlier-item {
  display: flex; gap: 14px; align-items: flex-start; min-width: 0;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.earlier-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.earlier-icon .icon { width: 22px; height: 22px; }
.earlier-body { display: grid; gap: 2px; min-width: 0; }
.earlier-body h3 { font-size: 1.02rem; }
.earlier-client { color: var(--muted); font-size: .92rem; }
.earlier-tech { color: var(--muted); font-size: .76rem; margin-top: 4px; }

.subhead { font-size: var(--step-1); margin: 48px 0 16px; }
.earlier-date { font-size: .78rem; font-weight: 700; }
details.more { margin-top: 16px; }
details.more > summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-family: var(--font-mono); color: var(--cobalt); }
details.more[open] > summary::after { content: "−"; }
details.more[open] > summary { margin-bottom: 16px; }

/* About: journey, principles, industries */
.journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.journey-step {
  position: relative; display: grid; gap: 10px; align-content: start; min-width: 0;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 16px; height: 3px; background: var(--c); z-index: 1;
}
.journey-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--c);
}
.journey-icon .icon { width: 24px; height: 24px; }
.journey-num { position: absolute; top: 20px; right: 20px; font-size: .8rem; font-weight: 700; color: var(--c); }
.journey-step p { color: var(--muted); font-size: .97rem; }
.journey-step:last-child { background: color-mix(in srgb, var(--c) 9%, var(--surface)); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }

.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.principle { display: flex; gap: 18px; align-items: flex-start; }
.principle .service-icon { flex: none; }
.principle p { color: var(--muted); margin-top: 6px; }

.industries { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li {
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  color: var(--ink); background: color-mix(in srgb, var(--c) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
}
.industries li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: middle; }
.section-tint .timeline > li::before { box-shadow: 0 0 0 5px var(--surface-2); }

/* Career timeline: vertical spine, cards alternate sides */
.vt-wrap { display: grid; justify-items: center; gap: 0; }
.vt-cap {
  display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.vt-cap-now { color: var(--ink); }
.vt-earlier { gap: 12px; padding: 10px 18px; font-family: var(--font-body); font-size: .92rem; text-decoration: none; color: var(--ink); max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; }
.vt-earlier:hover { border-color: var(--cobalt); color: var(--cobalt); }
.vt-earlier .mono { color: var(--muted); font-size: .8rem; }
.now-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); }
.now-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--magenta); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(3); opacity: 0; } }

.vt { list-style: none; padding: 28px 0; margin: 0; width: 100%; display: grid; gap: 28px; position: relative; }
.vt::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; translate: -50% 0; border-radius: 4px;
  background: linear-gradient(to bottom, var(--magenta), var(--teal), var(--cobalt), var(--coral), var(--saffron), var(--magenta), var(--teal), var(--cobalt), var(--coral), var(--saffron));
}
.vt-item { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.vt-meta { grid-column: 1; grid-row: 1; text-align: right; padding-inline: 8px; }
.vt-node {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 6px solid var(--c); box-shadow: 0 0 0 6px var(--paper);
}
.vt-card {
  grid-column: 3; grid-row: 1; position: relative; display: grid; gap: 6px; min-width: 0; width: 100%; max-width: 30rem;
  padding: 20px 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--c) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.vt-card:hover { transform: translateY(-3px); }
.vt-card::before {
  content: ""; position: absolute; top: 50%; left: -8px; width: 14px; height: 14px; translate: 0 -50%; rotate: 45deg;
  background: inherit; border-left: inherit; border-bottom: inherit;
}
.vt-item:nth-child(even) .vt-card { grid-column: 1; justify-self: end; }
.vt-item:nth-child(even) .vt-card::before { left: auto; right: -8px; border-left: 0; border-bottom: 0; border-top: inherit; border-right: inherit; }
.vt-item:nth-child(even) .vt-meta { grid-column: 3; text-align: left; }
.vt-date { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.vt-duration { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; color: var(--c); }
.vt-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.vt-tag { font-size: .7rem; letter-spacing: .02em; text-transform: none; font-weight: 500; padding: 2px 8px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.vt-card h3 { font-size: 1.15rem; }
.vt-org { color: var(--muted); font-size: .95rem; }
.vt-stack { margin-top: 6px; }
.vt-stack .more { background: transparent; color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(30rem 16rem at 100% 0%, color-mix(in srgb, var(--magenta) 45%, transparent), transparent 70%),
    radial-gradient(26rem 16rem at 0% 100%, color-mix(in srgb, var(--cobalt) 55%, transparent), transparent 70%),
    var(--band);
  color: var(--on-band);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: 64px; }
.cta-inner h2 { color: var(--on-band); }
.cta-inner p { color: color-mix(in srgb, var(--on-band) 80%, transparent); max-width: 52ch; margin-top: 10px; }

/* Inner pages */
.page-hero {
  background:
    radial-gradient(36rem 20rem at 92% 0%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%),
    radial-gradient(30rem 18rem at 0% 0%, color-mix(in srgb, var(--magenta) 12%, transparent), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { padding-block: 64px 48px; display: grid; gap: 14px; }
.page-hero .eyebrow { margin: 0; color: var(--magenta); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; background: var(--surface-2); padding: 16px; border-radius: var(--radius-sm); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 56px; align-items: start; }
.glance { position: sticky; top: 6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; }
.glance-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance-row { display: grid; gap: 2px; }
.glance-row dd { margin: 0; order: -1; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.glance-row dt { color: var(--muted); font-size: var(--step--1); }
.glance-row.stat-1 dd { color: var(--cobalt); }
.glance-row.stat-2 dd { color: var(--magenta); }
.glance-row.stat-3 dd { color: var(--teal); }
.glance-row.stat-4 dd { color: var(--coral); }
.glance .button { justify-content: center; }

.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px;
  background: var(--cobalt);
}
.checklist li:nth-child(5n+2)::before { background: var(--magenta); }
.checklist li:nth-child(5n+3)::before { background: var(--teal); }
.checklist li:nth-child(5n+4)::before { background: var(--coral); }
.checklist li:nth-child(5n+5)::before { background: var(--saffron); }

.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline > li { position: relative; padding: 0 0 40px 36px; border-left: 2px solid var(--line); margin-left: 8px; display: grid; gap: 6px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -10px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 5px var(--paper);
}
.timeline-dates { font-size: .82rem; color: var(--c); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline-org { color: var(--muted); font-weight: 500; }
.timeline ul:not(.chips) { padding-left: 1.2rem; display: grid; gap: 4px; color: var(--muted); }
.timeline .chips { margin-top: 6px; }
.timeline p:not(.timeline-dates):not(.timeline-org) { max-width: 70ch; }

.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.stack-group h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.stack-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }

.edu { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edu li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.edu .icon { color: var(--teal); width: 26px; height: 26px; margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; }
.contact-card .eyebrow { margin: 8px 0 0; }
.contact-card .eyebrow:first-child { margin-top: 0; }
.contact-email { font-size: clamp(1.1rem, 3.4vw, 1.6rem); font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.contact-tips { display: grid; gap: 20px; padding-top: 8px; }
.contact-tips h2 { font-size: var(--step-2); }
.steps { list-style: none; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; }
.steps span { font-weight: 700; color: var(--magenta); }
.steps p { color: var(--muted); }

/* Blog */
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.post-list a { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.post-list time { color: var(--muted); font-size: var(--step--1); }
.breadcrumb { font-size: .82rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); }
.spectrum { display: grid; grid-template-columns: repeat(5, 1fr); height: 6px; }
.spectrum span:nth-child(1) { background: var(--cobalt); }
.spectrum span:nth-child(2) { background: var(--magenta); }
.spectrum span:nth-child(3) { background: var(--coral); }
.spectrum span:nth-child(4) { background: var(--saffron); }
.spectrum span:nth-child(5) { background: var(--teal); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px 24px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--ink); }
.footer-base { padding-block: 0 32px; font-size: .8rem; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 36px; }
  .hero-visual { max-width: 560px; }
  .hero-visual figcaption { text-align: left; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .glance { position: static; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-step::after { display: none; }
  .glance-photo { max-width: 16rem; }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid.featured { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 22px 14px; }
  .stat dd { font-size: 2rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .section { padding-block: 56px; }
  .services, .work-grid, .stack, .checklist, .edu, .journey, .principles, .earlier { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 1rem; }
  .portrait img { width: 80px; height: 80px; border-width: 3px; }
  .contact-card { padding: 22px; }
}
@media (max-width: 760px) {
  .vt-wrap { justify-items: start; }
  .vt::before { left: 12px; }
  .vt-item, .vt-item:nth-child(even) { grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; }
  .vt-node { grid-column: 1; grid-row: 1; width: 22px; height: 22px; border-width: 5px; }
  .vt-meta, .vt-item:nth-child(even) .vt-meta { grid-column: 2; grid-row: 1; text-align: left; display: flex; align-items: baseline; gap: 10px; padding: 0; }
  .vt-card, .vt-item:nth-child(even) .vt-card { grid-column: 2; grid-row: 2; justify-self: stretch; max-width: none; }
  .vt-card::before, .vt-item:nth-child(even) .vt-card::before { display: none; }
  .vt-duration { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
