@font-face{font-family:Werkzeug;src:url('assets/fonts/Werkzeug.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans';src:url('assets/fonts/IBMPlexSans.woff2') format('woff2');font-weight:100 700;font-stretch:75% 100%;font-display:swap}
:root{--ink:#20211f;--muted:#696b65;--surface:#fcfcfc;--raised:#fff;--hover:#e8e8e2;--subtle:#f0efeb;--line:#ddded7;--content:836px;--radius:4px;--control-radius:8px;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}body{margin:0;background:var(--surface);color:var(--ink);font:400 16px/24px 'Golos Text',sans-serif;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}p,h1,h2{margin:0}h1,h2{font-weight:400}h1{font-family:Werkzeug,monospace;font-variation-settings:'wdth' 1000;font-size:16px;line-height:24px}h2{font-size:16px;line-height:24px}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--ink);outline-offset:4px}.layout{width:calc(100% - 40px);max-width:var(--content);margin:96px auto 80px;display:grid;grid-template-columns:252px minmax(0,536px);gap:64px;align-items:start}.profile{position:sticky;top:96px;display:flex;flex-direction:column;gap:24px}.identity{display:flex;flex-direction:column;gap:12px}.identity p{margin-top:2px}.avatar{width:126px;height:143px;background:#d9d9d9}.contacts{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.meta{font-size:12px;line-height:16px;color:var(--muted)}.portfolio{min-width:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:32px}.filters{padding:4px;background:var(--subtle);border-radius:8px;display:flex;gap:4px}.filters button{background:transparent;border:0;padding:12px;min-height:44px;border-radius:var(--control-radius);color:var(--muted);white-space:nowrap;transition:background .18s,color .18s}.filters button[aria-pressed=true]{background:var(--raised);color:var(--ink)}.filters button:hover{color:var(--ink)}.view-toggle{display:flex;gap:2px;flex-shrink:0}.view-toggle button{border:0;background:transparent;border-radius:4px;width:36px;height:44px;display:grid;place-items:center;color:#90918b}.view-toggle button[aria-pressed=true]{color:var(--ink);background:var(--subtle)}.view-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.2}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px}.project-card{display:flex;flex-direction:column;gap:12px;border:0;padding:0;background:none;text-align:left;min-width:0}.project-cover{width:100%;height:244px;background:var(--subtle);border-radius:var(--radius);display:grid;place-items:center;color:var(--muted);font-size:12px;transition:background .25s,transform .35s var(--ease)}.project-card:hover .project-cover{background:var(--hover);transform:translateY(-3px)}.skeleton{display:flex;flex-direction:column;gap:8px}.skeleton:before,.skeleton:after{content:'';display:block;border-radius:4px}.skeleton:before{height:10px;background:var(--line);width:176px;max-width:80%}.skeleton:after{height:6px;background:var(--subtle);width:112px;max-width:60%}.sphere-panel{animation:appear .7s var(--ease)}.sphere-stage{position:relative;width:100%;height:536px;isolation:isolate;touch-action:pan-y;cursor:grab;outline-offset:-2px!important;user-select:none}.sphere-stage.dragging{cursor:grabbing}.sphere-stage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.sphere-item{position:absolute;left:0;top:0;border:1px solid #ddded7;background:#ecece6;border-radius:3px;display:grid;place-items:center;font:12px Werkzeug,monospace;color:#696b65;transform-origin:center;will-change:transform;cursor:pointer;box-shadow:0 4px 12px #20211f08}.sphere-item:hover,.sphere-item:focus-visible{background:#20211f!important;color:white!important;border-color:#20211f!important}.sphere-footer{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);padding:16px 0;border-top:1px solid #eeeee8}.sphere-footer button{padding:8px 0 8px 16px;border:0;background:none;font-size:12px;min-height:36px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:20px;z-index:10;background:var(--raised);padding:10px}.skip-link:focus{top:20px}[hidden]{display:none!important}dialog{border:1px solid var(--line);border-radius:8px;padding:24px;width:440px;max-width:calc(100% - 40px);color:var(--ink);background:var(--surface)}dialog::backdrop{background:#20211f33;backdrop-filter:blur(5px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-header button{border:0;background:none;padding:8px;font-size:12px}.preview-cover{aspect-ratio:4/3;border-radius:4px;background:var(--subtle);display:grid;place-items:center;color:var(--muted);margin-bottom:16px}.grid.reveal{animation:appear .45s var(--ease)}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:880px){.layout{gap:40px;grid-template-columns:252px minmax(0,1fr)}.toolbar{flex-wrap:wrap}.filters{flex:1}.filters button{flex:1;padding:12px 8px}.view-toggle{margin-left:auto}.sphere-stage{height:auto;aspect-ratio:1}.project-cover{height:auto;aspect-ratio:256/244}}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.layout{max-width:390px;display:flex;flex-direction:column;gap:40px;margin-top:32px}.profile{position:static;width:100%}.profile>p{max-width:300px}.identity{flex-direction:row;align-items:center;gap:16px}.avatar{width:64px;height:72px}.contacts{flex-direction:row;gap:16px;align-items:center}.portfolio{width:100%}.toolbar{gap:12px;margin-bottom:24px}.filters{width:100%}.filters button{padding:12px 8px}.grid{grid-template-columns:1fr;gap:32px}.project-cover{height:244px;aspect-ratio:auto}.sphere-stage{aspect-ratio:1;min-height:300px}.sphere-footer{padding-top:8px}}
#sphere-items{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}.sphere-item{left:50%;top:50%;backface-visibility:visible}
.filters{max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none}
@media(max-width:360px){.filters button{padding:8px 4px;font-size:16px}.filters{gap:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Concave gallery: crop the continuous surface, with no globe silhouette. */
.sphere-stage{overflow:hidden;border:1px solid var(--line);border-radius:4px;background:#fff}
#sphere-items{transform-style:flat}
.sphere-item{left:0;top:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;transform-origin:0 0;color:transparent;pointer-events:auto}
.sphere-item:hover,.sphere-item:focus-visible{background:transparent!important;border:0!important}
.sphere-footer{border-top:0}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.filters{flex:0 0 100%}}

/* Keep the profile anchor while bringing the work toolbar nearer the top. */
@media(min-width:641px){.portfolio{margin-top:-56px}}

:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--surface:#191a1b;--raised:#353638;--ink:#eeefeb;--muted:#a6a8a2;--subtle:#252729;--line:#3d4041;--hover:#303335}

.filters{flex:0 1 auto;width:max-content;gap:4px}
.filters button{flex:0 0 auto;padding:12px}

.theme-switch{position:fixed;z-index:45;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:max(20px,calc((100vw - var(--content))/2));display:flex;gap:4px;padding:4px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}
.theme-switch button{width:40px;height:40px;display:grid;place-items:center;padding:8px;border:0;border-radius:4px;background:transparent;color:var(--muted)}
.theme-switch button[aria-pressed=true]{background:var(--subtle);color:var(--ink)}
.theme-switch svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.is-loading .theme-switch{visibility:hidden}
.filters{background:none;padding:0;gap:4px;border:0;border-radius:0;overflow-y:hidden}
.filters button{background:var(--subtle);border:0;border-radius:var(--control-radius);position:relative;padding:8px 16px;min-height:36px;margin:0;font-family:Werkzeug,monospace;font-variation-settings:'wdth' 1000;font-size:16px;line-height:20px;color:var(--muted)}
.filters button[aria-selected=true]{background:#101111;color:#fff}
@media(min-width:641px){.profile{top:96px;transform:translateY(-28px)}}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.profile{margin-top:-28px}.filters{flex:0 1 auto;width:max-content}.filters button{padding:8px 12px;font-size:16px}.theme-switch{left:max(20px,calc((100vw - 390px)/2));bottom:calc(16px + env(safe-area-inset-bottom,0px))}.layout{margin-bottom:104px}}
@media(max-width:380px){.filters button{padding:8px 4px;font-size:16px}}

.project-caption{display:flex;flex-direction:column;gap:4px;width:100%}
.project-title{font:16px/24px Werkzeug,monospace;color:var(--ink)}
.project-description{font-size:16px;line-height:18px;color:var(--muted);margin-top:0}
#preview-description{margin-top:12px;font-size:16px;line-height:20px}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){z-index:1}
::view-transition-new(root){z-index:2}
html[data-theme-wave=active]::view-transition-new(root){clip-path:circle(0 at var(--wave-x) var(--wave-y))}
::view-transition-group(root){animation-duration:480ms}

.project-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.project-title{min-width:0}
.project-date{flex:none;font:10px/16px Werkzeug,monospace;color:var(--muted);background:var(--subtle);padding:4px 8px;border-radius:4px}
.project-description{font-family:Werkzeug,monospace;font-size:16px;line-height:18px;margin-top:0}
.project-title,.project-date,.project-description{font-variation-settings:'wdth' 1000}
.contact-button{flex:none;border:0;border-radius:var(--control-radius);padding:8px 20px;min-height:36px;background:#101111;color:#fff;font:16px/20px Werkzeug,monospace;font-variation-settings:'wdth' 1000;white-space:nowrap;margin-left:auto}
html[data-theme=dark] .contact-button{background:#f5f5f3;color:#101111}
.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.toolbar{flex-wrap:nowrap}.toolbar .filters{flex:0 1 auto;width:auto;min-width:0;overflow-x:auto}.toolbar .filters button{flex:none}
.identity:has(.pendant-block)>div:last-child{margin-top:-12px}
.contact-button{padding:8px 20px}
.filters{position:relative;isolation:isolate;--tab-x:0px;--tab-width:44px;--tab-fill:var(--subtle);scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.filters:before{content:'';position:absolute;left:0;top:0;height:36px;width:var(--tab-width);transform:translateX(var(--tab-x));background:var(--tab-fill);border-radius:var(--control-radius);pointer-events:none;transition:transform 240ms var(--ease),width 240ms var(--ease),background 180ms}
.filters button,.filters button[aria-selected=true]{background:transparent;border:0;color:var(--muted);transition:color 180ms}
.filters button[aria-selected=true]{color:#101111}
html[data-theme=dark] .filters button[aria-selected=true]{color:#fff}
@media(prefers-reduced-motion:reduce){.filters:before,.filters button{transition:none}}
.profile-links{display:contents}
.mobile-contact-slot,.mobile-theme-slot{display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  .profile-heading{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
  .mobile-contact-slot{display:block;flex:none}
  .profile-links{display:flex;align-items:center;gap:16px;white-space:nowrap}
  .profile-links .contacts{display:contents}
  .mobile-theme-slot{display:flex;justify-content:flex-end;margin-bottom:16px}
  .mobile-theme-slot .theme-switch{position:static;left:auto;bottom:auto;z-index:auto}
  .layout{margin-bottom:40px}
}
@media(max-width:360px){.profile-links{gap:12px}}
.theme-switch{padding:0;gap:4px;border:0;border-radius:0;background:transparent}
.theme-switch button{width:44px;height:44px;padding:12px;border-radius:4px;color:var(--muted);transition:background 180ms,color 180ms}
.theme-switch button[aria-pressed=true]{background:var(--subtle);color:#101111}
html[data-theme=dark] .theme-switch button[aria-pressed=true]{color:#fff}
.theme-switch svg{width:20px;height:20px}
.mobile-topbar{display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  .mobile-topbar{position:fixed;z-index:45;top:calc(16px + env(safe-area-inset-top,0px));left:0;right:0;width:calc(100% - 40px);max-width:390px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
  .mobile-topbar .mobile-theme-slot{margin:0;justify-content:flex-start}
  .mobile-topbar .theme-switch button{width:36px;height:36px;padding:8px}
  .mobile-topbar .contact-button{min-height:36px;height:36px;padding:8px 20px;font-size:16px;line-height:20px}
  .is-loading .mobile-topbar{visibility:hidden}
  .layout{margin-top:48px}
  .profile{text-align:left;align-items:stretch;transform:none}
  .portfolio{margin-top:0}
  .profile .identity:has(.pendant-block){align-items:center;width:100%}
  .profile-heading{display:block;text-align:left}
  .profile>p{margin:0;max-width:none;width:100%}
  .profile-links{justify-content:center;width:100%}
  .toolbar{justify-content:center}
}
#contact-dialog{width:400px;padding:16px;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 64px #00000020}
#contact-dialog .dialog-header{margin:0 0 8px;padding:4px 8px;min-height:44px}
#contact-title{font:16px/24px Werkzeug,monospace;font-variation-settings:'wdth' 1000}
#close-contact{display:grid;place-items:center;width:36px;height:36px;padding:8px;border-radius:50%;background:var(--subtle)}
#close-contact svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#contact-dialog .contact-links{display:flex;gap:4px;align-items:stretch}
.contact-links a{display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:4px 16px;padding:12px;border-radius:8px;text-decoration:none;transition:background 160ms}
.contact-label,.contact-value{grid-column:1}
.contact-arrow{grid-column:2;grid-row:1 / 3;align-self:center;justify-self:center;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.contact-links a:hover{background:var(--subtle);text-decoration:none}
.contact-label{font:12px/16px 'Golos Text',sans-serif;color:var(--muted)}
.contact-value{font:16px/24px 'Golos Text',sans-serif;color:var(--ink);overflow-wrap:anywhere}
#contact-dialog::backdrop{background:#10111166;backdrop-filter:blur(4px)}

.contact-grabber{display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  #contact-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;box-sizing:border-box;padding:0 16px calc(20px + env(safe-area-inset-bottom,0px));border:0;border-radius:24px 24px 0 0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -8px 40px #00000018}
  #contact-dialog[open]{animation:contact-sheet-in 280ms cubic-bezier(.2,.7,.2,1)}
  #contact-dialog .contact-grabber{display:flex;justify-content:center;align-items:center;height:28px;touch-action:none}
  .contact-grabber span{width:36px;height:4px;border-radius:4px;background:var(--line)}
  #contact-dialog .dialog-header{padding:0 4px;margin-bottom:8px;touch-action:none;user-select:none}
  #contact-dialog .contact-links a{padding:12px 4px}
  #close-contact{width:44px;height:44px;padding:12px}
  #contact-dialog::backdrop{animation:contact-backdrop-in 280ms ease-out}
}
@keyframes contact-sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes contact-backdrop-in{from{background:#10111100;backdrop-filter:blur(0)}to{background:#10111166;backdrop-filter:blur(4px)}}

/* Three aligned columns: company, team, period. Dates are provisional. */
.workplaces{width:100%}
.workplaces ol{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}
.workplaces li{font:inherit;display:grid;grid-template-columns:var(--profile-name-width) minmax(0,1fr) auto;align-items:center;gap:12px;min-height:28px}
.workplace-team{color:var(--muted);text-align:left}
.workplace-period{white-space:nowrap;text-align:right;justify-self:end}
.workplace-current{display:flex;align-items:center;gap:8px}
.workplace-current i{order:-1;flex:none;transform:translateY(2px);width:4px;height:4px;border-radius:50%;background:#4eaa75;animation:workplace-pulse 2.8s ease-in-out infinite}
@keyframes workplace-pulse{0%,100%{opacity:.45}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.workplace-current i{animation:none}}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:4px;gap:0 24px;align-items:start}
.grid .project-card{display:flex;width:100%;margin:0;align-self:start}
.grid .project-cover{height:auto;aspect-ratio:4/3}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.workplaces{display:none}.grid{grid-template-columns:1fr}}

/* Two independent actions, without selected segments. */
.theme-switch button{position:relative;color:var(--muted);background:transparent}
.theme-switch button:hover{color:var(--ink)}
.theme-switch #theme-toggle,.theme-switch #language-toggle{padding-left:0;justify-items:start}
#theme-toggle svg{position:absolute;transition:opacity 180ms,transform 240ms}
#theme-toggle svg{left:-2px;top:50%;margin-top:-10px}
.theme-sun{opacity:0;transform:rotate(-40deg) scale(.6)}
.theme-moon{opacity:1;transform:rotate(0) scale(1)}
html[data-theme=dark] .theme-sun{opacity:1;transform:rotate(0) scale(1)}
html[data-theme=dark] .theme-moon{opacity:0;transform:rotate(40deg) scale(.6)}
#language-toggle span{transform:none}
/* Let the 24px text line center inside the button instead of overflowing its 20px padded content box. */
.theme-switch #language-toggle{padding-block:0}
.theme-switch #bookmarks-link{position:relative;display:grid;align-items:center;justify-items:start;flex:none;width:44px;height:44px;padding:0;border-radius:4px;color:var(--muted);text-decoration:none;transition:color 180ms}
.theme-switch #bookmarks-link:hover{color:var(--ink)}
#bookmarks-link svg{margin-left:-2px}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.mobile-topbar .theme-switch #bookmarks-link{width:36px;height:36px}}
#language-toggle{font:16px/24px Werkzeug,monospace;font-variation-settings:'wdth' 1000}
@media(prefers-reduced-motion:reduce){#theme-toggle svg{transition:none}}

/* Projects and career history share one collapsed disclosure. */
.profile-links{--profile-name-width:92px;display:flex;flex-direction:column;gap:12px;width:100%}
.current-projects,.experience{width:100%}
.current-projects ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.current-projects li{display:grid;grid-template-columns:var(--profile-name-width) minmax(0,1fr) 24px;align-items:center;gap:12px;min-height:28px;text-align:left}
.current-project-team{color:var(--muted)}
.current-project-link{display:grid;place-items:center;width:24px;height:28px;color:var(--ink);border-radius:4px;transition:opacity 160ms}
.current-project-link:hover{opacity:.65}
html[data-theme=dark] .current-project-link{color:#fff}
.current-project-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.experience summary{display:flex;align-items:center;gap:8px;width:100%;min-height:28px;justify-content:space-between;cursor:pointer;list-style:none;color:var(--ink);font:inherit}
.experience summary::-webkit-details-marker{display:none}
.experience summary:hover{color:var(--ink)}
.experience summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}
.experience summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms}
.experience[open] summary svg{transform:rotate(180deg)}
.experience .workplaces{display:block;padding-top:20px}
.experience .current-projects{padding-top:20px}
.experience summary svg{flex-shrink:0}

/* Gallery cards: optional caption, with a real outbound action when available. */
.project-card{cursor:default}
.project-cover{position:relative;overflow:hidden;border-radius:12px}
.project-cover img,.project-cover video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.grid .project-cover.has-video{display:block;height:auto;overflow:hidden}
.project-cover.has-video video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.project-card:hover .project-cover{transform:none;background:var(--subtle)}
.project-card .project-description{font:14px/20px 'Golos Text',sans-serif;color:var(--muted);margin:0;text-align:left}
.project-link{position:absolute;bottom:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:rgba(252,252,252,.72);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--ink);opacity:0;transform:translateY(8px);transition:opacity 180ms,transform 180ms,background 180ms}
.project-link svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.project-card:hover .project-link,.project-card:focus-within .project-link{opacity:1;transform:translateY(0)}
.project-link:hover{background:rgba(252,252,252,.86)}
html[data-theme=dark] .project-link{background:rgba(25,26,27,.68);border-color:rgba(255,255,255,.16)}
html[data-theme=dark] .project-link:hover{background:rgba(25,26,27,.84)}
.project-link:focus-visible{outline-offset:-4px}
@media(hover:none){.project-link{opacity:1;transform:none}}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  .current-projects,.experience{width:100%;max-width:none;text-align:left}
  .profile-links{--profile-name-width:96px}
  .experience summary{width:100%;margin:0;justify-content:space-between;color:var(--ink);font:inherit}
  .experience summary svg{flex:none;margin-right:4px}
  html[data-theme=dark] .experience summary{color:#fff}
  .toolbar{width:100%;justify-content:flex-start}
  .toolbar .filters{flex:1 1 100%;width:100%}
  .toolbar .filters button{flex:1 0 auto;padding-inline:8px}
  .experience .workplaces{text-align:left}
  .project-link{opacity:1;transform:none}
}

/* Resume downloads use the same body type and subtle surface as the tabs. */
.resume-downloads{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.resume-download{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:8px 12px;border-radius:4px;background:var(--subtle);color:var(--ink);text-decoration:none}
.resume-download:hover{background:var(--hover);text-decoration:none}
.resume-download>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.resume-app-icons{position:relative;width:16px;height:16px;flex:none}
.resume-app-icon{position:absolute;inset:0;background:currentColor;mask:var(--app-icon) center/contain no-repeat;opacity:0}
.icon-codex{--app-icon:url('assets/icons/codex.svg');opacity:1}
.icon-claude{--app-icon:url('assets/icons/claude.svg')}
.icon-vscode{--app-icon:url('assets/icons/vscode.svg')}
.experience[open] .resume-app-icon{animation:resume-icon-cycle 9s ease-in-out infinite both}
.experience[open] .icon-claude{animation-delay:3s}
.experience[open] .icon-vscode{animation-delay:6s}
@keyframes resume-icon-cycle{0%{opacity:0;transform:translateY(3px)}4%,29%{opacity:1;transform:translateY(0)}33%,100%{opacity:0;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.experience[open] .resume-app-icon{animation:none}.resume-app-icon{display:none}.icon-codex{display:block;opacity:1}}

@media(max-width:360px){.toolbar .filters{gap:0}.toolbar .filters button{padding-inline:4px}}

/* Mobile identity returns to the full content width while the intro is hidden. */
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
  .profile{display:flex;flex-direction:column;gap:24px;align-items:stretch}
  .profile .identity:has(.pendant-block){display:flex;flex-direction:column}
  .profile .identity:has(.pendant-block)>.profile-heading{width:100%;margin-top:0}
}

/* The last card is playable in every filter. */
.profile-heading h1{font-size:20px;line-height:28px}
.profile-heading p{font-size:16px;line-height:20px}
.mobile-copy-break{display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.mobile-copy-break{display:initial}}
.project-cover.space-game-cover,.project-card:hover .space-game-cover{transform:none;background:var(--subtle);overflow:hidden}
.space-game{position:absolute;inset:0;width:100%;height:100%;color:var(--ink);font:400 16px/24px Werkzeug,monospace}
.space-game canvas{display:block;width:100%;height:100%;touch-action:none;image-rendering:pixelated;outline-offset:-4px}
.space-score{position:absolute;top:16px;left:16px;pointer-events:none;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.space-message{position:absolute;inset:0;display:none;align-items:center;justify-content:center;pointer-events:none;letter-spacing:.16em;background:color-mix(in srgb,var(--subtle) 90%,transparent)}
.space-message.visible{display:flex}

/* A short desktop view compacts spacing and lifts the sticky profile on expansion. */
@media(min-width:641px){
 .profile{overflow-anchor:none;--profile-lift:0px;--profile-compression:0;min-height:calc(100svh - 92px + var(--profile-lift));transform:translateY(calc(-28px - var(--profile-lift)));gap:calc(24px - 12px * var(--profile-compression));transition:transform 360ms ease,min-height 360ms ease,gap 360ms ease}
 .profile[data-scroll]{max-height:calc(100svh - 92px);overflow-y:auto;scrollbar-width:thin}
 .profile>.theme-switch{position:static;left:auto;bottom:auto;align-self:flex-start;margin-top:auto;flex-shrink:0}
 .profile .pendant{height:calc(310px - 60px * var(--profile-compression));transition:height 360ms ease}
 .profile .current-projects ul,.profile .profile-links,.profile .workplaces ol{gap:calc(12px - 4px * var(--profile-compression));transition:gap 360ms ease}
 .profile .experience .workplaces,.profile .experience .current-projects{padding-top:calc(20px - 4px * var(--profile-compression));transition:padding-top 360ms ease}
 .profile .resume-downloads{margin-top:calc(20px - 8px * var(--profile-compression));transition:margin-top 360ms ease}
 .profile .resume-download{min-height:36px;padding-block:calc(8px - 2px * var(--profile-compression));transition:padding 360ms ease}
 .profile-measure,.profile-measure *{transition:none!important}
}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){.profile{min-height:0;transform:none;transition:none}.profile .pendant{height:50svh;min-height:340px;transition:none}}
@media(prefers-reduced-motion:reduce){.profile,.profile .pendant,.profile .current-projects ul,.profile .profile-links,.profile .workplaces ol,.profile .experience .workplaces,.profile .resume-downloads,.profile .resume-download{transition:none}}

/* One disclosure action; the square is its visual button, without nested controls. */
.experience-toggle{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:4px;background:var(--subtle)}
.experience summary .experience-toggle svg{margin:0;width:20px;height:20px}
.current-work-link{color:var(--ink);text-decoration:none}
.current-work-link:hover{opacity:.65}
.current-work-link:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

#experience-title{font:400 16px/20px Werkzeug,monospace;font-variation-settings:'wdth' 1000}

/* v81: token heatmap spans both desktop masonry columns. */
.project-card-wide{grid-column:1 / -1}
.grid .project-card-wide .space-game-cover{aspect-ratio:auto;height:420px}
.space-game{--token-gray:#3b3d3e}
html:not(.dark):not([data-theme="dark"]) .space-game{--token-gray:#909697}
.space-score{right:24px;left:24px;top:20px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:14px;line-height:20px;letter-spacing:.04em}
.space-score-value{font-size:16px;white-space:nowrap}

/* v83: transparent result cat, centered inside the game rather than the page. */
.space-score{z-index:2}
.space-message{flex-direction:column;gap:8px;padding:52px 20px 20px;letter-spacing:.08em}
.space-result-cat{position:static!important;inset:auto!important;width:auto!important;height:260px!important;max-width:100%;object-fit:contain!important;flex:none}
.space-result-title{font-size:16px;line-height:24px;text-align:center}

.space-result-cat{opacity:1;transition:opacity 500ms ease-out}
.space-result-cat[data-phase=fading]{opacity:0}
@media(prefers-reduced-motion:reduce){.space-result-cat{transition:none}}

/* Horizontal control leaves vertical page scrolling to the browser. */
.space-game canvas{touch-action:pan-y}
.space-onboarding{position:absolute;left:50%;bottom:76px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 16px;border-radius:12px;background:var(--surface);color:var(--ink);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 240ms ease,visibility 240ms;font:14px/20px 'Golos Text',sans-serif;white-space:nowrap}
.space-onboarding.visible{opacity:1;visibility:visible}
.space-onboarding svg{width:88px;height:48px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.space-onboarding.visible .space-hint-hand{animation:token-swipe 1.2s ease-in-out 2}
@keyframes token-swipe{0%,100%{transform:translateX(-5px)}50%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){.space-onboarding{transition:none}.space-onboarding.visible .space-hint-hand{animation:none}}

/* v89: desktop profile is anchored to the viewport, not the end of the feed. */
@media(min-width:641px){
 .profile{position:fixed;left:max(20px,calc((100vw - var(--content))/2));width:252px;top:96px}
 .portfolio{grid-column:2}
}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .profile{position:static;left:auto;width:100%}
 .profile[data-scroll]{max-height:none;overflow:visible}
 .mobile-topbar{isolation:isolate;transition:transform 220ms ease,opacity 220ms ease}
 .mobile-topbar::before{content:'';position:absolute;z-index:-1;left:50%;top:calc(-16px - env(safe-area-inset-top,0px));bottom:-12px;width:100vw;transform:translateX(-50%);background:var(--surface);opacity:0;transition:opacity 180ms}
 .mobile-topbar[data-scrolled=true]::before{opacity:1}
 .mobile-topbar[data-scroll-hidden=true]{transform:translateY(calc(-100% - 32px - env(safe-area-inset-top,0px)));opacity:0;pointer-events:none}
}
.resume-download .resume-download-icon{width:20px;height:20px;flex:none;fill:currentColor;stroke:none}

/* v102: matched-height media pairs; full-width rows for featured cases. */
.grid{--card-gap:24px;display:flex;flex-direction:column;gap:var(--card-gap);align-items:stretch}
.project-row{display:grid;width:100%;gap:var(--card-gap);align-items:start;min-width:0}
.project-row>.project-card{min-width:0;grid-column:auto}
/* v108: the user's first four cases, in two independently stacked columns. */
.project-opening{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);min-width:0}
.project-opening-column{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
.project-opening .project-card{min-width:0}
.project-opening-left>.project-card:last-child{display:flex;flex-direction:column;flex:1;min-height:0}
.grid .project-opening-left>.project-card:last-child .project-cover{flex:1;min-height:0;aspect-ratio:auto!important}
.project-opening-left>.project-card:last-child video{object-fit:cover}
/* v109: full-width talk followed by a portrait and two stacked videos. */
.project-showcase{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
.project-showcase-trio{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:start}
.project-showcase-stack{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
.project-showcase .project-card{min-width:0}
.project-showcase>.project-card .project-description{color:var(--ink)}
.project-showcase-trio .project-cover video{object-fit:cover}
/* The right stack defines the height; crop the portrait equally at both ends. */
.project-showcase-trio>[data-project-id="21"]{align-self:stretch;display:flex;flex-direction:column;min-height:0}
.grid .project-showcase-trio>[data-project-id="21"] .project-cover{flex:1;min-height:0;aspect-ratio:auto!important}
.grid .project-showcase-stack>[data-project-id="10"] .project-cover{aspect-ratio:3/2!important}
.grid .project-showcase-stack>[data-project-id="20"] .project-cover{aspect-ratio:8/7!important}
/* v111: the next authored group after the bag / mayonnaise composition. */
.project-tools{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
.project-tools-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:start;min-width:0}
.project-tools .project-card{min-width:0}
.grid [data-project-id="09"] .project-cover{aspect-ratio:4/3!important}
.grid [data-project-id="09"] .project-cover video{object-fit:cover;object-position:center}
.grid .project-tools-pair [data-project-id="18"] .project-cover{aspect-ratio:1193/1319!important}
.project-tools-pair [data-project-id="18"] video{object-fit:cover;object-position:center top;transform:none}
[data-project-id="17"] .project-description{color:var(--ink)}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .grid{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:var(--card-gap)}
 .project-row{display:contents}
 .project-row>.project-card{grid-column:1 / -1}
 .project-tools,.project-tools-pair{display:contents}
 .project-tools .project-card{grid-column:1 / -1}
 .project-showcase,.project-showcase-trio,.project-showcase-stack{display:contents}
 .project-showcase .project-card{display:block;grid-column:1 / -1}
 .grid .project-showcase-trio>[data-project-id="21"] .project-cover{aspect-ratio:1!important}
 .project-opening,.project-opening-column{display:contents}
 .project-opening .project-card{display:block;grid-column:1 / -1}
 .grid .project-opening-left>.project-card:last-child .project-cover{aspect-ratio:9/16!important}
}

/* v112: retain the first card’s 4:5 frame for the new portrait footage. */
.grid [data-project-id="01"] .project-cover video{object-fit:cover;object-position:center}

/* Extra breathing room below the talk caption, as annotated. */
[data-project-id="16"] .project-description{margin-bottom:12px}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 [data-project-id="16"] .project-description{margin-bottom:4px}
}

.project-description-mobile{display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .project-description-mobile{display:block}
}

/* At the page end, the footer aligns with the desktop theme controls. */
.portfolio-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 0;padding:0;border:0;font:400 16px/20px Werkzeug,monospace;font-variation-settings:'wdth' 1000}
.portfolio-footer a,.portfolio-footer button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap}
.footer-channel{color:var(--muted)}
.footer-channel:hover{color:var(--ink);text-decoration:none}
.footer-top{font:inherit;font-variation-settings:inherit;border:0;border-radius:0;padding:8px 0;background:transparent;color:var(--muted);transition:color 180ms}
.footer-top:hover{color:var(--ink)}
.portfolio-footer svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.layout{margin-bottom:24px}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .layout{margin-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}
.is-loading .portfolio-footer{visibility:hidden}

.footer-avatar{width:24px;height:24px;flex:none;overflow:hidden;border-radius:50%}
.footer-avatar img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.8);transform-origin:50% 65%}
/* Mobile captions share one type scale and predictable spacing. */
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .grid .project-card{display:flex;flex-direction:column;gap:16px}
 .grid .project-card:has(.project-description){padding-bottom:8px}
 .grid .project-card .project-description{font:400 16px/24px 'Golos Text',sans-serif;color:var(--ink);margin:0}
}

/* Seven mobile menu levels; desktop grouping remains unchanged. */
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .mobile-menu #mobile-menu-panel{display:grid;grid-template-columns:1fr auto;gap:8px;justify-items:end}
 #mobile-menu-panel .mobile-menu-row{display:contents}
 #mobile-menu-panel [data-menu-theme]{grid-area:1 / 1;justify-self:end}
 #mobile-menu-panel [data-menu-language]{grid-area:1 / 2}
 #mobile-menu-panel [data-menu-skin]{grid-area:2 / 1 / auto / 3}
 #mobile-menu-panel [data-menu-bookmarks]{grid-area:3 / 1 / auto / 3}
 #mobile-menu-panel [data-menu-channel]{grid-area:4 / 1 / auto / 3}
 #mobile-menu-panel [data-menu-radar]{grid-area:5 / 1 / auto / 3}
 #mobile-menu-panel [data-menu-mayonez]{grid-area:6 / 1 / auto / 3}
 #mobile-menu-panel [data-menu-experience]{grid-area:7 / 1 / auto / 3}
}
/* Mobile contact links live in the left navigation menu. */
.mobile-menu a:is([data-menu-linkedin],[data-menu-x]){display:none}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 #open-contact,.mobile-topbar .mobile-contact-slot{display:none!important}
 .mobile-menu a:is([data-menu-linkedin],[data-menu-x]){display:inline-flex;width:40px;height:40px;min-width:40px;padding:8px;flex:none}
 .mobile-menu a:is([data-menu-linkedin],[data-menu-x]) img{border-radius:0}
}
/* Mobile navigation: actions unfold downward from the top-left control. */
.mobile-menu,#mobile-menu-backdrop{display:none}
@media all{
 .mobile-topbar{display:flex!important;min-height:36px;z-index:48;pointer-events:none;transition:transform 260ms cubic-bezier(.22,1,.36,1),opacity 200ms}
 .mobile-topbar .mobile-theme-slot{display:none}
 .mobile-topbar .mobile-contact-slot{pointer-events:auto;margin-left:auto}
 .mobile-menu{pointer-events:none;position:fixed;z-index:48;left:max(20px,calc((100vw - 390px)/2));top:calc(16px + env(safe-area-inset-top,0px));width:36px;height:36px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:calc(100vw - 40px);transition:transform 260ms cubic-bezier(.22,1,.36,1),opacity 200ms}
 .is-loading .mobile-menu{visibility:hidden}
 .mobile-menu[data-scroll-hidden=true]{transform:translateY(calc(-100% - 32px - env(safe-area-inset-top,0px)));opacity:0;pointer-events:none}
 #mobile-menu-panel{position:absolute;top:48px;left:0;width:max-content;max-width:calc(100vw - 40px);display:flex;flex-direction:column;gap:8px;visibility:hidden;transition:visibility 240ms}
 .mobile-menu-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;opacity:0;transform:translateY(-12px) scale(.96);transform-origin:left top;transition:opacity 180ms,transform 240ms cubic-bezier(.22,1,.36,1)}
 .mobile-menu[data-open=true] #mobile-menu-panel{visibility:visible}
 .mobile-menu[data-open=true] .mobile-menu-row{opacity:1;transform:none;transition-delay:calc(var(--row) * 45ms)}
 .mobile-menu button,.mobile-menu a,.contact-menu button,.contact-menu a{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);border-radius:var(--control-radius);background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--ink);font:400 16px/20px Werkzeug,monospace;font-variation-settings:'wdth' 1000;text-decoration:none;white-space:nowrap;box-shadow:0 4px 16px #00000008;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
 .mobile-menu button:active,.mobile-menu a:active,.contact-menu button:active,.contact-menu a:active{transform:scale(.96)}
 .mobile-menu a img{width:20px;height:20px;flex:none;border-radius:50%;object-fit:cover}
 .mobile-menu svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 .mobile-menu #mobile-menu-toggle{background:var(--subtle);color:var(--ink);border-color:transparent;box-shadow:none}
 .mobile-menu #mobile-menu-toggle{width:36px;height:36px;min-width:36px;min-height:36px;border-radius:var(--control-radius);padding:7px;justify-content:center}
 #mobile-menu-toggle .menu-tile{fill:currentColor;stroke:none;transform-box:fill-box;transform-origin:center;transition:transform 320ms cubic-bezier(.22,1,.36,1),opacity 180ms}
 .mobile-menu[data-open=true] .menu-tile-a{transform:translate(5px,5px) rotate(45deg) scale(2.333333,.333333)}
 .mobile-menu[data-open=true] .menu-tile-b{transform:translate(-5px,5px) rotate(-45deg) scale(2.333333,.333333)}
 .mobile-menu[data-open=true] .menu-tile-c{transform:translate(5px,-5px) scale(0);opacity:0}
 .mobile-menu[data-open=true] .menu-tile-d{transform:translate(-5px,-5px) scale(0);opacity:0}
 .mobile-menu [data-menu-theme]{width:40px;padding:8px}
 #mobile-menu-backdrop{display:block;position:fixed;inset:0;z-index:47;background:color-mix(in srgb,var(--surface) 35%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 280ms ease,visibility 280ms}
 #mobile-menu-backdrop[data-open=true]{opacity:1;visibility:visible;pointer-events:auto}
 #portfolio{scroll-margin-top:88px}
}

/* Keep the live blur intact during a menu theme change; promote moving controls. */
@media all{
 .mobile-topbar,.mobile-menu{will-change:transform,opacity;transform:translate3d(0,0,0);transition:transform 200ms cubic-bezier(.2,.7,.3,1),opacity 160ms ease}
 .mobile-topbar[data-scroll-hidden=true],.mobile-menu[data-scroll-hidden=true]{transform:translate3d(0,calc(-100% - 32px - env(safe-area-inset-top,0px)),0)}
 .mobile-menu #mobile-menu-toggle{-webkit-backdrop-filter:none;backdrop-filter:none}
 .mobile-menu button,.mobile-menu a{transition:background-color 240ms ease,color 240ms ease,border-color 240ms ease}
 #mobile-menu-backdrop{transition:opacity 280ms ease,visibility 280ms,background-color 240ms ease}
 .menu-mayonez-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#ef654a;flex:none}
 .menu-mayonez-icon::after{content:"";width:8px;height:8px;border-radius:50%;background:#f8cf58}
}

/* Shared menu; desktop opens above the former theme controls. */
.theme-switch{display:none!important}
.experience summary{justify-content:flex-start;gap:4px}
.experience-toggle{width:12px;height:12px;background:none;border-radius:0}
.experience summary .experience-toggle svg{width:12px;height:12px;margin:0}
@media not all and (max-width:640px){
 @media (hover:hover), (min-height:641px){
  .mobile-topbar{display:none!important}
  .mobile-menu{left:max(20px,calc((100vw - var(--content))/2));top:auto;bottom:calc(28px + env(safe-area-inset-bottom,0px))}
  #mobile-menu-panel{top:auto;bottom:48px;max-width:calc(100vw - 40px)}
  .mobile-menu-row{transform:translateY(12px) scale(.96);transform-origin:left bottom}
 }
}

/* User-provided app icons: level overlapping row, centered on the label. */
.experience summary{justify-content:space-between;align-items:center;gap:12px;min-height:44px}
.experience-apps{position:relative;display:block;flex:none;width:64px;height:28px}
.experience-app{position:absolute;top:0;left:0;display:block;width:28px;height:28px;object-fit:contain;border:3px solid var(--surface);border-radius:8px;background:var(--surface);transform-origin:center;transition:transform 320ms cubic-bezier(.22,1,.36,1)}
.experience-app:nth-child(1){transform:translateX(36px)}
.experience-app:nth-child(2){transform:translateX(24px)}
.experience-app:nth-child(3){transform:translateX(12px)}
.experience-app:nth-child(4){transform:translateX(0)}
.experience[open] .experience-app:nth-child(1){transform:translateX(36px) scale(1.08)}
.experience[open] .experience-app:nth-child(2){transform:translateX(12px) scale(1.08)}
.experience[open] .experience-app:nth-child(3){transform:translateX(-12px) scale(1.08)}
.experience[open] .experience-app:nth-child(4){transform:translateX(-36px) scale(1.08)}

/* Preview expansion only on devices with a real hover pointer. */
@media (hover:hover) and (pointer:fine){
 .experience:not([open]) summary:hover .experience-app:nth-child(1){transform:translateX(36px) scale(1.04)}
 .experience:not([open]) summary:hover .experience-app:nth-child(2){transform:translateX(20px) scale(1.04)}
 .experience:not([open]) summary:hover .experience-app:nth-child(3){transform:translateX(4px) scale(1.04)}
 .experience:not([open]) summary:hover .experience-app:nth-child(4){transform:translateX(-12px) scale(1.04)}
}
html:not([data-theme=dark]) .experience-app{box-shadow:0 2px 6px rgba(25,26,27,.14)}

@media not all and (max-width:640px){
 @media (hover:hover), (min-height:641px){
  .grid [data-project-id="15"] .project-cover{aspect-ratio:9/15!important}
  .grid [data-project-id="15"] .project-cover video{object-fit:cover;object-position:center top}
 }
}
.experience-app:nth-child(1){--hint-rest:36px;--hint-out:36px}
.experience-app:nth-child(2){--hint-rest:24px;--hint-out:20px}
.experience-app:nth-child(3){--hint-rest:12px;--hint-out:4px}
.experience-app:nth-child(4){--hint-rest:0px;--hint-out:-12px}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .experience-hint:not([open]) .experience-app{animation:experience-nudge 1000ms cubic-bezier(.22,1,.36,1) both}
}
@keyframes experience-nudge{
 0%,100%{transform:translateX(var(--hint-rest))}
 45%{transform:translateX(var(--hint-out)) scale(1.04)}
}

/* Preserve media geometry while images/posters load, then fade them in. */
.project-cover.media-loading{background:var(--subtle)}
.project-cover.media-loading::before{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 25%,var(--raised) 50%,transparent 75%);opacity:.45;transform:translateX(-100%);animation:media-shimmer 1600ms ease-in-out infinite;pointer-events:none}
.project-cover.media-loading>img,.project-cover.media-loading>video{opacity:0}
.project-cover.media-ready>img,.project-cover.media-ready>video{opacity:1;transition:opacity 320ms ease-out}
.project-cover.media-failed::before{animation:none;opacity:0}
@keyframes media-shimmer{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.project-cover.media-loading::before{animation:none;transform:none;opacity:.15}.project-cover.media-ready>img,.project-cover.media-ready>video{transition:none}}

/* Selected typography: Golos Text, regular copy and medium navigation. */
@font-face{font-family:'Golos Text';src:url('assets/fonts/GolosText-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Golos Text';src:url('assets/fonts/GolosText-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
h1{font-family:'Golos Text',sans-serif;font-weight:500;font-variation-settings:normal;letter-spacing:-.02em}
.filters button,.contact-button,.experience summary,#experience-title,.mobile-menu button,.mobile-menu a,.contact-menu button,.contact-menu a,.portfolio-footer,#contact-title{font-family:'Golos Text',sans-serif;font-weight:500;font-variation-settings:normal}

/* Compact navigation type; retain control height and hit areas. */
.filters button,.contact-button,.mobile-menu button,.mobile-menu a,.contact-menu button,.contact-menu a{font-size:15px;line-height:20px}

#current-radar{white-space:nowrap}

/* Contact menu shares the navigation's floating tabs and blurred backdrop. */
#contact-menu-backdrop{position:fixed;inset:0;z-index:47;background:color-mix(in srgb,var(--surface) 35%,transparent);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity 280ms,visibility 280ms}
#contact-menu-backdrop[data-open=true]{opacity:1;visibility:visible}
#contact-dialog{position:fixed;inset:auto;z-index:49;width:max-content;max-width:calc(100vw - 40px);padding:0;border:0;border-radius:0;background:none;box-shadow:none;opacity:0;visibility:hidden;transform:translateY(-12px) scale(.96);transform-origin:right top;transition:opacity 180ms,transform 240ms cubic-bezier(.22,1,.36,1),visibility 240ms}
#contact-dialog[data-open=true]{opacity:1;visibility:visible;transform:none}
#contact-dialog .contact-menu-row{display:flex;gap:8px;align-items:center;justify-content:flex-end}
#contact-dialog{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#contact-dialog .contact-icon-only{width:40px;height:40px;min-width:40px;padding:8px}
#contact-dialog img{width:20px;height:20px;flex:none;border-radius:4px;object-fit:cover}
#contact-dialog a[href*="nikir_public"] img{border-radius:50%}
#contact-dialog button:disabled{opacity:1;cursor:default}
#open-contact[aria-expanded=true]{position:relative;z-index:50}
@media(prefers-reduced-motion:reduce){#contact-dialog,#contact-menu-backdrop{transition:none}}

/* Keep the same compositing layers throughout menu close/open. */
#open-contact{position:relative;z-index:50}
#contact-dialog{transform:translateY(-8px);transition:opacity 240ms ease,transform 240ms cubic-bezier(.22,1,.36,1),visibility 0s 240ms}
#contact-dialog[data-open=true]{transition-delay:0s}
#contact-menu-backdrop{transition:opacity 280ms ease,visibility 0s 280ms}
#contact-menu-backdrop[data-open=true]{transition-delay:0s}
.experience-body{overflow:hidden}
.case-entering{opacity:0;transition:opacity 480ms ease}
.case-entering.case-visible{opacity:1}
.project-cover::before{transition:opacity 400ms ease}
.project-cover.media-ready::before{content:'';position:absolute;inset:0;background:var(--subtle);opacity:0;pointer-events:none}
.project-cover.media-ready>img,.project-cover.media-ready>video{transition:opacity 480ms ease}
@media(prefers-reduced-motion:reduce){.case-entering{opacity:1;transition:none}#contact-dialog,#contact-menu-backdrop{transition:none}.project-cover.media-ready>img,.project-cover.media-ready>video{transition:none}}

/* Mobile navigation follows the right edge; desktop placement stays unchanged. */
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .mobile-menu{left:auto;right:max(20px,calc((100vw - 390px)/2));align-items:flex-end}
 #mobile-menu-panel{left:auto;right:0;align-items:flex-end}
 .mobile-menu-row{justify-content:flex-end;transform-origin:right top}
}

.mobile-page-link{pointer-events:auto;display:grid;place-items:center;width:36px;height:36px;padding:7px;border:1px solid transparent;border-radius:var(--control-radius);background:var(--subtle);color:var(--ink)}
.mobile-page-link:hover{text-decoration:none}
.mobile-page-link:active{transform:scale(.96)}
.mobile-page-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.portfolio-footer{gap:16px;flex-wrap:wrap;font-size:15px;line-height:20px}
.portfolio-footer .footer-social{color:var(--muted)}
.portfolio-footer .footer-social:hover{color:var(--ink)}
.portfolio-footer a,.portfolio-footer a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
@media(max-width:640px){.portfolio-footer{gap:12px;font-size:14px;flex-wrap:nowrap}}

.mobile-page-link svg{fill:currentColor;stroke:none}
.mobile-page-link svg{color:#fff}

.mobile-page-link svg{color:var(--ink)}

.portfolio-footer a[href*="linkedin.com"]{text-transform:lowercase}

/* Desktop navigation mirrors the mobile menu and bookmark controls. */
.desktop-menu-slot,.desktop-bookmarks{display:none}
@media (min-width:641px) and (hover:hover), (min-width:641px) and (min-height:641px){
 .desktop-menu-slot{display:block;width:36px;height:36px;flex:none;margin-left:auto}
 .mobile-menu{bottom:auto;align-items:flex-end;transition:none}
 #mobile-menu-panel{top:48px;bottom:auto;left:auto;right:0;align-items:flex-end}
 .mobile-menu-row{justify-content:flex-end;transform:translateY(-12px) scale(.96);transform-origin:right top}
 .desktop-bookmarks{position:fixed;z-index:46;left:max(20px,calc((100vw - var(--content))/2));bottom:28px;display:grid;place-items:center;width:36px;height:36px;border-radius:var(--control-radius);background:var(--subtle);color:var(--ink)}
 .desktop-bookmarks svg{width:20px;height:20px;fill:currentColor}
 .is-loading .desktop-bookmarks{visibility:hidden}
}

/* Pet projects: two compact cases beside the tall bag video. */
.project-pet-trio{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:start}
.project-pet-stack{display:flex;flex-direction:column;gap:var(--card-gap);min-width:0}
@media(max-width:640px), (hover:none) and (pointer:coarse) and (max-height:640px){
 .project-pet-trio,.project-pet-stack{display:contents}
}

@media (min-width:641px) and (hover:hover), (min-width:641px) and (min-height:641px){
 .project-pet-trio>[data-project-id="07"]{order:0!important}
}

/* Keep the webinar link clear of the speaker on desktop and mobile. */
[data-project-id="hse-accessibility"] .project-link{right:12px;left:auto;bottom:12px;top:auto}
