:root {
  --page: #f9f9f7; --surface-1: #fcfcfb; --surface-2: #f1f0ec; --surface-3: #e9e8e2;
  --text-primary: #0b0b0b; --text-secondary: #52514e; --text-muted: #898781;
  --grid: #e1e0d9; --border: rgba(11,11,11,.10); --blue: #2a78d6; --blue-wash: #cde2fb;
  --orange: #eb6834; --green: #006300; --warning: #b8791a;
  --shadow: 0 1px 2px rgba(11,11,11,.04), 0 4px 16px rgba(11,11,11,.05);
}
:root[data-theme="dark"] { --page:#0d0d0d; --surface-1:#1a1a19; --surface-2:#232322; --surface-3:#2c2c2a;
  --text-primary:#fff; --text-secondary:#c3c2b7; --text-muted:#898781; --grid:#2c2c2a; --border:rgba(255,255,255,.10);
  --blue:#3987e5; --blue-wash:#184f95; --orange:#d95926; --green:#0ca30c; --warning:#fab219;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.4); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--page); color:var(--text-primary); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; line-height:1.6; -webkit-font-smoothing:antialiased; }
a { color:var(--blue); } a:hover { color:var(--text-primary); }
.top { position:sticky; top:0; z-index:20; background:color-mix(in srgb,var(--page) 88%,transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); }
.top-inner,.wrap { max-width:1060px; margin:0 auto; }
.top-inner { padding:12px 24px; display:flex; align-items:center; gap:14px; }
.brand { font-size:14px; font-weight:650; letter-spacing:.01em; text-decoration:none; color:var(--text-primary); }
.brand span { color:var(--text-muted); font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.035em; }
nav { margin-left:auto; display:flex; gap:3px; flex-wrap:wrap; } nav a { color:var(--text-secondary); text-decoration:none; font-size:12.5px; padding:5px 9px; border-radius:7px; } nav a:hover { background:var(--surface-2); color:var(--text-primary); }
.article-nav { max-width:1060px; margin:0 auto; padding:8px 24px 9px; min-height:42px; display:flex; align-items:center; gap:3px; flex-wrap:wrap; border-top:1px solid var(--border); } .article-nav a { color:var(--text-secondary); text-decoration:none; font-size:12px; padding:5px 9px; border-radius:7px; } .article-nav a:hover { background:var(--surface-2); color:var(--text-primary); }
button { cursor:pointer; border:1px solid var(--border); background:var(--surface-1); color:var(--text-secondary); border-radius:8px; padding:6px 10px; font:inherit; font-size:12.5px; }
.wrap { padding:0 24px 84px; }
.eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--text-muted); font-weight:650; margin-top:38px; }
h1 { font-size:clamp(30px,4vw,46px); line-height:1.12; max-width:22ch; margin:10px 0 10px; letter-spacing:-.018em; }
h2 { font-size:21px; margin:54px 0 5px; padding-top:8px; letter-spacing:-.005em; } h3 { font-size:15.5px; margin:26px 0 8px; }
p,li { color:var(--text-secondary); } p { max-width:78ch; } li { margin:4px 0; }
.lead { color:var(--text-secondary); font-size:16px; line-height:1.7; max-width:76ch; }
.meta { color:var(--text-muted); font-size:12.5px; margin-top:14px; display:flex; gap:16px; flex-wrap:wrap; }
.project-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.project-tags span { border:1px solid var(--border); border-radius:999px; padding:3px 9px; color:var(--text-secondary); font-size:11.5px; }
.project-source { display:flex; align-items:center; justify-content:space-between; gap:18px; max-width:470px; margin-top:26px; padding:13px 14px 13px 16px; border:1px solid var(--border); border-radius:11px; background:var(--surface-1); box-shadow:var(--shadow); }
.project-source > span { color:var(--text-muted); font-size:12px; }
.github-link { display:inline-flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:8px; padding:8px 12px; color:var(--text-primary); background:var(--surface-2); text-decoration:none; font-size:13px; font-weight:600; white-space:nowrap; }
.github-link:hover { background:var(--surface-3); }
.github-link svg { display:block; flex:0 0 18px; width:18px !important; height:18px !important; max-width:18px; max-height:18px; }
.pill { display:inline-block; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:999px; letter-spacing:.02em; background:var(--surface-3); color:var(--text-primary); }
.pill.blue { background:var(--blue-wash); }
.hero { background:linear-gradient(180deg,var(--surface-1),color-mix(in srgb,var(--blue-wash) 22%,var(--surface-1))); border:1px solid var(--border); border-radius:16px; padding:22px 24px; box-shadow:var(--shadow); display:flex; align-items:baseline; gap:20px; flex-wrap:wrap; margin:22px 0 5px; }
.hero .num { font-size:40px; font-weight:680; line-height:1.05; } .hero .cap { color:var(--text-secondary); font-size:14.5px; max-width:58ch; } .hero .cap b { color:var(--text-primary); }
.callout { border:1px solid var(--border); border-left:3px solid var(--blue); background:var(--surface-1); border-radius:10px; padding:13px 16px; margin:16px 0; font-size:13.5px; box-shadow:var(--shadow); } .callout.key { border-left-color:var(--orange); } .callout.good { border-left-color:var(--green); } .callout p { margin:2px 0; max-width:none; }
.callout .k,.callout p { color:var(--text-primary); } .callout .k { display:block; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); gap:12px; margin:22px 0 8px; }
.tile { background:var(--surface-1); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow:var(--shadow); } .tile .label { font-size:12px; color:var(--text-secondary); } .tile .value { font-size:26px; font-weight:650; margin-top:6px; letter-spacing:-.01em; } .tile .sub { font-size:12px; color:var(--text-muted); margin-top:3px; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; } .pair .tile h3 { margin:0 0 8px; } .pair .tile p { margin:0; font-size:14px; }
.project-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; } .project-grid .tile h3 { margin:0 0 8px; } .project-grid .tile p { margin:0 0 10px; font-size:14px; } .project-grid .tile p:last-child { margin-bottom:0; }
.project-grid .tile:last-child { grid-column:1 / -1; }
.education-card { margin-top:18px; }
figure { margin:18px 0 8px; background:var(--surface-1); border:1px solid var(--border); border-radius:14px; padding:16px 18px 14px; box-shadow:var(--shadow); } figure img { width:100%; height:auto; display:block; border-radius:8px; } figcaption { font-size:14px; font-weight:600; margin-bottom:7px; } figure .note { font-size:12px; color:var(--text-muted); margin-top:9px; }
.media-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:16px; align-items:start; } .media-card { overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--surface-1); box-shadow:var(--shadow); } .media-card img { width:100%; display:block; } .media-card .caption { padding:13px 15px; font-size:13px; color:var(--text-secondary); }
.links { display:flex; gap:10px; flex-wrap:wrap; margin:17px 0; align-items:stretch; } .links a { display:inline-flex; align-items:center; min-height:36px; border:1px solid var(--border); border-radius:8px; padding:8px 11px; text-decoration:none; color:var(--text-secondary); background:var(--surface-1); font:500 13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif; } .links a:hover { color:var(--text-primary); background:var(--surface-2); }
.tbl-wrap { overflow-x:auto; margin:16px 0; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); } table { border-collapse:collapse; width:100%; font-size:12.8px; background:var(--surface-1); } caption { caption-side:top; text-align:left; padding:13px 14px 11px; color:var(--text-secondary); font-size:13.5px; line-height:1.45; font-weight:550; } th,td { text-align:right; padding:8px 12px; border-bottom:1px solid var(--grid); white-space:nowrap; } th { background:var(--surface-2); color:var(--text-secondary); font-weight:600; } td:first-child,th:first-child { text-align:left; } tbody tr:last-child td { border-bottom:0; } tbody tr:hover td { background:var(--surface-2); } td { font-variant-numeric:tabular-nums; }
.result-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:20px 0 8px; } .result-card { background:var(--surface-1); border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow:var(--shadow); } .result-card .label { color:var(--text-secondary); font-size:12px; } .result-card .value { color:var(--text-primary); font-size:30px; font-weight:680; letter-spacing:-.02em; line-height:1.1; margin-top:6px; } .result-card .unit { color:var(--text-muted); font-size:12px; margin-top:2px; } .result-card .interval { color:var(--text-secondary); font-size:12px; line-height:1.45; margin-top:10px; padding-top:9px; border-top:1px solid var(--grid); }
.equation { display:grid; grid-template-columns:minmax(0,1fr) 42px; align-items:center; gap:14px; margin:16px 0; }
.equation .formula { min-width:0; margin:0; }
.equation .eqno { color:var(--text-muted); font:normal 12px/1 system-ui,sans-serif; text-align:left; white-space:nowrap; }
.formula { background:var(--surface-1); border:1px solid var(--border); border-radius:10px; padding:15px 18px; margin:16px 0; text-align:center; font:italic 18px/1.8 Georgia,serif; box-shadow:var(--shadow); overflow-x:auto; }
.formula small { display:block; font:normal 12.5px/1.5 system-ui,sans-serif; color:var(--text-muted); margin-top:7px; }
.top + .wrap section { scroll-margin-top:112px; }
code { font:12.5px ui-monospace,"SF Mono",Menlo,monospace; background:var(--surface-2); padding:1.5px 5px; border-radius:5px; color:var(--text-primary); } pre { background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:12px 14px; overflow-x:auto; font-size:12.5px; }
.post-list { display:grid; gap:12px; margin-top:20px; } .post { display:block; text-decoration:none; border:1px solid var(--border); border-radius:12px; padding:16px; background:var(--surface-1); box-shadow:var(--shadow); } .post:hover { background:var(--surface-2); } .post .date { color:var(--text-muted); font-size:12px; } .post h3 { color:var(--text-primary); margin:5px 0; } .post p { margin:0; font-size:14px; } .post-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; } .post-tags span { display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:999px; padding:4px 10px; background:var(--surface-2); color:var(--text-secondary) !important; font:500 11px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif; }
footer { border-top:1px solid var(--border); margin-top:58px; padding-top:18px; font-size:12px; color:var(--text-muted); } footer p { color:var(--text-muted); }
.cv-home { max-width:900px; }
.cv-intro { padding:27px 0 22px; border-bottom:1px solid var(--border); }
.cv-intro .eyebrow { margin-top:0; color:var(--text-secondary); letter-spacing:.1em; }
.cv-home h1 { max-width:none; margin:11px 0 14px; font-size:clamp(38px,5vw,58px); line-height:1.05; letter-spacing:-.035em; }
.cv-intro .meta { align-items:center; gap:9px 22px; margin:0; font-size:13px; }
.cv-intro .meta span { color:var(--text-secondary); }
.cv-actions { margin:20px 0 0; }
.cv-home section { --section-accent:var(--blue); margin:0; padding:0 0 10px; }
.cv-home #profile { margin:27px 0 0; padding:19px 22px 21px; background:linear-gradient(120deg,var(--surface-1),color-mix(in srgb,var(--blue-wash) 25%,var(--surface-1))); border:1px solid var(--border); border-left:3px solid var(--blue); border-radius:10px; box-shadow:var(--shadow); }
.cv-home #education,.cv-home #skills { --section-accent:var(--green); }
.cv-home #experience { --section-accent:var(--orange); }
.cv-home #earlier-experience { --section-accent:var(--text-muted); }
.cv-home #consulting { --section-accent:var(--warning); }
.cv-home h2 { position:relative; margin:45px 0 20px; padding:0 0 10px; color:var(--text-primary); font-size:21px; line-height:1.4; font-weight:650; letter-spacing:-.005em; border-bottom:1px solid var(--grid); }
.cv-home h2::after { content:""; position:absolute; bottom:-1px; left:0; width:46px; height:2px; background:var(--section-accent); }
.cv-home #profile h2 { margin:0 0 10px; padding:0; font-size:17px; border:0; }
.cv-home #profile h2::after { display:none; }
.cv-home #profile p { margin:0 0 4px; font-size:16px; line-height:1.75; color:var(--text-primary); }
.cv-home p,.cv-home li { font-size:14px; line-height:1.7; }
.cv-home .cv-entry { padding:20px 0 0; margin:0 0 20px; border-top:1px solid var(--grid); }
.cv-home .cv-entry:first-of-type { border-top:0; padding-top:0; }
.cv-home #projects .cv-entry { padding:2px 0 0 18px; margin:0 0 30px; border:0; border-left:2px solid var(--blue); }
.cv-entry-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px 24px; }
.cv-entry-head h3 { margin:0; font-size:17px; font-weight:650; line-height:1.4; letter-spacing:-.01em; }
.cv-entry-head span { flex-shrink:0; color:var(--text-muted); font-size:12.5px; font-variant-numeric:tabular-nums; }
.cv-entry-head a { color:var(--text-primary); text-decoration-color:var(--grid); text-underline-offset:4px; text-decoration-thickness:1px; }
.cv-entry-head a:hover { color:var(--blue); text-decoration-color:var(--blue); }
.cv-home #projects .cv-entry-head a { color:var(--blue); text-decoration-color:color-mix(in srgb,var(--blue) 45%,transparent); }
.cv-subtitle { color:var(--text-muted); font-size:13px; margin:3px 0 12px; }
.cv-home ul { padding-left:20px; margin:12px 0; }
.cv-home li { margin:6px 0; }
.cv-home li::marker { color:var(--text-muted); }
.cv-home li strong,.cv-home #education strong { color:var(--text-primary); }
.cv-link { margin:14px 0 0; }
.cv-lines { margin:18px 0 0; padding:3px 16px; background:var(--surface-1); border:1px solid var(--border); border-radius:10px; box-shadow:var(--shadow); }
.cv-lines > div { display:grid; grid-template-columns:195px 1fr; gap:14px; padding:11px 0; border-top:1px solid var(--grid); font-size:13.5px; line-height:1.6; }
.cv-lines > div:first-child { border-top:0; }
.cv-lines dt { color:var(--text-primary); font-weight:600; }
.cv-lines dd { color:var(--text-secondary); margin:0; }
.cv-footer { display:flex; align-items:center; justify-content:space-between; gap:15px 30px; padding-top:18px; margin-top:34px; }
.cv-footer span { color:var(--text-muted); }
.cv-footer nav { width:auto; margin:0; }
.cv-footer nav a { font-size:12.5px; }
@media(max-width:760px){ .top-inner { flex-wrap:wrap; padding:10px 16px; } nav { order:3; width:100%; margin-left:0; } .article-nav { padding:8px 16px 9px; } .top + .wrap section { scroll-margin-top:170px; } .wrap { padding-left:16px; padding-right:16px; } .pair,.project-grid,.media-grid { grid-template-columns:1fr; } .equation { grid-template-columns:minmax(0,1fr) 32px; gap:8px; } h1 { font-size:34px; } }
@media(max-width:760px){ .cv-intro { padding-top:22px; } .cv-home #profile { padding:17px 18px 19px; } .cv-home h2 { margin:37px 0 19px; } .cv-home #profile h2 { margin:0 0 10px; } .cv-entry-head { display:block; } .cv-entry-head span { display:block; margin-top:3px; } .cv-lines > div { grid-template-columns:1fr; gap:3px; } .cv-footer { display:block; } .cv-footer nav { display:flex; margin-top:12px; } }
@media print { .top { position:static; } button,nav { display:none; } body { background:#fff; } .tile,.callout,figure,.tbl-wrap { box-shadow:none; break-inside:avoid; } }

/* Robothand case study: editorial layout, with one dominant visual per section. */
.case-study .demo-hero,.case-study .figure-grid figure { background:transparent; border:0; border-radius:0; padding:0; box-shadow:none; }
.case-study .demo-hero { margin:32px 0 0; }
.case-study .demo-hero video { width:100%; display:block; max-height:620px; background:#111; border-radius:10px; }
.case-study figcaption { margin-top:10px; }
.case-study .note,.case-study .quiet { color:var(--text-muted); font-size:12.5px; }
.case-study .setup-layout { display:grid; grid-template-columns:1.15fr .85fr; gap:42px; align-items:start; margin-top:26px; }
.case-study .setup-layout img { width:100%; display:block; border-radius:8px; }
.case-study .setup-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.case-study .setup-photos figure { margin:0; background:transparent; border:0; border-radius:0; padding:0; box-shadow:none; }
.case-study .setup-photos img { aspect-ratio:4/5; object-fit:cover; }
.case-study .setup-photos a { display:block; cursor:zoom-in; }
.no-scroll { overflow:hidden; }
.lightbox { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; padding:32px; background:rgba(0,0,0,.78); opacity:0; pointer-events:none; transition:opacity .18s ease; }
.lightbox.is-open { opacity:1; pointer-events:auto; }
.lightbox img { max-width:min(1100px,92vw); max-height:88vh; width:auto; height:auto; object-fit:contain; border-radius:8px; box-shadow:0 12px 50px rgba(0,0,0,.35); }
.lightbox-close { position:absolute; top:18px; right:22px; border:0; background:transparent; color:white; font-size:34px; line-height:1; padding:4px 10px; cursor:pointer; }
.case-study .setup-photos figcaption { font-size:12px; font-weight:400; color:var(--text-muted); }
.case-study .minor-heading { margin:0 0 10px; font-size:16px; }
.case-study .signal-flow { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:25px 0; font-size:13px; color:var(--text-primary); }
.case-study .signal-flow span { border-bottom:2px solid var(--blue); padding:7px 0; }
.case-study .signal-flow i { color:var(--text-muted); font-style:normal; }
.case-study .architecture-rationale { border-top:1px solid var(--border); margin-top:28px; padding-top:18px; }
.case-study .architecture-rationale h3 { margin:0 0 12px; font-size:15px; }
.case-study .architecture-rationale p { margin:12px 0; }
.case-study .attenuation-figure { max-width:820px; margin-top:26px; background:transparent; border:0; border-radius:0; padding:0; box-shadow:none; }
.case-study .attenuation-figure img { width:100%; display:block; border-radius:6px; }
.case-study .evidence-lead { display:flex; gap:25px; align-items:baseline; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:20px 0; margin-top:20px; }
.case-study .metric { font-size:42px; font-weight:680; letter-spacing:-.03em; display:block; line-height:1; }
.case-study .metric-label { font-size:12px; color:var(--text-muted); }
.case-study .evidence-lead p { margin:0; max-width:55ch; }
.case-study .metric-cards { display:grid; grid-template-columns:repeat(2,minmax(0,220px)); gap:12px; margin:22px 0 6px; }
.case-study .metric-cards > div { background:var(--surface-1); border:1px solid var(--border); border-radius:10px; padding:14px 16px; }
.case-study .benchmark-explainer { border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:18px 0 20px; margin-top:22px; }
.case-study .benchmark-explainer h3 { margin:0 0 7px; font-size:15px; }
.case-study .benchmark-explainer p { margin:7px 0; }
.case-study .task-list { display:grid; grid-template-columns:1fr 1fr; gap:13px 30px; margin:18px 0; }
.case-study .task-list div { border-left:2px solid var(--blue); padding-left:11px; }
.case-study .task-list strong,.case-study .task-list span { display:block; }
.case-study .task-list strong { font-size:13px; color:var(--text-primary); }
.case-study .task-list span { font-size:12px; color:var(--text-muted); margin-top:2px; }
.case-study .figure-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:38px; margin-top:28px; }
.case-study .figure-grid img { width:100%; display:block; border-radius:6px; }
.case-study .wide-figure { margin-top:28px; }
.case-study .wide-figure img { width:100%; display:block; border-radius:6px; }
.case-study .metric-figures { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:28px; }
.case-study .metric-figures figure { margin:0; background:transparent; border:0; border-radius:0; padding:0; box-shadow:none; }
.case-study .metric-figures img { width:100%; display:block; border-radius:6px; }
.case-study .secondary-video { width:100%; display:block; max-height:600px; background:#111; border-radius:8px; margin-top:22px; }
.case-study .demo-list { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:24px; }
.case-study .demo-list figure { margin:0; }
.case-study .demo-list figure { max-width:680px; }
.case-study .demo-list video { width:100%; display:block; background:#111; border-radius:8px; }
.case-study .limits-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; border-top:1px solid var(--border); margin-top:22px; }
.case-study .limits-grid h3 { margin-top:20px; }
.case-study .technical-notes { border:0; border-top:1px solid var(--border); border-radius:0; padding:16px 0; margin-top:55px; box-shadow:none; background:transparent; }
.case-study .technical-notes summary { color:var(--text-secondary); font-size:13px; }
.case-study .technical-spec { display:grid; grid-template-columns:1fr 1fr; gap:14px 26px; margin:18px 0; }
.case-study .technical-spec span,.case-study .technical-spec strong { display:block; }
.case-study .technical-spec span { color:var(--text-muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.case-study .technical-spec strong { color:var(--text-primary); font-size:13px; font-weight:600; margin-top:3px; }
@media(max-width:760px){ .case-study .setup-layout,.case-study .figure-grid,.case-study .limits-grid,.case-study .demo-list,.case-study .metric-figures { grid-template-columns:1fr; gap:24px; } .case-study .setup-photos { grid-template-columns:repeat(2,minmax(0,1fr)); } .case-study .task-list,.case-study .metric-cards,.case-study .technical-spec { grid-template-columns:1fr; } .case-study .evidence-lead { display:block; } .case-study .evidence-lead p { margin-top:14px; } .case-study .signal-flow { display:grid; grid-template-columns:1fr; gap:5px; } .case-study .signal-flow i { transform:rotate(90deg); justify-self:center; } }
