/* About layout reconciliation, 2026-11.
   Loaded after legacy visual styles, scoped to standalone About only.
   Desktop proportions follow the reference-inspired floating-window composition.
   Narrow viewports switch to content-height cards; no 2223px fixed spacer.
*/
body[data-page="about"] #about-bio{isolation:isolate}
body[data-page="about"] #about-bio .about-cards{box-sizing:border-box}
body[data-page="about"] #about-bio .about-cards>.window{box-sizing:border-box}
body[data-page="about"] #about-bio .window-content{overflow-wrap:break-word}
body[data-page="about"] #about-bio .about-code p{max-width:100%}
body[data-page="about"] #about-bio .about-interests{display:none!important}
/* Match the separate About route's floating composition on wide desktop.
   Coordinates are relative to a centered 1127px stage. */
@media (min-width:1250px){
 body[data-page="about"] #frame-content #about-bio{
   height:1019px!important;min-height:1019px!important;overflow:hidden!important;padding:0!important
 }
 body[data-page="about"] #about-bio>.section-heading{display:none!important}
 body[data-page="about"] #about-bio .about-cards{
   display:block!important;position:relative!important;
   width:1127px!important;max-width:none!important;height:780px!important;
   margin:128px auto 0!important;left:auto!important;right:auto!important;
   transform:none!important
 }
 body[data-page="about"] #about-bio .about-cards>.window{
   position:absolute!important;margin:0!important
 }
 body[data-page="about"] #about-bio .about-main{
   left:213px!important;top:0!important;width:634px!important;
   height:405px!important;min-height:405px!important
 }
 body[data-page="about"] #about-bio .about-portrait{
   left:855px!important;top:137px!important;width:272px!important;
   height:310px!important;min-height:310px!important
 }
 body[data-page="about"] #about-bio .about-place{
   left:0!important;top:412px!important;width:362px!important;
   height:143px!important;min-height:143px!important
 }
 body[data-page="about"] #about-bio .about-links{
   left:306px!important;top:553px!important;width:272px!important;
   height:200px!important;min-height:200px!important
 }
 body[data-page="about"] #about-bio #collaborations{
   left:496px!important;top:442px!important;width:543px!important;
   height:283px!important;min-height:283px!important
 }
}
/* Between desktop and phone, retain the editorial window hierarchy without
   shrinking its text or cutting biographies off at arbitrary card heights. */
@media (min-width:601px) and (max-width:1249px){
 body[data-page="about"] #frame-content #about-bio{
   height:auto!important;min-height:0!important;overflow:visible!important;
   padding:86px clamp(22px,5vw,70px) 125px!important
 }
 body[data-page="about"] #about-bio>.section-heading{
   display:block!important;margin:0 auto 45px!important
 }
 body[data-page="about"] #about-bio .about-cards{
   display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
   gap:18px!important;position:relative!important;inset:auto!important;
   width:min(960px,100%)!important;max-width:100%!important;
   height:auto!important;margin:0 auto!important;padding:0!important;
   transform:none!important
 }
 body[data-page="about"] #about-bio .about-cards>.window{
   display:block!important;position:relative!important;inset:auto!important;
   left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
   width:100%!important;height:auto!important;min-height:0!important;
   max-width:100%!important;margin:0!important;transform:none!important
 }
 body[data-page="about"] #about-bio .about-main{grid-column:1/5;grid-row:1;order:1}
 body[data-page="about"] #about-bio .about-portrait{grid-column:5/7;grid-row:1;order:2}
 body[data-page="about"] #about-bio .about-place{grid-column:1/3;grid-row:2;order:3}
 body[data-page="about"] #about-bio .about-links{grid-column:3/5;grid-row:2;order:4}
 body[data-page="about"] #about-bio #collaborations{grid-column:5/7;grid-row:2;order:5;
   overflow:visible!important;padding:0!important
 }
 body[data-page="about"] #about-bio .about-main .window-content{padding:22px!important}
 body[data-page="about"] #about-bio .about-code p{
   font:12px/1.72 var(--mono)!important;margin:0 0 12px!important
 }
 body[data-page="about"] #about-bio .about-portrait .portrait-art{
   height:calc(100% - 30px)!important;min-height:200px!important;max-height:none!important
 }
 body[data-page="about"] #about-bio #collaborations .window-content{
   padding:20px!important
 }
 body[data-page="about"] #about-bio #collaborations .window-content p{
   font:11px/1.72 var(--mono)!important;margin:0 0 14px!important
 }
}
@media (min-width:601px) and (max-width:870px){
 body[data-page="about"] #about-bio .about-cards{
   grid-template-columns:repeat(2,minmax(0,1fr))!important
 }
 body[data-page="about"] #about-bio .about-main{grid-column:1/-1;grid-row:auto}
 body[data-page="about"] #about-bio .about-portrait{grid-column:2;grid-row:auto}
 body[data-page="about"] #about-bio .about-place{grid-column:1;grid-row:auto}
 body[data-page="about"] #about-bio .about-links{grid-column:1;grid-row:auto}
 body[data-page="about"] #about-bio #collaborations{grid-column:1/-1;grid-row:auto}
}
/* Mobile: intrinsic heights, continuous scrolling, no invisible 2223px void.
   Keep the window labels and contents but stack the cards in reading order. */
@media(max-width:600px){
 body[data-page="about"] #frame-content #about-bio{
   display:block!important;height:auto!important;min-height:0!important;
   padding:74px 17px 100px!important;overflow:visible!important
 }
 body[data-page="about"] #about-bio>.section-heading{display:none!important}
 body[data-page="about"] #about-bio .about-cards{
   display:flex!important;flex-direction:column!important;gap:22px!important;
   width:100%!important;max-width:100%!important;height:auto!important;
   position:relative!important;inset:auto!important;left:auto!important;top:auto!important;
   margin:0 auto!important;padding:0!important;transform:none!important
 }
 body[data-page="about"] #about-bio .about-cards>.window{
   display:block!important;position:relative!important;inset:auto!important;
   left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;
   width:100%!important;max-width:100%!important;height:auto!important;
   min-height:0!important;margin:0!important;transform:none!important;translate:none!important
 }
 body[data-page="about"] #about-bio .about-main{order:1}
 body[data-page="about"] #about-bio .about-place{order:2}
 body[data-page="about"] #about-bio .about-portrait{order:3}
 body[data-page="about"] #about-bio .about-links{order:4}
 body[data-page="about"] #about-bio #collaborations{order:5;overflow:visible!important;padding:0!important}
 body[data-page="about"] #about-bio .about-main .window-content{padding:20px!important}
 body[data-page="about"] #about-bio .about-code p{
   font:11.5px/1.72 var(--mono)!important;margin:0 0 14px!important
 }
 body[data-page="about"] #about-bio .about-portrait .portrait-art{
   height:270px!important;max-height:none!important
 }
 body[data-page="about"] #about-bio #collaborations .window-content{
   padding:20px!important
 }
 body[data-page="about"] #about-bio #collaborations .window-content p{
   font:11px/1.7 var(--mono)!important;margin:0 0 13px!important
 }
 body[data-page="about"] #frame-content #techs,
 body[data-page="about"] #frame-content .route-testimonials{
   height:auto!important;min-height:calc(100dvh - 98px)!important
 }
}
/* The minimized frame is a window looking onto desktop composition, not a
   button that changes content typography. Fix the stage in its own viewport. */
@media(min-width:601px){
 body.window-resized[data-page="about"] #frame-content #about-bio{
   overflow:visible!important
 }
 body.window-resized[data-page="about"] #about-bio .about-cards{
   max-width:100%!important
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-page="about"] #about-bio .window{transition:none!important}
}
