:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FAFBFC;
  --card: #FFFFFF;
  --raised: #FFFFFF;
  --ink: #15171C;
  --body: #4A505C;
  --prose: #22252B;
  --muted: #5B616E;
  --line: #E4E6EB;
  --line-soft: #EEF0F3;
  --paper: #F6F7F9;
  --chip: #F1F3F6;
  --field: #CDD2DA;
  --avatar: #DDE2EA;
  --accent: #2F4BE0;
  --accent-hover: #1F33A8;
  --accent-soft: #E3E8FC;
  --accent-text: #1C2B8F;
  --cta: #2338B5;
  --role2: #CCD5FA;
  --role3: #B3C1F6;
  --role3-text: #16236F;
  --product: #C2560E;
  --product-soft: #FBE9DA;
  --product-text: #7A3306;
  --product-key: #F6CBA6;
  --edu-key: #DDE1E7;
  --edu-dot: #7A808C;
  --lead-soft: #E6F3EC;
  --lead-text: #14593A;
  --hatch-a: #F1F3F6;
  --hatch-b: #FFFFFF;
  --hatch-line: #9AA0AB;
  --tip-bg: #15171C;
  --tip-text: #FFFFFF;
  --focus-bg: #F1F4FE;
  --switch-on: #FFFFFF;
  --hover-ring: rgba(21, 23, 28, 0.18);
  --shadow-pop: 0 12px 32px rgba(21, 23, 28, 0.14), 0 2px 6px rgba(21, 23, 28, 0.06);
  --dark: #15171C;
  --dark-text: #FFFFFF;
  --dark-body: #E8EAF0;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark theme: follows the system unless the reader picked one (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1115;
    --surface: #151820;
    --card: #151820;
    --raised: #181B22;
    --ink: #ECEEF2;
    --body: #BAC0CC;
    --prose: #D3D7DF;
    --muted: #8F96A3;
    --line: #272B34;
    --line-soft: #1D2028;
    --paper: #1F232B;
    --chip: #1D2028;
    --field: #3A3F4A;
    --avatar: #272B34;
    --accent: #8EA2FF;
    --accent-hover: #B4C1FF;
    --accent-soft: #1C2552;
    --accent-text: #C9D2FF;
    --cta: #A9B7FF;
    --role2: #26336F;
    --role3: #3346A0;
    --role3-text: #E3E8FF;
    --product: #F08A3E;
    --product-soft: #3A2312;
    --product-text: #F7C9A3;
    --product-key: #B8622A;
    --edu-key: #3A3F4A;
    --edu-dot: #8F96A3;
    --lead-soft: #12301F;
    --lead-text: #8EDDB2;
    --hatch-a: #171A21;
    --hatch-b: #0F1115;
    --hatch-line: #4A505C;
    --tip-bg: #ECEEF2;
    --tip-text: #15171C;
    --focus-bg: #1C2552;
    --switch-on: #2A2F3A;
    --hover-ring: rgba(255, 255, 255, 0.22);
    --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.55);
    --dark: #0A0C10;
    --dark-text: #ECEEF2;
    --dark-body: #D3D7DF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1115;
  --surface: #151820;
  --card: #151820;
  --raised: #181B22;
  --ink: #ECEEF2;
  --body: #BAC0CC;
  --prose: #D3D7DF;
  --muted: #8F96A3;
  --line: #272B34;
  --line-soft: #1D2028;
  --paper: #1F232B;
  --chip: #1D2028;
  --field: #3A3F4A;
  --avatar: #272B34;
  --accent: #8EA2FF;
  --accent-hover: #B4C1FF;
  --accent-soft: #1C2552;
  --accent-text: #C9D2FF;
  --cta: #A9B7FF;
  --role2: #26336F;
  --role3: #3346A0;
  --role3-text: #E3E8FF;
  --product: #F08A3E;
  --product-soft: #3A2312;
  --product-text: #F7C9A3;
  --product-key: #B8622A;
  --edu-key: #3A3F4A;
  --edu-dot: #8F96A3;
  --lead-soft: #12301F;
  --lead-text: #8EDDB2;
  --hatch-a: #171A21;
  --hatch-b: #0F1115;
  --hatch-line: #4A505C;
  --tip-bg: #ECEEF2;
  --tip-text: #15171C;
  --focus-bg: #1C2552;
  --switch-on: #2A2F3A;
  --hover-ring: rgba(255, 255, 255, 0.22);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.55);
  --dark: #0A0C10;
  --dark-text: #ECEEF2;
  --dark-body: #D3D7DF;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; }
.section-head .note { font-size: 14px; color: var(--muted); }
.section-head .note a { color: var(--accent-text); }
section.llms { display: flex; flex-direction: column; gap: 16px; }
.llm-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.llm-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.llm-goal { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.llm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.llm-chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.llm-chip:hover, .llm-chip.on { background: var(--chip); border-color: var(--field); }
.llm-pop blockquote { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--paper); font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--prose); overflow-wrap: anywhere; }
@media (max-width: 640px) { .llm-row { grid-template-columns: 1fr; } }
.gap { margin: 0; font-size: 15px; color: var(--body); }
.gap b { color: var(--ink); font-weight: 600; }
.chip { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--chip); color: var(--body); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); border-color: var(--muted); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.sign::before { content: '+'; }
details[open] > summary .sign::before { content: '−'; }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--muted); }
.topbar .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.theme { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--chip); }
.theme button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--switch-on); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 28, 0.12); }

/* Header */
main.profile { display: flex; flex-direction: column; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
.who { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.who .id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--avatar); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: var(--body); object-fit: cover; box-shadow: 0 0 0 1px var(--hover-ring); }
.who .name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.who .meta { margin-top: 2px; font-size: 15px; color: var(--muted); }
.who .meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: 3px; }
.who .meta a:hover { text-decoration-color: currentColor; }
.who .contact { display: flex; flex-wrap: wrap; gap: 8px; }
.who .contact a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--line); border-radius: 999px; color: var(--body); text-decoration: none; transition: color 0.12s, background 0.12s, border-color 0.12s; }
.who .contact a:hover { color: var(--ink); background: var(--chip); border-color: var(--field); }
.who .contact .mail { padding: 0 16px; color: var(--ink); font-size: 14px; font-weight: 500; }
.who .contact .mail svg { width: 16px; height: 16px; }
.who .contact .icon { width: 44px; }
.who .contact .print { display: none; }
.who .contact a:last-child::after { left: auto; right: 0; transform: none; }
.intro { display: flex; flex-direction: column; gap: 28px; }
.headline { margin: 0; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 900px; text-wrap: balance; }
.summary { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 760px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact .value { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.fact .value.long { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.fact .label { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Expertise */
section { display: flex; flex-direction: column; gap: 20px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.col { display: flex; flex-direction: column; padding: 24px 24px 12px; border-radius: 14px; border: 1px solid var(--line); }
.col-head { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 14px; }
.col-head .title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.col-head .sub { font-size: 14px; color: var(--muted); }
.skill { border-top: 1px solid var(--line-soft); }
.skill summary { min-height: 60px; padding: 12px 4px; display: flex; gap: 12px; align-items: center; }
.skill .static { min-height: 60px; padding: 12px 4px; display: flex; }
.skill .text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.skill .name { font-size: 16px; font-weight: 600; }
.skill .proof { font-size: 14px; line-height: 1.45; color: var(--muted); }
.skill .sign { font-size: 18px; opacity: 0.7; }
.skill .detail { margin: 0; padding: 0 4px 16px; font-size: 15px; line-height: 1.6; color: var(--body); display: flex; flex-direction: column; gap: 8px; }
.skill .detail p { margin: 0; }
.practice { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; }
.practice dt { font-weight: 600; }
.practice dd { margin: 0; }

/* Signature work */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--card); }
.card:hover { color: var(--ink); border-color: var(--field); }
.card .title { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.card .hook { font-size: 15px; line-height: 1.5; color: var(--body); }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.card .foot .cta { color: var(--cta); font-weight: 500; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.tag.leadership { background: var(--lead-soft); color: var(--lead-text); }
.tag.product { background: var(--product-soft); color: var(--product-text); }
.tag.ai { background: var(--dark); color: var(--dark-text); }
.story { display: none; scroll-margin-top: 24px; }
.story:target { display: flex; }
.story { flex-direction: column; gap: 28px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.story .top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.story h3 { margin: 6px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.close { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--body); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.parts h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.parts p { margin: 0; font-size: 16px; line-height: 1.6; }
.story .bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.story .bottom .chip { background: var(--bg); border: 1px solid var(--line); }
.evidence { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.cards:has(+ .panels #s1:target) .card:nth-child(1),
.cards:has(+ .panels #s2:target) .card:nth-child(2),
.cards:has(+ .panels #s3:target) .card:nth-child(3) { border: 2px solid var(--ink); padding: 23px; }

/* Career: one row per employer, product and school. Tooltips are CSS; details open in popovers. */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--role3); }
.legend i.product { background: var(--product-key); }
.legend i.edu { background: var(--edu-key); }
.legend i.era-key { border: 1px dashed var(--hatch-line); background: repeating-linear-gradient(135deg, var(--hatch-a) 0 3px, var(--hatch-b) 3px 6px); }
.tl-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tl-summary { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tl-jump { display: inline-flex; gap: 8px; }
.tl-jump[hidden] { display: none; }
.tl-jump button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tl-jump button:hover { border-color: var(--field); }
.tl-jump button:disabled { color: var(--muted); cursor: default; border-color: var(--line-soft); }
.tl-hint { margin: -12px 0 0; font-size: 13px; color: var(--muted); }
/* The track is a fixed width per year and scrolls sideways; names stay put. me.js opens it at the present. */
.tl-frame { position: relative; --who: 200px; --gap: 16px; --yr: 150px; }
.timeline-scroll { overflow-x: auto; margin: -36px 0 0; padding: 36px 0 6px; scrollbar-width: thin; scrollbar-color: var(--hatch-line) var(--chip); }
.timeline-scroll::-webkit-scrollbar { height: 10px; }
.timeline-scroll::-webkit-scrollbar-track { background: var(--chip); border-radius: 5px; }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--hatch-line); border-radius: 5px; }
.timeline { width: calc(var(--who) + var(--gap) + var(--years) * var(--yr)); }
.tl-frame::before, .tl-frame::after { content: ''; position: absolute; top: 0; bottom: 16px; width: 72px; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 3; }
.tl-frame::before { left: calc(var(--who) + var(--gap)); background: linear-gradient(90deg, var(--bg) 15%, transparent); }
.tl-frame::after { right: 0; background: linear-gradient(270deg, var(--bg) 15%, transparent); }
.tl-frame.can-prev::before, .tl-frame.can-next::after { opacity: 1; }
.tl-edge { position: absolute; top: 50%; z-index: 6; width: 36px; height: 36px; margin-top: -24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--raised); color: var(--ink); box-shadow: 0 2px 8px rgba(21, 23, 28, 0.12); cursor: pointer; }
.tl-edge.prev { left: calc(var(--who) + var(--gap) + 4px); }
.tl-edge.next { right: 4px; }
.tl-edge[hidden] { display: none; }
.tl-group { position: sticky; left: 0; width: max-content; margin: 14px 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* More than three products: the latest three show, the rest fold under "and N more". */
.tl-fold > summary { position: sticky; left: 0; width: max-content; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--accent); }
.tl-fold > summary:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.tl-fold > summary .sign { width: 14px; text-align: center; }
.tl-fold:not([open]) > summary .opened, .tl-fold[open] > summary .closed { display: none; }
.tl-row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); gap: var(--gap); align-items: center; border-top: 1px solid var(--line-soft); }
.tl-axis { border-top: 1px solid var(--line); }
.tl-axis > span:first-child { position: sticky; left: 0; z-index: 5; align-self: stretch; background: var(--bg); box-shadow: var(--gap) 0 0 var(--bg); }
/* Names stay above everything in the track, including a hovered bar and its tooltip. */
.tl-who { position: sticky; left: 0; z-index: 5; align-self: stretch; box-shadow: var(--gap) 0 0 var(--bg); background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; min-height: 44px; padding: 4px 0; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tl-who .n { font-size: 14px; font-weight: 600; }
.tl-who .s { max-width: 100%; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-who:hover .n, .tl-who.on .n { text-decoration: underline; text-underline-offset: 3px; }
.track { position: relative; height: 44px; }
.era { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--hatch-a) 0 6px, var(--hatch-b) 6px 12px); border-left: 1px dashed var(--hatch-line); }
.seg { position: absolute; top: 8px; height: 28px; padding: 0; border: 0; border-radius: 6px; font: inherit; cursor: pointer; background: var(--accent-soft); color: var(--accent-text); }
/* The label sticks to the left edge of the visible track, so a bar that starts off-screen still shows its period. */
.seg-text { position: sticky; left: calc(var(--who) + var(--gap)); z-index: 4; display: block; width: fit-content; max-width: 100%; padding: 0 8px; font-size: 12px; font-weight: 600; line-height: 28px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.mono .seg-text { font-family: var(--mono); font-weight: 500; }
.seg.r2 { background: var(--role2); }
.seg.r3 { background: var(--role3); color: var(--role3-text); }
.seg.product { background: var(--product-soft); color: var(--product-text); }
.seg.edu { background: var(--line-soft); color: var(--body); }
.seg:hover { box-shadow: inset 0 0 0 2px var(--hover-ring); }
.seg.on { box-shadow: inset 0 0 0 2px var(--accent); }
/* me.js: a hovered bar cut off by the scroll is outlined over its visible part, dotted on the cut side. */
.seg.cut-l, .seg.cut-r { box-shadow: none; }
.seg.cut-l::before, .seg.cut-r::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--cut-l, 0); right: var(--cut-r, 0); border: 2px solid var(--hover-ring); border-radius: 6px; pointer-events: none; }
.seg.on.cut-l::before, .seg.on.cut-r::before { border-color: var(--accent); }
.seg.cut-l::before { border-left-style: dotted; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.seg.cut-r::before { border-right-style: dotted; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dot { position: absolute; top: 8px; width: 28px; height: 28px; margin-left: -14px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ''; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); transition: transform 0.12s; }
.dot.product::before { background: var(--product); }
.dot.edu::before { background: var(--edu-dot); }
.dot:hover::before { transform: scale(1.25); }
.dot.on::before { box-shadow: 0 0 0 3px var(--accent); }
.seg.ai { background: repeating-linear-gradient(135deg, var(--product-key) 0 3px, var(--product-soft) 3px 6px); }
/* The star sits on the start of an AI bar; keep the label clear of it. */
.seg.ai .seg-text { padding-left: 16px; }
.paused { position: absolute; top: 21px; border-top: 2px dashed var(--product-key); }
.revival { position: absolute; z-index: 4; top: 10px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: -12px; padding: 0; border: 0; background: none; color: var(--product); cursor: pointer; }
.revival svg { width: 20px; height: 20px; fill: currentColor; stroke: var(--bg); stroke-width: 2; paint-order: stroke; transition: transform 0.12s; }
.revival:hover svg { transform: scale(1.2); }
.revival.on svg { stroke: var(--accent); }
.legend .star svg, .pop .star svg { width: 12px; height: 12px; fill: var(--product); }
.legend i.paused-key { width: 16px; height: 0; border-radius: 0; background: none; border-top: 2px dashed var(--product-key); }
.dot-label { position: absolute; top: 14px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
[data-tip]:hover, [data-tip]:focus-visible { z-index: 4; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--tip-bg); color: var(--tip-text); font: 500 12px/1.4 'Geist', system-ui, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.12s; box-shadow: 0 4px 12px rgba(21, 23, 28, 0.18); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
.tip-start::after { left: 0; transform: none; }
.tip-end::after { left: auto; right: 0; transform: none; }
/* me.js places the tooltip over the visible part of a bar, at the pointer. */
.tip-at::after { left: var(--tip-left); right: auto; transform: none; }
.axis { position: relative; height: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.axis span { position: absolute; top: 5px; white-space: nowrap; }
.axis .era-label { color: var(--ink); font-weight: 500; }
.pop { width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); }
.pop:popover-open { display: flex; flex-direction: column; gap: 12px; }
.pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pop h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pop h3 a { color: inherit; text-decoration: none; }
.pop .period { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pop-close { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.pop-close:hover { background: var(--chip); color: var(--ink); }
.pop-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 8px; background: var(--paper); }
.pop-item.focus { background: var(--focus-bg); box-shadow: inset 0 0 0 1px var(--role2); }
.pop-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.pop-item .t { font-size: 14px; font-weight: 600; }
.pop-item p, .pop-item ul { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.pop-item ul { padding-left: 18px; }
.pop-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.pop-item.ai { background: var(--product-soft); box-shadow: inset 0 0 0 1px var(--product-key); }
.pop-item.ai .t { display: inline-flex; align-items: center; gap: 6px; color: var(--product-text); }
.growth { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; padding: 0 0 14px 28px; }
.step::before { content: ''; position: absolute; left: 3px; top: 5px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.step::after { content: ''; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step.now::before { background: var(--accent); }
.step > * { position: relative; }
.step.now, .step.focus { margin-left: -8px; padding: 8px 10px 10px 36px; border-radius: 8px; }
.step.now::before, .step.focus::before { left: 11px; top: 13px; }
.step.now { background: var(--focus-bg); }
.step.focus { box-shadow: inset 0 0 0 1px var(--role2); }
.step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.step .t { font-size: 14px; font-weight: 600; }
.step.now .t { color: var(--accent-text); }
.step .was { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.step p, .step ul { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--body); }
.step ul { padding-left: 16px; color: var(--ink); }
.step a { font-weight: 500; text-decoration: none; }
.pop .story-link { font-size: 14px; font-weight: 500; text-decoration: none; }
.pop .site { font-size: 13px; color: var(--muted); }

/* Rows used by the "more" sections */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.row .a { flex: 0 0 200px; font-size: 15px; font-weight: 600; }
.row .b { flex: 1 1 320px; font-size: 15px; line-height: 1.55; color: var(--body); }
.row .b ul { margin: 6px 0 0; padding-left: 18px; }

/* More */
.more { gap: 0; }
.more .eyebrow { margin-bottom: 8px; }
.more details { border-top: 1px solid var(--line); }
.more details:last-of-type { border-bottom: 1px solid var(--line); }
.more summary { min-height: 64px; display: flex; gap: 16px; align-items: center; }
.more summary .label { flex: 0 0 200px; font-size: 18px; font-weight: 600; }
.more summary .meta { flex: 1 1 auto; font-size: 15px; color: var(--body); }
.more summary .sign { font-size: 18px; color: var(--muted); }
.more .rows { padding: 0 0 24px; }
.row .a.light { font-weight: 500; }

footer.site { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
footer.site a { color: var(--body); }
footer.site .files { display: flex; gap: 12px; font-family: var(--mono); }

/* Post */
.post-nav { max-width: 720px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.post-nav .home { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.post-nav .avatar { width: 36px; height: 36px; font-size: 13px; }
.post-nav .links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 15px; }
.post-nav .links a { color: var(--body); text-decoration: none; }
article.post { max-width: 720px; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.post .date { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.post h1 { margin: 14px 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.prose { font-size: 19px; line-height: 1.7; color: var(--prose); overflow-wrap: break-word; }
.prose > * { margin: 0 0 20px; }
.prose h2, .prose h3, .prose h4 { margin: 36px 0 12px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li > pre { margin: 12px 0; }
.prose code { font-size: 0.84em; background: var(--chip); padding: 2px 6px; border-radius: 4px; }
.prose pre { font-size: 15px; line-height: 1.65; background: var(--dark); color: var(--dark-body); border-radius: 10px; padding: 20px 22px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--line); color: var(--body); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-foot { max-width: 720px; padding-bottom: 96px; }
.post-foot > div { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.post-foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.post-foot .back { color: var(--ink); text-decoration: none; font-weight: 500; }
.post-foot .edit { font-size: 15px; color: var(--body); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main.profile { gap: 48px; padding-top: 16px; }
  .fact { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .story { padding: 20px; }
  .tl-frame { --who: 120px; --gap: 12px; --yr: 96px; }
  .row .a, .more summary .label { flex-basis: 100%; }
  .more summary { flex-wrap: wrap; gap: 2px 16px; padding: 12px 0; }
  .more summary .meta { flex: 1 1 0; }
}

@media print {
  .tl-fold > summary { display: none; }
  :root, :root[data-theme] {
    color-scheme: light;
    --bg: #FFFFFF;
    --surface: #FAFBFC;
    --card: #FFFFFF;
    --raised: #FFFFFF;
    --ink: #15171C;
    --body: #4A505C;
    --prose: #22252B;
    --muted: #5B616E;
    --line: #E4E6EB;
    --line-soft: #EEF0F3;
    --paper: #F6F7F9;
    --chip: #F1F3F6;
    --field: #CDD2DA;
    --avatar: #DDE2EA;
    --accent: #2F4BE0;
    --accent-hover: #1F33A8;
    --accent-soft: #E3E8FC;
    --accent-text: #1C2B8F;
    --cta: #2338B5;
    --role2: #CCD5FA;
    --role3: #B3C1F6;
    --role3-text: #16236F;
    --product: #C2560E;
    --product-soft: #FBE9DA;
    --product-text: #7A3306;
    --product-key: #F6CBA6;
    --edu-key: #DDE1E7;
    --edu-dot: #7A808C;
    --lead-soft: #E6F3EC;
    --lead-text: #14593A;
    --hatch-a: #F1F3F6;
    --hatch-b: #FFFFFF;
    --hatch-line: #9AA0AB;
    --tip-bg: #15171C;
    --tip-text: #FFFFFF;
    --focus-bg: #F1F4FE;
    --switch-on: #FFFFFF;
    --hover-ring: rgba(21, 23, 28, 0.18);
    --shadow-pop: 0 12px 32px rgba(21, 23, 28, 0.14), 0 2px 6px rgba(21, 23, 28, 0.06);
    --dark: #15171C;
    --dark-text: #FFFFFF;
    --dark-body: #E8EAF0;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .theme { display: none !important; }
  .topbar, .close, footer.site .files, .card .cta, .post-nav .links { display: none !important; }
  main.profile { gap: 28px; padding: 0; }
  .story { display: flex !important; break-inside: avoid; }
  .tl-hint, .pop-close, [data-tip]::after { display: none !important; }
  .who .contact { gap: 2px 14px; }
  .who .contact a, .who .contact .icon, .who .contact .mail { height: auto; width: auto; padding: 0; border: 0; font-size: 13px; font-weight: 400; color: var(--accent-text); }
  .who .contact svg, .who .contact .screen { display: none; }
  .who .contact .print { display: inline; }
  .pops { display: flex; flex-direction: column; gap: 12px; }
  .pop.job-pop { display: flex !important; flex-direction: column; gap: 10px; position: static; inset: auto; margin: 0; width: auto; max-height: none; overflow: visible; box-shadow: none; break-inside: avoid; }
  .timeline-scroll { overflow: visible; margin-top: 0; padding-top: 0; }
  .timeline { width: 100%; }
  .tl-jump, .tl-edge, .tl-frame::before, .tl-frame::after { display: none !important; }
  .cards { display: none; }
  details > :not(summary) { display: block !important; }
  .sign { display: none; }
  a { color: inherit; }
}
