/* base reset (pages are served standalone) */
[hidden] { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); }


/* Layout: an observability console. A live network waterfall of this very request up top, the career as a distributed trace, projects as services with HTTP status codes, posts as span events. */
:root {
  --bg: #f5f5f2;
  --panel: #ffffff;
  --ink: #121417;
  --mut: #686d76;
  --rule: #e2e2dc;
  --hi: #2f46e0;
  --hi-soft: #2f46e014;
  --ok: #0f8b7d;
  --warn: #b7700a;
  --c1: #2f46e0; --c2: #0f8b7d; --c3: #c47f0e; --c4: #8a8f98; --c5: #b03a6a;
  --on-bar: #ffffff;
  --f-disp: "Bricolage Grotesque", "Spline Sans", system-ui, sans-serif;
  --f-body: "Spline Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e0f11; --panel: #15171a; --ink: #e9eaec; --mut: #8f949c; --rule: #25282d; --hi: #8293ff; --hi-soft: #8293ff1c; --ok: #3cc2b0; --warn: #e0a640;
    --c1: #8293ff; --c2: #3cc2b0; --c3: #e0a640; --c4: #7d838c; --c5: #e2689c; --on-bar: #0e0f11; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0e0f11; --panel: #15171a; --ink: #e9eaec; --mut: #8f949c; --rule: #25282d; --hi: #8293ff; --hi-soft: #8293ff1c; --ok: #3cc2b0; --warn: #e0a640;
  --c1: #8293ff; --c2: #3cc2b0; --c3: #e0a640; --c4: #7d838c; --c5: #e2689c; --on-bar: #0e0f11; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 72px; }
a { color: var(--hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
::selection { background: var(--hi); color: var(--on-bar); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); }
.mut { color: var(--mut); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--panel); border-bottom: 1px solid var(--rule);
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--panel); }
.top-in { max-width: 1240px; margin: 0 auto; min-height: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-family: var(--f-mono); font-size: 12.5px; }
.top .crumb { color: var(--mut); }
.top .crumb b { color: var(--ink); font-weight: 600; }
.top .crumb .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.top nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--mut); padding: 14px 10px 12px; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); border-bottom-color: var(--hi); }
.top .tools { display: flex; gap: 8px; }
.top .tools button, .top .tools a { border: 1px solid var(--rule); background: transparent; padding: 4px 10px; color: var(--ink); cursor: pointer; font-family: var(--f-mono); font-size: 12px; border-radius: 4px; }
.top .tools a.cv { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.top .tools a:hover { text-decoration: none; }
@media (max-width: 860px) { .top nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; } .top nav a { padding: 6px 10px 9px; white-space: nowrap; } .top .tools { margin-left: auto; } .top-in { padding-top: 8px; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px 56px; padding-block: 52px 36px; align-items: end; }
.hero h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(52px, 8.4vw, 112px); line-height: .86; letter-spacing: -0.045em; margin: 0; }
.hero .tag { margin: 22px 0 0; font-size: 19px; line-height: 1.45; max-width: 34ch; text-wrap: pretty; }
.hero .facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.chip { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 999px; background: var(--panel); color: var(--ink); white-space: nowrap; }
.chip i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.reach { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; min-width: 0; }
.reach .lbl { font-family: var(--f-mono); font-size: 12px; color: var(--mut); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reach .big { font-family: var(--f-disp); font-weight: 500; font-size: clamp(56px, 7vw, 84px); line-height: .95; letter-spacing: -0.04em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.reach .big small { font-size: .32em; color: var(--mut); margin-left: 6px; letter-spacing: 0; }
.phases { display: grid; gap: 5px; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; }
.phases div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 62px; gap: 10px; align-items: center; }
.phases span:first-child { color: var(--mut); }
.phases .trk { height: 10px; position: relative; background: color-mix(in srgb, var(--rule) 45%, transparent); border-radius: 2px; }
.phases .trk i { position: absolute; top: 0; bottom: 0; border-radius: 2px; min-width: 2px; background: var(--hi); transition: left .6s, width .6s; }
.phases em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.netfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin-top: 16px; }
.netfacts div { background: var(--panel); padding: 8px 10px; min-width: 0; }
.netfacts dt { font-family: var(--f-mono); font-size: 10.5px; color: var(--mut); }
.netfacts dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.reach .note { font-size: 12.5px; color: var(--mut); margin: 12px 0 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block: 32px 24px; } .netfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sections ---------- */
.sec { margin-top: 44px; }
.sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 12px; }
.sec-h h2 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.03em; margin: 0; line-height: 1; }
.sec-h p { margin: 0; color: var(--mut); font-size: 14px; max-width: 60ch; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; min-width: 0; }

/* network waterfall */
.net { overflow-x: auto; }
.net table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12px; min-width: 760px; }
.net th { text-align: left; font-weight: 500; color: var(--mut); padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.net td { padding: 6px 12px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); white-space: nowrap; vertical-align: middle; }
.net td.nm { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.net td.r { text-align: right; font-variant-numeric: tabular-nums; }
.net td.wf { width: 40%; min-width: 260px; }
.net .bar { position: relative; height: 12px; }
.net .bar i { position: absolute; top: 2px; height: 8px; border-radius: 2px; min-width: 2px; }
.net .bar i.wait { background: color-mix(in srgb, var(--mut) 35%, transparent); }
.net tfoot td { color: var(--mut); border-bottom: 0; padding: 9px 12px; }
.ty { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }

/* trace viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.wf2 { min-width: 0; overflow-x: auto; }
.axis, .row { display: grid; grid-template-columns: 260px minmax(560px, 1fr); }
.axis { font-family: var(--f-mono); font-size: 11px; color: var(--mut); border-bottom: 1px solid var(--rule); }
.axis > div:first-child { padding: 9px 18px; }
.ticks { position: relative; height: 34px; }
.ticks span { position: absolute; top: 10px; transform: translateX(-50%); }
.row { font-size: 13px; cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
.row:hover { background: color-mix(in srgb, var(--hi) 4%, transparent); }
.row.sel { background: var(--hi-soft); }
.row .nm { padding: 7px 10px 7px 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-mono); font-size: 12px; }
.row .nm .svc { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; }
.row .nm .tw { color: var(--rule); margin-right: 4px; }
.row .tl { position: relative; min-height: 32px; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 8.4 - 1px), color-mix(in srgb, var(--rule) 70%, transparent) calc(100% / 8.4 - 1px) calc(100% / 8.4)); }
.row .tl .sp { position: absolute; top: 9px; height: 14px; border-radius: 3px; min-width: 6px; }
.row .tl .sp.during { opacity: .32; }
.row .tl .sp.open::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, transparent, var(--panel)); opacity: .5; border-radius: 0 3px 3px 0; }
.row .tl .lab { position: absolute; top: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mut); white-space: nowrap; }
.row .tl .ev { position: absolute; top: 10px; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg); background: var(--panel); border: 2px solid var(--c5); }
.row .tl .pr { position: absolute; top: 8px; width: 2px; height: 16px; transform: translateX(-1px); background: var(--c3); opacity: .85; }
.row .tl .now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--hi); }
.detail { border-left: 1px solid var(--rule); padding: 16px 18px; font-size: 13px; min-width: 0; }
.detail h3 { margin: 0; font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; word-break: break-word; }
.detail .dur { color: var(--mut); font-family: var(--f-mono); font-size: 11.5px; margin-top: 3px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 14px 0; font-family: var(--f-mono); font-size: 11.5px; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.detail .evs { border-top: 1px solid var(--rule); padding-top: 10px; }
.detail .evs .h { color: var(--mut); font-family: var(--f-mono); font-size: 11px; margin-bottom: 4px; }
.detail .evs a { display: block; padding: 3px 0; }
.detail .evs a.post::before { content: "◆ "; color: var(--c5); font-size: 10px; }
@media (max-width: 960px) { .viewer { grid-template-columns: 1fr; } .detail { border-left: 0; border-top: 1px solid var(--rule); } .axis, .row { grid-template-columns: 180px minmax(520px, 1fr); } }

/* services */
.svcs { overflow-x: auto; }
.svcs table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.svcs th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; color: var(--mut); padding: 9px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.svcs td { padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); vertical-align: top; }
.svcs tr.go { cursor: pointer; }
.svcs tr.go:hover td { background: color-mix(in srgb, var(--hi) 4%, transparent); }
.svcs td.nm { font-family: var(--f-mono); font-weight: 600; white-space: nowrap; }
.svcs td.nm a { color: var(--ink); }
.svcs tr.go:hover td.nm a { color: var(--hi); }
.svcs td.d { font-family: var(--f-mono); font-size: 12px; color: var(--mut); white-space: nowrap; }
.svcs td.st { white-space: nowrap; }
.code { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; border: 1px solid currentColor; }
.code.s200 { color: var(--ok); }
.code.s202 { color: var(--hi); border-style: dashed; }
.code.s206 { color: var(--warn); }
.code.s410, .code.s301 { color: var(--mut); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--mut); padding: 10px 14px; border-top: 1px solid var(--rule); }

/* about */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; min-width: 0; }
.card h3 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--mut); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.card li .k { font-family: var(--f-mono); font-size: 12px; color: var(--mut); display: block; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr !important; } }

/* connect */
.hs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.hs form { display: grid; gap: 14px; padding: 20px; border-right: 1px solid var(--rule); }
.hs label { display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11.5px; color: var(--mut); }
.hs input, .hs textarea { font: inherit; font-family: var(--f-body); font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 9px 11px; resize: vertical; }
.hs input:focus, .hs textarea:focus { outline: 2px solid var(--hi); outline-offset: -1px; }
.btn { font-family: var(--f-mono); font-weight: 600; font-size: 13px; background: var(--ink); color: var(--panel); border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; justify-self: start; }
.btn:hover { background: var(--hi); color: var(--on-bar); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid var(--rule); padding: 4px 10px; font-weight: 500; font-size: 12px; }
.seq { padding: 20px; min-width: 0; }
.seq svg { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.seq text { font-family: var(--f-mono); }
.seq .status { font-family: var(--f-mono); font-size: 12.5px; color: var(--mut); margin-top: 8px; min-height: 3.2em; }
.direct { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12.5px; }
@media (max-width: 760px) { .hs { grid-template-columns: 1fr; } .hs form { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* service page */
.svc-head { padding-block: 40px 22px; display: grid; gap: 12px; }
.svc-head .crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
.svc-head h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: .92; margin: 0; }
.svc-head .one { font-size: 19px; max-width: 52ch; margin: 0; text-wrap: pretty; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }
.prose p { margin: 0 0 12px; max-width: 68ch; text-wrap: pretty; }
.pipe { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 18px; }
.pipe .st { flex: 1 0 120px; min-width: 120px; border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; font-family: var(--f-mono); font-size: 12px; background: var(--bg); position: relative; }
.pipe .st b { display: block; font-size: 10.5px; color: var(--mut); font-weight: 500; margin-bottom: 3px; }
.pipe .st:last-child { border-color: var(--hi); }
.pipe .ar { flex: 0 0 22px; display: grid; place-items: center; color: var(--mut); font-family: var(--f-mono); }
.logs { font-family: var(--f-mono); font-size: 12.5px; }
.logs div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 8px 16px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.logs div:last-child { border-bottom: 0; }
.logs .w { color: var(--warn); font-weight: 600; }
.logs .i { color: var(--ok); font-weight: 600; }
.pnl-h { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; color: var(--mut); display: flex; justify-content: space-between; gap: 10px; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-family: var(--f-mono); font-size: 13px; }
.quick { font-family: var(--f-mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; overflow-x: auto; white-space: pre; margin: 0 0 12px; }

/* skills / dependencies */
.deps { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.dep-groups { min-width: 0; }
.dg { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); align-items: start; }
.dg:last-child { border-bottom: 0; }
.dg h3 { margin: 4px 0 0; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--mut); }
.dg .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dep { font-family: var(--f-mono); font-size: 12.5px; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); cursor: pointer; color: var(--ink); display: inline-flex; gap: 7px; align-items: center; }
.dep:hover { border-color: var(--hi); }
.dep[aria-pressed="true"] { background: var(--hi); border-color: var(--hi); color: var(--on-bar); }
.dep .ct { font-size: 10.5px; color: var(--mut); }
.dep[aria-pressed="true"] .ct { color: inherit; opacity: .8; }
.dep.cold { color: var(--mut); }
@media (max-width: 960px) { .deps { grid-template-columns: 1fr; } .dg { grid-template-columns: 1fr; gap: 6px; } }

/* activity heatmap */
.act { padding: 16px 18px; }
.act-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--f-mono); font-size: 12px; color: var(--mut); margin-bottom: 12px; }
.act-stats b { color: var(--ink); font-weight: 600; font-size: 14px; margin-right: 4px; }
.heat { overflow-x: auto; }
.heat svg { display: block; min-width: 720px; width: 100%; height: auto; }
.heat .c0 { fill: color-mix(in srgb, var(--rule) 80%, transparent); }
.heat .c1 { fill: color-mix(in srgb, var(--hi) 30%, var(--panel)); }
.heat .c2 { fill: color-mix(in srgb, var(--hi) 55%, var(--panel)); }
.heat .c3 { fill: color-mix(in srgb, var(--hi) 78%, var(--panel)); }
.heat .c4 { fill: var(--hi); }
.heat text { font-family: var(--f-mono); fill: var(--mut); }

/* terminal (one deliberate look in both themes) */
.term { position: fixed; z-index: 50; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 860px; margin: 0 auto; height: min(62vh, 520px);
  background: #0b0c0e; color: #d9dde3; border: 1px solid #2a2e35; border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font-family: var(--f-mono); font-size: 13px; }
.term-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #22262c; color: #8a9099; font-size: 12px; }
.term-h button { background: none; border: 1px solid #2a2e35; color: #c9cdd3; border-radius: 4px; padding: 2px 8px; cursor: pointer; font-family: var(--f-mono); font-size: 11.5px; }
.term-out { overflow-y: auto; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.term-out .cmd { color: #8a9099; }
.term-out .cmd b { color: #7ee2b8; font-weight: 500; }
.term-out a { color: #9aa8ff; }
.term-out .err { color: #ff8a8a; }
.term-in { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid #22262c; }
.term-in span { color: #7ee2b8; white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; color: #f1f3f5; font: inherit; outline: none; }
.term-fab { position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: #0b0c0e; color: #d9dde3; border: 1px solid #2a2e35; border-radius: 8px; padding: 8px 12px; font-family: var(--f-mono); font-size: 12.5px; cursor: pointer; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.term-fab kbd { font-family: inherit; border: 1px solid #3a3f47; border-radius: 3px; padding: 0 5px; margin-left: 6px; color: #8a9099; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .cta a, .hero .cta button { font-family: var(--f-mono); font-size: 13px; padding: 9px 14px; border-radius: 6px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); cursor: pointer; }
.hero .cta .pri { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.hero .cta a:hover { text-decoration: none; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; color: var(--mut); margin-bottom: 18px; }
.eyebrow b { color: var(--ok); font-weight: 600; }

/* 404 */
.trace404 { font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-all; padding: 18px 20px; }
.blink { animation: b 1.1s steps(1) infinite; }
@keyframes b { 50% { opacity: 0; } }
footer.ft { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } .phases .trk i { transition: none; } }

/* page shell */
.page-h { padding-block: 44px 6px; display: grid; gap: 10px; }
.page-h .crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
.page-h h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(44px, 6.4vw, 80px); letter-spacing: -0.045em; line-height: .9; margin: 0; }
.page-h p { font-size: 18px; max-width: 56ch; margin: 0; text-wrap: pretty; }
.soon { display: grid; gap: 16px; padding: 28px 24px; }
.soon .state { font-family: var(--f-mono); font-size: 13px; color: var(--mut); }
.soon .state b { color: var(--warn); font-weight: 600; }
.soon .cursor { display: inline-block; width: 8px; height: 15px; background: var(--hi); vertical-align: -2px; margin-left: 4px; animation: b 1.1s steps(1) infinite; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.next a { background: var(--panel); padding: 18px; color: var(--ink); display: grid; gap: 4px; }
.next a:hover { text-decoration: none; background: color-mix(in srgb, var(--hi) 4%, var(--panel)); }
.next a b { font-family: var(--f-disp); font-size: 22px; letter-spacing: -0.02em; }
.next a span { font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .soon .cursor { animation: none; } }

/* freelance availability */
.avail-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.avail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 22px 24px; border-color: color-mix(in srgb, var(--ok) 45%, var(--rule)); }
.avail .state { font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
.avail .state b { color: var(--ok); font-weight: 600; }
.avail h2 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.03em; margin: 6px 0 6px; line-height: 1; }
.avail p { margin: 0; max-width: 60ch; color: var(--ink); }
.avail-cta { display: grid; gap: 8px; justify-items: start; }
.avail-cta .btn { text-decoration: none; }
.avail-cta .mono { font-size: 12px; }
@media (max-width: 760px) { .avail { grid-template-columns: 1fr; } }

/* ================= phone ================= */
.eyebrow .free { white-space: nowrap; }
@media (max-width: 640px) {
  body { font-size: 15px; }
  /* header: one compact row of tools, then all five links visible */
  .top-in { gap: 2px 12px; padding-top: 8px; }
  .top nav { justify-content: space-between; overflow: visible; gap: 0; }
  .top nav a { padding: 8px 0 9px; font-size: 12px; }
  .top .tools button, .top .tools a { padding: 4px 8px; font-size: 11.5px; }
  html { scroll-padding-top: 96px; }

  /* hero */
  .hero { padding-block: 26px 18px; gap: 24px; }
  .hero h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero .tag { font-size: 17px; margin-top: 16px; }
  .eyebrow { margin-bottom: 14px; line-height: 1.7; }
  .eyebrow .sep2 { display: none; }
  .eyebrow .free { display: block; }
  .hero .cta { gap: 8px; }
  .hero .cta a, .hero .cta button { padding: 9px 12px; font-size: 12.5px; }
  .reach { padding: 16px; }
  .phases div { grid-template-columns: 64px minmax(0, 1fr) 54px; gap: 8px; }

  .sec { margin-top: 36px; }
  .sec-h { margin-bottom: 10px; }
  .sec-h p { font-size: 13.5px; }

  /* your request: name, size, bar, time */
  .net table { min-width: 0; width: 100%; }
  .net th:nth-child(2), .net td:nth-child(2), .net th:nth-child(3), .net td:nth-child(3) { display: none; }
  .net th, .net td { padding: 6px 8px; }
  .net td.nm { max-width: 120px; }
  .net td.wf { width: 30%; min-width: 50px; }

  /* career trace: name above its bar */
  .axis, .row { grid-template-columns: minmax(0, 1fr); }
  .axis > div:first-child { display: none; }
  .ticks { height: 28px; margin-inline: 12px; }
  .row .nm { padding: 7px 12px 0 !important; font-size: 11.5px; }
  .row .nm .tw { display: none; }
  .row[data-depth="1"] .nm { padding-left: 22px !important; }
  .row[data-depth="2"] .nm { padding-left: 32px !important; }
  .row .tl { min-height: 26px; margin-inline: 12px; }
  .row .tl .sp { top: 6px; height: 12px; }
  .row .tl .ev { top: 7px; }
  .row .tl .pr { top: 5px; }
  .row .tl .lab { top: 5px; }
  .detail { padding: 16px; }

  /* tables become cards */
  .svcs table { min-width: 0; }
  .svcs thead { display: none; }
  .svcs table, .svcs tbody { display: block; }
  .svcs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 13px 14px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
  .svcs td { display: block; padding: 0; border: 0; min-width: 0; }
  .svcs td:nth-child(1) { grid-column: 1; align-self: center; white-space: normal; overflow-wrap: anywhere; }
  .svcs td:nth-child(2) { grid-column: 2; justify-self: end; align-self: center; }
  .svcs td:nth-child(3) { grid-column: 1 / -1; font-size: 14px; }
  .svcs td:nth-child(4) { grid-column: 1; }
  .svcs td:nth-child(5) { grid-column: 2; justify-self: end; }
  .svcs tr.go:hover td { background: none; }

  /* project page */
  .svc-head { padding-block: 28px 18px; }
  .svc-head .one { font-size: 17px; }
  .pipe { flex-direction: column; padding: 14px; }
  .pipe .st { flex: none; min-width: 0; }
  .pipe .ar { flex: none; height: 18px; transform: rotate(90deg); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .kv dd { margin-bottom: 8px; }
  .pager { font-size: 12.5px; }

  /* misc */
  .page-h { padding-block: 28px 4px; }
  .page-h p { font-size: 16.5px; }
  .direct .sep { display: none; }
  .act { padding: 14px; }
  .avail { padding: 18px; }
  .term-fab { display: none; }
  .row .tl .lab { display: none; }
  .net th:nth-child(5) { font-size: 0; }
  .net tfoot td { white-space: normal; }
  .pipe { gap: 0; }
  .pipe .st { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; }
  .pipe .st b { margin: 0; }
  .pipe .ar { height: 14px; font-size: 11px; }
  .term { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: 70vh; font-size: 12.5px; }
  footer.ft { flex-direction: column; }
}

/* open source: summary line and collapsible merge log */
.oss-card { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.oss-stats { display: grid; grid-template-columns: repeat(3, auto); border-right: 1px solid var(--rule); }
.oss-stats div { padding: 18px 22px; display: grid; gap: 2px; align-content: center; border-right: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.oss-stats div:last-child { border-right: 0; }
.oss-stats b { font-family: var(--f-disp); font-weight: 700; font-size: 34px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.oss-stats span { font-family: var(--f-mono); font-size: 11.5px; color: var(--mut); }
.oss-orgs { padding: 16px 20px; display: grid; gap: 10px; align-content: center; min-width: 0; }
.oss-lbl { font-family: var(--f-mono); font-size: 11.5px; color: var(--mut); }
.oss-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oss-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 6px 4px 10px; }
.oss-chip:hover { border-color: var(--hi); text-decoration: none; }
.oss-chip span { font-size: 11px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 4px; padding: 0 6px; }
.oss-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 20px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: 12px; color: var(--mut); }
@media (max-width: 760px) {
  .oss-card { grid-template-columns: 1fr; }
  .oss-stats { border-right: 0; border-bottom: 1px solid var(--rule); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oss-stats div { padding: 14px 16px; }
  .oss-stats b { font-size: 28px; }
  .oss-orgs { padding: 14px 16px; }
  .oss-foot { padding: 10px 16px; }
}
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: color-mix(in srgb, var(--hi) 4%, transparent); }
.fold-t { font-family: var(--f-disp); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.fold > summary .mut { font-family: var(--f-mono); font-size: 12px; }
.fold-i { margin-left: auto; font-family: var(--f-mono); font-size: 18px; color: var(--mut); transition: transform .2s; }
.fold[open] .fold-i { transform: rotate(45deg); }
.fold[open] > summary { border-bottom: 1px solid var(--rule); }
@media (prefers-reduced-motion: reduce) { .fold-i { transition: none; } }

/* terminal is for laptops and desktops only */
@media (max-width: 760px), (pointer: coarse) { [data-term], .term, .term-fab { display: none !important; } }
