@font-face{font-family:'IBM Plex Mono';src:url('assets/fonts/ibm-plex-mono-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{color-scheme:light;--page-bg:#fff;--text:#000;--muted:#8794aa;--surface:#f4f4f4;--border:#d9dee4;--shadow:rgb(0 0 0 / .08);--page-width:1440px;--column-width:600px;--section-gap:60px;--preview-radius:20px;--ease-out:cubic-bezier(.22,1,.36,1)}
:root[data-theme=dark]{color-scheme:dark;--page-bg:#151719;--text:#f4f5f6;--muted:#929fb2;--surface:#25282b;--border:#3a3f45;--shadow:rgb(0 0 0 / .3)}
*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--page-bg)}body{margin:0;background:var(--page-bg);color:var(--text);font:400 16px/24px 'IBM Plex Mono',monospace;letter-spacing:-.5px;-webkit-font-smoothing:antialiased;transition:background-color 180ms,color 180ms}h1,h2,h3,h4,p,ul,blockquote{margin:0;font:inherit}button,a{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}a{text-underline-position:from-font;text-underline-offset:2px}button:focus-visible,a:focus-visible{outline:2px solid #5d8ef7;outline-offset:3px}::selection{background:#dbe5f5;color:#000}[hidden]{display:none!important}
.page{--page-padding:clamp(20px,calc((100vw - 992px)/2),60px);max-width:var(--page-width);margin:auto;padding:60px var(--page-padding);position:relative;animation:page-enter 240ms ease both}.content{display:flex;flex-direction:column;gap:var(--section-gap)}.header,.section,.career{display:grid;grid-template-columns:minmax(0,1fr) var(--column-width) minmax(0,1fr)}.header{min-height:236px;align-items:start}.portrait-row{height:236px;display:flex;align-items:center}.portrait{display:block;flex:none;max-width:100%;object-fit:contain}.about{display:flex;flex-direction:column;gap:16px;min-width:0}.about h1,.section-title,.career>h2{color:var(--muted);font-weight:400}.links{display:flex;flex-wrap:wrap;gap:8px 20px}.links a{white-space:nowrap}.options{position:absolute;right:var(--page-padding);top:60px;display:flex;gap:20px;align-items:start}.icon-button,.language{width:40px;height:40px;border-radius:8px;background:var(--surface);display:grid;place-items:center;padding:8px;font-size:14px;line-height:16px;letter-spacing:.1px}.icon-button{position:relative;transition:transform 120ms,background-color 180ms}.icon-button svg{width:24px;height:24px;grid-area:1/1;transition:opacity 220ms,transform 220ms var(--ease-out)}.sun{opacity:0;transform:rotate(-90deg) scale(.55)}[data-theme=dark] .sun{opacity:1;transform:none}[data-theme=dark] .moon{opacity:0;transform:rotate(90deg) scale(.55)}.icon-button:active,.project-link:active{transform:scale(.94)}
.work-section{margin-top:-60px}.work-section>.section-title{padding-top:84px}.work-column,.tab-panel{display:flex;flex-direction:column;gap:32px;min-width:0}.segmented{position:relative;display:flex;width:100%;height:52px;padding:4px;border-radius:16px;background:var(--surface)}.segmented:before{content:'';position:absolute;inset:4px auto 4px 4px;width:calc(50% - 6px);border-radius:12px;background:var(--page-bg);box-shadow:0 6px 12px var(--shadow);transition:transform 280ms var(--ease-out),background-color 180ms}.segmented[data-active=about]:before{transform:translateX(calc(100% + 2px))}.segmented button{z-index:1;flex:1;min-width:0;min-height:44px;background:transparent;border-radius:12px;padding:12px 20px;font-size:14px;line-height:16px;letter-spacing:.1px}.tab-panel.entering{animation:tab-enter 220ms var(--ease-out) both}.project{display:flex;flex-direction:column;gap:16px}.project-heading{display:flex;align-items:flex-end;gap:12px}.project-heading h3{flex:1;min-width:0;overflow-wrap:break-word}.project-link{flex:0 0 48px;width:48px;height:48px;padding:12px;background:var(--surface);border-radius:12px;transition:transform 120ms,background-color 180ms;color:var(--muted)}.project-link svg{display:block;width:24px;height:24px}.project-preview{display:block;aspect-ratio:5/4;border-radius:var(--preview-radius);overflow:hidden;background:var(--surface)}.project-preview img{display:block;width:100%;height:100%;object-fit:cover}.project[data-project=wannabe] img{object-position:50% 50%}
.career>h2{font-size:16px;line-height:24px}.career-list{display:flex;flex-direction:column;gap:32px;min-width:0}.career-card{display:flex;flex-direction:column;gap:16px;min-width:0}.career-heading{display:flex;align-items:flex-start;gap:8px}.career-heading>img{flex:none;margin:10px 11px;width:26px;height:26px;object-fit:contain}.career-heading>div{flex:1;min-width:0}.career-heading h3{display:flex;flex-wrap:wrap;gap:0 8px}.career-date{color:var(--muted)}.career-copy{padding-left:56px;overflow-wrap:break-word}.career-copy h4{font-weight:500;margin-bottom:4px}.career-copy p{margin-bottom:16px}.career-copy ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:4px}.career-copy li{position:relative;padding-left:12px}.career-copy li:before{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:var(--text);left:0;top:10px}.outline-button{margin-left:56px;align-self:start}.recommendations{display:flex;flex-direction:column;gap:32px}.recommendation h3{font-weight:500}.recommendation-role{color:var(--muted);margin-bottom:16px}.recommendation blockquote p+p{margin-top:16px}.recommendation .outline-button{display:inline-block;margin:16px 0 0}.footer{padding-top:0}.skip-link{position:fixed;top:-80px;left:20px;padding:12px;background:var(--page-bg);z-index:5}.skip-link:focus{top:12px}
.project-page{width:min(760px,calc(100% - 40px));margin:60px auto;display:flex;flex-direction:column;gap:32px;animation:page-enter 240ms ease both}.project-page h1{font-size:24px;line-height:1.4}.project-meta{color:var(--muted);font-size:14px}.detail-cover{display:block;width:100%;height:auto;border-radius:20px}.back-link{align-self:start}.project-page footer{margin-top:28px}
@media(hover:hover) and (pointer:fine){.links a:hover,.back-link:hover,.outline-button:hover{opacity:.65}.project-link:hover{background:var(--border)}}
@media(max-width:1031px){.page{--page-padding:20px;padding:20px}.content{max-width:600px;margin:auto}.header,.section,.career{display:flex;flex-direction:column;width:100%}.header{gap:20px;min-height:0}.portrait-row{width:100%;height:236px;align-items:flex-start;position:relative}.portrait{margin-top:33px}.options{position:static;flex:1;justify-content:flex-end;gap:20px}.about{font-size:14px;line-height:20px}.work-section{margin-top:0}.work-section>.section-title{display:none}.segmented button{line-height:20px}.project-heading h3{font-size:14px;line-height:20px}.project-link{flex-basis:40px;width:40px;height:40px;padding:8px}.career{gap:20px}.career>h2{font-size:14px;line-height:20px}.career-list{gap:20px}.career-card{font-size:14px;line-height:20px}.career-copy li:before{top:8px}.recommendations,#about-panel{font-size:14px;line-height:20px}.project-page{margin:20px auto}.project-page h1{font-size:20px}.project-page .career-copy{padding-left:0}.project-page .outline-button{margin-left:0}}
@media(max-width:359px){.options{gap:8px}.portrait{width:140px;height:140px}.links{gap:8px 16px}.career-heading h3{gap:0 6px}}
@keyframes page-enter{from{opacity:0}to{opacity:1}}@keyframes tab-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

.project-language{margin-left:auto;margin-bottom:20px}.language:active{transform:scale(.94)}

/* A fixed portrait stage keeps the layout stable when the character changes. */
.portrait-switch{display:block;flex:none;width:180.933px;height:236px;padding:0;background:transparent;border:0;overflow:hidden}
.portrait-switch .portrait{display:block;width:100%;height:100%;max-width:100%;margin:0;object-fit:contain;object-position:center top}

/* Keep the tabs 40px below contacts, independently of copy length. */
.header + .work-section{margin-top:calc(40px - var(--section-gap))}
@media(min-width:1032px){
 .header{min-height:0}
 .header>.portrait-row{height:0;align-items:flex-start}
}

/* Home controls retain their row without reserving space for the removed portrait. */
@media(max-width:1031px){.header>.home-controls{height:40px}}

/* Static character occupies the existing left Hero column. */
.header{position:relative}
@media(min-width:1032px){.header .options{top:0;right:0}}
.hero-character{position:absolute;left:0;bottom:0;display:block;width:auto;height:180px;pointer-events:none}
@media(max-width:1031px){
 .header>.home-controls{height:100px}
 .home-controls>.hero-character{height:100px}
}

/* Reuse the case composition inside the existing Other works preview. */
.project[data-project="other"] .project-preview{display:grid;place-items:center;background:#ccc}
.project-preview>.mirrar-mac-scene{display:block;width:100%;border-radius:0}

/* Match the unchanged 5:4 Wannabe card; show the complete video frame. */
.project[data-project="wannabe"] .project-preview .wannabe-home-video{display:block;width:100%;height:100%;padding:0;object-fit:contain;background:#e1adff}
