@media(min-width:1700px){.hero,.section{padding-left:6vw;padding-right:6vw}.story-panel{padding-left:10vw;padding-right:10vw}.hero h1{max-width:1300px}}@media(max-width:1100px){.main-nav{gap:16px}.status{display:none}.graph-node{font-size:10px;padding:9px}.graph-note{font-size:22px;left:76%}.keycap{width:90px;height:78px;font-size:16px}.hero-orb{width:67px;height:67px}.hero-actions{min-width:160px}.hero-actions .pill{font-size:12px;padding:12px 16px}.chapter-grid{gap:5vw}.story-panel{padding-left:6vw;padding-right:6vw}.story-panel h2{font-size:6vw}.orbit{width:300px;height:300px}.orbit-step:nth-of-type(3){left:80px}.orbit-step:nth-of-type(4){top:128px}.orbit-step:nth-of-type(5){left:72px}.orbit-step:nth-of-type(6){top:128px}.terminal pre{padding:20px}.project-copy{padding:20px 10px 12px}.featured .project-visual{height:405px}.project-copy h3{font-size:38px}.contact h2{font-size:7vw}.contact-link a{font-size:13px}.skill-shelf{gap:15px}.shelf-object{width:95px}.hero h1{font-size:7.8vw}.hero-bottom{align-items:flex-start}.hero-actions{padding-top:10px}}
@media(max-width:760px){:root{--head:65px}header.site-header{padding:0 5vw}.brand-name{font-size:32px}.brand-code{font-size:10px}.main-nav{gap:14px}.main-nav>a:not(.pill){display:none}.main-nav .pill{padding:10px 14px;font-size:11px}.command-key kbd:first-child{display:none}.header-left{gap:10px}.hero{padding:23px 5vw 34px}.hero-meta p{font-size:9px;max-width:230px}.scroll-cue{font-size:9px;gap:5px}.playground{height:390px;margin:15px -3vw 0}.graph-node{font-size:9px;padding:8px 7px;gap:5px;border-radius:7px;box-shadow:2px 3px 0 var(--ink)}.graph-node:before,.graph-node:after{width:4px;height:4px}.hero-key{left:2%;top:4%;width:65px;height:58px;padding:11px;font-size:13px;border-radius:11px}.hero-orb{right:3%;bottom:6%;width:57px;height:57px}.hero-orb:before{border-left-width:15px;border-top-width:10px;border-bottom-width:10px}.graph-note{top:0;left:65%;font-size:18px;width:130px}.graph-note svg{height:28px}.orb-label{display:none}.graph-tools{bottom:3px;left:13px;font-size:8px}.graph-tools .text-button{font-size:9px}.hero-bottom{display:block;margin-top:12px}.hero h1{font-size:clamp(45px,10.4vw,76px);letter-spacing:-.065em;max-width:600px}.hero h1 em{font-size:1.16em}.hero-actions{flex-direction:row;padding:24px 0 0}.hero-actions .pill{font-size:11px}.hero-footer{font-size:8px;margin-top:25px;line-height:1.7}.hero-footer .coord{gap:12px}.hero-footer>span:last-child{max-width:120px;text-align:right}.story{height:590vh;height:590svh;position:relative;border-top:1px solid var(--ink)}.story-sticky{position:sticky;top:var(--head);height:calc(100vh - var(--head));height:calc(100svh - var(--head));min-height:0;max-height:calc(100svh - var(--head));overflow:hidden;background:var(--paper)}.story-top{position:absolute;top:clamp(8px,1.8vh,16px);left:5vw;right:5vw;display:flex;align-items:center;justify-content:space-between;z-index:4;pointer-events:none}.story-top .chapter-label{font-size:9px;letter-spacing:.05em}.story-top .chapter-count{display:flex;align-items:center;gap:8px;font-size:10px}.story-top .tiny-line{width:50px}.story-track{display:flex;width:max-content;height:100%;will-change:transform}.story-panel{width:100vw;flex:0 0 100vw;height:100%;position:relative;padding:clamp(55px,9.5vh,72px) 5vw clamp(40px,6.8vh,50px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;min-height:0}.chapter-wire{position:absolute;top:clamp(32px,5.2vh,42px);left:0;right:0;width:100%;height:18px;overflow:visible}.chapter-tag{position:absolute;top:clamp(28px,4.6vh,36px);left:5vw;font-size:9px;padding:4px 9px;border-radius:6px;gap:6px;box-shadow:2px 3px 0 var(--ink)}.chapter-grid{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:clamp(8px,1.6vh,14px);width:100%;max-width:440px;margin:0 auto}.story-panel h2{font-size:clamp(24px,6.2vw,36px);line-height:1.05;letter-spacing:-.05em;margin:6px 0 8px}.story-panel h2 em{font-size:1.1em}.story-panel .description{font-size:clamp(11px,2.8vw,13px);line-height:1.42;max-width:100%}.chapter-footnote{font-size:clamp(14px,3.5vw,17px);margin-top:6px}.note-line{margin-top:6px;font-size:9px;gap:8px}.story-panel .pill.small{padding:6px 12px;font-size:11px;margin-top:8px}.terminal-wrap{max-width:380px;width:100%;margin:0 auto}.terminal{width:100%;max-width:380px;box-shadow:4px 5px 0 var(--ink);transform:rotate(1deg)}.terminal .window-top{padding:6px 10px;font-size:9px}.terminal pre{font-size:clamp(9px,2.5vw,11px);line-height:1.5;padding:10px 14px}.terminal-bottom{padding:0 14px 8px;font-size:8px}.origin-sticker{font-size:8px;padding:4px 9px;margin:-5px 0 0 12px}.skill-shelf{gap:8px;margin:6px 0;justify-content:center}.shelf-object{width:clamp(65px,20vw,80px)}.shelf-object .hand{font-size:10px;margin-top:3px;line-height:1.1}.shelf-object .mono{font-size:8px;margin-top:2px}.object-area{height:44px}.mini-laptop{width:70px;height:48px;border-width:2px;transform:rotate(-6deg)}.mini-laptop span{font-size:16px;margin:10px 0}.shelf-key{transform:scale(.55) rotate(6deg)}.code-cube{width:40px;height:40px;font-size:22px;border-radius:9px}.skills-terminal{padding:10px 12px}.skill-symbol{font-size:15px;padding:3px 0 2px}.skill-row{padding:3px 0;font-size:10px}.tech-pills{margin-top:6px;gap:4px}.tech-pills span{padding:3px 7px;font-size:8px}.experience-sheet{padding:10px 14px;max-width:390px;width:100%;box-shadow:4px 5px 0 var(--ink);margin:0 auto}.exp-mini{padding:5px 0;grid-template-columns:22px 1fr;gap:8px}.exp-mini .number{font-size:9px}.exp-mini h3{font-size:13px;margin:2px 0}.exp-mini p{font-size:10px}.exp-mini .mono{font-size:8px;margin-top:2px}.story-panel[data-chapter="4"] .chapter-grid>div:first-child{order:2}.story-panel[data-chapter="4"] .chapter-grid>div:last-child{order:1}.orbit{width:clamp(150px,38vw,185px);height:clamp(150px,38vw,185px);margin:0 auto}.orbit-ring,.orbit-spin{inset:14px}.orbit-spin:before{width:8px;height:8px;left:14px;top:14px}.orbit-center em{font-size:clamp(24px,5.5vw,30px)}.orbit-center span{font-size:8px}.orbit-step{font-size:8px;padding:2px 6px;border-radius:4px;box-shadow:1px 2px 0 var(--ink)}.orbit-step:nth-of-type(3){top:0;left:28px}.orbit-step:nth-of-type(4){top:68px;right:-18px}.orbit-step:nth-of-type(5){bottom:0;left:28px}.orbit-step:nth-of-type(6){top:68px;left:-18px}.proof-board{padding:12px 14px;max-width:390px;width:100%;box-shadow:4px 5px 0 var(--ink);margin:0 auto}.proof-stats{gap:8px 12px}.proof-stat strong{font-size:clamp(22px,5.5vw,28px)}.proof-stat span{font-size:8px;margin-top:2px}.proof-strip{height:32px;padding-top:6px;margin-top:8px;gap:3px}.proof-label{font-size:8px;margin-top:4px}.output-mark{height:clamp(90px,18vh,120px)}.output-mark .big-star{font-size:clamp(80px,20vw,110px)}.output-mark .stamp{font-size:8px;padding:5px 9px;box-shadow:2px 2px 0 var(--ink)}.story-bottom{position:absolute;bottom:clamp(6px,1.2vh,12px);left:5vw;right:5vw;display:flex;justify-content:space-between;align-items:center;z-index:4}#story-bottom-label{font-size:9px;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter-nav{gap:6px}.chapter-dots{gap:5px;margin-right:6px}.chapter-dot{width:16px;height:16px}.chapter-dot:before{width:4px;height:4px}.nav-square{width:26px;height:24px;font-size:12px}.story-help{display:none}.section{padding:65px 5vw}.section-title-row{display:block;margin-bottom:30px}.section-heading{font-size:clamp(49px,11vw,82px)}.section-summary{margin-top:22px;max-width:360px;font-size:13px}.project-grid{grid-template-columns:1fr;gap:25px}.proof-grid{grid-template-columns:1fr;gap:22px}.heatmap-svg{min-width:480px}.project-card.featured{display:block}.project-card{padding:10px}.project-visual,.featured .project-visual{height:280px}.project-copy{padding:22px 12px 16px}.project-copy h3{font-size:37px}.project-copy p{font-size:13px}.project-copy .project-actions{margin-top:5px}.hand-scan{height:245px}.landmark-tag{font-size:8px;right:15px}.project-filter{gap:6px}.filter-button{padding:8px 11px;font-size:9px}.visual-caption{font-size:8px}.build-note{font-size:9px;gap:10px;line-height:1.8;flex-wrap:wrap}.experience-layout{grid-template-columns:1fr;gap:35px}.experience-intro{position:static}.experience-intro .section-heading{font-size:53px}.experience-intro p{max-width:340px}.experience-list h3{font-size:23px}.experience-list .exp-body{padding-right:10px}.lab-stage{grid-template-columns:1fr;gap:38px}.lab-copy{grid-row:1}.lab-copy h3{font-size:39px}.lab-copy p{font-size:13px}.lab-copy .hand{font-size:21px;margin-top:15px}.sort-box{padding:18px}.sort-bars{gap:7px;height:200px}.contact-layout{grid-template-columns:1fr;gap:20px}.contact h2{font-size:clamp(49px,11vw,76px)}.contact-intro .hand{font-size:22px}.contact-link{gap:10px}.contact-link .label{width:50px;font-size:9px}.contact-link a{font-size:12px}.contact-link .copy-button{font-size:9px;padding:5px 8px}.badge-zone{width:100%;height:440px;margin-top:30px}.badge-rope{top:-55px;height:160px}.access-badge{top:75px;width:206px;height:315px;margin-left:-103px}.badge-avatar{height:94px;width:96px}.badge-hint{bottom:0;font-size:21px}.contact{padding-bottom:55px}footer{padding:22px 5vw 85px;flex-wrap:wrap;font-size:9px}footer .brand-name{font-size:28px}.footer-right{gap:17px}.dialog-body{padding:23px}.dialog-body h2{font-size:39px}.dialog-head{padding:13px 20px}.dialog-body p,.dialog-body li{font-size:13px}.hand-scan svg{height:100%}.graph-note svg{width:48px}.hero-key{animation-duration:5s}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal{opacity:1!important;transform:none!important}.story{height:auto!important}.story-sticky{position:relative;top:0;height:auto;min-height:0}.story-track{display:block;width:100%;transform:none!important}.story-panel{height:auto;min-height:650px;width:100%;padding-top:155px;padding-bottom:100px;border-bottom:1px solid var(--line)}.story-bottom{display:none}}
@media screen and (min-width:761px) and (max-height:820px){.story-sticky{min-height:555px}.story-panel{padding:134px 7vw 72px}.story-panel h2{font-size:clamp(40px,5vw,66px);margin:12px 0 17px}.story-panel .description{font-size:13px;line-height:1.65}.terminal pre{font-size:11px;line-height:1.75;padding:20px}.terminal-bottom{padding:0 20px 18px;font-size:9px}.chapter-footnote{font-size:21px;margin-top:16px}.note-line{margin-top:18px}.skill-shelf{margin:22px 0 10px;gap:23px}.shelf-object .hand{font-size:16px}.shelf-object .mono{margin-top:9px}.object-area{height:90px}.skill-row{padding:11px 0;font-size:10px}.skills-terminal{padding:21px}.skill-symbol{font-size:38px;padding-top:10px}.orbit{width:300px;height:300px}.orbit-step:nth-of-type(3){left:84px}.orbit-step:nth-of-type(4),.orbit-step:nth-of-type(6){top:128px}.orbit-step:nth-of-type(5){left:75px}.proof-stat strong{font-size:42px}.exp-mini{padding:14px 0}.experience-sheet{padding:20px}}
.orbit-center em{font-size:52px}.orbit-step:nth-of-type(4){right:-34px}.orbit-step:nth-of-type(6){left:-34px}@media(max-width:760px){.orbit-center em{font-size:50px}}
@page portfolio{size:1440px 1080px;margin:0}
@page resume{size:A4;margin:16mm}
@media print{html{scroll-behavior:auto}body{page:portfolio;-webkit-print-color-adjust:exact;print-color-adjust:exact}header.site-header{position:relative;backdrop-filter:none}.toast,.site-progress,.skip,.command-key,.scroll-cue,.graph-tools{display:none!important}.reveal,.js-motion .reveal{opacity:1!important;transform:none!important}.hero{break-after:page}.hero-actions{padding-bottom:12px}.story{height:auto!important}.story-sticky{position:relative;top:0;height:auto;min-height:0;overflow:visible}.story-track{display:block;width:100%;height:auto;transform:none!important;will-change:auto}.story-panel{width:100%;height:1000px;min-height:0;break-after:page;padding:155px 8vw 95px;overflow:hidden}.story-panel h2{font-size:75px}.story-panel .description{font-size:16px}.story-top{position:absolute}.story-bottom{display:none}.section{padding:65px 4vw;break-before:page}.project-card,.sort-box,.experience-list details,.contact-layout{break-inside:avoid}.experience-intro{position:relative;top:0}.experience-list h3{break-after:avoid}.contact{min-height:0;break-inside:avoid}.contact h2{font-size:78px;margin:20px 0 25px}.contact-links{margin-top:25px}.contact-link{padding:14px 0}.contact .contact-intro>.hand{margin-top:15px!important}.lab{overflow:visible;break-inside:avoid}.lab .section-title-row{margin-bottom:32px}.lab .section-heading{font-size:80px}footer{position:relative}dialog:not([open]){display:none!important}#command-dialog,#case-dialog{display:none!important}body:has(#resume-dialog[open]){page:resume;background:white;color:#222}body:has(#resume-dialog[open])>*:not(#resume-dialog){display:none!important}#resume-dialog[open]{display:block!important;position:static;max-height:none;width:100%;border:0;box-shadow:none;padding:0;background:white;overflow:visible}#resume-dialog::backdrop{display:none}#resume-dialog .dialog-head,.resume-actions{display:none!important}.resume-body{padding:0}.resume-body h2{font-size:26px}.resume-body h3{margin-top:14px;break-after:avoid}.resume-body p,.resume-body li{font-size:10px;line-height:1.4}.resume-body li{break-inside:avoid}.resume-body ul{margin-top:5px;margin-bottom:8px}.resume-body h4{font-size:11px;margin-top:8px;break-after:avoid}.resume-contact{font-size:9px}}
@media(max-width:760px){.visit-counter{padding:19px 5vw;gap:8px}.visit-counter .visit-reading{gap:10px}#preloader .loader-mark{width:82px;height:82px}#preloader .loader-glyph{font-size:37px}}
@media(prefers-reduced-motion:reduce){#preloader{animation-duration:.25s;animation-delay:.15s}#preloader .loader-mark,#preloader .loader-mark:before,#preloader .loader-mark:after,#preloader .loader-glyph:after,#preloader .loader-track i{animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media(max-width:380px){
  .hero{padding-left:4vw;padding-right:4vw}
  .hero h1{font-size:clamp(36px,10.8vw,42px)}
  .hero-meta p{max-width:190px;font-size:8px}
  .scroll-cue{font-size:8px}
  .playground{height:350px;margin-left:-2vw;margin-right:-2vw}
  .graph-node{max-width:43vw;white-space:normal;text-align:center;line-height:1.25;font-size:8px;padding:7px 6px;gap:4px}
  .graph-note{left:60%;max-width:120px;font-size:16px}
  .hero-actions{gap:7px}
  .hero-actions .pill{padding:10px 11px;font-size:10px}
  .hero-footer .coord{flex-wrap:wrap;gap:5px 10px}
  .section{padding-left:4vw;padding-right:4vw}
  .contact-link .label{width:42px}
  .contact-link a{font-size:11px}
  .sort-bars{gap:4px}
  .sort-bar span{font-size:8px}
}
@media(pointer:coarse){
  .pill,.filter-button,.copy-button,.nav-square{min-height:40px}
  .graph-node{min-height:36px}
  .lab-controls .pill{min-height:42px}
}
@media(max-width:760px) and (orientation:landscape) and (max-height:500px){
  .hero{padding-top:14px;padding-bottom:24px}
  .playground{height:min(66vw,300px);min-height:220px;margin-top:8px}
  .hero-key{top:2%;width:58px;height:50px}
  .hero-orb{bottom:5%;width:50px;height:50px}
  .story-panel{min-height:0;padding:clamp(38px,6vh,48px) 4vw clamp(28px,4.5vh,36px)}
  .story-top{top:6px}
  .chapter-wire{top:24px}
  .chapter-tag{top:20px}
  .story-bottom{bottom:4px}
  .chapter-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:3vw;align-items:center;max-width:100%}
  .story-panel[data-chapter="4"] .chapter-grid>div:first-child{order:1}
  .story-panel[data-chapter="4"] .chapter-grid>div:last-child{order:2}
  .story-panel h2{font-size:clamp(20px,4vw,28px);margin:4px 0 6px}
  .story-panel .description{font-size:11px;line-height:1.35}
  .orbit{width:145px;height:145px}
  .output-mark{height:90px}
  .output-mark .big-star{font-size:80px}
  .badge-zone{height:380px}
}