:root{--paper:#030305;--ink:#dddce4;--muted:#a09dab;--rule:#23212b;--accent:#ed173b;--font:'Space Grotesk',Arial,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow-x:clip;background:var(--paper);color:var(--ink);font:16px/1.6 var(--font)}h1{margin:0;font-size:clamp(64px,min(18vw,28svh),220px);font-weight:700;line-height:1.02;letter-spacing:-.05em;font-kerning:none;position:relative}button,input{font:inherit}button,input{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}#matter{position:fixed;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}.hero{position:relative;isolation:isolate;padding:0 clamp(24px,5vw,80px);height:100svh;display:flex;flex-direction:column;justify-content:center;max-width:1600px;margin:auto}.glyph{display:inline-block;line-height:1;vertical-align:baseline;position:relative;transition:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Hair-and-beard portrait drawn from the supplied personal references. */
.portrait-mark{position:absolute;display:block;left:1.8em;top:-.15em;width:1.8em;height:2.4em;pointer-events:none;z-index:-1}.portrait{position:relative;display:block;width:100%;height:100%;color:#1a140e;opacity:.65}.portrait::before{content:"";position:absolute;inset:0;background:currentColor;mask:url("assets/hair-beard-mark-v3.png") center/100% 100% no-repeat}.portrait img{display:block;width:100%;height:100%;opacity:0}::selection{background:var(--accent);color:#030305}

.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 78% 48%,#2910582d,transparent 55%),radial-gradient(ellipse at 13% 68%,#42091916,transparent 48%)}

.lit-type .glyph,.lit-type .portrait{opacity:0}


.tuning{position:fixed;z-index:20;right:18px;top:18px;width:310px;max-height:calc(100svh - 36px);overflow:auto;padding:20px;background:#0d0b12fa;border:1px solid var(--rule);box-shadow:0 10px 50px #0009;font-size:11px;color:var(--ink);border-radius:8px}.tuning h2{font-size:20px;letter-spacing:-.04em;margin-bottom:6px}.tuning>p{font-size:11px;color:var(--muted);line-height:1.5;margin-bottom:18px}.tuning label{display:grid;grid-template-columns:1fr auto;gap:3px;margin:14px 0}.tuning label input{grid-column:1/-1;width:100%;accent-color:var(--accent)}.tuning output{font-variant-numeric:tabular-nums;font-size:10px}.tuning .tune-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 15px}.tuning button,.tuning a{font:inherit;border:1px solid var(--rule);background:none;border-radius:30px;padding:7px 11px;color:inherit;cursor:pointer}.tuning button:hover,.tuning a:hover{background:var(--ink);color:var(--paper)}.tuning .equation{font-size:10px;line-height:1.6;color:var(--muted);border-top:1px solid var(--rule);padding-top:12px}.tuning pre{white-space:pre-wrap;font:10px/1.6 monospace;margin:12px 0 0}.tuning details>summary{cursor:pointer}.tuning .metrics{font-variant-numeric:tabular-nums;font-size:10px;opacity:.6;margin-top:12px}
#name{isolation:isolate}.name-dot{text-shadow:none;display:inline-block;position:relative;line-height:1;color:transparent}.name-dot::before{content:"";position:absolute;left:50%;top:76%;width:clamp(2.6px,.036em,8px);height:clamp(2.6px,.036em,8px);transform:translate(-50%,-50%);clip-path:polygon(96.2% 69.1%,69.1% 96.2%,30.9% 96.2%,3.8% 69.1%,3.8% 30.9%,30.9% 3.8%,69.1% 3.8%,96.2% 30.9%);background:radial-gradient(circle at 28% 26%,#ffe5ee 0 4%,transparent 12%),conic-gradient(#fa2451,#6c031d,#ff6282,#b90730,#ff315c,#56051e,#fa2451);filter:drop-shadow(0 0 2px #ff244f8a)}.lit-type .name-dot::before{opacity:0}

.motion-active body{-webkit-user-select:none;user-select:none}.motion-active .tuning,.motion-active input,.motion-active textarea{-webkit-user-select:text;user-select:text}.motion-toggle{position:fixed;z-index:15;top:24px;right:clamp(24px,10vw,160px);padding:7px 11px;border:1px solid #302b38;border-radius:3px;background:#09070dde;color:#bdb8c5;font:10px/1.4 'SFMono-Regular',Consolas,monospace;letter-spacing:.04em;cursor:pointer}.motion-toggle:hover{color:var(--ink);border-color:#655b70}.motion-toggle:disabled{cursor:default;color:var(--muted)}@media(max-width:640px){.motion-toggle{top:20px}}

@media(max-width:640px){.tuning{right:10px;top:10px;width:280px;max-height:calc(100svh - 20px)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* No animation, canvas, web font, or physics required for the restricted-browser view. */
.static-scene #name{color:#dddce4;text-shadow:0 -1px 0 #ffffff24,0 2px 8px #0006}
.static-scene .portrait{color:#1a140e}.portrait::before{-webkit-mask:url("assets/hair-beard-mark-v3.png") center/100% 100% no-repeat}
#static-matter{position:absolute;top:0;left:0;right:0;height:100svh;z-index:5;pointer-events:none;overflow:hidden}
.static-module{position:absolute;display:block;clip-path:polygon(18% 0,75% 5%,100% 39%,85% 87%,42% 100%,0 66%,3% 22%);background:conic-gradient(from 30deg at 45% 45%,#17161d 0 16%,#55545f 16% 29%,#25252e 29% 48%,#0d0d12 48% 66%,#383841 66% 84%,#75757f 84%);filter:drop-shadow(2px 3px 2px #0008)}
.static-ruby{clip-path:polygon(96.2% 69.1%,69.1% 96.2%,30.9% 96.2%,3.8% 69.1%,3.8% 30.9%,30.9% 3.8%,69.1% 3.8%,96.2% 30.9%);background:conic-gradient(#ff6282,#6c031d,#ffe5ee,#b90730,#ff315c,#56051e,#ff6282);filter:drop-shadow(0 0 2px #ff244f8a)}

.projects{position:relative;z-index:6;max-width:1600px;margin:0 auto;padding:0 clamp(24px,5vw,80px) clamp(64px,10vw,140px)}
.projects h2{margin:0 0 24px;color:var(--muted);font:11px/1.5 'SFMono-Regular',Consolas,monospace;letter-spacing:.14em;text-transform:uppercase}
.project-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--rule)}
.project-list li{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:90px;border-bottom:1px solid var(--rule)}
.project-list a{color:var(--ink);text-decoration:none;outline-offset:6px}
.project-list a:hover{color:var(--accent)}
.project-list a:focus-visible{outline:2px solid var(--accent)}
.project-title{padding:20px 0;font-size:clamp(21px,3vw,32px);font-weight:500;letter-spacing:-.035em;line-height:1.2}
.project-title span{display:inline-block;margin-left:8px;color:var(--accent);font-size:.7em}
.project-source{flex-shrink:0;padding:14px 0;font:11px/1.5 'SFMono-Regular',Consolas,monospace;color:var(--muted)!important}
.project-source:hover{color:var(--accent)!important}
