/* Shared foundation for the production portfolio. */
:root{--paper:#fbf8f0;--ink:#162b47;--muted:#4c5969;--line:#d2cdbd;--blue:#324e8c;--sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.55 var(--sans)}
body:has(dialog[open]){overflow:hidden}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}a,button,summary{touch-action:manipulation}h1,h2,h3,h4,p{margin-top:0}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;z-index:99;left:16px;top:-120px;padding:10px 16px;color:white;background:var(--ink);border-radius:4px}.skip:focus{top:10px}
.anchor-alias{position:absolute;top:0;left:0;width:0;height:0;pointer-events:none}
.site-header{position:sticky;top:0;z-index:30}.header-inner{height:100%;position:relative}.menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:0}.menu-toggle span{display:block;width:18px;height:2px;background:var(--ink);border-radius:1px}
.text-action,.back-to-work{display:inline-flex;align-items:center;min-height:38px;background:transparent;border:0;padding:3px 0;color:var(--ink);text-decoration:underline;text-underline-offset:4px;font:550 13px/1.45 var(--sans)}
/* TFI Games: an original poster for three released browser games. */
.project-art{position:relative;overflow:hidden}.tfi-art{display:flex;flex-direction:column;justify-content:space-between}.tfi-art-top{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #26364855}.tfi-art-top>span:first-child{font-weight:700;letter-spacing:-.045em}.tfi-game-tiles{display:flex;align-items:center;justify-content:center}.tfi-game-tile{position:relative;display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;border:1px solid #223347;box-shadow:0 6px 0 -3px #29333d33;line-height:1.1}.tfi-game-tile>span{font-weight:520;line-height:1}.tfi-game-tile b,.tfi-art-bottom{font-weight:650;letter-spacing:-.035em}.tfi-art-bottom{margin:0}.tfi-pizza{transform:rotate(-6deg)}.tfi-pass{transform:translateY(-7px)}.tfi-palace{transform:rotate(6deg)}
/* Accessible, native case notes: no navigation or feature without a live story. */
#case-dialog{width:min(720px,calc(100% - 36px));padding:0;border:1px solid #9ca6a4;border-radius:5px;color:var(--ink);background:var(--paper);max-height:calc(100dvh - 44px);overscroll-behavior:contain;box-shadow:0 18px 60px #18263844}
#case-dialog::backdrop{background:#15223788;backdrop-filter:blur(3px)}.dialog-bar{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 22px;border-bottom:1px solid var(--line);background:#f1ebdc}.dialog-bar>span,.case-kicker{font:600 10px/1.45 ui-monospace,Consolas,monospace;letter-spacing:.08em;color:#4c5969}.close-dialog{min-height:38px;border:1px solid #b9bba7;padding:6px 11px;border-radius:3px;font-size:13px;line-height:1.3}.close-dialog>span{margin-left:5px}
#case-content{padding:clamp(24px,4vw,45px)}.case-kicker{margin-bottom:10px}.case-title{font:580 clamp(30px,4.7vw,49px)/1.08 var(--sans);letter-spacing:-.055em;margin:0 0 14px;text-wrap:balance}.case-deck{font:450 16px/1.58 var(--sans);color:#36495b;max-width:58ch;margin:0 0 24px}.case-section{display:grid;grid-template-columns:24px 1fr;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.case-section>span{font:550 10px/1.7 ui-monospace,Consolas,monospace;color:#586575}.case-section h3{font:600 18px/1.3 var(--sans);margin:0 0 4px;letter-spacing:-.03em}.case-section p{font:400 14px/1.57 var(--sans);color:#445464;margin:0}.case-section .text-action{margin-left:4px}.dialog-end{display:flex;align-items:center;justify-content:space-between;gap:10px 22px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:9px;margin-top:5px}.dialog-end>a{display:inline-flex;align-items:center;min-height:38px;font:550 13px/1.4 var(--sans);text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){#case-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.dialog-bar{padding:7px 14px}.case-deck{font-size:14px;margin-bottom:17px}.case-section{grid-template-columns:18px 1fr;gap:7px;padding-block:12px}.case-section h3{font-size:16px}.case-section p{font-size:13px}.case-title{font-size:30px}#case-content{padding:20px 16px}.dialog-end{column-gap:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
