/* iPhone: keep native vertical scrolling and reserve a separate text area. */
@media(max-width:599px){
 html,body{overflow-x:hidden;overflow-y:auto;touch-action:pan-y pinch-zoom}
 html body main>section canvas{touch-action:pan-y pinch-zoom;top:auto;bottom:0;width:100%;height:62svh;z-index:1}
 html body main>section .character-preview{top:auto;bottom:0;width:100%;height:62svh;object-fit:contain;z-index:0}
 html body main>section .intro{left:7%;top:calc(env(safe-area-inset-top,0px) + 22px);width:86%;text-align:center;z-index:3;transform:none}
 html body main>section .intro h1{font-size:clamp(30px,8vw,44px);line-height:1.04}
 html body main>section .identity{margin-top:14px}
 html body main>section .intro .name{font-size:23px}
 html body main>section .intro .age{font-size:14px;margin-top:4px}
 html body main>section .intro .career{margin-top:10px}
 .skills-mode body main>section .intro{opacity:0;pointer-events:none}
 .skills-mode body main>section canvas,.skills-mode body main>section .character-preview{height:53svh}
 .about-section,.contents-section,.portfolio-section,.brand-section,.render-section,.ai-section{touch-action:pan-y pinch-zoom}
}
/* Keep the scroll story rules after all legacy inline styles. */
html body main{height:340svh}html body main>section{position:sticky;top:0;height:100svh}
html body main>section canvas{touch-action:pan-y pinch-zoom}

/* One document scroll container is required for the pinned hero on Safari. */
html{overflow-x:clip!important;overflow-y:auto!important}body{overflow:visible!important}
html body main>section .character-preview{object-fit:contain;transition:none}
.ready body main>section .character-preview{display:none}
html body main>section .intro .reveal{animation:hero-text-enter 1.8s cubic-bezier(.2,.65,.2,1) both}
html body main>section .intro .identity{animation-delay:.2s}
html body main>section .intro .career{animation-delay:.4s}
html body main>section canvas{transition:opacity 1.5s ease,right 1.1s ease,width 1.1s ease;transform:none}
html:not(.ready) body main>section canvas{opacity:0}
@keyframes hero-text-enter{from{opacity:0;translate:-20px 22px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){html body main>section .intro .reveal{animation:none}}
