:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* Layout: one long story told down a dated rail; each chapter is problem -> what I built -> what it showed, with its screenshot. */
:root {
  --bg: #f7f8fa; --paper: #ffffff; --ink: #14181f; --muted: #535c69; --line: #dde2e8;
  --accent: #0c6b78; --accent-soft: #e1f0f2; --warm: #b5541c; --warm-soft: #fbeee4;
  --ok: #1d6b35; --miss: #8a5300; --miss-soft: #fdf0d9;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1318; --paper: #161b22; --ink: #e8ecf1; --muted: #a3adba; --line: #2a323c;
  --accent: #5cc6d3; --accent-soft: #12303a; --warm: #f0935a; --warm-soft: #3a2316;
  --ok: #7fd99b; --miss: #f3c46b; --miss-soft: #3a2a0c; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1318; --paper: #161b22; --ink: #e8ecf1; --muted: #a3adba; --line: #2a323c;
  --accent: #5cc6d3; --accent-soft: #12303a; --warm: #f0935a; --warm-soft: #3a2316;
  --ok: #7fd99b; --miss: #f3c46b; --miss-soft: #3a2a0c; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.notice { background: var(--miss-soft); color: var(--miss); font: 600 .78rem/1 var(--mono); text-align: center; padding: 8px 16px; letter-spacing: .03em; }
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-block: 14px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; }
.brand b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--paper); font-size: .78rem; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
nav a { color: var(--muted); text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kicker { font: 600 .75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* hero */
.hero { padding-block: 64px 40px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 18ch; margin: 10px 0 16px; letter-spacing: -.01em; }
.hero .by { color: var(--muted); margin-bottom: 16px; }
.hero .lead { font-size: 1.15rem; max-width: 62ch; }
.stats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stats li { padding: 18px 20px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 700 clamp(2rem, 3.6vw, 3rem)/1 var(--display); color: var(--ink); letter-spacing: -.01em; margin-bottom: 8px; white-space: nowrap; }
.stats span { font-size: .9rem; color: var(--muted); display: block; max-width: 30ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats li:nth-child(3) { border-left: 0; padding-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } .stats li { border-left: 0; padding-left: 0; } .stats li + li { border-top: 1px solid var(--line); } .stats b { white-space: normal; } }
.thread { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: .85rem/1.4 var(--mono); color: var(--muted); }
.thread a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--paper); color: var(--ink); }
.thread i { font-style: normal; color: var(--accent); }

/* story rail */
.story { position: relative; padding-block: 20px 40px; }
.chapter { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; position: relative; padding-bottom: 56px; }
.chapter::before { content: ""; position: absolute; left: 64px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.chapter:last-child::before { display: none; }
.when { text-align: center; }
.when .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); margin: 6px auto 8px; position: relative; z-index: 1; }
.when span { font: 600 .82rem/1.2 var(--mono); color: var(--muted); display: inline-block; background: var(--bg); position: relative; z-index: 1; padding: 2px 4px; }
.body { min-width: 0; }
.body h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 6px 0 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.cols.flip > :first-child { order: 2; }
@media (max-width: 820px) { .cols, .cols.flip { grid-template-columns: minmax(0, 1fr); } .cols.flip > :first-child { order: 0; } }
@media (max-width: 560px) { .chapter { grid-template-columns: minmax(0, 1fr); gap: 4px; } .chapter::before { display: none; } .when { text-align: left; display: flex; align-items: center; gap: 10px; } .when .dot { margin: 0; } }
.beats { display: grid; gap: 14px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.beat b { display: block; font: 600 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.beat.why b { color: var(--warm); }
.beat.why p { font-family: var(--display); font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.beat.built b { color: var(--accent); }
.shot { border-radius: 10px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { font-size: .82rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.pair img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts span { font: .8rem/1.3 var(--mono); background: var(--accent-soft); color: var(--ink); border-radius: 6px; padding: 4px 8px; }
.facts span.miss { background: var(--miss-soft); color: var(--miss); }
.go { font-weight: 700; font-size: .95rem; }
.tag { font: 600 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; border: 1px solid currentColor; color: var(--ok); }
.tag.beta { color: var(--miss); }

/* chart + run */
.chart { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.chart h3 { font-family: var(--body); font-size: .9rem; margin-bottom: 10px; }
.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: .86rem; margin-bottom: 8px; }
.bar { height: 16px; background: var(--line); border-radius: 4px; position: relative; overflow: hidden; display: block; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--muted); border-radius: 4px; display: block; }
.row.hl .bar i { background: var(--accent); }
.row .v { font: .82rem var(--mono); text-align: right; }
.axis { display: flex; justify-content: space-between; font: .72rem var(--mono); color: var(--muted); margin-left: 130px; margin-right: 66px; }
.chart p { font-size: .8rem; color: var(--muted); margin-top: 10px; }
pre.run { background: #0d1117; color: #d6dee8; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font: .8rem/1.6 var(--mono); margin: 0; }
pre.run .p { color: #6fc3d1; } pre.run .ok { color: #7fd99b; } pre.run .ms { color: #f3c46b; } pre.run .dim { color: #8592a3; }

/* side projects */
.side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
@media (max-width: 820px) { .side { grid-template-columns: 1fr; } }
.side article { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.side img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.side h3 { font-family: var(--body); font-size: 1.02rem; }
.side p { font-size: .92rem; color: var(--muted); }
.side p.why { color: var(--ink); }

/* closing sections */
section.band { background: var(--paper); border-block: 1px solid var(--line); padding-block: 48px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.video { aspect-ratio: 16/9; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--bg)); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.video b { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-size: 1.4rem; }
.video span { position: absolute; left: 14px; bottom: 10px; font-size: .85rem; font-weight: 600; }
blockquote { margin: 0; border-left: 3px solid var(--warm); padding-left: 14px; font-family: var(--display); font-size: 1.1rem; line-height: 1.45; }
blockquote footer { font-family: var(--body); font-size: .85rem; color: var(--muted); margin-top: 6px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.list li span { display: block; font-size: .88rem; color: var(--muted); }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .95rem; }
dt { color: var(--muted); }
dd { margin: 0; }
footer.site { padding-block: 24px; font-size: .85rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
h2.sec { font-size: 1.6rem; margin-bottom: 16px; }
.cols > div:not(.beats), .cols > figure { position: sticky; top: 16px; align-self: start; }
@media (max-width: 820px) { .cols > div:not(.beats), .cols > figure { position: static; } .pair { display: none; } .viz { order: -1; } }
pre.cmd { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; max-width: 100%; background: #0d1117; color: #d6dee8; border-radius: 8px; padding: 8px 12px; overflow-x: auto; font: .78rem/1.5 var(--mono); margin: 0; }
pre.cmd .p { color: #6fc3d1; }
.role { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.role span { font: 600 .78rem/1 var(--mono); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 10px; }
.side.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.side.compact article { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.side.compact img { aspect-ratio: 1; }
.side.compact h3 { margin-bottom: 2px; }
@media (max-width: 980px) { .side.compact { grid-template-columns: 1fr; } }
.then { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.then a { border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 2px; text-decoration: none; color: var(--ink); background: var(--paper); padding: 0 0 8px; overflow: hidden; text-align: center; }
.then img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 4px; }
.then span { font-weight: 700; font-size: .92rem; }
.then small { font: .72rem var(--mono); color: var(--muted); }

/* proof strip, method, results table, org band */
.proof { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:16px; font-size:.9rem; }
.proof a { color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); }
.proof b { font-family:var(--mono); color:var(--accent); margin-right:4px; }
.method { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:28px; }
@media (max-width:860px){ .method{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:460px){ .method{ grid-template-columns:1fr; } }
.method div { border-top:3px solid var(--accent); padding-top:8px; min-width:0; }
.method b { display:block; font-size:.95rem; }
.method span { font-size:.85rem; color:var(--muted); }
.results { margin-top:28px; overflow-x:auto; }
.results table { width:100%; border-collapse:collapse; font-size:.88rem; min-width:620px; }
.results caption { text-align:left; font:600 .75rem/1.2 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--accent); padding-bottom:8px; }
.results th, .results td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.results th { color:var(--muted); font-weight:600; }
.results td.n { font-family:var(--mono); white-space:nowrap; }
.results td.miss { color:var(--miss); }
.org { background:var(--accent-soft); border-radius:12px; padding:24px; margin-bottom:48px; }
.org ul { list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
@media (max-width:820px){ .org ul{ grid-template-columns:1fr; } }
.org li b { display:block; }
.org li span { font-size:.92rem; color:var(--muted); }
.decision { font-size:.9rem; border-left:3px solid var(--accent); padding-left:10px; }
.decision b { font:600 .72rem/1.2 var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--accent); display:block; }
.then3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.then3 img { width:100%; aspect-ratio:4/3; object-fit:cover; }
@media (max-width:560px){ .then3 { grid-template-columns:1fr; } }

details.more { margin-top:4px; font-size:.92rem; }
details.more summary { cursor:pointer; color:var(--accent); font-weight:600; list-style:none; }
details.more summary::-webkit-details-marker { display:none; }
details.more summary::before { content:"+ "; font-family:var(--mono); }
details.more[open] summary::before { content:"\2212 "; }
details.more > div { display:grid; gap:10px; margin-top:10px; padding-left:12px; border-left:2px solid var(--line); }
.cta-row { margin:8px auto 48px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.cta-row a.btn { background:var(--accent); color:var(--paper); text-decoration:none; font-weight:700; padding:10px 16px; border-radius:8px; }

.stats a.src { font: .75rem var(--mono); color: var(--accent); white-space: nowrap; }

main img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5,8,12,.92); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 8px; cursor: zoom-out; }
.lb p { color: #e8ecf1; font-size: .9rem; margin: 0; text-align: center; }
.lb p a { color: #6fc3d1; }
.lb button { position: absolute; top: 12px; right: 12px; background: none; border: 1px solid #8592a3; color: #e8ecf1; border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }

.stats.stats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.stats3 b { white-space: normal; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 860px) { .stats.stats3 { grid-template-columns: 1fr; } .stats.stats3 li { border-left: 0; padding-left: 0; } .stats.stats3 li + li { border-top: 1px solid var(--line); } }

.stats .res { display:block; margin-top:10px; padding-top:8px; border-top:1px dashed var(--line); font: 600 .82rem/1.4 var(--mono); font-style: normal; color: var(--accent); }

.stats.stats3 li { display:flex; flex-direction:column; }
.stats.stats3 b { font-size: clamp(1.35rem, 2vw, 1.7rem) !important; line-height:1.1; }
.stats.stats3 .res { margin-top:auto; }
.stats.stats3 span { margin-bottom:10px; }

details.more { margin-top:4px; font-size:.92rem; }
details.more summary { cursor:pointer; color:var(--accent); font-weight:600; list-style:none; }
details.more summary::-webkit-details-marker { display:none; }
details.more summary::before { content:"+ "; font-family:var(--mono); }
details.more[open] summary::before { content:"\2212 "; }
details.more > div { display:grid; gap:10px; margin-top:10px; padding-left:12px; border-left:2px solid var(--line); }

/* former inline styles */
.s-cff934{font-size:.95rem;color:var(--muted);margin:-6px 0 14px}
.s-731560{max-width:70ch}
.s-1386d5{margin:0}
.s-00dd4a{margin:8px 0 0}
.s-73f8a2{padding-block:48px}