/* Scoped refinements: AI reading mask, PDF hint, phone music spacing. */
@media(min-width:768px){
 /* The subtitle moves independently of the centered stage, then pins at 24px. */
 .ai-subtitle::before{content:"";position:absolute;left:-79px;top:-77px;width:340px;height:550px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(252,251,250,.92) 0%,rgba(252,251,250,.78) 64%,rgba(252,251,250,0) 100%)}
 .portfolio-scroll-hint{position:absolute;left:589px;top:902px;transform:translateY(-50%);width:29px;height:239px;writing-mode:vertical-rl;text-align:center;font-size:20px;line-height:1.4;color:#777;pointer-events:none;margin:0}
}
/* New PDF renders already have the intended crops; do not reuse old image offsets. */
.ai-window .loi-terms,.mobile-ai-content .loi-terms,
.ai-window .loi-signatures,.mobile-ai-content .loi-signatures{inset:0;width:100%;height:100%;max-width:none;object-fit:contain;background:#fff}
/* Show both supplied LOI pages in full, with a staggered portrait layout. */
.ai-window .collage-120{top:175px;width:267px;height:366px}
.mobile-ai-content .phone-collage-129{top:2626px;width:87.6px;height:120px}
/* Two continuous paragraphs, one blank line apart; center the group in the strip. */
.ai-window .collage-125{top:50%;height:auto;line-height:1.5}
.ai-window .collage-125 p+p{margin-top:1.5em}
.mobile-ai-content .phone-collage-134{height:auto;line-height:1.2}
.mobile-ai-content .phone-collage-134 p+p{margin-top:1.2em}
@media(max-width:767px){
 .portfolio-scroll-hint{display:none}
 .music{height:calc(757px * var(--mobile-scale))}
 .music-stage{height:757px}
 .music .section-title{top:13px}
 .music .section-number{top:19px}
 .music-list{left:45px;top:281.303px;width:308px}
 .music-tab{width:299.901px;height:46.386px;padding:5px 7px 3px}
 .music-tab.is-active{margin-left:8.099px}
 /* The Figma list is 92.77% of its former width; then reduce text a further 20%. */
 .music-tab>span{font-size:16.327px;line-height:20px}
 .music-tab>small{font-size:10.39px;line-height:15px}
 .music-media{left:23px;top:524px}
 .music-media.portrait-video{left:75px;top:524px}
 .music:has(.portrait-video:not([hidden])){height:calc(943px * var(--mobile-scale))}
}
/* Chapter tooltip spacing remains explicit even when its wording changes. */
.ai-progress-number{display:inline-block;margin-right:.45em}
@media(max-width:767px){
 /* Consistent heading boxes: numerals and one/two-line titles share a center. */
 .ai-pin.ai-new .project-label span{left:10px;top:0;width:84px;height:106px;line-height:1}
 .ai-pin.ai-new .project-label h1{left:99px;top:0;height:106px;display:flex;flex-direction:column;justify-content:center;line-height:40px}
 .trading .section-title,.music .section-title{left:99px;top:0;height:106px;display:flex;flex-direction:column;justify-content:center;line-height:40px}
 .trading .section-number,.music .section-number{left:10px;top:0;width:84px;height:106px;line-height:1}
 /* Remove the extra 94px before Trading; preserve the internal content spacing. */
 .trading-stage>:not(.section-title):not(.section-number){translate:0 -94px}
 .trading,.trading-stage{height:calc(939px * var(--mobile-scale))}
 .trading-stage{height:939px}
 .ai-pin.ai-new .chapter:last-child{margin-bottom:0}
 .ai-pin.ai-new .preview-stage{padding-bottom:64px}
 .welfare-phone{height:4440px}
 /* Keep biography 1 after the photo; biography 2 waits for its turn and scroll. */
 html.hero-entering .hero-stage .bio-right{animation:none}
 .hero-stage .bio.bio-scroll-waiting{opacity:0;translate:0 14px}
 .hero-stage .bio.bio-scroll-shown{animation:hero-rise var(--hero-right-duration) var(--hero-enter-ease) 0s both!important}
}
@media(prefers-reduced-motion:reduce){
 .hero-stage .bio.bio-scroll-waiting{opacity:1;translate:none}
 .hero-stage .bio.bio-scroll-shown{animation:none!important}
}
