
@view-transition{navigation:auto}
::view-transition-old(root){animation:page-out 120ms ease both}
::view-transition-new(root){animation:page-in 200ms ease both}
@keyframes page-out{to{opacity:0}}
@keyframes page-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.reading-progress{position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:var(--ink);transform:scaleX(0);transform-origin:left;pointer-events:none}
.theme-changing body,.theme-changing .site-header,.theme-changing .footer,.theme-changing .work-card,.theme-changing .contact-card,.theme-changing .discord-feature{transition:background-color .22s,color .22s,border-color .22s}
html{scrollbar-width:thin;scrollbar-color:#777 var(--bg)}
:root[data-theme=dark]{scrollbar-color:#444 var(--bg)}
.image-placeholder{position:relative;background:var(--surface);min-height:1px}
.image-placeholder img{opacity:0}
.image-placeholder:after{content:"";position:absolute;inset:0;background:var(--hover);animation:placeholder-pulse 1.1s ease-in-out infinite alternate;pointer-events:none}
.gallery .image-placeholder{aspect-ratio:16/9}
@keyframes placeholder-pulse{from{opacity:.35}to{opacity:1}}
.latest-release{border-left:1px solid var(--line);padding-left:9px;color:var(--ink);font-weight:550}
.discord-feature .discord-live{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:12px;color:var(--muted)}
.online-dot{width:7px;height:7px;border-radius:50%;background:#3ba55c;flex:none}
.error-page{min-height:100svh;display:grid;place-items:center;padding:24px}
.error-content{width:min(100%,520px)}
.error-content img{width:56px;height:56px;object-fit:contain;margin-bottom:32px}
.error-code{font-size:clamp(90px,22vw,180px);font-weight:600;letter-spacing:-.09em;line-height:1;color:var(--ink)}
.error-content h1{font-size:28px;letter-spacing:-.04em;margin-top:20px}
.error-content p{color:var(--muted);margin:10px 0 24px}
.error-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}.image-placeholder:after{animation:none}.theme-changing *{transition:none!important}}

.uniflash-demo{margin:28px 0 42px;min-width:0}
.demo-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px}
.demo-heading h2{font-size:24px;letter-spacing:-.04em;font-weight:550}
.demo-heading p{color:var(--muted);font-size:14px;margin-top:5px}
.demo-heading a{font-size:13px;flex-shrink:0}
.uniflash-viewport{width:100%;height:clamp(440px,56vw,720px);background:#0e0f13;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.uniflash-viewport iframe{width:100%;height:100%;display:block}
.demo-loading{height:100%;display:grid;place-items:center;text-align:center;padding:20px;color:#c9ced8;font-size:14px}
.uniflash-screenshots .detail-media{margin-top:16px}
@media(max-width:620px){.demo-heading{align-items:flex-start;flex-direction:column;gap:8px}.uniflash-viewport{height:clamp(440px,75svh,650px)}.uniflash-demo{margin:20px 0 30px}}

/* Preserve the complete UniFlash screenshot, including the bottom controls. */
.uniflash-screenshots .detail-media .work-stage{height:auto;aspect-ratio:auto}
.uniflash-screenshots .detail-media .screen{height:auto;aspect-ratio:auto}
.uniflash-screenshots .detail-media img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;position:static}
/* Remove inherited detail hero height cap and grid sizing entirely. */
.uniflash-screenshots .detail-media .work-stage,.uniflash-screenshots .detail-media .screen{display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;padding:0;overflow:hidden}
.uniflash-screenshots .detail-media .screen img{position:static;inset:auto;display:block;width:100%;height:auto;max-height:none;object-fit:contain}


html.theme-reveal::view-transition-old(root),html.theme-reveal::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.theme-reveal::view-transition-old(root){z-index:1}
html.theme-reveal::view-transition-new(root){z-index:2}
html.theme-reveal::view-transition-group(root){animation:none}
html.theme-reveal *{transition:none!important}
/* Declare the reveal before capture so the transition cannot finish before JS attaches an animation. */
html.theme-reveal::view-transition-new(root){animation:theme-circle-reveal 480ms cubic-bezier(.22,.61,.36,1) both}
@keyframes theme-circle-reveal{from{clip-path:circle(0px at var(--reveal-x) var(--reveal-y))}to{clip-path:circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y))}}