@font-face{font-family:'Geist Sans';src:url('./assets/geist-sans-variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'Stack Sans';src:url('./assets/stack-sans-text-variable.ttf') format('truetype');font-style:normal;font-weight:200 700;font-display:swap}
:root{color-scheme:dark;--background:#000;--surface:#18181a;--raised:#232326;--border:#303034;--text:#e6e6e8;--secondary:#aaaab2;--muted:#85858f;--wireframe:#27272a;--content:640px;--section-gap:64px;--control-radius:8px;--preview-radius:12px;--ease:cubic-bezier(.22,1,.36,1)}
:root[data-theme=light]{color-scheme:light;--background:#fafafa;--surface:#f1f1f2;--raised:#e6e6e9;--border:#d6d6da;--text:#242428;--secondary:#62626b;--muted:#72727c;--wireframe:#e0e0e4}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:36px}body{margin:0;background:var(--background);color:var(--text);font-family:'Geist Sans',system-ui,sans-serif;font-size:15px;line-height:24px;-webkit-font-smoothing:antialiased;transition:background-color .25s,color .25s}body:has(dialog[open]){overflow:hidden}::selection{background:var(--text);color:var(--background)}button,a,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,.project:focus-visible{outline:2px solid var(--secondary);outline-offset:5px}button{border:0}button:disabled{opacity:.4;cursor:default}.icon{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.sprite{display:none}.page{max-width:var(--content);margin:0 auto;padding:54px 0 156px}.masthead{display:flex;align-items:center;justify-content:space-between;font-size:13px;line-height:20px;margin-bottom:64px}.identity{display:flex;align-items:center;gap:12px;color:var(--secondary)}.mark{width:24px;height:24px;color:var(--text)}.year{color:var(--muted)}.header-actions{display:flex;gap:16px;align-items:center}.text-button{padding:12px 0;background:transparent;font-size:13px;line-height:20px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;transition:text-decoration-color .2s}.text-button:hover{text-decoration-color:var(--secondary)}.divider{height:16px;width:1px;background:var(--border)}.theme-button,.close-button{height:44px;width:44px;display:grid;place-items:center;background:transparent;color:var(--secondary);border-radius:50%;transition:background .2s,color .2s}.theme-button{margin-right:-14px}.theme-button:hover,.close-button:hover{background:var(--raised);color:var(--text)}.theme-button:active{transform:scale(.92)}main{display:flex;flex-direction:column;gap:var(--section-gap)}section{scroll-margin-top:36px}h1,h2,h3,p{margin:0}h1{font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.02em}h2{font-size:15px;line-height:20px;font-weight:500}h3{font-size:14px;line-height:20px;font-weight:400}.intro{display:flex;flex-direction:column;gap:24px;animation:arrive .6s var(--ease) both}.intro p{color:var(--secondary);max-width:540px}.intro .role{font-size:13px;line-height:22px;margin-top:6px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:24px}.meta{font-size:12px;line-height:20px;color:var(--muted)}.projects{display:grid;grid-template-columns:1fr 1fr;gap:16px}.project{min-width:0;border-radius:var(--preview-radius);transition:transform .25s var(--ease)}.project:hover{transform:translateY(-2px)}.wireframe{height:184px;background:var(--wireframe);border-radius:var(--preview-radius);transition:background .25s}.project:hover .wireframe{background:color-mix(in srgb,var(--wireframe) 92%,var(--text))}.project h3{margin-top:16px}.project p{margin-top:16px;font-size:13px;line-height:20px;color:var(--secondary)}#notes .section-head{margin-bottom:20px}.notes-list details{border-bottom:1px solid var(--border)}summary{display:flex;gap:16px;align-items:center;min-height:52px;list-style:none;cursor:pointer;font-size:14px;line-height:22px;border-radius:3px;transition:color .2s}summary::-webkit-details-marker{display:none}summary>span:first-child{flex:1}summary .meta{width:90px;text-align:right;flex-shrink:0}summary .icon{width:14px;height:14px;color:var(--secondary);transition:transform .2s var(--ease)}summary:hover{color:var(--secondary)}details[open] summary .icon{transform:rotate(90deg)}.note-body{padding:4px 30px 24px 0;color:var(--secondary);font-size:14px;line-height:23px;max-width:540px}.note-body p+p{margin-top:12px}.contact{display:flex;align-items:center;justify-content:space-between;gap:24px}.contact h2{line-height:24px;font-weight:400}.contact p{font-size:13px;line-height:20px;color:var(--secondary);margin-top:6px}.contact-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap;padding:11px 16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--control-radius);font-size:13px;line-height:20px;transition:background .2s,border-color .2s,transform .2s}.contact-button:hover{background:var(--raised);border-color:var(--muted)}.contact-button:active{transform:translateY(1px)}.skip-link{position:fixed;z-index:20;top:12px;left:12px;padding:10px 16px;background:var(--text);color:var(--background);border-radius:8px;transform:translateY(-200%)}.skip-link:focus{transform:none}dialog{width:min(420px,calc(100% - 40px));padding:24px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 80px #00000040}dialog::backdrop{background:#00000088;backdrop-filter:blur(4px)}dialog[open]{animation:arrive .2s var(--ease)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-10px -10px 12px 0}dialog p{font-size:14px;line-height:23px;color:var(--secondary);margin-bottom:24px}.close-button{flex-shrink:0}.close-dialog{width:100%}@keyframes arrive{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1000px){.page{min-height:1200px}}@media(max-width:720px){.page{padding:28px 24px 140px}.masthead{margin-bottom:48px}.identity{gap:8px}.header-actions{gap:12px}main{gap:48px}.intro{gap:24px}.project p{margin-top:8px}.contact{align-items:flex-start}.section-head .meta{font-size:11px}}@media(max-width:480px){.projects{grid-template-columns:1fr;gap:32px}.wireframe{height:auto;aspect-ratio:312/184}.section-head{gap:12px}.contact{flex-direction:column;gap:20px}.contact-button{width:100%}summary{gap:10px;min-height:64px}summary .meta{width:auto;font-size:11px}summary>span:first-child{max-width:220px}.year{display:none}.note-body{padding-right:0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.project:hover{transform:none}}

/* Compact portfolio navigation. */
.masthead{justify-content:flex-end;margin-bottom:48px}
.side-nav{--indicator-x:88px;--indicator-y:14.5px;position:fixed;z-index:10;top:50%;right:calc(50% + 376px);transform:translateY(-50%);width:140px;display:flex;flex-direction:column}
.side-nav a{display:flex;align-items:center;height:30px;padding:0 12px;font-size:14px;line-height:20px;font-weight:500;color:var(--muted);border-radius:6px;transition:color .15s}
.side-nav a:hover,.side-nav a[aria-current]{color:var(--text)}
.nav-indicator{position:absolute;top:0;left:0;width:5px;height:5px;border-radius:50%;background:var(--text);transform:translate(var(--indicator-x),var(--indicator-y));transform-origin:center;pointer-events:none}

@media(max-width:1100px){.side-nav{right:calc(50% + 336px);width:116px}}
@media(max-width:960px){.side-nav{top:auto;bottom:max(20px,env(safe-area-inset-bottom));right:auto;left:50%;transform:translateX(-50%);width:auto;flex-direction:row;gap:4px;padding:5px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 6px 20px #00000030}.side-nav a{height:40px;padding:0 22px 0 10px;font-size:12px;font-weight:400;white-space:nowrap}.side-nav a[aria-current]{background:transparent}}
@media(max-width:480px){.side-nav{bottom:max(18px,env(safe-area-inset-bottom))}.side-nav a{padding:0 20px 0 8px}}
@media(max-width:350px){.side-nav a{padding:0 18px 0 7px}}

/* Requested typography: Stack Sans headings, Geist Sans interface and body. */
h1,h2,h3,h4,h5,h6{font-family:'Stack Sans',system-ui,sans-serif}
input,textarea,select{font:inherit}

/* Floating profile dock with a scroll-driven ring. */
.bottom-dock{position:fixed;z-index:15;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;padding:5px;border:1px solid var(--border);border-radius:999px;background:color-mix(in srgb,var(--background) 88%,transparent);backdrop-filter:blur(16px);box-shadow:0 4px 20px #00000030;color:var(--secondary)}
.dock-button,.resume-button{height:44px;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;border-radius:999px;transition:background .2s,color .2s,transform .2s}
.dock-button{width:44px;flex-shrink:0}.resume-button{padding:0 15px;font-size:13px}.dock-button .icon,.brand-icon{width:18px;height:18px}
.dock-button:hover,.resume-button:hover{color:var(--text);background:var(--raised)}.dock-button:active,.resume-button:active{transform:scale(.94)}
.dock-divider{height:18px;width:1px;margin:0 5px;background:var(--border)}
.scroll-progress{width:38px;height:44px;display:grid;place-items:center;flex-shrink:0}.scroll-progress svg{width:25px;height:25px;transform:rotate(-90deg)}.scroll-progress circle{fill:none;stroke-width:2;stroke-linecap:round}.progress-track{stroke:var(--border)}.progress-fill{stroke:var(--text);stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--progress,0))}
@media(max-width:960px){.side-nav{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 68px)}.bottom-dock{bottom:max(18px,env(safe-area-inset-bottom))}.page{padding-bottom:200px}}
@media(max-width:350px){.resume-button{padding:0 10px}.dock-divider{margin:0 3px}.dock-button{width:40px}.scroll-progress{width:32px}}

.scroll-control{position:relative;width:44px;height:44px;flex-shrink:0}.scroll-control .scroll-progress{width:44px}.scroll-control .back-to-top{position:absolute;inset:0;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:transparent;color:var(--text);opacity:0;transform:translateY(4px) scale(.8);transition:opacity .25s,transform .3s var(--ease);pointer-events:none}.scroll-control .back-to-top .icon{width:14px;height:14px}.at-bottom .scroll-control .back-to-top{opacity:1;transform:none;pointer-events:auto}.back-to-top:disabled{cursor:default}
.bottom-dock .resume-button{position:relative;isolation:isolate;padding:1.5px;height:44px;overflow:hidden;color:var(--text);background:#999;border-radius:999px;margin-right:6px;box-shadow:0 3px 10px #00000030}.metal-border{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;background:linear-gradient(135deg,#777,#f7f7f7 24%,#666 40%,#ccc 56%,#fff 72%,#777)}.metal-border>div{width:100%;height:100%}.resume-inner{display:flex;align-items:center;gap:8px;height:41px;padding:0 16px;border-radius:999px;background:var(--background);font-size:13px;font-weight:500;transition:background .2s}.resume-button:hover .resume-inner{background:var(--surface)}
@media(max-width:480px){.bottom-dock .dock-button{width:38px}.dock-divider{margin:0 3px}.bottom-dock .resume-button{margin-right:3px}.resume-inner{padding:0 14px}}
@media(max-width:350px){.bottom-dock .dock-button{width:33px}.dock-divider{margin:0 2px}.resume-inner{padding:0 12px}.bottom-dock{padding:4px}.scroll-control,.scroll-control .scroll-progress,.scroll-control .back-to-top{width:40px}}

/* Figma 22:4404 — measured narrow content and larger dock. */
@font-face{font-family:Inter;src:url('./assets/inter-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('./assets/inter-medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
:root{--background:#0a0a0a;--text:#e4e4e7;--secondary:#a1a1aa;--muted:#a1a1aa;--wireframe:#1d1d1d;--content:560px;--section-gap:80px}
:root[data-theme=light]{--background:#fafafa;--wireframe:#e0e0e4;--text:#242428;--secondary:#62626b;--muted:#72727c}
body{min-height:100svh;font-family:Inter,system-ui,sans-serif;line-height:22px}
.page{width:min(var(--content),calc(100% - 48px));max-width:none;margin:0 auto;padding:120px 0 140px;min-height:100svh}
main{display:block}
h1,h2,h3,h4,h5,h6{font-family:Inter,system-ui,sans-serif}
h1{font-size:18px;line-height:24px;font-weight:500;letter-spacing:-.09px}
.intro{width:100%;max-width:486px;margin:0;gap:16px}
.intro-copy{display:flex;flex-direction:column;gap:16px}
.intro p{font-size:15px;line-height:22px;max-width:486px}
.intro p+p{max-width:486px}
.work-section{margin-top:48px;position:relative;padding-top:49px}
.work-section::before{content:"";position:absolute;left:0;top:0;width:508px;max-width:calc(100vw - 48px);height:1px;background:#1e1e1e}
:root[data-theme=light] .work-section::before{background:var(--border)}
.work-section h2{font-size:14.5px;line-height:21.75px;font-weight:500;letter-spacing:0;margin:0 0 22px}
.projects{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wireframe{width:100%;height:184px;border-radius:12px;background:var(--wireframe);aspect-ratio:auto}
.side-nav{top:calc(50% + .5px);left:calc(50vw - 520px);right:auto;transform:translateY(-50%);width:140px}
.side-nav a{font-size:13px;line-height:20px;height:30px;letter-spacing:0}
.bottom-dock{left:calc(50vw + .3125px);width:384.625px;height:63px;padding:5.375px 5.75px;border-width:1.125px;bottom:max(24px,env(safe-area-inset-bottom));background:#131313;border-radius:111.375px}
:root[data-theme=light] .bottom-dock{background:#f1f1f2}
.bottom-dock .resume-button{width:102px;height:49px;flex-shrink:0;padding:1.6875px;margin-right:6.75px;font-family:'Geist Sans',system-ui,sans-serif}
.resume-inner{width:99px;height:46px;flex-shrink:0;justify-content:center;padding:0 18px;font-size:14.625px;line-height:27px;background:#000}
:root[data-theme=light] .resume-inner{background:var(--background)}
.bottom-dock .dock-button{width:50px;height:50px}
.dock-icon-slot{width:24.242424px;height:24.242424px;display:grid;place-items:center;flex-shrink:0}
.dock-icon-slot img{display:block;max-width:none}
.dock-button .theme-moon{width:24.242424px;height:24.242424px}
:root[data-theme=dark] .theme-moon,:root[data-theme=light] .theme-sun{display:none}
:root[data-theme=light] .dock-icon-slot img{filter:brightness(.5)}
.dock-divider{width:1.125px;height:20.25px;margin:0 5.625px;flex-shrink:0}
.scroll-control,.scroll-control .scroll-progress,.scroll-control .back-to-top{width:50px;height:50px}
.scroll-control .scroll-progress svg{width:28.636364px;height:28.636364px}
.scroll-progress circle{stroke-width:2.222222}
@media(max-width:1000px) and (min-width:961px){.side-nav{left:calc(50vw - 465px)}}
@media(max-width:960px){
 .side-nav{top:auto;left:50%;right:auto;transform:translateX(-50%);bottom:calc(max(18px,env(safe-area-inset-bottom)) + 75px);width:auto}
 .side-nav a{font-size:12px;height:40px;padding:0 22px 0 10px}
 .bottom-dock{bottom:max(18px,env(safe-area-inset-bottom))}
}
@media(max-width:600px){
 .page{margin:0 auto;padding:76px 0 210px}
 .intro{width:100%}.intro p,.intro p+p{max-width:none}.desktop-break{display:none}
 .work-section::before{width:100%}
 .wireframe{height:auto;aspect-ratio:239/184}
 .side-nav a{padding:0 19px 0 8px}
 .bottom-dock{left:50%;width:calc(100% - 24px);max-width:384.625px;padding-left:4px;padding-right:4px}
 .bottom-dock .resume-button{width:94px;margin-right:4px}.resume-inner{width:90.625px;padding:0 14px}
 .bottom-dock .dock-button{width:auto;flex:1;min-width:40px}
 .scroll-control,.scroll-control .scroll-progress,.scroll-control .back-to-top{width:44px}
 .dock-divider{margin:0 4px}
}
@media(max-width:350px){.side-nav a{padding:0 17px 0 7px}.bottom-dock .resume-button{width:82px}.resume-inner{width:78.625px;padding:0 10px}.bottom-dock .dock-button{min-width:34px}.dock-divider{margin:0 3px}.scroll-control,.scroll-control .scroll-progress,.scroll-control .back-to-top{width:38px}}

/* Compact dock: preserve every element's proportions and a 44px icon hit area. */
.bottom-dock{transform:translateX(-50%) scale(.88);transform-origin:center bottom;background:#0b0b0b}
@media(max-width:960px){.side-nav{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 67px)}}


/* Keep the section spacing without the divider. */
.work-section::before{content:none}

/* Quiet corner utilities and a seamless dot-matrix availability loop. */
.corner-header{position:absolute;z-index:5;top:28px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.local-clock{display:flex;flex-direction:column;gap:3px;font-variant-numeric:tabular-nums;font-family:Inter,system-ui,sans-serif;line-height:16px}
.clock-time{font-size:13px;font-weight:500;letter-spacing:.025em;color:var(--secondary)}
.clock-day{font-size:11px;line-height:14px;letter-spacing:.07em;color:var(--muted)}
.availability-badge{width:164px;height:36px;padding:0;overflow:hidden;position:relative;border:1px solid #272729;border-radius:10px;background:#0d0d0e;color:#dedee2;isolation:isolate}
.availability-copy{display:flex;align-items:center;gap:20px;padding-right:20px;flex-shrink:0;line-height:14px}
.availability-copy img{display:block;width:134px;height:14px;max-width:none}
.availability-star{display:block;font-size:16px;line-height:16px;color:#9a9aa3}
:root[data-theme=light] .availability-badge{border-color:#2c2c30;background:#171719}
@media(max-width:600px){.corner-header{top:20px;left:24px;right:24px;gap:12px}.availability-badge{width:148px;height:34px}.page{padding-top:106px}.clock-time{font-size:12px}.clock-day{font-size:11px}}
@media(max-width:350px){.corner-header{left:16px;right:16px}.availability-badge{width:138px}}
@media(prefers-reduced-motion:reduce){.availability-track{animation:none!important}.availability-star{display:none}}

/* Header utilities share the central content grid. */
.corner-header{top:48px;left:max(24px,calc(50vw - 280px));right:auto;width:min(560px,calc(100% - 48px));gap:16px}
.local-clock{flex-direction:row;align-items:center;gap:7px;white-space:nowrap;line-height:16px}
.clock-icon{flex:none;color:#fff}
.clock-time,.clock-day{font-size:11px;line-height:16px;font-weight:400;letter-spacing:.015em;color:var(--secondary)}
.clock-separator{font-size:11px;line-height:16px;color:var(--muted)}
.availability-badge{width:138px;height:30px;flex-shrink:0;border-radius:8px}
.availability-copy img{width:120px;height:auto}
.availability-copy{gap:16px;padding-right:16px}.availability-star{font-size:14px;line-height:14px}
:root[data-theme=light] .clock-icon{color:var(--text)}
@media(max-width:600px){.corner-header{top:30px;left:24px;right:24px;width:auto;gap:12px}.availability-badge{width:124px;height:28px}.local-clock{gap:5px}.clock-time,.clock-day{font-size:11px}.page{padding-top:106px}}
@media(max-width:350px){.corner-header{left:24px;right:24px;gap:8px}.availability-badge{width:108px}.local-clock{gap:4px}.clock-icon{width:12px;height:12px}.clock-separator{display:none}}

/* Smaller status badge within the shared header grid. */
.availability-badge{width:96px;height:24px;border-radius:6px}
.availability-copy img{width:96px;height:auto}
.availability-copy{gap:12px;padding-right:12px}.availability-star{font-size:12px;line-height:12px;color:#f472b6}
@media(max-width:600px){.availability-badge{width:96px;height:24px}}
@media(max-width:350px){.availability-badge{width:92px}}

/* Shared chrome for the header badge and profile dock. */
@font-face{font-family:'Cedarville Cursive';src:url('./assets/cedarville-cursive.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--dock-background:#0b0b0b;--availability-background:#161616;--availability-border:#ffffff0d}
:root[data-theme=light]{--dock-background:#f1f1f2;--availability-background:#f1f1f2;--availability-border:#0000000d}
.header-logo{display:block;flex:none;font-family:'Cedarville Cursive',cursive;font-size:26px;font-weight:400;line-height:32px;color:var(--text);text-decoration:none}
.bottom-dock{background:var(--dock-background)}
.availability-badge,:root[data-theme=light] .availability-badge{border-radius:999px;background:var(--availability-background);border:0}

/* One handwritten signature after the initial page load. */
.intro{animation:none}
.header-logo{width:80px;height:37px;position:relative}
.logo-signature{display:block;position:absolute;top:-9.75px;left:-4px;width:80px;height:50.285714px;overflow:visible}
.logo-fill{fill:currentColor}
.logo-trace{fill:none;stroke:currentColor;stroke-width:.55;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.signature-pending .logo-fill{opacity:0}
.is-writing .logo-trace{animation:signature-trace var(--draw-duration) cubic-bezier(.65,0,.35,1) var(--draw-delay) both,signature-trace-settle 220ms linear var(--fill-delay) forwards}
.is-writing .logo-fill{animation:signature-fill 220ms var(--ease) var(--fill-delay) both}
.header-logo.is-written .logo-fill{opacity:1}
@keyframes signature-trace{from{stroke-dashoffset:1;opacity:0}1%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes signature-trace-settle{from{opacity:1}to{opacity:0}}
@keyframes signature-fill{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.signature-pending .logo-fill{opacity:1}.is-writing .logo-fill,.is-writing .logo-trace{animation:none!important}.logo-trace{display:none}}

/* Compact status label using the interface type and navigation dot. */
.availability-badge{display:flex;align-items:center;justify-content:center;width:auto;height:28px;padding:0 10px;gap:7px;font-family:Inter,system-ui,sans-serif;font-size:12px;font-weight:400;line-height:16px;white-space:nowrap;color:var(--text)}
.availability-badge{gap:0;color:var(--secondary);transition:color .18s,border-color .18s,transform .12s}
.availability-window{display:block;width:88px;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 4px,#000 calc(100% - 4px),transparent)}
.status-message{display:flex;align-items:center;gap:8px;flex:none;padding:0 8px 0 0}
.status-message::after{content:"";width:2px;height:2px;flex:none;border-radius:50%;background:currentColor;opacity:.8}
@media(hover:hover) and (pointer:fine){.availability-badge:hover,:root[data-theme=light] .availability-badge:hover{color:var(--text);border-color:color-mix(in srgb,var(--text) 10%,transparent)}}
.availability-badge:focus-visible{color:var(--text)}
.availability-badge:active{transform:scale(.98)}
@media(prefers-reduced-motion:reduce){.availability-window{mask-image:none}.availability-track{animation:none!important;will-change:auto}.availability-badge:active{transform:none}}

/* Inset hover stroke keeps the dock icons and spacing fixed. */
.bottom-dock .dock-button{box-shadow:inset 0 0 0 1px transparent;transition:background-color .18s,color .18s,transform .18s var(--ease),box-shadow .18s}
.bottom-dock .dock-button:focus-visible{background:color-mix(in srgb,var(--text) 7%,transparent);box-shadow:inset 0 0 0 1px var(--border)}
.dock-icon-slot{transition:transform .18s var(--ease)}
@media(hover:hover) and (pointer:fine){
  .bottom-dock .dock-button:hover{background:color-mix(in srgb,var(--text) 7%,transparent);box-shadow:inset 0 0 0 1px var(--border);transform:translateY(-2px)}
  .bottom-dock .dock-button:hover .dock-icon-slot{transform:scale(1.06)}
  .bottom-dock .dock-button:active{transform:translateY(0) scale(.94)}
}
@media(prefers-reduced-motion:reduce){.bottom-dock .dock-button:hover,.bottom-dock .dock-button:hover .dock-icon-slot{transform:none}}


/* Pixel garden meets the viewport edges and the document's bottom edge. */
.meadow-footer{position:relative;width:100%;height:380px;margin:0;padding:0;overflow:hidden;color:var(--text);background:var(--background);isolation:isolate}
.meadow-canvas,.meadow-fallback{display:block;position:absolute;inset:0;width:100%;height:100%}
.meadow-canvas{image-rendering:auto;visibility:hidden;touch-action:pan-y}
.meadow-fallback{overflow:hidden;mix-blend-mode:screen}
.meadow-fallback>img{position:absolute;left:50%;bottom:-30.254042%;height:167.205543%;width:auto;min-width:100%;max-width:none;transform:translateX(-43%)}
:root[data-theme=light] .meadow-fallback{filter:invert(1);mix-blend-mode:multiply}
.meadow-footer.is-ready .meadow-canvas{visibility:visible}
.meadow-footer.is-ready .meadow-fallback{display:none}
.meadow-pause{position:absolute;z-index:1;top:18px;right:24px;display:grid;place-items:center;width:32px;height:32px;padding:8px;border:1px solid var(--border);border-radius:50%;background:var(--dock-background);color:var(--secondary);transition:color .2s,border-color .2s}
.meadow-pause:hover{color:var(--text);border-color:var(--muted)}
.meadow-pause svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.meadow-play-glyph,.is-paused .meadow-pause-glyph{display:none}
.is-paused .meadow-play-glyph{display:block}
.meadow-footer:not(.is-ready) .meadow-pause{display:none}
@media(max-width:600px){.meadow-footer{height:300px}.meadow-pause{top:12px;right:24px;width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.meadow-pause{display:none}}

/* Equal space above and below the introduction. */
:root{--intro-space:64px;--header-top:48px;--header-height:37px}
.page{padding-top:calc(var(--header-top) + var(--header-height) + var(--intro-space))}
.intro{max-width:none;font-family:Inter,system-ui,sans-serif;font-size:14px;font-weight:400;line-height:22px;gap:7.25px}
.intro h1,.intro p{font:inherit;letter-spacing:normal;max-width:none}
.intro h1{font-size:14.5px;line-height:21.75px;color:var(--text)}
.intro p{color:color-mix(in srgb,var(--secondary) 85%,var(--background));line-height:20px}
.work-section{margin-top:56px;padding-top:0}
@media(max-width:600px){:root{--header-top:30px}}

/* About follows the same narrow reading grid and quiet type hierarchy. */
.about-section{margin-top:56px}
.about-section h2{margin:0 0 22px;font-size:14.5px;line-height:21.75px;font-weight:500;letter-spacing:0;color:var(--text)}
.about-section p{margin:0;font-size:14px;line-height:22px;font-weight:400;color:var(--secondary)}

/* Compact work history, aligned to the same About reading grid. */
.experience{margin-top:0}
.experience h3{font-size:14px;line-height:22px;font-weight:500;color:var(--text);margin:0 0 8px}
.experience-list{list-style:none;padding:0;margin:0}
.experience-row{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:14px 0}
.experience-position{display:flex;flex-direction:column;gap:1px;min-width:0;min-height:45px}
.experience-position h3{font-size:14px;line-height:22px;font-weight:400;color:var(--text);margin:0}
.experience-role{font-size:12px;line-height:20px;color:var(--secondary)}
.experience-date{font-size:12px;line-height:22px;color:var(--secondary);white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:480px){
  .experience-row{grid-template-columns:28px minmax(0,1fr);row-gap:3px}
  .experience-date{grid-column:2;font-size:12px;line-height:20px}
}




.experience-logo,.experience-freelance-icon{display:block;width:28px;height:28px;object-fit:contain;border-radius:6px;margin-top:1px}
.experience-freelance-icon{display:grid;place-items:center;color:var(--secondary);background:transparent;align-self:start}
.experience-freelance-icon svg{display:block;width:19px;height:19px}
@media(max-width:480px){.experience-logo,.experience-freelance-icon{grid-row:1 / span 2;align-self:start}}

.experience-logo-optimimax{filter:brightness(0) invert(1)}
:root[data-theme=light] .experience-logo-optimimax{content:url("assets/experience-optimimax-simplified-orange.svg?v=4");filter:none}

/* Quiet dock edge and the same 16px heading-to-content gap as the work section. */
:root{--dock-stroke:color-mix(in srgb,var(--text) 6%,transparent)}
.bottom-dock{border-color:var(--dock-stroke)}
.bottom-dock .dock-button:focus-visible{box-shadow:inset 0 0 0 1px var(--dock-stroke)}
@media(hover:hover) and (pointer:fine){.bottom-dock .dock-button:hover{box-shadow:inset 0 0 0 1px var(--dock-stroke)}}
.experience-row:first-child{padding-top:0}

#experience-title{margin-bottom:22px}

/* Spotlight one experience without moving or boxing the rows. */
.experience-row{transition:opacity 180ms ease-out}
.experience-toggle{display:block;padding:0;background:transparent;color:inherit;font:inherit;text-align:left}
.experience-reveal{grid-column:2/-1;display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows 320ms var(--ease),opacity 180ms ease}
.experience-reveal-inner{min-height:0;overflow:hidden}
.experience-reveal p{font:400 12px/20px Inter,sans-serif;color:var(--secondary);margin:0}
.experience-reveal p:first-child{padding-top:12px}
.experience-reveal p+p{margin-top:10px}
.experience-reveal p:last-child{padding-bottom:8px}
.experience-row.is-expanded .experience-reveal{grid-template-rows:1fr;opacity:1}
.experience-position h3,.experience-role,.experience-date{transition:color 180ms ease-out}
@media(hover:hover) and (pointer:fine){
  .experience-list:has(.experience-row:is(:hover,:focus-within)) .experience-row:not(:is(:hover,:focus-within)){opacity:.8}
  .experience-row:is(:hover,:focus-within) .experience-position h3{color:var(--text)}
  .experience-row:is(:hover,:focus-within) .experience-role,
  .experience-row:is(:hover,:focus-within) .experience-date{color:color-mix(in srgb,var(--secondary) 70%,var(--text))}
}

/* One coordinated entrance: the introduction resolves near the center, then
   settles into the reading grid as the supporting content appears. */
@keyframes page-soft-enter{from{opacity:0;filter:blur(7px);transform:translateY(10px)}to{opacity:1;filter:none;transform:none}}
@keyframes page-grid-enter{from{opacity:0;filter:blur(8px);transform:translateY(14px)}to{opacity:1;filter:none;transform:none}}
@keyframes page-intro-settle{from{transform:translateY(max(0px,calc(50svh - var(--header-top) - var(--header-height) - var(--intro-space) - 35px)))}to{transform:none}}
@keyframes page-utility-enter{from{opacity:0}to{opacity:1}}
.js .intro{animation:page-intro-settle 650ms cubic-bezier(.65,0,.35,1) 1000ms both}
.js .intro h1{animation:page-soft-enter 750ms cubic-bezier(.22,1,.36,1) 100ms both}
.js .intro-copy{animation:page-soft-enter 750ms cubic-bezier(.22,1,.36,1) 200ms both}
.js .work-section{animation:page-grid-enter 700ms cubic-bezier(.22,1,.36,1) 1400ms both;transform-origin:center top}
.js .about-section{animation:page-soft-enter 650ms cubic-bezier(.22,1,.36,1) 1510ms both}
.js .availability-badge{animation:page-utility-enter 550ms ease-out 300ms both}
.js .side-nav{animation:page-utility-enter 450ms ease-out 1050ms both}
.js .side-nav a{animation:page-soft-enter 550ms cubic-bezier(.22,1,.36,1) calc(1150ms + var(--arrival-order,0) * 55ms) both}
.side-nav a:nth-of-type(1){--arrival-order:0}
.side-nav a:nth-of-type(2){--arrival-order:1}
.side-nav a:nth-of-type(3){--arrival-order:2}
.side-nav a:nth-of-type(4){--arrival-order:3}
.js .bottom-dock{animation:page-utility-enter 600ms ease-out 1500ms both}
@media(prefers-reduced-motion:reduce){
  .js .intro,.js .intro h1,.js .intro-copy,.js .work-section,.js .about-section,
  .js .availability-badge,.js .side-nav,.js .side-nav a,.js .bottom-dock{animation:none!important}
}

.experience-freelance-orb img{display:block;width:28px;height:28px}
:root[data-theme=light] .experience-freelance-orb img{filter:brightness(.3)}

/* Transparent brand assets keep their silhouette in each appearance. */
:root[data-theme=light] .experience-logo[src*="experience-puf-mono"]{filter:brightness(0)}
:root[data-theme=light] .experience-logo[src*="experience-amatis-transparent"]{content:url("assets/experience-amatis-light.png")}
:root[data-theme=light] .dock-icon-slot img{filter:brightness(0);opacity:.78}

:root[data-theme=light] .bottom-dock{background:#f6f6f5;border-color:#24242814;box-shadow:0 8px 24px #2424280a;color:#343438}
:root[data-theme=light] .meadow-pause{background:#f6f6f5;color:#62626b;border-color:#2424281a}
:root[data-theme=light] .meadow-pause:hover{color:#242428;border-color:#24242840}


/* Both themes share the same space between content and the garden. */
.page{padding-bottom:112px}
@media(max-width:600px){:root{--section-gap:72px}.page{padding-bottom:120px}.work-section,.about-section{margin-top:48px}}


/* Light theme keeps the silver metal edge and uses a white interior. */
:root[data-theme=light] .nav-indicator{background:#000}
:root[data-theme=light] .resume-button{color:var(--text);background:#999}
:root[data-theme=light] .resume-inner{background:#fff}
:root[data-theme=light] .resume-button:hover .resume-inner{background:#fff}

/* Two staggered rows, with the next previews softly obscured on the right. */
.work-reel-shell{position:relative;width:100%;max-width:100%;padding:0;margin:0;overflow:hidden;border-radius:8px;clip-path:inset(0 round 8px);isolation:isolate}
.projects{display:flex;gap:12px;width:100%;max-width:none;padding:0;margin:0;border-radius:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain;touch-action:pan-x pan-y;user-select:none}
.projects::-webkit-scrollbar{display:none}
.projects.is-dragging{cursor:grabbing}
.projects:focus-visible{outline:1px solid var(--secondary);outline-offset:6px;border-radius:12px}
.work-batch{flex:0 0 730px;display:grid;gap:12px}
.work-row{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.work-row:nth-child(2){grid-template-columns:1fr 1.25fr}
.projects .wireframe{width:100%;height:228px;aspect-ratio:auto}
@media(max-width:600px){
  .work-reel-shell{width:100%}
  .work-batch{flex-basis:140vw}
  .projects .wireframe{height:174px}
}

/* Hover gives one preview focus without changing its frame geometry. */
.projects .wireframe{transition:opacity 220ms ease-out}
.work-motion-toggle{position:absolute;right:-10px;top:-10px;width:44px;height:44px;display:grid;place-items:center;background:transparent;border-radius:50%;color:var(--secondary);transition:color 150ms,background-color 150ms}
.work-motion-toggle:hover{color:var(--text);background:transparent}
.work-motion-toggle svg{grid-area:1/1;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.work-motion-toggle .motion-play{display:none}
.work-motion-toggle[aria-pressed=true] .motion-pause{display:none}
.work-motion-toggle[aria-pressed=true] .motion-play{display:block}
@media(prefers-reduced-motion:reduce){.projects .wireframe:hover{transform:none}.work-motion-toggle{display:none}}

/* Restore the supplied demo artwork inside the existing preview frames. */
.projects .wireframe{position:relative;overflow:hidden}
.projects .wireframe img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 400ms cubic-bezier(.2,.8,.2,1);pointer-events:none}
@media(hover:hover) and (pointer:fine){
  .projects:has(.wireframe:hover) .wireframe:not(:hover){opacity:.82}
  .projects .wireframe:hover{opacity:1;transform:none}
  .projects .wireframe:hover img{transform:translateY(-2px) scale(1.03);transition-duration:600ms}
}
@media(prefers-reduced-motion:reduce){.projects .wireframe:hover img{transform:none}}


/* Bottom-edge blur inspired by the inspected reference: a thin, transparent
   viewport strip, progressively stronger toward the bottom, below the dock. */
/* Inner glass and the subtle external edge blur are independent. */
:root{--dock-glass:rgba(12,12,14,.24)}
:root[data-theme=light]{--dock-glass:rgba(255,255,255,.38)}
.bottom-dock,:root[data-theme=light] .bottom-dock{background:var(--dock-glass);backdrop-filter:blur(48px) saturate(140%);-webkit-backdrop-filter:blur(48px) saturate(140%)}
.dock-edge-blur{position:fixed;inset:auto 0 0;height:calc(72px + env(safe-area-inset-bottom));z-index:14;pointer-events:none}
.dock-edge-blur span{position:absolute;inset:0;pointer-events:none;background:transparent;-webkit-backdrop-filter:blur(var(--edge-blur));backdrop-filter:blur(var(--edge-blur));-webkit-mask-image:var(--edge-mask);mask-image:var(--edge-mask)}
.dock-edge-blur span:nth-child(1){--edge-blur:.15px;--edge-mask:linear-gradient(to top,#000 0%,#000 92%,transparent 100%)}
.dock-edge-blur span:nth-child(2){--edge-blur:.35px;--edge-mask:linear-gradient(to top,#000 0%,#000 55%,transparent 80%)}
.dock-edge-blur span:nth-child(3){--edge-blur:.7px;--edge-mask:linear-gradient(to top,#000 0%,#000 35%,transparent 60%)}
.dock-edge-blur span:nth-child(4){--edge-blur:1.4px;--edge-mask:linear-gradient(to top,#000 0%,#000 20%,transparent 42%)}
.dock-edge-blur span:nth-child(5){--edge-blur:2.5px;--edge-mask:linear-gradient(to top,#000 0%,#000 8%,transparent 25%)}
@media(max-width:960px){.dock-edge-blur{height:calc(64px + env(safe-area-inset-bottom))}}
@media(forced-colors:active){.dock-edge-blur{display:none}}

/* A quiet invitation replaces the status on hover, without moving the pill. */
.availability-badge{padding:0 14px;min-width:110px;transition:background-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
.availability-label{display:block;opacity:1;transform:translateY(0);transition:opacity 160ms ease,transform 220ms cubic-bezier(.2,.8,.2,1)}
.availability-action{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;opacity:0;transform:translateY(8px);transition:opacity 160ms ease,transform 220ms cubic-bezier(.2,.8,.2,1);pointer-events:none}
.availability-action svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.availability-badge:focus-visible{background:color-mix(in srgb,var(--availability-background) 97%,var(--text));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 5%,transparent)}
.availability-badge:focus-visible .availability-label{opacity:0;transform:translateY(-8px)}
.availability-badge:focus-visible .availability-action{opacity:1;transform:translateY(0)}
@media(hover:hover) and (pointer:fine){
  .availability-badge:hover,:root[data-theme=light] .availability-badge:hover{transform:none;color:var(--secondary);background:color-mix(in srgb,var(--availability-background) 97%,var(--text));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 5%,transparent)}
  .availability-badge:hover .availability-label{opacity:0;transform:translateY(-8px)}
  .availability-badge:hover .availability-action{opacity:1;transform:translateY(0)}
  .availability-badge:active{transform:scale(.98)}
}
@media(prefers-reduced-motion:reduce){.availability-label,.availability-action,.availability-badge:hover .availability-label,.availability-badge:hover .availability-action,.availability-badge:focus-visible .availability-label,.availability-badge:focus-visible .availability-action,.availability-badge:active{transform:none}}

/* Small visual controls with comfortable hit areas, aligned to the heading edge. */
.work-controls{position:absolute;right:-10px;top:-10px;display:flex;align-items:center;gap:0}
.work-controls button{position:relative;isolation:isolate;inset:auto;width:44px;height:44px;display:grid;place-items:center;background:transparent;color:var(--secondary);border-radius:50%;transition:color 180ms ease,transform 180ms cubic-bezier(.2,.8,.2,1)}
.work-controls button::before{content:"";position:absolute;z-index:-1;width:28px;height:28px;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1px transparent;transition:background-color 180ms ease,box-shadow 180ms ease}
.work-controls button:hover,.work-controls button:focus-visible{color:var(--text);background:transparent}
.work-controls button:focus-visible{outline:none}
.work-controls button:hover::before,.work-controls button:focus-visible::before{background:color-mix(in srgb,var(--text) 5%,transparent);box-shadow:inset 0 0 0 1px var(--dock-stroke)}
.work-controls button:active{transform:scale(.94)}
.work-controls svg{grid-area:1/1;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms var(--ease)}
.work-controls .work-see-all{width:auto;padding:0 10px;font-size:12px;line-height:20px;border-radius:6px}
.work-controls .work-see-all::before{content:none}
.work-controls .work-see-all:focus-visible{outline:1px solid var(--border);outline-offset:-4px}
.work-reel-shell .work-motion-toggle{position:absolute;isolation:isolate;top:auto;right:2px;bottom:2px;z-index:2;width:44px;height:44px;padding:0;background:transparent;color:#e4e4e7;border:0;box-shadow:none;transition:color .18s}
.work-reel-shell .work-motion-toggle::before{content:"";position:absolute;inset:8px;z-index:-1;border-radius:50%;background:rgba(13,13,13,.38);backdrop-filter:blur(14px) saturate(120%);-webkit-backdrop-filter:blur(14px) saturate(120%);box-shadow:inset 0 0 0 1px #ffffff12;transition:background .18s,box-shadow .18s}
.work-reel-shell .work-motion-toggle svg{width:12px;height:12px;transition:transform .18s var(--ease)}
.work-reel-shell .work-motion-toggle:hover{background:transparent;color:#fff;box-shadow:none}
.work-reel-shell .work-motion-toggle:hover::before{background:rgba(13,13,13,.5);box-shadow:inset 0 0 0 1px #ffffff20}
:root[data-theme=light] .work-reel-shell .work-motion-toggle{color:#36363c}
:root[data-theme=light] .work-reel-shell .work-motion-toggle::before{background:rgba(255,255,255,.5);box-shadow:inset 0 0 0 1px #0000000d}
:root[data-theme=light] .work-reel-shell .work-motion-toggle:hover::before{background:rgba(255,255,255,.65);box-shadow:inset 0 0 0 1px #00000018}
@media(hover:hover) and (pointer:fine){.work-reel-shell .work-motion-toggle:hover svg{transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.work-reel-shell .work-motion-toggle{display:none}}
@media(hover:hover) and (pointer:fine){.work-controls button:hover svg{transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.work-controls .work-motion-toggle{display:none}.work-controls button:active,.work-controls button:hover svg{transform:none}}

/* A quiet closing invitation, sharing the content grid and metallic controls. */
.contact-section{margin-top:var(--section-gap)}
.contact-section h2{font-size:14.5px;line-height:21.75px;font-weight:400;letter-spacing:normal;color:var(--text)}
.contact-section p{margin-top:7.25px;font-size:14px;line-height:20px;color:color-mix(in srgb,var(--secondary) 85%,var(--background));text-wrap:pretty}
.contact-action{position:relative;width:max-content;max-width:100%;margin-top:12px}
.contact-invitation{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);box-shadow:none;transition:color .18s}
.contact-invitation:hover{color:var(--secondary)}
.contact-signature{display:block;height:44px;overflow:visible}
.js .contact-invitation:not(.is-written) .logo-fill{opacity:0}
.contact-invitation.is-written .logo-fill{opacity:1}
@media(prefers-reduced-motion:reduce){.js .contact-invitation .logo-fill{opacity:1}}

@media(max-width:960px){.side-nav{display:none}}

/* A small editor-style pointer, with tiny square particles on empty-space clicks. */
.site-cursor{position:fixed;top:0;left:0;width:0;height:0;z-index:1000;pointer-events:none;opacity:0;--pointer-fill:#000;--pointer-outline:#f5f5f5}
:root[data-theme=light] .site-cursor{--pointer-fill:#000;--pointer-outline:#f5f5f5}
.site-cursor.is-visible{opacity:1}
.cursor-visual{position:relative;width:0;height:0;transform-origin:0 0;transition:transform 90ms ease-out}
.cursor-pointer{position:absolute;left:-1.5px;top:-1.5px;width:18px;height:20px;fill:var(--pointer-fill);stroke:var(--pointer-outline);stroke-width:5;paint-order:stroke fill;stroke-linecap:round;stroke-linejoin:round}
.site-cursor.is-pressed .cursor-visual{transform:scale(.92)}
.cursor-pixel-layer{position:fixed;inset:0;z-index:999;pointer-events:none;overflow:hidden}
.cursor-pixel{position:absolute;width:3px;height:3px;pointer-events:none}
.cursor-modal-pixels{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
.cursor-modal-pixels::backdrop{background:transparent;pointer-events:none}
.site-cursor[popover]{inset:0 auto auto 0;margin:0;padding:0;border:0;background:transparent;overflow:visible}
.site-cursor[popover]::backdrop{background:transparent;pointer-events:none}
@media(hover:hover) and (pointer:fine){
  html.has-custom-cursor,html.has-custom-cursor *{cursor:none!important}
  html.has-custom-cursor input,html.has-custom-cursor textarea,html.has-custom-cursor [contenteditable=true]{cursor:text!important}
  html.has-custom-cursor dialog::backdrop{cursor:none!important}
}
@media(hover:none),(pointer:coarse),(forced-colors:active){.site-cursor,.cursor-pixel-layer{display:none}}


/* Project gallery: a quiet image stage with a compact thumbnail rail. */
.projects .wireframe[role=button]{cursor:pointer}
.projects .wireframe:focus-visible{outline:2px solid var(--secondary);outline-offset:-3px}
.work-gallery{width:min(740px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:16px;border:1px solid var(--border);border-radius:24px;background:var(--background);color:var(--text);box-shadow:0 24px 80px #00000040;overflow:auto;overscroll-behavior:contain}
dialog::backdrop,.work-gallery::backdrop{background:var(--background);backdrop-filter:none;-webkit-backdrop-filter:none}
.gallery-header{display:flex;align-items:center;gap:16px;margin-bottom:12px;min-height:36px}
.gallery-header h2{font:400 14.5px/21.75px Inter,sans-serif;color:var(--text)}
.gallery-header .gallery-close{margin-left:auto}
.work-gallery.is-image-only #gallery-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.work-gallery.is-image-only .gallery-copy{display:none}
.all-project-card>span[hidden]{display:none}
.work-gallery.is-image-only .gallery-project-nav{margin-top:0}
.gallery-count{margin-left:auto;font-size:12px;color:var(--secondary);font-variant-numeric:tabular-nums}
.gallery-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:transparent;color:var(--secondary);box-shadow:inset 0 0 0 1px transparent;transition:background-color .18s,color .18s,box-shadow .18s,transform .18s var(--ease)}
.gallery-close .icon{transition:transform .18s var(--ease)}
.gallery-close:hover,.gallery-close:focus-visible{background:color-mix(in srgb,var(--text) 7%,transparent);color:var(--text);box-shadow:inset 0 0 0 1px var(--dock-stroke)}
@media(hover:hover) and (pointer:fine){.gallery-close:hover{transform:translateY(-1px)}.gallery-close:hover .icon{transform:scale(1.06)}}
.gallery-close:active{transform:scale(.94)}
@media(prefers-reduced-motion:reduce){.gallery-close:hover,.gallery-close:active,.gallery-close:hover .icon{transform:none}}
.gallery-stage{display:block;height:auto;overflow:hidden;border-radius:18px;background:transparent}
.gallery-image{display:block;width:100%;height:auto;max-width:100%;min-height:0;object-fit:contain;border-radius:16px}
.gallery-thumbnails{display:flex;justify-content:center;gap:10px;margin-top:16px;padding:3px;overflow-x:auto}
.gallery-thumbnails button{flex:0 0 68px;width:68px;height:48px;padding:3px;border:1px solid transparent;border-radius:8px;background:transparent;opacity:.55;transition:opacity .18s,border-color .18s,background .18s}
.gallery-thumbnails button:hover{opacity:.85;background:var(--surface)}
.gallery-thumbnails button[aria-pressed=true]{opacity:1;border-color:var(--border)}
.gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
@media(max-width:600px){.work-gallery{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:12px;border-radius:20px}.gallery-header{gap:12px}.gallery-thumbnails{margin-top:12px}}
.work-gallery{border-color:color-mix(in srgb,var(--border) 40%,var(--background));overflow:hidden;scrollbar-width:none;padding-inline:32px}
@media(max-width:600px){.work-gallery{padding-inline:22px}}
.work-gallery::-webkit-scrollbar{display:none;width:0;height:0}
.gallery-scroll-body{max-height:calc(100dvh - 132px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.gallery-scroll-body::-webkit-scrollbar{display:none}
.is-all-projects .gallery-scroll-body{max-height:calc(82dvh - 84px)}
.gallery-scroll-track{position:absolute;top:68px;bottom:20px;right:2px;width:10px;touch-action:none;cursor:default}
.gallery-scroll-track[hidden]{display:none}
.is-all-projects .gallery-scroll-track{display:none}
.gallery-scroll-track span{display:block;margin:0 auto;width:3.5px;height:24px;border-radius:999px;background:color-mix(in srgb,var(--secondary) 35%,var(--background));pointer-events:auto}
.gallery-scroll-track:hover span{background:var(--secondary)}
@media(max-width:600px){.gallery-scroll-body{max-height:calc(100dvh - 108px)}.is-all-projects .gallery-scroll-body{max-height:calc(86dvh - 76px)}.gallery-scroll-track{top:60px;bottom:16px;right:0}}
.work-gallery button:focus-visible{outline:1px solid var(--secondary);outline-offset:2px}
.gallery-close:focus-visible{outline-color:var(--border);outline-offset:0}
.gallery-thumbnails[hidden]{display:none}
.gallery-copy{padding:22px 4px 24px;max-width:600px}
.work-gallery .gallery-category{font-size:12px;line-height:20px;color:var(--muted);margin:0 0 8px}
.work-gallery .gallery-description{font-size:14px;line-height:22px;color:var(--secondary);margin:0;white-space:pre-line}
.gallery-project-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;padding-top:8px;background:none}
.work-gallery[open]{animation:none;transform-origin:center center}
.work-gallery[open]::backdrop{animation:gallery-backdrop-in 240ms ease-out both}
.work-gallery[open].is-closing{animation:none;pointer-events:none}
.work-gallery[open].is-closing::backdrop{animation:gallery-backdrop-out 220ms ease-in both}
@keyframes gallery-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes gallery-backdrop-out{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.work-gallery[open],.work-gallery[open]::backdrop{animation:none!important}}
.gallery-project-nav button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 4px;border-radius:4px;background:transparent;color:var(--secondary);font-size:12px;line-height:20px;font-weight:400;text-decoration:none;transition:color .18s}
.gallery-project-nav button:last-child{text-align:right}
.gallery-project-nav button:hover{background:transparent;color:var(--text)}
.project-step-label,.project-step-title{display:block}
.project-step-label{font-size:11px;line-height:18px;color:var(--muted)}
.project-step-title{font-size:13px;line-height:20px}
.gallery-project-count{font-size:11px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
@media(max-width:480px){.gallery-project-nav{gap:8px}.gallery-project-nav button{gap:8px}.gallery-copy{padding:18px 2px 20px}.gallery-project-count{display:none}}

/* Slightly soften heading whites in the dark theme. */
.work-gallery.is-all-projects{width:min(960px,calc(100vw - 48px));max-height:82dvh}
.all-projects-grid{display:block;columns:3;column-gap:14px;padding:4px 0 8px}
.all-projects-grid[hidden],.gallery-back[hidden]{display:none}
.is-all-projects .gallery-stage,.is-all-projects .gallery-thumbnails,.is-all-projects .gallery-copy,.is-all-projects .gallery-project-nav{display:none}
.all-project-card{display:inline-flex;vertical-align:top;break-inside:avoid;width:100%;flex-direction:column;gap:10px;min-width:0;padding:0;margin:0 0 14px;background:transparent;color:var(--secondary);text-align:left;border-radius:12px;font-size:13px;line-height:20px;transition:color .18s,opacity 220ms ease}
.all-project-image{display:block;width:100%;overflow:hidden;border-radius:12px}
.all-project-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;transition:transform 400ms cubic-bezier(.2,.8,.2,1)}
.all-project-card>span:not(.all-project-image){padding:0 2px}
@media(hover:hover) and (pointer:fine){
  .all-projects-grid:has(.all-project-card:hover) .all-project-card:not(:hover){opacity:.82}
  .all-project-card:hover{color:var(--text);opacity:1}
  .all-project-card:hover img{transform:translateY(-2px) scale(1.03);transition-duration:600ms}
}
@media(prefers-reduced-motion:reduce){.all-project-card:hover img{transform:none}}
.gallery-back{display:grid;place-items:center;width:36px;height:36px;flex:none;padding:0;background:transparent;color:var(--secondary);border-radius:50%;box-shadow:inset 0 0 0 1px transparent;transition:background-color .18s,color .18s,box-shadow .18s,transform .18s var(--ease)}
.gallery-back .icon{transition:transform .18s var(--ease)}
.gallery-back:hover,.gallery-back:focus-visible{background:color-mix(in srgb,var(--text) 7%,transparent);color:var(--text);box-shadow:inset 0 0 0 1px var(--dock-stroke)}
.gallery-back:focus-visible{outline-color:var(--border);outline-offset:0}
@media(hover:hover) and (pointer:fine){.gallery-back:hover{transform:translateY(-1px)}.gallery-back:hover .icon{transform:scale(1.06)}}
.gallery-back:active{transform:scale(.94)}
@media(prefers-reduced-motion:reduce){.gallery-back:hover,.gallery-back:active,.gallery-back:hover .icon{transform:none}}
@media(max-width:600px){.work-gallery.is-all-projects{width:calc(100vw - 24px);max-height:86dvh}.all-projects-grid{columns:2;column-gap:12px}.all-project-card{margin-bottom:12px}.all-project-card img{border-radius:10px}}

/* Reserve the tallest project's area so controls never move between projects. */
.work-gallery,.work-gallery.is-all-projects{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:24px 32px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.work-gallery[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.gallery-header{position:relative;inset:auto;flex:none;width:min(740px,100%);transform:none;margin:0;z-index:2;pointer-events:none}
.is-all-projects .gallery-header{width:min(960px,100%)}
.is-all-projects .gallery-close{margin-right:-10px}
.gallery-header button,.gallery-header h2{pointer-events:auto}
.work-gallery{--gallery-control:#a1a1aa;--gallery-control-hover:#fff}
:root[data-theme=light] .work-gallery{--gallery-control:#62626b;--gallery-control-hover:#242428}
.gallery-header h2{color:var(--gallery-control-hover)}
.gallery-header .gallery-close,.gallery-header .gallery-back{width:auto;min-width:36px;padding:0;background:transparent;color:var(--gallery-control);font:400 12px/20px Inter,sans-serif}
.gallery-scroll-body,.is-all-projects .gallery-scroll-body{flex:0 1 auto;width:min(740px,100%);max-height:calc(100% - 100px);min-height:0;border-radius:18px}
.work-gallery:not(.is-all-projects) .gallery-scroll-body{flex:none;height:min(var(--gallery-max-height,650px),calc(100% - 100px))}
.work-gallery:not(.is-all-projects) .gallery-scroll-content{min-height:100%;display:flex;flex-direction:column;justify-content:center}
.work-gallery:not(.is-all-projects) :is(.gallery-stage,.gallery-thumbnails){flex-shrink:0}
.is-all-projects .gallery-scroll-body{max-height:calc(100% - 48px)}
.is-all-projects .gallery-scroll-body{width:min(960px,100%);padding:0;background:var(--background);border:0;border-radius:0}
.work-gallery .gallery-project-nav{position:relative;inset:auto;flex:none;width:min(740px,100%);transform:none;margin:0;padding:0;min-height:40px;z-index:2;pointer-events:none}
.gallery-project-nav button{pointer-events:auto;padding:10px 0;color:var(--gallery-control)}
.gallery-header :is(.gallery-close,.gallery-back),.gallery-project-nav button{background:transparent;border:0;border-radius:0;box-shadow:none;transition:color .18s}
.gallery-header :is(.gallery-close,.gallery-back):is(:hover,:focus-visible,:active),.gallery-project-nav button:is(:hover,:focus-visible,:active){background:transparent;color:var(--gallery-control-hover);box-shadow:none;transform:none}
.gallery-thumbnails button:is(:hover,:focus-visible,:active){background:transparent;box-shadow:none;transform:none;opacity:1}
.gallery-scroll-track{top:84px;bottom:84px;right:16px}
@media(max-width:600px){
  .work-gallery,.work-gallery.is-all-projects{width:100%;max-height:none;padding:20px}
  .gallery-header,.is-all-projects .gallery-header{inset:auto;width:100%}
  .work-gallery .gallery-project-nav{inset:auto;width:100%;gap:12px}
  .gallery-project-nav button{padding:10px 0}
  .gallery-scroll-track{top:76px;bottom:80px;right:3px}
  .is-all-projects .gallery-scroll-body{padding:0;border-radius:0}
}

:root[data-theme=dark] .intro h1,:root[data-theme=dark] .work-section h2,:root[data-theme=dark] .about-section h2,:root[data-theme=dark] .contact-section h2{color:#d1d1d6}

.work-row.work-row--three{grid-template-columns:1fr 1.25fr 1fr}

/* Equal-height rows with staggered tile widths. */
.work-batch--mosaic{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,228px)}
.projects .work-batch--mosaic .wireframe{height:100%;min-width:0}
.work-batch--mosaic>.wireframe:nth-child(1){grid-column:span 5}
.work-batch--mosaic>.wireframe:nth-child(2){grid-column:span 7}
.work-batch--mosaic>.wireframe:nth-child(3){grid-column:span 4}
.work-batch--mosaic>.wireframe:nth-child(4){grid-column:span 5}
.work-batch--mosaic>.wireframe:nth-child(5){grid-column:span 3}
@media(max-width:600px){.work-batch--mosaic{grid-template-rows:repeat(2,174px)}}

/* A left-aligned Dock strip; nearby previews grow upward and make room sideways. */
.gallery-thumbnails{justify-content:flex-start;align-items:flex-end;height:104px;min-height:104px;box-sizing:border-box;padding:28px 4px 12px;gap:8px;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x}
.gallery-thumbnails::-webkit-scrollbar{display:none}
.gallery-thumbnails button{--dock-grow:0;flex:0 0 calc(68px + 34px * var(--dock-grow));width:calc(68px + 34px * var(--dock-grow));height:calc(48px + 24px * var(--dock-grow));transform-origin:center bottom;transition:width 100ms ease-out,flex-basis 100ms ease-out,height 100ms ease-out,opacity 150ms ease-out;opacity:.65}
.gallery-thumbnails button:focus-visible{outline:1px solid var(--text);outline-offset:3px;opacity:1}
@media(prefers-reduced-motion:reduce){.gallery-thumbnails button{transition:none}}

.gallery-thumbnails{cursor:grab;user-select:none;-webkit-user-select:none}
.gallery-thumbnails.is-dragging,.gallery-thumbnails.is-dragging button{cursor:grabbing}
.gallery-thumbnails img{object-fit:contain;object-position:center;pointer-events:none;-webkit-user-drag:none}

.work-batch--mosaic:has(>:nth-child(4)):not(:has(>:nth-child(5)))>.wireframe:nth-child(3){grid-column:span 7}
.work-batch--mosaic:has(>:nth-child(4)):not(:has(>:nth-child(5)))>.wireframe:nth-child(4){grid-column:span 5}

/* Three selected projects, with equal heights and individual widths. */
.work-batch--selected{flex-basis:944px;grid-template-columns:280px 340px 300px;grid-template-rows:228px}
@media(max-width:600px){.work-batch--selected{flex-basis:754px;grid-template-columns:220px 270px 240px;grid-template-rows:174px}}

/* Keep See all anchored when the project count changes. */
.work-gallery.is-all-projects[open]{justify-content:center}
.is-all-projects .gallery-scroll-body{flex:none;width:min(740px,100%);height:min(var(--gallery-max-height,675px),calc(100% - 100px))}
.all-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;columns:auto}
.all-project-card{margin:0}
@media(max-width:600px){.all-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.all-project-card{margin:0}}

/* See all shares the centered detail frame and its control alignment. */
.is-all-projects .gallery-header{width:min(740px,100%)}
.is-all-projects .gallery-close{margin-right:0}
.is-all-projects .gallery-scroll-content{min-height:100%;display:flex;flex-direction:column;justify-content:flex-start}
.is-all-projects .all-projects-grid{flex-shrink:0;width:100%}
.work-gallery.is-all-projects::after{content:"";display:block;flex:none;width:min(740px,100%);height:40px}

/* Full thumbnails with a consistent rounded selection frame. */
.gallery-thumbnails button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;opacity:.75}
.gallery-thumbnails button[aria-pressed=true]{border-color:color-mix(in srgb,var(--text) 10%,transparent)}
.gallery-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:6px}

.gallery-thumbnails{margin-top:0;height:88px;min-height:88px;padding-top:28px;padding-bottom:8px}
.gallery-thumbnails button{border-width:3px}
.gallery-thumbnails img{border-radius:5px}

.project-image-count{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:3px;min-height:19px;padding:2px 5px;border-radius:5px;background:rgb(10 10 10 / 40%);color:rgb(255 255 255 / 65%);font:400 9px/13px Inter,sans-serif;pointer-events:none}
.project-image-count svg{width:11px;height:11px;flex:none}

.project-image-count{padding-inline:7px;opacity:0;transform:translateX(3px);transition:opacity 160ms ease,transform 160ms ease}
.wireframe:is(:hover,:focus-visible) .project-image-count{opacity:1;transform:translateX(0)}
@media(prefers-reduced-motion:reduce){.project-image-count{transition:none;transform:none}}

.work-batch--selected{flex-basis:1276px;grid-template-columns:280px 340px 300px 320px}
@media(max-width:600px){.work-batch--selected{flex-basis:1016px;grid-template-columns:220px 270px 240px 250px}}

/* Two equal-height rows; only card widths vary. */
.work-batch--selected{flex-basis:730px;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,228px)}
.work-batch--selected>.wireframe:nth-child(1){grid-column:span 5}
.work-batch--selected>.wireframe:nth-child(2){grid-column:span 7}
.work-batch--selected>.wireframe:nth-child(3){grid-column:span 7}
.work-batch--selected>.wireframe:nth-child(4){grid-column:span 5}
@media(max-width:600px){.work-batch--selected{flex-basis:140vw;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:repeat(2,174px)}}

.gallery-thumbnails{gap:4px}

.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(3){grid-column:span 4}
.work-batch--selected>.wireframe:nth-child(5){grid-column:span 3}

.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(1){grid-column:span 7}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(2){grid-column:span 5}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(4){grid-column:span 3}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(5){grid-column:span 5}

/* Keep project compositions whole, with room for the three-card row. */
.work-batch--selected{flex-basis:1080px}
.projects .work-batch--selected .wireframe img{object-fit:contain}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(1){grid-column:span 8}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(2){grid-column:span 4}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(3){grid-column:span 4}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(4){grid-column:span 4}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(5){grid-column:span 4}
@media(hover:hover) and (pointer:fine){.projects .work-batch--selected .wireframe:hover img{transform:none}}
@media(max-width:600px){.work-batch--selected{flex-basis:850px}}

.work-batch--selected{flex-basis:960px}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(1){grid-column:span 7;background:#f8f8f8}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(2){grid-column:span 5;background:#251c32}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(4){grid-column:span 3;background:#e0efd8}
.work-batch--selected:has(>:nth-child(5))>.wireframe:nth-child(5){grid-column:span 5;background:#2681cb}
@media(max-width:600px){.work-batch--selected{flex-basis:850px}}

/* Balanced two-row reel: modest widths, equal card heights, no letterboxing. */
.work-batch--balanced{flex-basis:1000px;grid-template-rows:repeat(2,228px)}
.work-batch--balanced>.work-row:first-child{grid-template-columns:280px 300px 396px}
.work-batch--balanced>.work-row:nth-child(2){grid-template-columns:350px 330px 296px}
.projects .work-batch--balanced .wireframe{height:228px;background:transparent}
.projects .work-batch--balanced .wireframe img{object-fit:cover;object-position:center}
@media(max-width:600px){.work-batch--balanced{flex-basis:790px;grid-template-rows:repeat(2,174px)}.work-batch--balanced>.work-row:first-child{grid-template-columns:220px 240px 306px}.work-batch--balanced>.work-row:nth-child(2){grid-template-columns:275px 260px 231px}.projects .work-batch--balanced .wireframe{height:174px}}

/* Extend each row for new projects without resizing the existing cards. */
.work-batch--balanced{flex-basis:3324px}
.work-batch--balanced>.work-row:first-child{grid-template-columns:320px 320px 320px 300px 320px 396px 320px 320px 280px 320px}
.work-batch--balanced>.work-row:nth-child(2){grid-template-columns:350px 320px 320px 320px 330px 320px 320px 320px 296px 320px}
@media(max-width:600px){.work-batch--balanced{flex-basis:2624px}.work-batch--balanced>.work-row:first-child{grid-template-columns:250px 250px 250px 240px 250px 306px 250px 250px 220px 250px}.work-batch--balanced>.work-row:nth-child(2){grid-template-columns:275px 250px 250px 250px 260px 250px 250px 250px 231px 250px}}

/* Video projects share the existing gallery frame and native playback controls. */
.gallery-video{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border-radius:16px;background:#000}
.gallery-video[hidden],.gallery-image[hidden]{display:none}

.all-project-image{position:relative}
.project-video-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none}
.all-project-image .project-video-preview{object-fit:contain}
.gallery-video{pointer-events:none}

/* Project notes sit quietly beside the work. */
.work-gallery:not(.is-all-projects) #gallery-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.work-gallery:not(.is-all-projects) .gallery-copy{position:absolute;left:max(24px,calc(50% - 640px));top:50%;transform:translateY(-50%);width:200px;padding:0;text-align:left}
.gallery-project-title{margin:0 0 12px;font-size:15px;line-height:23px;font-weight:500;letter-spacing:-.015em;color:var(--text)}
.gallery-category:empty{display:none}
.work-gallery .gallery-description{font-size:13px;line-height:21px;color:var(--secondary)}
@media(max-width:1250px){
 .work-gallery:not(.is-all-projects) .gallery-copy{position:static;transform:none;width:100%;max-width:420px;align-self:flex-start;padding:0 0 22px}
 .work-gallery:not(.is-all-projects) .gallery-scroll-content{justify-content:flex-start}
 .gallery-project-title{margin-bottom:8px}
}

/* Mobile project index uses the full screen, with readable previews and names. */
@media(max-width:600px){
 .work-gallery.is-all-projects{padding:env(safe-area-inset-top,0px) 20px env(safe-area-inset-bottom,0px);background:var(--background)}
 .work-gallery.is-all-projects[open]{justify-content:flex-start;gap:0}
 .is-all-projects .gallery-header{width:100%;min-height:72px;align-items:center;flex-shrink:0;background:var(--background)}
 .is-all-projects .gallery-header h2{font-size:15px;line-height:24px;font-weight:500;margin:0}
 .is-all-projects .gallery-header .gallery-close{min-width:44px;min-height:44px;margin-right:-12px}
 .is-all-projects .gallery-scroll-body{flex:1 1 0;width:100%;height:auto;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;border-radius:0;-webkit-overflow-scrolling:touch}
 .is-all-projects .gallery-scroll-content{min-height:0}
 .is-all-projects .all-projects-grid{grid-template-columns:minmax(0,1fr);gap:26px;padding:4px 0 28px}
 .is-all-projects .all-project-card{gap:10px;margin:0;font-size:14px;line-height:21px}
 .is-all-projects .all-project-image,.is-all-projects .all-project-card img{border-radius:12px}
 .work-gallery.is-all-projects::after{display:none}
}

/* Mobile details: full-width media, notes below, controls at screen edges. */
@media(max-width:600px){
 .work-gallery:not(.is-all-projects){padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);background:var(--background);border-radius:0}
 .work-gallery:not(.is-all-projects)[open]{justify-content:flex-start;gap:0}
 .work-gallery:not(.is-all-projects) .gallery-header{width:100%;min-height:64px;padding:0 16px;align-items:center;flex-shrink:0;background:var(--background)}
 .work-gallery:not(.is-all-projects) .gallery-header :is(.gallery-back,.gallery-close){width:44px;height:44px;min-width:44px;border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-close{margin-left:auto}
 .work-gallery:not(.is-all-projects) .gallery-scroll-body{flex:1 1 0;width:100%;height:auto;max-height:none;min-height:0;border-radius:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .work-gallery:not(.is-all-projects) .gallery-scroll-content{min-height:0;justify-content:flex-start}
 .work-gallery:not(.is-all-projects) .gallery-stage{order:0;width:100%;border-radius:0;overflow:hidden}
 .work-gallery:not(.is-all-projects) :is(.gallery-image,.gallery-video){border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-thumbnails{order:1;width:100%;padding:18px 20px 6px;height:78px;min-height:78px;border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-thumbnails button{border-radius:8px}
 .work-gallery:not(.is-all-projects) .gallery-thumbnails img{border-radius:5px}
 .work-gallery:not(.is-all-projects) .gallery-copy{order:2;width:100%;max-width:none;padding:28px 20px 36px;border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-project-title{font-size:18px;line-height:26px;margin:0 0 16px}
 .work-gallery:not(.is-all-projects) .gallery-description{font-size:14px;line-height:23px}
 .work-gallery:not(.is-all-projects) .gallery-project-nav{width:100%;flex-shrink:0;min-height:64px;padding:8px 20px;gap:20px;background:var(--background);border-top:1px solid color-mix(in srgb,var(--text) 10%,transparent);border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-project-nav button{min-height:44px;padding:10px 0;font-size:12px;line-height:20px;border-radius:0}
 .work-gallery:not(.is-all-projects) .gallery-scroll-track{display:none}
}

@media(max-width:600px){
 .work-gallery:not(.is-all-projects) .gallery-stage{border-radius:16px}
 .work-gallery:not(.is-all-projects) :is(.gallery-image,.gallery-video){border-radius:16px}
 .work-gallery:not(.is-all-projects) .gallery-project-nav{border-top:0}
}

/* Card labels are separate from the project-detail copy. Media sizes stay unchanged. */
.projects .work-batch--balanced{grid-template-rows:repeat(2,284px);row-gap:20px}
.projects .work-batch--balanced .wireframe{height:284px;overflow:visible;border-radius:0;display:flex;flex-direction:column;gap:10px}
.project-card-media{position:relative;display:block;width:100%;height:228px;flex:none;overflow:hidden;border-radius:12px}
.project-card-caption{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:left}
.project-card-title{display:block;font-size:13px;line-height:20px;font-weight:400;color:var(--text)}
.project-card-subtitle{display:block;font-size:11px;line-height:17px;font-weight:400;color:var(--secondary)}
.all-project-card>.project-card-caption{padding:0 2px}
@media(max-width:600px){
 .projects .work-batch--balanced{grid-template-rows:repeat(2,230px)}
 .projects .work-batch--balanced .wireframe{height:230px}
 .project-card-media{height:174px}
 .is-all-projects .project-card-title{font-size:14px;line-height:21px}
 .is-all-projects .project-card-subtitle{font-size:12px;line-height:18px}
}

/* Descriptive card copy fits the existing caption space. */
.projects .work-batch--balanced .wireframe{gap:4px}
.projects .project-card-caption{gap:2px}
.projects .project-card-title{line-height:18px}
.project-card-description{display:block;font-size:11px;line-height:16px;font-weight:400;color:var(--secondary)}
.projects .project-card-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.is-all-projects .project-card-description{font-size:12px;line-height:18px}

.is-all-projects .project-card-description{display:none}

/* Project cards show only the work; copy remains in the detail view. */
.projects .project-card-caption,.all-project-card .project-card-caption{display:none}
.projects .work-batch--balanced{grid-template-rows:repeat(2,228px);row-gap:12px}
.projects .work-batch--balanced .wireframe{height:228px;gap:0}
@media(max-width:600px){
 .projects .work-batch--balanced{grid-template-rows:repeat(2,174px)}
 .projects .work-batch--balanced .wireframe{height:174px}
}
