/* Text stays available while the independently loaded character is downloading. */
.intro-ready .intro .reveal{opacity:1;transform:none}
.brand-section,.render-section,.ai-section{content-visibility:auto;contain-intrinsic-size:auto 850px}

/* Clickable expertise indicators retain the original dot appearance. */
.skills-dot{position:relative;display:block;padding:0;border:0;flex:none;cursor:pointer;appearance:none;touch-action:manipulation}
.skills-dot:before{content:'';position:absolute;inset:-12px -6px}
.skills-dot:focus-visible{outline:2px solid #fff;outline-offset:6px}
.skills-dots{gap:12px}

/* Show a small original-quality render while the detailed model loads. */
.character-preview{position:absolute;right:0;bottom:0;width:60%;height:100%;object-fit:fill;pointer-events:none;opacity:1;transition:opacity .4s ease;z-index:0}
.ready .character-preview{opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s .4s}
main>section canvas{transition:opacity .4s ease,right 1.1s cubic-bezier(.22,.7,.2,1);transform:none}
main>section .loader{display:none}
@media(max-width:599px){.character-preview{width:100%;height:84svh;object-fit:cover;object-position:center bottom}}
@media(prefers-reduced-motion:reduce){.character-preview,main>section canvas{transition:none}}

/* Native scrolling drives both model motion and the expertise story. */
html body main{height:340svh}html body main>section{position:sticky;top:0;height:100svh}
.character-preview{transform:translateX(var(--preview-x,0px)) scale(var(--preview-scale,1)) rotate(var(--preview-rotate,0deg));transform-origin:center 65%;transition:opacity .4s ease,right 1s ease;will-change:transform}
.skills-mode .character-preview{right:20%}
img[data-src]{background:linear-gradient(135deg,#f6e5ed,#fceef3);color:transparent}
@media(max-width:599px){.skills-mode .character-preview{right:0}}
@media(prefers-reduced-motion:reduce){.character-preview{transform:none}}

/* Match the initial canvas framing to the preview instead of cropping an oversized canvas. */
html body main>section canvas{height:100svh}
.skills-mode .character-preview{right:46%;width:54%}
@media(max-width:599px){html body main>section canvas{height:84svh}.skills-mode body main>section canvas{height:71svh}.skills-mode .character-preview{right:0;width:100%;height:71svh}}
