/* The library and player share the same quiet, compact controls. */
html{scrollbar-gutter:stable}
.project-details>span.project-name{font:600 15px/1.3 var(--body);letter-spacing:0;color:var(--text)}
.project-details{margin-top:12px}
/* Keep the glow outside the masked artwork, with the same rounded silhouette. */
.project-cover-shell{position:relative;display:block;border-radius:var(--radius-icon);transition:transform .22s ease,box-shadow .22s ease}
.project-open:hover .project-cover-shell,.project-open:focus-visible .project-cover-shell{transform:scale(1.025);box-shadow:0 0 0 2px #a47aff,0 0 40px -6px #8b5cf68c}
@media(prefers-reduced-motion:reduce){.project-open:hover .project-cover-shell,.project-open:focus-visible .project-cover-shell{transform:none}}
.work-controls .filter-tabs button{transition:color .18s ease}
.work-controls .filter-tabs button:hover,.work-controls .filter-tabs button:focus-visible{color:#fff}
.project-cover{border:0;border-radius:16%;padding:0;background:transparent!important;isolation:isolate;mask-image:var(--icon-mask);mask-mode:alpha;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:var(--icon-mask);-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}
.project-cover .project-icon{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:inherit}
.project-cover .project-snapshot-blur{position:absolute;inset:-14%;width:128%;height:128%;object-fit:cover;filter:blur(20px) brightness(.75);opacity:0;transition:opacity .2s;pointer-events:none}
.project-cover .project-snapshot{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;background:transparent;opacity:0;transition:opacity .2s;pointer-events:none}
.project-open.has-snapshot:hover .project-snapshot-blur,.project-open.has-snapshot:focus-visible .project-snapshot-blur,.project-open.has-snapshot:hover .project-snapshot,.project-open.has-snapshot:focus-visible .project-snapshot{opacity:1}
.project-snapshot-layer{position:absolute;inset:0;display:block;opacity:0;transition:opacity .35s ease;pointer-events:none}
.project-open.is-previewing .project-snapshot-layer.is-visible{opacity:1}
.project-cover .project-snapshot-layer img{opacity:1;transition:none}
@media(prefers-reduced-motion:reduce){.project-snapshot-layer{transition:none}}
.project-version-badge{position:absolute;z-index:3;left:10px;top:10px;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #ffffff35;border-radius:8px;background:#12101de8;color:#fff;font:600 12px/1.2 var(--body);box-shadow:0 2px 12px #0004}
.project-version-badge:before{content:'';display:block;width:9px;height:9px;border:1px solid #d6c5ff;border-radius:2px;box-shadow:3px -3px 0 -1px #33244d,3px -3px 0 0 #d6c5ff;margin-right:2px}
.project-launch{z-index:3}
.projects-empty{padding:70px 20px 90px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px}
.projects-empty h3{font:500 24px var(--display);color:var(--text);margin-bottom:8px}.projects-empty p{margin:0;font-size:16px}

/* A transparent modal layer keeps the portfolio visible behind the phone. */
.player-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:24px;border:0;background:transparent;overflow:hidden}
.player-dialog[open]{display:flex;align-items:center;justify-content:center}
.player-dialog::backdrop{background:rgba(4,6,13,.69);backdrop-filter:blur(16px) saturate(.7);-webkit-backdrop-filter:blur(16px) saturate(.7)}
.player-dialog .player-shell{width:min(800px,100%);height:min(890px,100%);min-height:0;max-height:100%;margin:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.player-dialog .player-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px 10px 20px;border:1px solid #ffffff1c;border-radius:16px;background:#111520c9;box-shadow:0 10px 30px #0003}
.player-heading{min-width:0}.player-heading h2{font:600 18px/1.35 var(--body);letter-spacing:-.25px;margin:0;overflow-wrap:anywhere}
.player-header-actions{display:flex;align-items:center;gap:16px;flex:none}
.player-dialog .store-buttons{display:flex;gap:8px}
.player-dialog .store-button{width:38px;height:38px;border-radius:10px;background:#ffffff08}
.player-dialog .player-header .close-player{width:40px;height:40px;border-radius:50%;background:#ffffff08}
.player-dialog .player-layout{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:minmax(0,1fr);gap:16px;align-items:stretch;min-height:0;padding:0}
.player-stage{grid-column:2;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;min-width:0;min-height:0}
.player-dialog .device-area{height:100%;min-height:0;min-width:0;width:100%;display:flex;align-items:flex-end;justify-content:center}
.player-dialog .device-area:after{display:none}
.player-dialog .device-fit{width:calc(399px * var(--phone-scale,1));height:calc(691px * var(--phone-scale,1))}
.player-dialog .phone{width:399px;height:691px;border:3px solid #898d98;border-radius:42px;background:linear-gradient(125deg,#a4a7af,#40434d 14%,#161922 52%,#777b87);box-shadow:0 0 0 1px #090b12,0 25px 70px #0008,inset 0 0 0 2px #08090d}
.player-dialog .phone-screen{top:9px;left:9px;width:375px;height:667px;border:0;border-radius:30px}
.player-dialog .phone-screen:fullscreen{top:0;left:0;width:100vw;height:100dvh;border-radius:0}
.player-dialog .player-versions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:0;margin:0;max-height:152px;overflow:auto;scrollbar-width:thin}
.player-dialog .player-versions[hidden]{display:none!important}
.player-dialog .player-versions button{display:inline-flex;align-items:center;gap:8px;min-height:40px;flex:0 1 auto;padding:8px 13px;border:1px solid #ffffff2b;border-radius:10px;background:#151927e8;color:#dce0ee;font:500 13px/1.3 var(--body);text-align:left;transition:background .15s,border-color .15s}
.player-dialog .player-versions button:hover{background:#29253d;border-color:#b592ff}
.player-dialog .player-versions button[aria-pressed=true]{background:#7946f3;border-color:#b190ff;color:#fff;box-shadow:0 3px 15px #44208040}
.version-number{font:600 11px/1.2 var(--body);opacity:.65}
.player-dialog .player-toolbar{grid-column:3;align-self:center;justify-self:center;display:flex;flex-direction:column;gap:6px;padding:7px;border:1px solid #ffffff1c;border-radius:15px;background:#111520cf;box-shadow:0 10px 30px #0003}
.player-dialog .player-toolbar .icon-button{width:38px;height:38px;border-radius:10px}
.player-dialog .toolbar-divider{width:20px;height:1px;margin:3px 0}
.player-dialog .player-footer{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 4px;border:0;color:#c2c8d7;font:500 11px/1.4 var(--body);letter-spacing:.5px}
.player-dialog .player-footer>span:last-child{display:block}
.player-dialog .player-status{background:#10131c}
.player-dialog[open] .player-shell{animation:overlay-in .18s ease-out}
@keyframes overlay-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:640px){
 .player-dialog{padding:12px}.player-dialog .player-shell{width:100%;height:100%;gap:10px}
 .player-dialog .player-header{padding:8px 9px 8px 13px;gap:9px;border-radius:14px}.player-heading h2{font-size:15px}.player-header-actions{gap:9px}
 .player-dialog .store-buttons{gap:5px}.player-dialog .store-button{width:34px;height:36px}.player-dialog .player-header .close-player{width:36px;height:36px}.player-dialog .store-button svg{width:19px;height:19px}
 .player-dialog .player-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px}.player-stage{grid-column:1;gap:10px}
 .player-dialog .player-toolbar{grid-column:1;align-self:center;justify-self:center;flex-direction:row;padding:4px 8px;gap:5px;border-radius:13px}.player-dialog .toolbar-divider{width:1px;height:19px;margin:0 3px}
 .player-dialog .player-versions{max-height:132px;gap:6px}.player-dialog .player-versions button{font-size:12px;min-height:36px;padding:7px 9px;gap:6px}
 .player-dialog .player-footer{font-size:10px}.filter-tabs{gap:20px}.filter-tabs button{font-size:13px;gap:5px}
 .project-version-badge{left:8px;top:8px;padding:5px 8px;font-size:11px}.project-cover{border-radius:16%}
}
@media(max-width:400px){.site-header .wordmark>span:last-child{display:none}.site-header nav{gap:14px}.section-heading h2{font-size:27px}.section-heading p{font-size:12px;max-width:110px}}
@media(prefers-reduced-motion:reduce){.player-dialog[open] .player-shell{animation:none}.project-cover .project-snapshot-blur,.project-cover .project-snapshot{transition:none}}

/* One rounded-square family: the icon curve, scaled to controls and surfaces. */
:root{--radius-icon:16%;--radius-control:8px;--radius-bar:12px;--radius-panel:24px}
.project-cover,.project-cover .project-icon,.portrait-frame,.about-dialog-intro img{border-radius:var(--radius-icon)}
.button,.icon-button,.nav-contact,.store-button,.tools>span,.project-launch,.project-version-badge,.toast{border-radius:var(--radius-control)}
.about-dialog,.projects-empty{border-radius:var(--radius-panel)}
.filter-tabs button{border-radius:var(--radius-control) var(--radius-control) 0 0}
.project-details>span.project-name{font:700 21px/1.35 var(--body);letter-spacing:-.25px;color:var(--text)}
.project-details{margin-top:14px}

.player-dialog .player-shell{width:min(640px,100%);height:min(990px,100%);grid-template-rows:auto minmax(0,1fr);gap:16px}
.player-dialog .player-header{width:min(540px,100%);justify-self:center;padding:8px 10px 8px 12px;border-radius:var(--radius-bar);gap:12px}
.player-heading{display:flex;align-items:center;gap:12px;min-width:0}
.player-game-icon{display:block;width:44px;height:44px;flex:none;object-fit:cover;border-radius:var(--radius-icon)}
.player-heading h2{font-size:20px;line-height:1.3}
.player-header-actions{gap:10px}
.player-dialog .store-buttons{gap:6px}
.player-dialog .store-button{width:46px;height:46px;border-radius:var(--radius-control)}
.player-dialog .store-button svg{width:29px;height:29px}
.player-dialog .player-header .close-player{width:40px;height:40px;border-radius:var(--radius-control)}
.player-dialog .close-player svg{width:22px;height:22px;stroke-width:2.3}
.player-dialog .player-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0}
.player-stage{grid-column:1;grid-template-rows:minmax(0,1fr) auto auto auto;gap:10px}
.player-dialog .player-versions{max-height:136px}
.player-dialog .player-versions button{border-radius:var(--radius-control);font-size:14px}
.player-position{margin:0;text-align:center;font:600 14px/1.4 var(--body);font-variant-numeric:tabular-nums;letter-spacing:1px;color:#e0e5f2}
.player-dialog .player-toolbar{grid-column:1;align-self:auto;justify-self:center;flex-direction:row;gap:8px;padding:6px 9px;border-radius:var(--radius-bar);background:#111520ed}
.player-dialog .player-toolbar .icon-button{width:46px;height:46px;border-radius:var(--radius-control);color:#f5f6ff;background:#ffffff05}
.player-dialog .player-toolbar .icon-button:hover{background:#ffffff15}
.player-dialog .player-toolbar .icon-button[aria-pressed=true]{background:#7946f3;color:#fff}
.player-dialog .player-toolbar svg{width:25px;height:25px;stroke-width:2.4}
.player-dialog .toolbar-divider{width:1px;height:24px;margin:0 2px}
@media(max-width:640px){
 .player-dialog .player-shell{height:100%;gap:12px}
 .player-dialog .player-header{padding:7px 8px;gap:8px;border-radius:var(--radius-bar)}
 .player-heading{gap:8px}.player-game-icon{width:38px;height:38px}.player-heading h2{font-size:16px}
 .player-header-actions{gap:6px}.player-dialog .store-buttons{gap:4px}
 .player-dialog .store-button{width:40px;height:42px}.player-dialog .store-button svg{width:27px;height:27px}
 .player-dialog .player-header .close-player{width:36px;height:40px}
 .player-stage{gap:8px}.player-dialog .player-versions{max-height:120px}.player-dialog .player-versions button{font-size:13px}
 .player-dialog .player-toolbar{gap:5px;padding:5px 7px}.player-dialog .player-toolbar .icon-button{width:42px;height:42px}
 .player-dialog .player-toolbar svg{width:24px;height:24px}.player-position{font-size:13px}
 .project-details>span.project-name{font-size:19px;line-height:1.35}.project-cover,.portrait-frame{border-radius:var(--radius-icon)}
}
.project-details{gap:4px}
.project-details>span.project-publisher{font:500 15.5px/1.4 var(--body);letter-spacing:0;color:#b3bed0}
@media(max-width:640px){.project-details>span.project-publisher{font-size:14.5px}}

/* Header and toolbar controls sit directly on their shared panel. */
.player-dialog .player-header .store-button,
.player-dialog .player-header .close-player,
.player-dialog .player-toolbar .icon-button,
.player-dialog .player-header .store-button:hover,
.player-dialog .player-header .close-player:hover,
.player-dialog .player-toolbar .icon-button:hover,
.player-dialog .player-toolbar .icon-button[aria-pressed=true]{background:transparent;border-color:transparent;box-shadow:none}
.player-dialog .player-header .store-button:hover svg,
.player-dialog .player-header .close-player:hover svg,
.player-dialog .player-toolbar .icon-button:hover svg{filter:brightness(1.2)}
.player-dialog .player-toolbar .icon-button[aria-pressed=true]{color:#bda6ff}

/* Fill the available display instead of capping the phone at its native CSS size. */
.player-dialog{padding:clamp(12px,2dvh,28px)}
.player-dialog .player-shell{width:min(100%,max(540px,62dvh));height:100%;max-height:none}
.player-stage{min-height:0}

/* Titles and publishers share the icon's left edge and never exceed its width. */
.project-details{width:100%;min-width:0;max-width:100%;align-items:stretch;text-align:left}
.project-details>span.project-name,.project-details>span.project-publisher{display:block;width:100%;min-width:0;max-width:100%;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@keyframes selected-version-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.10)}}
@media(prefers-reduced-motion:no-preference){
 .player-dialog[open] .player-versions button[aria-pressed=true]{animation:selected-version-breathe 2.4s ease-in-out infinite;transform-origin:center;position:relative;z-index:1}
 .player-dialog .player-versions{padding:5px 16px;gap:14px}
}
.player-versions-label{color:#dce0ee;font:600 14px/1.3 var(--body);white-space:nowrap;flex:none}

/* Direct contact links and a single About dialog entry. */
.section-heading .work-summary{max-width:none;line-height:1.7;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 7px}
.work-summary #work-counts{white-space:nowrap}
@media(max-width:580px){.section-heading:has(.work-summary){flex-wrap:wrap;gap:4px}.section-heading .work-summary{flex-basis:100%;justify-content:flex-start;text-align:left;font-size:13px;margin:0 0 12px}}
.site-header{height:auto;min-height:92px;padding-block:18px}
.site-header .header-navigation{width:100%;justify-content:space-between;gap:24px;font-size:15px}
.header-contact-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:16px 28px}
.header-contact-links a{display:inline-flex;align-items:center;gap:9px;min-height:40px;color:#d4d1df;white-space:nowrap}
.header-contact-links a:hover{color:#bda6ff}
.header-contact-links [data-icon]{display:flex;flex:none}
.header-contact-links svg{width:21px;height:21px}
.hero .eyebrow{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:900;letter-spacing:.8px;color:#b18aff;line-height:1.5}
.hero #hero-title{font-family:Arial,Helvetica,sans-serif;font-size:clamp(56px,7.7vw,108px);font-weight:700;letter-spacing:-.025em;line-height:1.06}
.hero #hero-title>span{color:#fff}
@media(max-width:700px){
 .site-header .header-navigation{align-items:flex-start;gap:16px}
 .header-contact-links{gap:2px 20px}
 .header-contact-links a:first-child{justify-content:flex-start;width:100%}
 .hero .eyebrow{font-size:16px}
}
@media(max-width:580px){.hero #hero-title{font-size:clamp(52px,13vw,78px);letter-spacing:-.025em}}
@media(max-width:420px){
 .site-header .header-navigation{flex-direction:column;gap:2px;font-size:14px}
 .header-contact-links{justify-content:flex-start;gap:2px 22px}
 .header-contact-links a:first-child{justify-content:flex-start}
}

/* Matching contact rows at both ends of the page. */
.about-dialog{width:min(760px,calc(100% - 32px));padding:32px;color:#f3f5fa}
.about-dialog .about-dialog-intro{gap:18px;align-items:center;padding-right:32px;margin-bottom:28px}
.about-dialog .about-dialog-intro img{width:72px;height:72px;border-radius:var(--radius-bar);flex:none}
.about-dialog h2{font-family:Arial,Helvetica,sans-serif;font-size:29px;line-height:1.2;font-weight:700;letter-spacing:-.5px;margin-bottom:7px}
.about-dialog .about-dialog-intro .eyebrow{color:#bd9dff;font-size:12px;font-weight:700;letter-spacing:1.2px;margin-bottom:8px}
.about-dialog .about-dialog-intro>div>p:last-child{font-size:16px;line-height:1.5;color:#c5ccd9}
.career-company{display:grid;grid-template-columns:52px minmax(0,1fr);gap:16px;border-top:1px solid var(--line);padding-block:22px}
.career-company:last-child{padding-bottom:0}
.career-logo{display:block;width:52px;height:52px;object-fit:contain;border-radius:var(--radius-control)}
.career-content{min-width:0}
.about-dialog .career-content h3,.about-dialog .career-content h4{font-family:Arial,Helvetica,sans-serif;font-weight:700;letter-spacing:0;line-height:1.4;margin:0 0 4px;color:#f1f3f8}
.about-dialog .career-content h3{font-size:19px}
.about-dialog .career-content h4{font-size:17px}
.about-dialog .career-content p{margin:0;line-height:1.6}
.about-dialog .career-employment{font-size:15px;color:#d9dee8}
.about-dialog .career-meta{font-size:14px;color:#aeb8c9}
.about-dialog .career-description{font-size:15px;color:#c5cddb;margin-top:16px}
.career-timeline{list-style:none;margin:21px 0 0;padding:0 0 0 22px}
.career-timeline li{position:relative;margin:0;padding:0 0 20px}
.career-timeline li:last-child{padding-bottom:0}
.career-timeline li:before{content:'';position:absolute;left:-22px;top:8px;width:7px;height:7px;border-radius:50%;background:#8390a5}
.career-timeline li:not(:last-child):after{content:'';position:absolute;left:-19px;top:23px;bottom:0;width:1px;background:#8390a54d}
@media(max-width:580px){
 .about-dialog{padding:26px 20px}
 .about-dialog .about-dialog-intro{gap:13px;padding-right:22px}
 .about-dialog .about-dialog-intro img{width:56px;height:56px}
 .about-dialog h2{font-size:24px}
 .about-dialog .about-dialog-intro>div>p:last-child{font-size:15px}
 .career-company{grid-template-columns:44px minmax(0,1fr);gap:13px;padding-block:20px}
 .career-logo{width:44px;height:44px}
 .about-dialog .career-content h3{font-size:18px}
 .about-dialog .career-content h4{font-size:16px}
}
.contact-row,.site-header .header-navigation.contact-row{display:flex;align-items:center;justify-content:space-between;gap:20px 32px;width:100%;font-size:15px}
.contact-row .copy-email,.contact-row .social-links a{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0;border:0;background:none;color:#d4d1df;font:inherit;font-weight:600;text-decoration:none;white-space:nowrap}
.contact-row .copy-email{cursor:pointer;flex:none;text-align:left}
.contact-row .email-label{display:inline-block;min-width:25ch}
.contact-row .email-label{opacity:1;transition:opacity .2s ease}
.contact-row .email-label.is-fading{opacity:0}
@media(prefers-reduced-motion:reduce){.contact-row .email-label{transition:none}}
.contact-row .social-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 28px;margin-left:auto}
.contact-row [data-icon]{display:flex;flex:none}
.contact-row svg{width:21px;height:21px}
.contact-row .copy-email:hover,.contact-row .social-links a:hover{color:#bda6ff}
.about-section{border-bottom:1px solid var(--line);padding-block:30px 44px}
.about-copy .tools{display:flex;flex-wrap:wrap;gap:16px 26px;margin-top:24px}
.about-copy .tools>span{display:inline-flex;align-items:center;gap:9px;color:#c3cad8;font-size:15px;line-height:1.5}
.tools img{width:24px;height:24px;object-fit:contain;flex:none}
.work-controls .filter-tabs button{font-size:18px}
.work-controls .filter-tabs button>span{font-size:14px}
.about-section{display:block;padding-block:24px 30px}
.about-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.about-heading-row h2{font-size:30px;letter-spacing:-1px;margin:0}
.about-heading-row #experience-open{color:#b18aff;font-weight:800;font-size:15px;min-height:40px;white-space:nowrap;cursor:pointer}
.about-heading-row #experience-open:hover{color:#cfb9ff;text-decoration:underline;text-underline-offset:4px}
.about-heading-row #experience-open svg{stroke-width:2.2}
.about-section .about-copy>p{max-width:none;margin:0;font-size:17px;line-height:1.75}
.about-section .about-copy .tools{margin-top:18px;gap:12px 22px}
@media(max-width:700px){
 .contact-row,.site-header .header-navigation.contact-row{flex-wrap:wrap;align-items:center;gap:8px 20px}
 .contact-row .social-links{gap:10px 20px}
}
@media(max-width:580px){
 .contact-row,.site-header .header-navigation.contact-row{flex-direction:row;font-size:14px}
 .contact-row .copy-email{flex-basis:100%}
 .contact-row .social-links{justify-content:flex-end;width:100%}
 .about-section{padding-block:24px 32px}
 .about-heading-row{margin-bottom:10px}
 .about-heading-row h2{font-size:28px}
 .about-section .about-copy>p{font-size:16px}
 .about-copy .tools{gap:14px 20px}
 .about-copy .tools>span{font-size:14px}
 .work-controls .filter-tabs button{font-size:17px}
}

.contact-section{padding-block:24px 12px}
.contact-section h2{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:0 0 12px}
.site-footer{margin-top:20px}
@media(max-width:580px){.contact-section{padding-block:22px 10px}.contact-section h2{font-size:28px;margin-bottom:10px}}
