/* Apple-style dark: black canvas, grouped rounded surfaces, system type, one blue for links */
:root{
  --bg:#000000;
  --surface:#1c1c1e;
  --surface-2:#2c2c2e;
  --text:#f5f5f7;
  --muted:#86868b;
  --line:rgba(255,255,255,.1);
  --link:#2997ff;
  --good:#30d158;
  --bad:#ff453a;
  --sans:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius:18px;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.53;letter-spacing:-.012em;-webkit-font-smoothing:antialiased}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:var(--text);color:var(--bg);padding:6px 10px;border-radius:8px}
.skip:focus{left:12px}

.wrap{max-width:720px;margin:0 auto;padding:0 22px}

/* frosted header */
header{position:sticky;top:0;z-index:10;background:rgba(0,0,0,.72);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
header .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;flex-wrap:wrap}
.home{color:var(--text);font-weight:600;font-size:15px;letter-spacing:-.01em}
.home:hover{text-decoration:none;opacity:.8}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:22px;flex-wrap:wrap}
nav a{color:var(--muted);font-size:13px;letter-spacing:0;transition:color .2s ease}
nav a:hover{color:var(--text);text-decoration:none}
nav a[aria-current="page"]{color:var(--text)}

main.wrap{padding-top:88px;padding-bottom:120px}
footer{border-top:1px solid var(--line);padding:22px 0 44px;color:var(--muted);font-size:12px;letter-spacing:0}

/* type */
h1,h2,h3{font-family:var(--display);font-weight:600;text-wrap:balance;margin:0}
h1{font-size:48px;line-height:1.08;letter-spacing:-.028em}
h2{font-size:24px;line-height:1.17;letter-spacing:-.02em}
h3{font-size:19px;line-height:1.25;letter-spacing:-.016em}
p{margin:0}
.muted{color:var(--muted)}
.small{font-size:14px;letter-spacing:-.006em}
.lede{font-size:21px;line-height:1.38;color:var(--muted);letter-spacing:-.018em;max-width:34ch}
.lede strong{color:var(--text);font-weight:600}
.flow > * + *{margin-top:20px}
section + section{margin-top:80px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:20px}
.section-head a{font-size:15px}

:where(ul.plain, ul.dots, dl.meta){margin:0}
ul.plain{list-style:none;padding:0}
ul.dots{padding-left:20px}
ul.dots li + li{margin-top:8px}
ul.dots li::marker{color:var(--muted)}

/* home */
.now{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);background:var(--surface);border-radius:999px;padding:6px 14px;margin-bottom:28px;letter-spacing:0;flex-wrap:wrap}
.now .dot{width:7px;height:7px;border-radius:50%;background:var(--good);box-shadow:0 0 0 3px rgba(48,209,88,.18)}
.now a{color:var(--text)}

/* grouped list, like iOS settings */
ul.group{list-style:none;padding:0;margin-top:36px;background:var(--surface);border-radius:14px;overflow:hidden}
ul.group li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;font-size:16px}
ul.group li + li{border-top:1px solid var(--line);margin-left:18px;padding-left:0}
ul.group .k{color:var(--muted);width:84px;flex:none;font-size:15px}
ul.group .v{flex:1;min-width:0;overflow-wrap:anywhere}
ul.group .v a{color:var(--text)}
ul.group .chev{color:var(--muted);font-size:20px;line-height:1}
button.action{font:inherit;font-size:15px;color:var(--link);background:none;border:0;padding:0;cursor:pointer}
button.action:hover{text-decoration:underline;text-underline-offset:3px}
button.action:disabled{opacity:.4;cursor:default;text-decoration:none}

.shots{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tile{display:flex;flex-direction:column;gap:12px;color:var(--text)}
.tile:hover{text-decoration:none}
.tile .shot{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.tile:hover .shot{transform:scale(1.015)}
.tile .name{font-weight:600;letter-spacing:-.016em}
.tile .desc{color:var(--muted);font-size:15px;line-height:1.4}
.textlinks{margin-top:28px}
.textlinks li{padding:14px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.textlinks li:last-child{border-bottom:1px solid var(--line)}

/* artwork panels */
.shot{display:block;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/10;background:radial-gradient(120% 90% at 50% 0%, #2a2a2e 0%, #1c1c1e 55%, #141416 100%)}
.shot svg{width:100%;height:100%;display:block}

/* work */
.featured{display:flex;flex-direction:column;gap:44px}
.feature{display:flex;flex-direction:column;gap:14px;color:var(--text)}
.feature:hover{text-decoration:none}
.feature .shot{transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.feature:hover .shot{transform:scale(1.01)}
.feature .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.feature .desc{color:var(--muted)}
.more li{padding:18px 0;border-top:1px solid var(--line)}
.more li:last-child{border-bottom:1px solid var(--line)}
.more .title{font-weight:600}
.stack{font-size:13px;color:var(--muted);margin-top:4px;letter-spacing:0}
.badge{font-size:12px;color:var(--muted);background:var(--surface);border-radius:999px;padding:2px 9px;margin-left:8px;letter-spacing:0;font-weight:400;vertical-align:2px}

/* project page */
.back{font-size:15px}
.label{color:var(--muted);font-size:14px;font-weight:600;letter-spacing:0}
dl.meta{display:grid;grid-template-columns:96px 1fr;background:var(--surface);border-radius:14px;padding:4px 18px;font-size:15px}
dl.meta dt,dl.meta dd{padding:11px 0;border-top:1px solid var(--line)}
dl.meta dt:first-of-type,dl.meta dt:first-of-type + dd{border-top:0}
dl.meta dt{color:var(--muted)}
dl.meta dd{margin:0}
.next{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border-radius:14px;padding:16px 18px;margin-top:80px;color:var(--text)}
.next:hover{text-decoration:none;background:var(--surface-2)}
.next .name{color:var(--link)}

/* experience */
ol.jobs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
ol.jobs > li{background:var(--surface);border-radius:var(--radius);padding:26px 26px 24px;scroll-margin-top:72px}
.when{color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px;letter-spacing:0}
.when .cur{color:var(--good)}
ol.jobs h2{font-size:21px;margin-bottom:14px}
ol.jobs h2 .org{color:var(--muted);font-weight:500}
ol.jobs ul.dots{font-size:16px}
.edu{background:var(--surface);border-radius:var(--radius);padding:24px 26px}

/* about */
.portrait{width:100%;max-width:320px;aspect-ratio:1;object-fit:cover;border-radius:var(--radius);display:block}

/* lab */
.cam{display:block;width:100%;height:auto;border-radius:var(--radius);background:#000;cursor:crosshair;touch-action:manipulation}
.panel{background:var(--surface);border-radius:var(--radius);padding:18px 20px;margin-top:16px;display:flex;flex-direction:column;gap:14px}
.controls .line{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:center}
.controls .key{color:var(--muted);width:60px;flex:none;font-size:15px}
.seg{display:inline-flex;background:#000;border-radius:9px;padding:2px;gap:2px;flex-wrap:wrap}
.seg-btn{font:inherit;font-size:13px;letter-spacing:0;color:var(--text);background:transparent;border:0;border-radius:7px;padding:5px 12px;cursor:pointer;transition:background .2s ease}
.seg-btn:hover{background:rgba(255,255,255,.06)}
.seg-btn[aria-pressed="true"]{background:var(--surface-2);box-shadow:0 1px 3px rgba(0,0,0,.4)}
.ranges{display:grid;grid-template-columns:60px 1fr 1fr 72px;gap:12px 14px;align-items:center;font-size:15px;padding-top:14px;border-top:1px solid var(--line)}
.ranges > span{color:var(--muted)}
.ranges output{font-family:var(--mono);font-size:13px;text-align:right;font-variant-numeric:tabular-nums;color:var(--text)}
input[type=range]{width:100%;accent-color:var(--link);margin:0}
.status{color:var(--muted);font-size:14px;margin-top:12px;letter-spacing:-.006em}
table{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
.tablewrap{background:var(--surface);border-radius:14px;padding:4px 18px;overflow-x:auto}
th,td{text-align:left;padding:11px 0;border-top:1px solid var(--line)}
thead th{border-top:0;color:var(--muted);font-weight:400;font-size:13px;letter-spacing:0}
.pass{color:var(--good)}.fail{color:var(--bad)}
pre{background:var(--surface);border-radius:14px;padding:16px 18px;font-family:var(--mono);font-size:12.5px;line-height:1.7;overflow-x:auto;margin:0;color:#d1d1d6}
.file{position:relative;display:inline-block}
.file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.file:focus-within button{outline:2px solid var(--link);outline-offset:3px;border-radius:6px}

@media (max-width:640px){
  h1{font-size:38px}
  .lede{font-size:19px}
  main.wrap{padding-top:56px;padding-bottom:88px}
  section + section{margin-top:64px}
  .shots{grid-template-columns:1fr}
  .ranges{grid-template-columns:48px 1fr 1fr 62px}
  .controls .key{width:100%}
  ol.jobs > li,.edu{padding:22px 20px}
  nav ul{gap:16px}
}
@media (prefers-reduced-motion: reduce){
  .tile .shot,.feature .shot,.seg-btn,nav a{transition:none}
  .tile:hover .shot,.feature:hover .shot{transform:none}
}
ol.jobs h2 .org a{color:inherit}
/* hobbies, styled like an iOS settings list */
ul.settings{list-style:none;padding:0 0 0 16px;margin-bottom:0;background:var(--surface);border-radius:14px;overflow:hidden}
ul.settings li{display:flex;align-items:center;gap:14px}
ul.settings .icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;flex:none}
ul.settings .icon svg{width:22px;height:22px}
ul.settings .row{flex:1;min-height:50px;display:flex;align-items:center;padding-right:16px;font-size:16px}
ul.settings li + li .row{border-top:1px solid var(--line)}
.portrait{height:auto}
