@font-face{font-family:'DM Sans';src:url('assets/dm-sans-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-medium.ttf') format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:'DM Sans';src:url('assets/dm-sans-semibold.ttf') format('truetype');font-weight:600 700;font-display:swap}
:root{color-scheme:dark;--bg:#101112;--fg:#f1f1ee;--secondary:#b0b2b7;--muted:#94989f;--line:#292c30;--surface:#191b1e;--hover:#1d2025;--accent:#91a7ff;--accent-surface:#252f4f;--green:#a6cb99;--font:'DM Sans',sans-serif;--ease:cubic-bezier(.16,1,.3,1)}
:root[data-theme='light']{color-scheme:light;--bg:#f9f9f6;--fg:#22252b;--secondary:#60646d;--muted:#656a74;--line:#dddeda;--surface:#f0f0ec;--hover:#ededeb;--accent:#304bbd;--accent-surface:#e3e8fb;--green:#397033}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:30px;scrollbar-color:var(--line) var(--bg);scrollbar-width:thin}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
::selection{background:var(--accent);color:var(--bg)}
a{color:inherit;text-decoration:none;text-underline-offset:4px}
button{font:inherit;cursor:pointer;color:inherit}
a,button,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:4px}
.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:fixed;top:-70px;left:20px;background:var(--accent);color:var(--bg);padding:8px 15px;z-index:10}
.skip-link:focus{top:12px}
.page-frame{width:min(100% - 64px,820px);margin:0 auto;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.site-header{height:84px;display:flex;align-items:center;padding:0 34px;border-bottom:1px solid var(--line);gap:35px}
.monogram{font-size:27px;font-weight:600;line-height:1;letter-spacing:-.04em;display:flex;align-items:baseline;transform:translateY(-.08em)}
.monogram span{color:var(--secondary)}
.monogram i{font-style:normal;color:var(--accent)}
nav{display:flex;gap:25px;align-items:center}
nav a{font-size:14px;font-weight:500;color:var(--secondary);display:inline-flex;align-items:center;min-height:44px;transition:color 160ms}
nav a:hover,nav a.active{color:var(--fg)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.social-icon,.theme-toggle{width:38px;height:38px;display:grid;place-items:center;border:0;background:transparent;border-radius:8px;color:var(--secondary);transition:background 160ms,color 160ms}
.social-icon:hover,.theme-toggle:hover{color:var(--fg);background:var(--surface)}
.social-icon .icon{width:16px;height:16px}
.header-divider{height:17px;width:1px;background:var(--line);margin:0 6px}
.theme-toggle{background:var(--surface)}
.theme-toggle .moon{display:none}
[data-theme='light'] .theme-toggle .sun{display:none}
[data-theme='light'] .theme-toggle .moon{display:block}
.intro-section{padding:0 34px 33px}
.hero-art{position:relative;height:300px;margin:0 -12px 25px;display:flex;align-items:center;justify-content:center;perspective:700px}
.builder-collage{position:relative;width:100%;height:100%;object-fit:contain;transform:translate3d(var(--art-x,0px),var(--art-y,0px),0) rotate(var(--art-r,0deg));transition:transform 700ms var(--ease);pointer-events:none;filter:drop-shadow(0 8px 12px rgba(0,0,0,.13))}

.identity{--name-size:44px;--name-leading:1.15;--avatar-size:59px;display:flex;gap:17px;align-items:flex-start;margin-bottom:22px}
/* Keep the portrait centered on the first name line, including wrapped headings. */
.avatar{width:var(--avatar-size);height:var(--avatar-size);margin-top:calc((var(--name-size) * var(--name-leading) - var(--avatar-size)) / 2);object-fit:cover;border-radius:14px;flex-shrink:0;filter:saturate(.85)}
h1{font-size:var(--name-size,44px);font-weight:600;line-height:var(--name-leading,1.15);letter-spacing:-.04em;margin:0 0 7px}
.name-dot{color:var(--accent)}
.identity-line{color:var(--secondary);font-size:15px;line-height:1.6;margin:0}
.intro-copy{max-width:650px}
.intro-copy p{font-size:20px;line-height:1.7;margin:0 0 16px;color:var(--secondary);text-wrap:pretty}
.intro-copy p:first-child{color:var(--fg);font-size:22px;font-weight:500}
.intro-copy a,.story-copy a{color:var(--fg);text-decoration:underline;text-decoration-color:var(--muted);transition:color 160ms,text-decoration-color 160ms}
.intro-copy a:hover,.story-copy a:hover{color:var(--accent);text-decoration-color:var(--accent)}
.intro-copy .inline-project{display:inline-flex;align-items:baseline;gap:5px;line-height:1.4;padding:1px 6px;background:var(--accent-surface);border-radius:5px;text-decoration:none;vertical-align:baseline;color:var(--fg);white-space:nowrap}
.inline-project img{width:1.1em;height:1.1em}
.inline-project .icon{width:12px;height:12px;color:var(--accent)}
.intro-copy .inline-interest{display:inline-flex;align-items:baseline;gap:5px;line-height:1.4;padding:1px 6px;border-radius:5px;background:var(--surface);text-decoration:none;vertical-align:baseline;white-space:nowrap;transition:color 160ms ease,background-color 160ms ease}
.inline-project img,.inline-project .icon,.inline-interest .icon{align-self:center}
.inline-interest .icon{width:1.1em;height:1.1em;color:var(--accent)}
.interest-piano .icon{color:var(--fg)}.interest-chess .icon{color:var(--green)}
.intro-copy .inline-interest:hover{background:var(--accent-surface);color:var(--fg)}
#piano,#knight-game{scroll-margin-top:40px}
.intro-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:14px;margin-top:25px}
.intro-meta>span,.intro-meta>a{display:inline-flex;align-items:center;gap:7px}
.intro-meta>a{color:var(--secondary);font-weight:500;min-height:44px;transition:color 160ms}
.intro-meta>a:hover{color:var(--accent)}
.intro-meta .icon{width:15px;height:15px}
.meta-dot{color:var(--muted)}
time{font-variant-numeric:tabular-nums}
.section{padding:40px 34px;border-top:1px solid var(--line)}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}
h2{font-size:27px;font-weight:600;letter-spacing:-.025em;line-height:1.3;margin:0}
.section-note{color:var(--muted);font-size:12px;line-height:1.5}
.projects{margin:-2px -12px -8px}
.project{border-top:1px solid var(--line);scroll-margin-top:20px}
.project:first-child{border-top:0}
.project summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:19px 12px;transition:background 160ms;border-radius:8px}
.project summary::-webkit-details-marker{display:none}
.project summary:hover{background:var(--hover)}
.project-logo{width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:10px}
.youform-logo{object-fit:contain;padding:1px}
.botflow-logo{background:#292a36;color:#b9b5ed}
.oghero-logo{background:#302a24;color:#dcb99a}
[data-theme='light'] .botflow-logo{background:#ebe8f5;color:#62549a}
[data-theme='light'] .oghero-logo{background:#f0e6dc;color:#895f3c}
.project-logo .icon{width:23px;height:23px}
.project-label{min-width:0}
.project-label h3{font-size:22px;font-weight:600;line-height:1.4;letter-spacing:-.02em;margin:0}
.project-label p{font-size:16px;color:var(--secondary);line-height:1.6;margin:3px 0 0}
.project-status{display:flex;gap:6px;align-items:center;color:var(--green);font-size:14px;font-weight:500;margin-left:auto;flex-shrink:0}
.live-dot{width:5px;height:5px;border-radius:50%;background:currentColor}
.project-status.sold{color:var(--secondary);gap:12px}
.project-status.sold>span{color:var(--muted);font-variant-numeric:tabular-nums}
.detail-arrow{width:13px;height:13px;margin-left:7px;color:var(--muted);transition:transform 220ms var(--ease)}
.project[open] .detail-arrow{transform:rotate(90deg)}
.project-story{padding:0 34px 22px 68px;max-width:650px}
.project-story p{color:var(--secondary);font-size:17px;line-height:1.75;margin:0 0 14px;text-wrap:pretty}
.project-story .project-proof{font-size:19px;line-height:1.65;color:var(--fg);padding-top:6px;margin-top:18px}
.project-proof strong{font-weight:600;color:var(--fg);font-variant-numeric:tabular-nums}
.text-action{display:inline-flex;align-items:center;gap:7px;font-size:16px;font-weight:500;color:var(--accent);min-height:44px;transition:color 160ms}
.text-action .icon{width:13px;height:13px;transition:transform 180ms var(--ease)}
.text-action:hover .icon{transform:translate(2px,-2px)}
.story-section{padding-top:40px;padding-bottom:40px}
.story-copy{max-width:650px}
.story-copy p{font-size:17px;line-height:1.75;color:var(--secondary);margin:0 0 16px;text-wrap:pretty}
.story-copy p:last-child{margin-bottom:15px}
.notes-section{padding-bottom:25px}
.notes-section .section-heading{margin-bottom:13px}
.note-link{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:19px 0;border-top:1px solid var(--line);font-size:18px;font-weight:500;line-height:1.6;transition:color 160ms}
.note-link:first-of-type{border-top:0}
.note-link:hover{color:var(--accent)}
.note-date{display:flex;align-items:center;gap:20px;font-size:14px;font-weight:400;color:var(--muted);flex-shrink:0}
.note-date .icon{width:14px;height:14px}
.socials-section{padding-bottom:34px}
.social-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.social-links a{display:flex;gap:12px;align-items:center;min-height:72px;padding:12px 0;font-size:18px;font-weight:500;line-height:1.5;transition:color 160ms}
.social-links a>span:not(.ih-mark){min-width:0}
.social-links a>.icon:first-child{width:19px;height:19px;color:var(--secondary)}
.social-links small{font-size:14px;font-weight:400;display:block;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.social-links .link-arrow{width:13px;height:13px;color:var(--muted);margin-left:auto;transition:transform 180ms var(--ease)}
.social-links a:hover{color:var(--accent)}
.social-links a:hover .link-arrow{transform:translate(2px,-2px);color:var(--accent)}
.ih-mark{width:19px;font-weight:600;font-size:18px;letter-spacing:-.04em;color:var(--secondary)}
footer{padding:32px 34px 23px;border-top:1px solid var(--line)}
.footer-note{display:flex;align-items:center;gap:20px;padding:9px 0 35px}
.footer-signature{font-size:48px;font-weight:600;line-height:1;letter-spacing:-.04em;color:var(--secondary)}
.footer-signature>span{color:var(--accent)}
.footer-note p{color:var(--muted);font-size:14px;line-height:1.8;margin:0}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:14px;color:var(--muted);padding-top:20px;border-top:1px solid var(--line)}
.footer-bottom a{display:flex;align-items:center;gap:6px;min-height:44px;transition:color 160ms}
.footer-bottom a:hover{color:var(--accent)}
.footer-bottom .icon{width:13px;height:13px}
@media(max-width:760px){.social-links{grid-template-columns:1fr;gap:0}.social-links a{min-height:64px;border-bottom:1px solid var(--line)}.social-links a:last-child{border-bottom:0}}
@media(max-width:650px){
 .page-frame{width:calc(100% - 32px)}
 .site-header{height:70px;padding:0 22px;gap:18px}
 nav{gap:14px}nav a{font-size:14px}.monogram{font-size:25px}
 .header-actions{gap:0}.header-divider{display:none}.social-icon{width:30px;margin-right:4px}.theme-toggle{width:34px;height:34px}
 .intro-section{padding:0 22px 27px}.hero-art{height:230px;margin:0 -14px 22px}
 .identity{--name-size:36px;--name-leading:1.2;--avatar-size:49px;gap:13px;margin-bottom:24px}.avatar{border-radius:12px}h1{letter-spacing:-.035em}.identity-line{font-size:14px}
 .intro-copy p{font-size:18px;line-height:1.75;margin-bottom:16px}.intro-copy p:first-child{font-size:20px}.intro-meta{font-size:14px;margin-top:22px;flex-wrap:wrap}.intro-meta .icon{width:14px;height:14px}.intro-meta>span{gap:5px}.intro-meta>a{gap:5px}
 .section{padding:32px 22px}h2{font-size:24px}.section-note{font-size:14px}.section-heading{gap:15px;margin-bottom:22px}
 .projects{margin:-2px -9px -9px}.project summary{display:grid;grid-template-columns:35px minmax(0,1fr) 14px;column-gap:12px;row-gap:5px;padding:20px 9px}.project-logo{width:35px;height:35px;border-radius:9px;grid-row:1/3}.project-label{grid-column:2;grid-row:1}.project-label h3{font-size:20px}.project-label p{font-size:16px}
 .project-status{grid-column:2;grid-row:2;font-size:14px;gap:5px;margin-left:0}.project-status.sold{gap:7px}.detail-arrow{grid-column:3;grid-row:1/3;width:14px;height:14px;margin-left:0}.project-story{padding:0 12px 24px 56px}.project-story p{font-size:16px;line-height:1.75}.project-story .project-proof{font-size:18px}
 .text-action{font-size:16px}.story-copy p{font-size:16px;line-height:1.75}.note-link{font-size:17px;gap:12px;align-items:flex-start}.note-date{font-size:14px;gap:8px;padding-top:2px;white-space:nowrap}
 .social-links a{font-size:18px;gap:12px}.social-links small{font-size:14px}footer{padding:32px 22px 24px}.footer-bottom{font-size:14px}
}
@media(max-width:420px){
 .page-frame{width:calc(100% - 20px)}.site-header{padding:0 18px;gap:8px}nav{gap:8px}.social-icon{display:grid;width:28px;height:34px;margin-right:0}.header-actions{gap:2px}
 .intro-section{padding-right:18px;padding-left:18px}.hero-art{height:205px;margin-bottom:22px}.avatar{border-radius:10px}.identity{--name-size:32px;--avatar-size:43px;gap:11px}.identity-line{font-size:14px}
 .section{padding-right:18px;padding-left:18px}.section-note{display:none}.project-status.sold{flex-direction:row;align-items:center;gap:7px}.project-story{padding-left:12px;padding-right:12px}.note-link{flex-wrap:wrap;gap:5px}.note-link>span:first-child{flex-basis:100%}.note-date{margin-left:auto}
 footer{padding-right:18px;padding-left:18px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:10px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}.builder-collage{transform:none!important}}
@media print{:root{--bg:white;--fg:#222;--secondary:#444;--muted:#555;--line:#ddd}.page-frame{width:100%;border:0}.header-actions,.hero-art{display:none}.intro-section{padding-top:24px}}

/* Small, deliberate transitions keep the workbench responsive. */
.project-content{min-height:0;overflow:hidden}
@supports selector(details::details-content){
 .project::details-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows 300ms var(--ease),content-visibility 300ms allow-discrete}
 .project[open]::details-content{grid-template-rows:1fr}
}
@keyframes sticker-arrive{from{opacity:.55;transform:translateY(16px) rotate(-2deg) scale(.98);filter:blur(2px) drop-shadow(0 8px 12px rgba(0,0,0,.13))}to{opacity:1;transform:translateY(0) rotate(0) scale(1);filter:blur(0) drop-shadow(0 8px 12px rgba(0,0,0,.13))}}
.builder-collage{animation:sticker-arrive 700ms var(--ease) backwards}
::view-transition-old(root),::view-transition-new(root){animation-duration:240ms;animation-timing-function:ease}
.theme-toggle:active,.interview-card:active .video-play{transform:scale(.94)}
.theme-toggle .icon{transition:transform 220ms var(--ease)}
.theme-toggle:hover .sun{transform:rotate(30deg)}
.theme-toggle:hover .moon{transform:rotate(-12deg)}
.interview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.interview-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:10px}
.video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:var(--surface);container-type:inline-size}
.interview-cover{position:relative;display:block;width:100%;height:100%;background:#222a3b;color:#f4f1e8;text-align:left}
.video-poster{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;border-radius:10px;background:transparent}
.interview-direct{position:relative;z-index:2;align-self:flex-start}
.interview-card>.text-action{margin-top:auto}
.poster-art{position:absolute;inset:0;display:block}
.poster-copy{position:absolute;top:17%;left:7%;width:54%;display:flex;flex-direction:column;gap:9px}
.poster-title{font-size:clamp(21px,7.4cqw,31px);line-height:1.1;letter-spacing:-.035em;font-weight:500}
.poster-title>span{color:#b7c5ff}
.poster-name{font-size:clamp(9px,2.7cqw,11px);line-height:1.5;color:#c0c9dd}
.poster-photo{position:absolute;top:17%;right:7.5%;width:29%;aspect-ratio:.88;transform:rotate(5deg);background:#f4f1e8;padding:4px 4px 13px;box-shadow:2px 7px 12px #0a101f40;transition:transform 300ms var(--ease)}
.poster-portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.75)}
.poster-youform{position:absolute;bottom:-9px;left:-13px;width:34px;height:34px;transform:rotate(-5deg)}
.poster-watch{position:absolute;left:calc(7% + 42px);bottom:10%;min-height:32px;display:flex;align-items:center;font-size:clamp(9px,2.7cqw,11px);line-height:1.5;color:#d7deed}
.video-play{position:absolute;left:7%;bottom:10%;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#a9baff;color:#222a3b;transition:transform 200ms var(--ease),background-color 200ms ease}
.video-play svg{display:block;width:16px;height:16px;fill:currentColor}
.video-duration{position:absolute;right:7%;bottom:10%;font-size:10px;line-height:32px;color:#c0c9dd;font-variant-numeric:tabular-nums}
.video-poster:focus-visible{outline-offset:5px;outline-color:var(--accent)}
.article-cover{background:#24352d}
.article-cover .poster-title>span{color:#bfd6ad}
.article-cover .poster-name{color:#c2d1c6}
.article-cover .poster-watch{color:#d6e3d9}
.article-cover .poster-photo{transform:rotate(-5deg)}
.article-cover .poster-youform{transform:rotate(5deg)}
.article-read{background:#bfd6ad;color:#24352d}
.article-read svg{fill:none}
@container(max-width:300px){.poster-copy{gap:6px}.poster-name{max-width:120px}.poster-watch{display:none}.poster-youform{width:27px;height:27px;left:-10px;bottom:-8px}.video-play{width:28px;height:28px}.video-duration{line-height:28px;font-size:9px}}
.video-frame iframe{display:block;width:100%;height:100%;border:0}
.interview-source{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:14px;color:var(--muted);margin:18px 0 8px}
.interview-source>span{color:var(--secondary);font-weight:500}
.interview-grid h3{font-size:23px;line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:0 0 12px;text-wrap:pretty}
.written-interview p{font-size:17px;color:var(--secondary);line-height:1.75;margin:0 0 16px;text-wrap:pretty}
.personal-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:34px;align-items:center}
.personal-copy p{font-size:17px;line-height:1.75;color:var(--secondary);margin:0 0 16px;text-wrap:pretty}
.personal-copy p:last-child{margin-bottom:0}
.piano-block{min-width:0}
.piano{position:relative;background:#282a2f;padding:10px 9px 9px;border-radius:9px;isolation:isolate}
.white-keys{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;height:98px}
.piano-key{border:0;padding:0;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform 100ms ease,background-color 100ms ease,box-shadow 100ms ease}
.white-key{position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;background:linear-gradient(#fffef9,#e8e7e2);color:#55594f;border-radius:1px 1px 4px 4px;box-shadow:0 3px 3px rgba(0,0,0,.2);font-size:14px;line-height:1}
.white-key.is-playing,.white-key:active{transform:translateY(3px);background:#d9e2ff;box-shadow:0 1px 2px rgba(0,0,0,.2);color:#304bbd}
.black-keys{position:absolute;left:9px;right:9px;top:10px;height:60px;pointer-events:none}
.black-key{position:absolute;top:0;width:8.6%;height:100%;min-width:22px;transform:translateX(-50%);background:linear-gradient(#292b31,#131418);border-radius:0 0 3px 3px;box-shadow:0 3px 3px rgba(0,0,0,.25);pointer-events:auto;z-index:1}
.black-key.is-playing,.black-key:active{transform:translate(-50%,3px);background:#6078d9;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.key-cs{left:12.5%}.key-ds{left:25%}.key-fs{left:50%}.key-gs{left:62.5%}.key-as{left:75%}
.piano-key:focus-visible{outline:2px solid #304bbd;outline-offset:-3px}
.black-key:focus-visible{outline-color:#b7c5ff}
.piano-caption{font-size:14px;color:var(--muted);line-height:1.6;text-align:center;margin:14px 0 0}
@media(hover:hover) and (pointer:fine){.video-interview:hover .poster-photo{transform:rotate(2deg) translateY(-2px)}.written-interview:hover .poster-photo{transform:rotate(-2deg) translateY(-2px)}.video-interview:hover .video-play{transform:scale(1.08);background:#c0ccff}.written-interview:hover .article-read{transform:scale(1.08);background:#d2e6c2}.white-key:hover{background:#f1f1ff}}
@media(max-width:650px){
 .interview-grid{grid-template-columns:1fr;gap:24px}
 .written-interview{padding:24px 0 0;border-top:1px solid var(--line)}
 .interview-card>.text-action{margin-top:0}
 .personal-grid{grid-template-columns:1fr;gap:25px}
 .piano-block{width:100%;max-width:360px}
 .personal-copy p,.written-interview p{font-size:16px}
 .interview-source{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .builder-collage{animation:none;transform:none}
 .project::details-content{transition:none}
 ::view-transition-old(root),::view-transition-new(root){animation:none}
 .theme-toggle .icon,.poster-photo,.video-play,.piano-key{transition:none}
 .theme-toggle:hover .sun,.theme-toggle:hover .moon,.theme-toggle:active,.interview-card:hover .video-play,.interview-card:active .video-play{transform:none}
 .video-interview:hover .poster-photo{transform:rotate(5deg)}
 .written-interview:hover .poster-photo{transform:rotate(-5deg)}
 .white-key.is-playing,.white-key:active{transform:none}
 .black-key.is-playing,.black-key:active{transform:translateX(-50%)}
}
@media print{.piano-block,.video-frame{display:none}.personal-grid,.interview-grid{display:block}.written-interview{border:0;padding:15px 0 0}}

/* Personal objects: a knight puzzle and a shelf of favorite books. */
.offscreen-playground{margin-top:34px;padding-top:32px;border-top:1px solid var(--line)}
.offscreen-playground h3{font-size:22px;line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:0 0 10px}
.play-instruction{font-size:16px;line-height:1.7;color:var(--secondary);margin:0 0 20px}
.chess-widget,.book-widget{min-width:0}
.chess-widget{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:center;gap:34px}
.chess-guide{max-width:330px}
.chess-goal{font-size:20px;font-weight:500;line-height:1.5;color:var(--fg);background:var(--accent-surface);padding:12px 16px;border-radius:6px;margin:16px 0}
.chess-goal strong{font-weight:600}
.chess-guide .play-instruction{margin-bottom:20px}
.chess-board{position:relative;display:grid;grid-template-columns:repeat(5,1fr);width:280px;max-width:100%;aspect-ratio:1;border-radius:4px;isolation:isolate;box-shadow:0 5px 16px #00000014}
.chess-square{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;border:0;padding:0;border-radius:0;transition:background-color 160ms ease;touch-action:manipulation}
.chess-square.is-light{background:#dedbcf;color:#3b4e3f}.chess-square.is-dark{background:#728375;color:#f7f6eb}
.chess-square:first-child{border-top-left-radius:4px}.chess-square:nth-child(5){border-top-right-radius:4px}.chess-square:nth-child(21){border-bottom-left-radius:4px}.chess-square:nth-child(25){border-bottom-right-radius:4px}
.chess-square.is-legal::after{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#263e34;transition:transform 160ms ease}
.chess-square.is-dark.is-legal::after{background:#fffaf0}
.chess-square.is-target{box-shadow:inset 0 0 0 2px #3d56b2}
.target-label{position:absolute;top:3px;right:4px;font-size:13px;line-height:1.3;font-weight:600;color:#304b9d}
.chess-square.has-knight{cursor:grab;touch-action:none}
.chess-square.has-knight:active{cursor:grabbing}
.chess-square.is-drag-over{box-shadow:inset 0 0 0 3px #304bbd}
.chess-square:focus-visible{outline:3px solid #304bbd;outline-offset:-3px;z-index:2}
.chess-piece{position:absolute;top:0;left:0;width:20%;height:20%;display:grid;place-items:center;pointer-events:none;z-index:3;color:#fff9e8;filter:drop-shadow(0 2px 1px #182a2b88);transform:translate(calc(var(--piece-x,0)*100%),calc(var(--piece-y,4)*100%));transition:transform 230ms var(--ease)}
.chess-piece svg{width:80%;height:80%;stroke:#394d40;stroke-width:.75;stroke-linejoin:round}
.chess-piece.is-dragging{transform:translate(var(--drag-x),var(--drag-y)) scale(1.12);transition:none;filter:drop-shadow(0 6px 4px #182a2b66)}
.chess-board.is-solved .chess-square.is-target{background:#b6c5ec}
.chess-readout{min-height:42px}
.chess-readout p{font-size:14px;line-height:1.7;color:var(--secondary);margin:0}
.chess-toolbar{display:flex;align-items:center;gap:16px}
#chess-moves{margin-left:auto;font-size:14px;line-height:1.85;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.chess-actions{display:flex;gap:5px;margin-left:-8px}
.chess-actions button,.book-controls button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;background:transparent;color:var(--secondary);padding:7px 10px;border-radius:5px;font-size:15px;font-weight:500;line-height:1.5;transition:color 160ms ease,background-color 160ms ease}
.chess-actions button:disabled,.book-controls button:disabled{opacity:.38;cursor:default}
.chess-actions button:not(:disabled):hover,.book-controls button:not(:disabled):hover{color:var(--fg);background:var(--hover)}
.book-widget{margin-top:34px;padding-top:30px;border-top:1px solid var(--line)}
.bookshelf{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:7px;min-height:264px;max-width:590px;margin:4px auto 0;padding:16px 24px 0}
.bookshelf::after{content:'';position:absolute;left:0;right:0;bottom:-11px;height:11px;border-radius:2px;background:linear-gradient(var(--hover),var(--line));box-shadow:0 8px 14px #00000028}
.shelf-book{position:relative;flex:0 1 84px;min-width:44px;height:224px;padding:0;border:0;border-radius:3px 5px 2px 2px;background:linear-gradient(90deg,#00000030,transparent 10%,#ffffff10 16%,transparent 24%,#00000008 94%,#00000030),var(--book-cloth);color:var(--book-ink);box-shadow:3px 3px 5px #00000028;transition:transform 240ms var(--ease),box-shadow 240ms var(--ease);transform-origin:bottom}
.shelf-book::before{content:'';position:absolute;inset:10px 7px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;opacity:.28;pointer-events:none}
.shelf-alchemist{--book-cloth:#c49d66;--book-ink:#252b2b;height:220px;transform:rotate(-2deg);margin-right:3px}
.shelf-influence{--book-cloth:#903e36;--book-ink:#fff0df;height:242px}
.shelf-small-stuff{--book-cloth:#a3b4a1;--book-ink:#233830;height:228px}
.shelf-rich-dad{--book-cloth:#4b4781;--book-ink:#fff0df;height:236px}
.shelf-fatal-volley{--book-cloth:#304b69;--book-ink:#f3ead9;height:208px}
.spine-title,.spine-author{position:absolute;top:20px;bottom:20px;writing-mode:vertical-rl;transform:rotate(180deg);text-align:left}
.spine-title{left:16px;font-size:16px;font-weight:500;line-height:1.2;letter-spacing:-.01em}
.spine-author{right:11px;font-size:12px;line-height:1.3;letter-spacing:.01em}
.shelf-book.is-selected{transform:translateY(-12px);box-shadow:3px 12px 12px #00000030}
.shelf-book:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.book-reader{max-width:520px;margin:38px auto 0}
.book-reader[hidden]{display:none}
.book-stage{width:100%;perspective:1100px;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.storybook{position:relative;width:100%;transform-style:preserve-3d}
.book-pages{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:3px 6px 6px 3px;transform-style:preserve-3d;box-shadow:2px 5px 8px #00000026}
.book-pages:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.book-page{position:relative;display:flex;flex-direction:column;padding:28px 25px 20px;background:#f3efe3;color:#42443d;min-width:0;min-height:320px;border-radius:3px;box-sizing:border-box;text-align:left}
.book-page-left{background:linear-gradient(90deg,#f3efe3 85%,#dfdbce);border-radius:4px 0 0 4px}
.book-page-right{background:linear-gradient(90deg,#dfdbce,#f3efe3 13%);border-radius:0 4px 4px 0}
.book-page.is-turnable{cursor:pointer}
.book-date{font-size:13px;line-height:1.5;color:#696c62;margin-bottom:18px}
.book-page h4{font-size:30px;font-weight:600;letter-spacing:-.03em;line-height:1.2;margin:0 0 11px;color:#30362e;text-wrap:pretty;overflow-wrap:anywhere}
.book-page a:focus-visible{outline-color:#304bbd;outline-offset:3px}
.book-page p{font-size:16px;line-height:1.65;margin:0;color:#55584e;text-wrap:pretty}
.book-source{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;min-height:44px;color:#304bbd;font-size:14px;font-weight:500;line-height:1.5;margin-top:12px;text-decoration:underline;text-underline-offset:3px}
.book-source .icon{width:12px;height:12px}
.book-source:hover{text-decoration-thickness:2px}
.book-page-number{font-size:12px;line-height:1.5;color:#696c62;font-variant-numeric:tabular-nums;margin-top:auto;padding-top:16px}
.book-page-right .book-page-number{text-align:right}
.turning-page{position:absolute;top:0;width:50%;height:100%;z-index:5;transform-style:preserve-3d;pointer-events:none}
.turning-next{left:50%;transform-origin:left}.turning-previous{left:0;transform-origin:right}
.turning-face{position:absolute;inset:0;backface-visibility:hidden;box-shadow:0 1px 8px #00000024}
.turning-back{transform:rotateY(180deg)}
.book-controls{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:14px;min-height:44px}
.book-controls button{width:44px;padding:5px;flex-shrink:0}.book-controls .icon{width:17px;height:17px}
#book-progress{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:64px;text-align:center;line-height:1.5}
.book-controls #book-close{font-size:14px;width:auto;margin-left:4px;padding:7px 8px}
.book-controls [hidden]{display:none}
@media(hover:hover) and (pointer:fine){.chess-square.is-legal:hover::after{transform:scale(1.35)}.shelf-book:hover{transform:translateY(-12px) rotate(-1deg);box-shadow:3px 12px 12px #00000030}}
@media(max-width:650px){
 .offscreen-playground{margin-top:28px;padding-top:25px}
 .chess-widget{grid-template-columns:minmax(0,1fr);gap:22px}.chess-guide{max-width:100%}.chess-goal{display:inline-block;margin:12px 0}.chess-guide .play-instruction{max-width:38ch;margin-bottom:12px}
 .chess-readout{min-height:0;margin-bottom:6px}.chess-toolbar{max-width:300px}.chess-board{width:300px}
 .book-widget{margin-top:30px;padding-top:25px}
 .bookshelf{padding:16px 8px 0;gap:5px;min-height:248px}.shelf-book{flex-basis:74px}.spine-title{left:10px;font-size:14px}.spine-author{right:7px;font-size:11px}
 .book-page{padding:24px 20px 18px;min-height:340px}.book-page h4{font-size:26px}
}
@media(max-width:420px){nav a[href='#notes']{display:none}.bookshelf{padding-left:4px;padding-right:4px;gap:4px}.shelf-alchemist{margin-right:0}.spine-title{left:6px;font-size:13px}.spine-author{right:5px;font-size:11px}.book-page{padding:22px 12px 18px;min-height:360px}.book-page h4{font-size:23px}.book-date{font-size:12px;margin-bottom:16px}.book-source{font-size:14px;margin-top:12px}.book-controls{gap:2px}.book-controls #book-close{font-size:13px;margin-left:0;padding-left:5px;padding-right:5px}}
@media(max-width:360px){.book-page h4{font-size:21px}}
@media(prefers-reduced-motion:reduce){.shelf-book,.chess-piece{transition:none}.shelf-book:hover{transform:none}.shelf-book.is-selected{transform:none;outline:2px solid var(--accent);outline-offset:3px}.chess-square.is-legal:hover::after{transform:none}.chess-piece.is-dragging{transform:translate(var(--drag-x),var(--drag-y))}}
@media print{.offscreen-playground,nav a[href='#offscreen']{display:none}}
