:root { --ink: #333; --heading: #000; --quiet: #888; }
::selection { background: #fff1a8; color: #302817; text-shadow: none; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.name p, .muted { color: var(--quiet); }
 .copy-email { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 108px; height: 36px; padding: 6px 14px; margin-left: 0; vertical-align: middle; font-family: 'MS Sans Serif', Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px; text-align: center; word-spacing: 2px; color: #000; background: #BFBFBF; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 #FFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DBDBDB; }
.copy-email:hover { background: #BFBFBF; text-decoration: none; box-shadow: inset 0 0 0 2px #000, inset -4px -4px 0 #000, inset 4px 4px 0 #FFF, inset -6px -6px 0 #808080, inset 6px 6px 0 #DBDBDB; }
.copy-email:active { padding: 7px 13px 5px 15px; box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #FFF, inset 2px 2px 0 #808080, inset -2px -2px 0 #DBDBDB; }
.copy-email:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.copy-feedback { margin-left: 8px; color: var(--quiet); font-size: 14px; }
/* One reveal system for the whole page. Content remains visible without JS. */
.emblem { height: 44px; font-size: 36px; line-height: 44px; margin-bottom: 32px; }
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-visible { animation: arrive 1s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--reveal-delay, 0s); }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1; transform: none; } .reveal-visible { animation: none; } }

nav a { font-family: inherit; font-size: 14px; }

nav a { display: inline-flex; align-items: center; gap: 4px; }

.section-index{position:fixed;right:32px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:0;z-index:5}
.section-index button{width:48px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;background:none;border:0;cursor:pointer}
.section-index button::before{content:'';width:28px;height:8px;background:#f3f3f3;border-radius:4px;transition:width .45s cubic-bezier(.22,1,.36,1),background .35s}
.section-index button.is-active::before{width:44px;background:#777}
.section-index button:hover::before{background:#a7a7a7}
.section-index button:focus-visible{outline:2px solid #8050b5;outline-offset:2px}
.resume-open .section-index{visibility:hidden}
.intro,#work,.drawing,footer{scroll-margin-top:48px}
@media(max-width:900px){.section-index{right:6px}.section-index button{width:18px}.section-index button::before{width:10px;height:5px}.section-index button.is-active::before{width:18px}}
@media(prefers-reduced-motion:reduce){.section-index button::before{transition:none}}
.section-index button{width:32px;height:22px;position:relative}
.section-index button::before{width:16px;height:4px;border-radius:0}
.section-index button.is-active::before{width:26px}
.section-index button::after{content:attr(data-tooltip);position:absolute;right:calc(100% + 10px);top:50%;transform:translate(4px,-50%);background:#000;color:#fff;font:13px/20px ui-sans-serif,system-ui,sans-serif;padding:4px 8px;border:1px solid #000;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s}
.section-index button:hover::after,.section-index button:focus-visible::after{opacity:1;visibility:visible;transform:translate(0,-50%)}
@media(max-width:900px){.section-index button{width:18px}.section-index button::before{width:8px;height:3px}.section-index button.is-active::before{width:14px}}

@media(min-width:901px) and (max-width:1100px){.section-index{right:6px}.section-index button{width:18px}.section-index button::before{width:8px;height:3px}.section-index button.is-active::before{width:14px}}

.croissant-arrival{position:fixed;inset:0;z-index:1000;overflow:hidden;pointer-events:none}.croissant-arrival span{position:absolute;left:0;top:50%;display:block;font-size:clamp(320px,60vw,800px);line-height:1;filter:drop-shadow(0 18px 20px #00000012);animation:croissant-flight .5s cubic-bezier(.4,0,.6,1) both;will-change:transform}@keyframes croissant-flight{from{transform:translate(-130%,-50%) rotate(-25deg)}to{transform:translate(115vw,-65%) rotate(65deg)}}@media(prefers-reduced-motion:reduce){.croissant-arrival{display:none}}

nav a,.project-title a,.case-next a{transition:color 240ms ease,text-decoration-color 240ms ease}.copy-email{transition:box-shadow 180ms ease,background 180ms ease}
#resume-dialog[open],#recap-dialog[open]{animation:overlay-arrive 320ms cubic-bezier(.22,1,.36,1) both}@keyframes overlay-arrive{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){#resume-dialog[open],#recap-dialog[open]{animation:none}}

/* Dividers join the same reveal sequence without moving the whole project row. */
.project{position:relative;border-top-color:transparent}.project:last-child{border-bottom-color:transparent}.project::before,.project:last-child::after{content:"";position:absolute;left:0;right:0;height:1px;background:#eee;pointer-events:none}.project::before{top:-1px}.project:last-child::after{bottom:-1px}.project.reveal-pending{opacity:1;transform:none}.project.reveal-pending::before,.project.reveal-pending::after{opacity:0}.project.reveal-visible{animation:none}.project.reveal-visible::before,.project.reveal-visible::after{animation:divider-arrive 1s cubic-bezier(.22,1,.36,1) both;animation-delay:var(--reveal-delay,0s)}@keyframes divider-arrive{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.project.reveal-pending::before,.project.reveal-pending::after{opacity:1}.project.reveal-visible::before,.project.reveal-visible::after{animation:none}}

/* The direct-load bootstrap prevents a visible frame before reveal setup. */
.page-preparing body{visibility:hidden}

/* Line-by-line entry uses the existing reveal cycle and preserves inline links. */
.reveal-word{display:inline-block;vertical-align:baseline}
.line-reveal.reveal-pending,.line-reveal.reveal-visible{opacity:1;transform:none;animation:none}
.line-reveal.reveal-pending .reveal-word{opacity:0;transform:translateY(14px)}
.line-reveal.reveal-visible .reveal-word{animation:arrive 1s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--reveal-delay,0s) + var(--line-delay,0s))}
@media(prefers-reduced-motion:reduce){.line-reveal .reveal-word{animation:none!important;opacity:1!important;transform:none!important}}

/* Testing controls sit independently of the content and reveal targets. */
/* Developer console has its own dark theme and typography. */
.test-console{color-scheme:dark;position:fixed;left:20px;bottom:20px;z-index:50;width:300px;background:#111318;color:#dce1ea;border:1px solid #323743;border-radius:10px;box-shadow:0 16px 48px #0005,0 2px 8px #0003;font:12px/1.55 ui-sans-serif,system-ui,sans-serif;overflow:hidden}
.test-console summary{display:flex;align-items:center;gap:9px;padding:12px 14px;cursor:pointer;list-style:none;font:600 12px/18px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.025em;color:#eef2f8;background:#1a1d24;user-select:none}
.test-console summary::-webkit-details-marker{display:none}
.test-console summary::before{content:'>_';color:#75d6b0;font-weight:700}
.test-console summary::after{content:'+';margin-left:auto;color:#8992a3;font-size:16px}.test-console[open] summary::after{content:'−'}
.test-console[open] summary{border-bottom:1px solid #323743}
.test-console-body{display:grid;gap:9px;padding:16px 14px 14px}
.test-console label{color:#9ba5b6;font:500 10px/16px ui-sans-serif,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;margin-top:3px}
.test-console select,.test-console button{box-sizing:border-box;width:100%;height:36px;font:12px/18px ui-sans-serif,system-ui,sans-serif;padding:8px 10px;border:1px solid #3a4250;border-radius:5px;background:#20242d;color:#e2e8f1;box-shadow:none;transition:background .15s,border-color .15s}
.test-console select{cursor:pointer}.test-console select:hover{border-color:#677489}.test-console select option{background:#20242d;color:#e2e8f1}
.test-console button{cursor:pointer;margin-top:5px;background:#243c34;border-color:#365d4f;color:#a2f0cd}.test-console button:hover{background:#2b4b3f;border-color:#548f76}.test-console button:active{background:#1e322b}
.test-console p{margin:5px 0 0;color:#8791a2;font:10px/1.6 ui-sans-serif,system-ui,sans-serif}
.test-console output{display:block;min-height:15px;font:10px/15px ui-sans-serif,system-ui,sans-serif;color:#83daba}.test-console output:empty{display:none}
.test-console :focus-visible{outline:2px solid #75d6b0;outline-offset:2px}.test-console ::selection{background:#355c4e;color:#fff}
@media(max-width:620px){.test-console{left:12px;bottom:12px;width:min(280px,calc(100vw - 24px))}.test-console:not([open]){width:190px}}
@media(prefers-reduced-motion:reduce){.test-console select,.test-console button{transition:none}}

/* Console-selectable hint variants, shared by home, About and project maps. */
.section-index.section-index[data-hint-mode="text"]{width:max-content;align-items:stretch;gap:4px}
.section-index.section-index[data-hint-mode="text"] button{font:13px/1.5 ui-sans-serif,system-ui,sans-serif;width:auto;height:auto;min-height:30px;padding:5px 0;display:block;text-align:right;color:#999;white-space:nowrap;background:none;transition:color .32s}
.section-index.section-index[data-hint-mode="text"] button.is-active{color:#111}.section-index.section-index[data-hint-mode="text"] button:hover{color:#8050b5}
.section-index.section-index[data-hint-mode="text"] button::before,.section-index.section-index[data-hint-mode="text"] button::after{display:none}
.section-index.section-index[data-hint-mode="lines"]{width:32px;display:flex;flex-direction:column;gap:0;padding:0;align-items:center}
.section-index.section-index[data-hint-mode="lines"] button{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:22px;min-height:0;padding:0;font-size:0;color:transparent;line-height:0}
.section-index.section-index[data-hint-mode="lines"] button::before{display:block;content:'';width:16px;height:4px;background:#e5e5e5;border-radius:0;transition:width .45s cubic-bezier(.22,1,.36,1),background .35s}
.section-index.section-index[data-hint-mode="lines"] button.is-active::before{width:26px;background:#777}.section-index.section-index[data-hint-mode="lines"] button:hover::before{background:#a7a7a7}
.section-index.section-index[data-hint-mode="lines"] button::after{display:block;content:attr(data-tooltip);position:absolute;right:calc(100% + 10px);top:50%;transform:translate(4px,-50%);background:#000;color:#fff;font:13px/20px ui-sans-serif,system-ui,sans-serif;padding:4px 8px;border:1px solid #000;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s,transform .15s}
.section-index.section-index[data-hint-mode="lines"] button:hover::after,.section-index.section-index[data-hint-mode="lines"] button:focus-visible::after{opacity:1;visibility:visible;transform:translate(0,-50%)}
.project-map-shell.hints-lines{position:fixed;left:auto;right:32px;top:50%;transform:translateY(-50%);width:32px;max-height:calc(100dvh - 64px);margin:0;overflow:visible}
@media(max-width:1199px){.project-map.section-index.section-index[data-hint-mode="text"]{width:100%;flex-direction:row;flex-wrap:wrap;gap:8px 20px}.project-map.section-index.section-index[data-hint-mode="text"] button{text-align:left;white-space:normal}}
@media(max-width:900px){.section-index.section-index[data-hint-mode="text"]{right:12px}.section-index.section-index[data-hint-mode="lines"]{right:6px;width:18px}.section-index.section-index[data-hint-mode="lines"] button{width:18px}.section-index.section-index[data-hint-mode="lines"] button::before{width:8px;height:3px}.section-index.section-index[data-hint-mode="lines"] button.is-active::before{width:14px}.project-map-shell.hints-lines{right:6px;width:18px}}
@media(prefers-reduced-motion:reduce){.section-index.section-index[data-hint-mode] button,.section-index.section-index[data-hint-mode] button::before{transition:none}}

.test-console summary{cursor:grab;touch-action:none}.test-console.is-dragging summary{cursor:grabbing}.test-console.is-dragging{user-select:none}.test-console.is-dragging *{cursor:grabbing}

/* Animated words retain their link's colour and decoration. */
a .reveal-word{color:inherit;text-decoration:inherit;text-underline-offset:inherit;text-decoration-thickness:inherit}

/* Fade the sky independently while the croissant completes its landing. */
.croissant-arrival{background:#fff;opacity:1;transition:opacity 180ms cubic-bezier(.22,1,.36,1)}
.croissant-arrival::before{content:'';position:absolute;inset:0;background:#fff var(--intro-wallpaper,url('/assets/cloud-hill-intro.png')) center center/cover no-repeat;opacity:0;transition:none}
.croissant-arrival.is-docking{background:transparent}
.croissant-arrival.is-docking::before{opacity:1}
.croissant-arrival.is-docking.is-revealing::before{opacity:0;transition:opacity 550ms cubic-bezier(.22,1,.36,1)}
.croissant-arrival span{animation:none;transform:translate(-130%,-50%) rotate(-25deg)}
.croissant-arrival.is-flying span{animation:croissant-flight .5s cubic-bezier(.4,0,.6,1) both}
.croissant-arrival.is-leaving{opacity:0}

/* Use the supplied transparent pixel croissant at both icon and intro scale. */
.emblem img{display:block;width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
.croissant-arrival span{width:clamp(420px,80vw,1080px);font-size:0;line-height:0}
.croissant-arrival span img{display:block;width:100%;height:auto;image-rendering:pixelated}

/* The animated croissant hands off to the identical homepage icon. */
.emblem.croissant-docking{opacity:0;transform:none;animation:none}
.emblem.croissant-landed{opacity:1;transform:none;animation:none}
.croissant-arrival.is-docking span{animation:none}

.project-map button{font-size:13px}.name p+p{margin-top:4px}main:focus{outline:none}

/* Keep navigation sharp above the viewport frost. */
.site-header{position:sticky;top:-32px;z-index:10}
@media(max-width:620px){.site-header{top:-16px}}

p,h1,h2,h3,li,figcaption{text-wrap:pretty;orphans:3;widows:3}

/* Passed and upcoming headings bracket the currently scrolling section. */
.home-scroll-stack{position:fixed;inset:0 auto 0 16px;width:174px;z-index:9;pointer-events:none;display:block}
.home-scroll-stack button{position:absolute;top:0;left:0;width:174px;padding:0;border:0;background:none;text-align:left;font:13px/22px ui-sans-serif,system-ui,sans-serif;color:#999;pointer-events:auto;cursor:pointer;will-change:transform}
.home-scroll-stack button.is-subsection{padding-left:16px}.home-scroll-stack button.is-active{color:#111}.home-scroll-stack button:hover{color:#8050b5}
.home-scroll-stack[data-mode="lines"] button{font-size:0}.home-scroll-stack[data-mode="lines"] button::before{content:'';display:block;width:16px;height:4px;background:#e5e5e5}.home-scroll-stack[data-mode="lines"] button.is-active::before{width:26px;background:#777}
@media(min-width:901px){body[data-scroll-behavior="stacked"]>.section-index{display:none}}
@media(max-width:900px){.home-scroll-stack{display:none}}

.home-scroll-stack button{transition:color .25s ease}
@media(prefers-reduced-motion:reduce){.home-scroll-stack button{transition:none}}

@media(min-width:901px){body[data-scroll-behavior="stacked"] .project-map-shell{display:none}}

body[data-scroll-behavior="original"] .home-scroll-stack{display:none}
body[data-scroll-behavior="stacked"]>.section-index,body[data-scroll-behavior="stacked"] .project-map-shell{display:none}
@media(max-width:900px){body[data-scroll-behavior="stacked"] .home-scroll-stack{display:block;left:auto!important;right:6px;width:18px}.home-scroll-stack button{width:18px;padding:0!important;font-size:0}.home-scroll-stack button::before{content:'';display:block;width:8px;height:3px;background:#e5e5e5}.home-scroll-stack button.is-active::before{width:14px;background:#777}}

#home{scroll-margin-top:120px}


.viewport-blur-top{background:linear-gradient(to top,rgba(255,255,255,.38),rgba(255,255,255,0))}

.site-header nav a{display:inline-flex;align-items:center;gap:7px}.nav-icon{width:20px;height:20px;object-fit:contain;image-rendering:pixelated;flex:none}

/* Mobile navigation and quieter viewport furniture. */
@media(max-width:620px){
.site-header{padding-left:20px;padding-right:20px;top:-16px}
.site-header nav{flex-wrap:nowrap;justify-content:space-between;gap:8px}
.site-header nav a{min-height:44px;white-space:nowrap;gap:5px;font-size:13px}
.site-header .nav-icon{width:18px;height:18px}
.viewport-blur{height:48px}
.viewport-blur-top{background:linear-gradient(to top,rgba(255,255,255,.45),transparent)}
.home-scroll-stack{opacity:.45}
body[data-scroll-behavior="stacked"] .home-scroll-stack{right:2px;width:16px}
.home-scroll-stack button{width:16px;min-height:24px}
.home-scroll-stack button::before{width:5px!important;height:2px!important}
.home-scroll-stack button.is-active::before{width:9px!important}
.section-index.section-index[data-hint-mode="lines"]{opacity:.45;right:2px}
}
@media(max-width:360px){.site-header{padding-left:16px;padding-right:16px}.site-header nav a{font-size:12px;gap:4px}.site-header .nav-icon{width:16px;height:16px}}

@media(max-width:900px){body .home-scroll-stack,body .section-index,body .project-map-shell{display:none!important}}

/* Remove the original right-edge section markers. */
body .section-index,body .project-map-shell{display:none!important}

/* Compact mobile reading size. */
@media(max-width:620px){:root{font-size:14px}main p,main h1,main h2,main h3,main li,main figcaption,footer,footer a,footer p,footer h2,.project-title>span{font-size:14px}}

@media(max-width:620px){.site-header nav{justify-content:flex-start;gap:24px}}

.nav-art-short{display:none}.site-header nav .hiring-link{margin-left:auto;color:#a9602b;padding:0 0 2px;border-bottom:1px solid #d9c1ab}.site-header nav .hiring-link:hover,.site-header nav .hiring-link[aria-current="page"]{color:#111;border-bottom-color:#111}@media(max-width:620px){.site-header nav{gap:24px}.nav-art-full{display:none}.nav-art-short{display:inline}.site-header nav .hiring-link{margin-left:0;padding:0;border-bottom:0}}
