*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;min-height:100%;background:#060b26;color:#dedede;font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}body{overflow-x:hidden}canvas{display:block;position:fixed;inset:0;width:100%;height:100%;cursor:grab;touch-action:none;z-index:0}canvas:active{cursor:grabbing}main{position:relative;z-index:2;width:min(536px,calc(100% - 48px));margin:0 auto;padding:clamp(65px,12vh,140px) 0 60px;pointer-events:none;text-shadow:0 2px 18px #060b26,0 0 35px #060b26}h1{font-size:24px;line-height:1.3;letter-spacing:-.65px;font-weight:600;color:#f5f5f5;margin:0 0 9px}.role{font-size:16px;color:#a0a0aa;margin:0;line-height:1.6}header{margin-bottom:20px}a{color:inherit;text-decoration:none;pointer-events:auto}a:hover{color:white}.role a:hover{text-decoration:underline;text-underline-offset:5px}section p{font-size:16px;line-height:1.6;margin:0 0 20px;letter-spacing:.03px}nav{display:flex;flex-wrap:wrap;gap:24px;margin-top:32px;font-size:15px}nav a{border-bottom:1px solid #454550;padding-bottom:5px}nav a:hover{border-color:#c7d5ff}a:focus-visible{outline:2px solid #b5c8ff;outline-offset:6px}@media(max-width:600px){main{padding-top:64px;padding-bottom:220px}h1{font-size:23px}header{margin-bottom:20px}section p{line-height:1.65}nav{gap:22px;font-size:14px}}

/* Desktop left-column placement. */
@media(min-width:1000px){main{margin-left:clamp(40px,6vw,120px);margin-right:auto;padding-top:clamp(65px,12vh,140px)}}

.portrait{display:block;width:96px;height:96px;object-fit:cover;border-radius:12px;margin-bottom:22px}

/* Original full-screen desktop scene; mobile retained pending redesign. */
#scene{position:fixed;inset:0;overflow:hidden}
@media(max-width:850px){body{display:flex;flex-direction:column}main{width:100%;max-width:584px;align-self:center;padding:56px 24px 36px!important}#scene{position:relative;top:auto;flex:none;width:100%;height:440px;height:clamp(340px,58svh,560px)}main{margin:0!important;pointer-events:auto;text-shadow:none}#scene{overflow:hidden}#scene canvas{position:absolute;inset:0;width:100%;height:100%}}

/* Lift the desktop biography and portrait slightly. */
@media(min-width:851px){main{padding-top:calc(clamp(65px,12vh,140px) - 46px)}}

/* Compact mobile reading area followed by a separate, visible spectrum. */
@media(max-width:850px){
 body{min-height:100svh;display:flex;flex-direction:column}
 main{flex:none;width:100%;max-width:584px;padding:18px 24px 12px!important;margin:0!important}
 .portrait{width:60px;height:60px;border-radius:9px;margin-bottom:10px}
 h1{font-size:22px;line-height:1.2;margin-bottom:4px}
 .role{font-size:14px;line-height:1.4}
 header{margin-bottom:14px}
 section p{font-size:15px;line-height:1.45;margin-bottom:10px;letter-spacing:0}
 section p:last-child{margin-bottom:0}
 nav{font-size:13px;gap:20px;margin-top:14px}
 nav a{padding-bottom:3px}
 #scene{position:relative;inset:auto;width:100%;height:auto;min-height:180px;flex:1 0 180px;overflow:hidden}
 #scene canvas{position:absolute;inset:0;width:100%;height:100%}
}
@media(max-width:850px) and (max-height:700px){
 main{padding-top:12px!important;padding-bottom:8px!important}
 .portrait{width:48px;height:48px;margin-bottom:8px}
 header{margin-bottom:10px}
 section p{font-size:14px;line-height:1.4;margin-bottom:8px}
 nav{margin-top:10px}
 #scene{min-height:150px;flex-basis:150px}
}

/* Move the desktop title and following content up together. */
@media(min-width:851px){h1{margin-bottom:5px}}
