html.is-gallery-open,html.is-gallery-open body{overflow:hidden}
.project-gallery{box-sizing:border-box;width:min(1480px,calc(100vw - 64px));height:calc(100svh - 64px);max-width:none;max-height:calc(100svh - 32px);margin:auto;padding:0;overflow:hidden;border:1px solid #625e7b;border-radius:28px;background:#0a0a11;color:#f4f3f8;font-family:"Manrope",sans-serif;cursor:auto!important;box-shadow:0 26px 100px #0008,inset 0 1px #ffffff0b}
.project-gallery::backdrop{background:#030308eb}
.project-gallery[open]{display:block}
.project-gallery *{box-sizing:border-box}
.project-gallery [hidden]{display:none!important}
.project-gallery button,.project-gallery a{cursor:pointer!important}
.project-gallery button{font:inherit;color:inherit}
.project-gallery button:disabled{opacity:.25;cursor:default!important}
.project-gallery svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.project-gallery .gallery-shell{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;padding:0;gap:0}
.project-gallery .gallery-header{display:flex;align-items:center;gap:28px;padding:23px 26px;border-bottom:1px solid #292733}
.project-gallery .gallery-heading{min-width:0;max-width:57%}
.project-gallery .gallery-kicker{margin:0 0 7px;color:#aaa4c5;font:400 11px/1.3 "IBM Plex Mono",monospace;letter-spacing:.1em}
.project-gallery .gallery-header h2{margin:0;font:500 clamp(22px,2.1vw,32px)/1.24 "Unbounded",sans-serif;letter-spacing:0;overflow-wrap:anywhere}
.project-gallery .gallery-category{flex:1;min-width:120px;max-width:420px;margin:0;color:#b9b5ca;font-size:14px;line-height:1.55}
.project-gallery .gallery-header-actions{display:flex;align-items:center;gap:14px;flex:none;margin-left:auto}
.project-gallery .gallery-total{padding:10px 14px;border:1px solid #373341;border-radius:999px;color:#bab6cc;font:400 11px/1.3 "IBM Plex Mono",monospace;white-space:nowrap}
.project-gallery .gallery-close{display:grid;place-items:center;flex:none;width:46px;height:46px;padding:0;border:1px solid #666175;border-radius:50%;background:#17151f99;transition:background .2s,border-color .2s,box-shadow .2s}
.project-gallery .gallery-close svg{width:20px;height:20px}
.project-gallery .gallery-content{display:grid;grid-template-columns:minmax(0,1fr) 328px;min-height:0;overflow:hidden}
.project-gallery .gallery-main{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px;padding:22px}
.project-gallery .gallery-viewer{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #302c3e;border-radius:22px;background:#030306}
.project-gallery .gallery-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;border-radius:0;touch-action:pan-y pinch-zoom}
.project-gallery .gallery-media{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;background:#030306}
.project-gallery .gallery-message{position:absolute;inset:50% 14px auto;transform:translateY(-50%);text-align:center;pointer-events:none}
.project-gallery .gallery-feedback{display:inline-block;max-width:100%;margin:0;padding:10px 16px;border:1px solid #4d435f;border-radius:14px;background:#17121fe8;color:#d7cfe5;font-size:14px;line-height:1.5}
.project-gallery .gallery-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:64px;padding:0}
.project-gallery .gallery-caption-copy{min-width:0}
.project-gallery .gallery-caption{margin:0;font:600 18px/1.4 "Manrope",sans-serif;color:#eeeaf6;overflow-wrap:anywhere}
.project-gallery .gallery-kind{margin:5px 0 0;font:400 12px/1.5 "Manrope",sans-serif;letter-spacing:0;color:#a69db8}
.project-gallery .gallery-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px 16px;flex:none;max-width:54%}
.project-gallery .gallery-file-link{display:inline-flex;font-size:11px;line-height:1.5;color:#a99cc7;text-decoration:none;white-space:nowrap}
.project-gallery .gallery-file-link:hover{color:#e1d9ff}
.project-gallery .gallery-pagination{display:flex;align-items:center;gap:13px}
.project-gallery .gallery-counter{font:400 12px/1.2 "IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;color:#bdb3d7;white-space:nowrap}
.project-gallery .gallery-arrow{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #666175;border-radius:50%;background:#17151f99;color:#e8e5f2;transition:background .2s,border-color .2s,box-shadow .2s}
.project-gallery .gallery-pair-toggle{padding:8px 12px;border:1px solid #61556f;border-radius:999px;background:#191420;color:#d9cfeb;font-size:11px;line-height:1.3;white-space:nowrap}
.project-gallery .gallery-pair-toggle[aria-pressed="true"]{border-color:#9887d0;background:#302146;color:#f2eaff}
.project-gallery .gallery-contents{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#514867 transparent;border-left:1px solid #302b3d;background:#0e0e16;padding:23px 18px 20px}
.project-gallery .gallery-contents-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.project-gallery .gallery-contents-title{margin:0;font:600 17px/1.35 "Manrope",sans-serif}
.project-gallery .gallery-contents-count{font:400 11px/1.3 "IBM Plex Mono",monospace;color:#938ba9}
.project-gallery .gallery-groups{min-width:0}
.project-gallery .gallery-group+.gallery-group{margin-top:22px}
.project-gallery .gallery-group-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 9px;color:#a59cb7;font:400 10px/1.5 "IBM Plex Mono",monospace;text-transform:uppercase;letter-spacing:.06em}
.project-gallery .gallery-group-heading h4{margin:0;font:inherit;color:inherit}
.project-gallery .gallery-file{display:grid;grid-template-columns:64px minmax(0,1fr) 18px;align-items:center;gap:11px;width:100%;margin:4px 0 0;padding:8px;border:1px solid transparent;border-radius:14px;background:none;text-align:left;transition:color .2s,background .2s,border-color .2s,box-shadow .2s}
.project-gallery .gallery-file:hover{background:#ffffff07}
.project-gallery .gallery-file-thumb{display:block;position:relative;width:64px;height:48px;overflow:hidden;border-radius:9px;background:#050509}
.project-gallery .gallery-file-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.project-gallery .gallery-file-play{position:absolute;bottom:4px;right:4px;display:grid;place-items:center;width:16px;height:16px;border:1px solid #d0c8e56b;border-radius:50%;background:#0b0813b3;color:white}
.project-gallery .gallery-file-play svg{width:8px;height:8px;margin-left:1px}
.project-gallery .gallery-file-copy{display:block;min-width:0}
.project-gallery .gallery-file-title{display:block;font:600 14px/1.35 "Manrope",sans-serif;color:#e9e3f4;overflow-wrap:anywhere}
.project-gallery .gallery-file-detail{display:block;margin-top:5px;font:400 11px/1.35 "Manrope",sans-serif;color:#a69bb9}
.project-gallery .gallery-file-number{font:400 10px/1.3 "IBM Plex Mono",monospace;color:#9689b4;text-align:right}
.project-gallery .gallery-file[aria-current="true"]{background:var(--control-active-bg,linear-gradient(180deg,#8a85ff,#615dff));border-color:var(--control-active-border,#aaa5ff5c);box-shadow:var(--control-active-shadow,0 0 9px #756bffb0,0 0 25px #6357ff60,inset 0 1px 5px #ffffff35)}
.project-gallery .gallery-file[aria-current="true"] .gallery-file-title,.project-gallery .gallery-file[aria-current="true"] .gallery-file-detail,.project-gallery .gallery-file[aria-current="true"] .gallery-file-number{color:#fff}
.project-gallery .gallery-group.is-collapsed .gallery-file[data-extra]{display:none}
.project-gallery .gallery-more{display:block;padding:9px 0 0 84px;border:0;background:none;color:#aaa0d7;font:400 12px/1.5 "Manrope",sans-serif}
.project-gallery .gallery-more:hover{color:#eee8ff}
.project-gallery.is-compact .gallery-content{grid-template-columns:minmax(0,1fr)}
.project-gallery.is-compact .gallery-contents,.project-gallery.is-single .gallery-total{display:none}
.project-gallery .gallery-stage.is-paired{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px;align-items:stretch}
.project-gallery .gallery-screen{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0;min-height:0;margin:0;text-align:center}
.project-gallery .gallery-screen figcaption{font:400 12px/1.4 "Manrope",sans-serif;color:#c9bfda}
.project-gallery button:focus-visible,.project-gallery a:focus-visible{outline:2px solid #b3a6ff;outline-offset:3px}
.project-gallery .gallery-arrow:not(:disabled):is(:hover,:focus-visible),.project-gallery .gallery-close:is(:hover,:focus-visible){background:var(--control-active-bg,linear-gradient(180deg,#8a85ff,#615dff));border-color:var(--control-active-border,#aaa5ff5c);box-shadow:var(--control-active-shadow,0 0 9px #756bffb0,0 0 25px #6357ff60);color:#fff}
@media(max-width:1100px) and (min-width:821px){
  .project-gallery .gallery-content{grid-template-columns:minmax(0,1fr) 286px}
  .project-gallery .gallery-header{gap:18px;padding:20px}
  .project-gallery .gallery-heading{max-width:59%}
  .project-gallery .gallery-category{font-size:12px}
  .project-gallery .gallery-total{display:none}
  .project-gallery .gallery-main{padding:18px;gap:12px}
  .project-gallery .gallery-contents{padding:20px 12px}
  .project-gallery .gallery-file{grid-template-columns:54px minmax(0,1fr) 16px;gap:9px;padding:7px}
  .project-gallery .gallery-file-thumb{width:54px;height:45px}
  .project-gallery .gallery-footer{flex-wrap:wrap;gap:8px}
  .project-gallery .gallery-actions{max-width:100%;margin-left:auto}
}
@media(max-width:820px){
  .project-gallery{width:100%;height:100svh;max-height:100svh;margin:0;border:0;border-radius:0}
  .project-gallery .gallery-header{align-items:center;gap:12px;padding:calc(16px + env(safe-area-inset-top)) 16px 14px}
  .project-gallery .gallery-heading{max-width:none;flex:1}
  .project-gallery .gallery-kicker{font-size:10px;margin-bottom:7px}
  .project-gallery .gallery-header h2{font-size:20px;line-height:1.3}
  .project-gallery .gallery-header-actions{margin-left:0}
  .project-gallery .gallery-close{width:42px;height:42px}
  .project-gallery .gallery-category,.project-gallery .gallery-total{display:none}
  .project-gallery .gallery-content{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 162px}
  .project-gallery.is-compact .gallery-content{grid-template-rows:minmax(0,1fr)}
  .project-gallery .gallery-main{padding:12px 14px;gap:12px}
  .project-gallery .gallery-viewer{border-radius:20px}
  .project-gallery .gallery-footer{flex-wrap:wrap;min-height:0;gap:9px;align-content:start}
  .project-gallery .gallery-caption-copy{flex:1 1 100%}
  .project-gallery .gallery-caption{font-size:16px;line-height:1.35}
  .project-gallery .gallery-kind{font-size:12px;margin-top:4px}
  .project-gallery .gallery-actions{max-width:100%;width:100%;justify-content:space-between;gap:8px}
  .project-gallery .gallery-pagination{margin-left:auto;gap:10px}
  .project-gallery .gallery-arrow{width:40px;height:40px}
  .project-gallery .gallery-counter{font-size:11px}
  .project-gallery .gallery-file-link{font-size:11px}
  .project-gallery .gallery-contents{display:grid;grid-template-rows:auto minmax(0,1fr);padding:12px 14px calc(8px + env(safe-area-inset-bottom));overflow:hidden;border-left:0;border-top:1px solid #302b3d}
  .project-gallery .gallery-contents-heading{margin-bottom:10px}
  .project-gallery .gallery-contents-title{font-size:14px}
  .project-gallery .gallery-groups{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#514867 transparent;padding:3px 3px 7px;overscroll-behavior-x:contain}
  .project-gallery .gallery-group,.project-gallery .gallery-group+.gallery-group{display:contents;margin:0}
  .project-gallery .gallery-group-heading,.project-gallery .gallery-more{display:none}
  .project-gallery .gallery-file,.project-gallery .gallery-group.is-collapsed .gallery-file[data-extra]{display:flex;flex-direction:column;flex:0 0 116px;gap:6px;width:116px;margin:0;padding:5px;border-radius:12px;align-items:stretch;justify-content:flex-start}
  .project-gallery .gallery-file-thumb{width:104px;height:55px;border-radius:8px;flex:none}
  .project-gallery .gallery-file-title{font-size:10px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .project-gallery .gallery-file-detail,.project-gallery .gallery-file-number{display:none}
  .project-gallery .gallery-file[aria-current="true"]{box-shadow:inset 0 1px 5px #ffffff35,0 0 9px #756bff70}
  .project-gallery .gallery-pair-toggle{font-size:10px;padding:7px 9px}
  .project-gallery .gallery-stage.is-paired{gap:8px;padding:8px}
  .project-gallery .gallery-screen{gap:8px}
  .project-gallery .gallery-screen figcaption{font-size:10px}
}
@media(max-width:820px) and (max-height:520px){
  .project-gallery .gallery-shell{display:block;overflow:auto}
  .project-gallery .gallery-header{position:sticky;top:0;z-index:2;background:#0a0a11}
  .project-gallery .gallery-content{display:flex;flex-direction:column;overflow:visible}
  .project-gallery .gallery-main{min-height:340px;grid-template-rows:230px auto;flex:none}
  .project-gallery .gallery-contents{height:162px;flex:none}
}
@media(prefers-reduced-motion:reduce){.project-gallery button{transition:none!important;scroll-behavior:auto}}


/* Original project photo with a separate layer for readable captions. */
.has-project-cover{position:relative;isolation:isolate;overflow:hidden}
.has-project-cover .project-cover{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;object-fit:cover;object-position:60% 44%;
  transform:scale(1.03);transition:transform .65s ease;
  pointer-events:none;user-select:none;
}
.has-project-cover::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(0deg,rgba(0,0,0,.9),rgba(0,0,0,.48) 22%,rgba(0,0,0,.12) 48%,transparent 72%),linear-gradient(90deg,rgba(0,0,0,.52),rgba(0,0,0,.2) 35%,transparent 76%);
}
.has-project-cover>div{position:relative;z-index:2}
#work .has-project-cover::after{z-index:3}
#work .has-project-cover small{color:#d8d8e2}
#work .has-project-cover .work-project-description{color:#d8d8e2}
.projects-card.has-project-cover .projects-card-top,
.projects-card.has-project-cover .projects-card-bottom>span{color:#d8d8e2}
@media(hover:hover){.has-project-cover:hover .project-cover{transform:scale(1.075)}}
@media(prefers-reduced-motion:reduce){
  .has-project-cover .project-cover{transition:none}
  .has-project-cover:hover .project-cover{transform:scale(1.03)}
}
