/* A shared measure, with a different reading rhythm in each chapter.
   Loaded after the existing component/theme sheets; geometry and input stay intact. */
:root{--editorial-width:1320px;--editorial-gutter:max(5vw,calc((100vw - var(--editorial-width))/2));--editorial-rule:#769cb53d;--editorial-secondary:#496a81}
/* Welcome: the short introduction and portrait first, the biography below. */
.welcome{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);column-gap:3vw;row-gap:0;padding:64px var(--editorial-gutter) 112px;align-items:center;min-height:calc(100svh - 85px)}
.welcome-copy{max-width:none;padding:15px 0 22px}.welcome-kicker{font-size:9px;letter-spacing:1.9px}
.welcome h1{font-size:clamp(68px,7.1vw,108px);line-height:1.04;letter-spacing:-4.5px;margin:27px 0 25px;text-wrap:balance}
#welcome-surname{white-space:nowrap}
.welcome-identity{font-size:clamp(19px,1.6vw,24px);line-height:1.6;letter-spacing:-.35px;max-width:480px}
.welcome-story{font-size:15px;line-height:1.85;max-width:390px;margin-top:23px;color:var(--editorial-secondary)}
.welcome-actions{margin-top:26px;gap:24px}.tour-button{padding:15px 20px;font-size:12px;border-radius:2px}.spawn-button{font-size:12px}
.welcome-paths{border:0;padding-top:0;margin-top:21px;gap:24px}.welcome-paths a{font-size:12px;min-height:32px;display:inline-flex;align-items:center}
.host-world{min-height:490px;align-self:center}.host-stage{width:max(100%,650px)}
.welcome-biography{grid-column:1/-1;position:relative;z-index:3;display:grid;grid-template-columns:1.24fr 1fr;gap:clamp(38px,7vw,100px);padding-top:27px;margin-top:30px;border-top:1px solid var(--editorial-rule)}
.welcome-biography-label{display:block;font:9px/1.8 'SFMono-Regular',Consolas,monospace;letter-spacing:1.2px;color:var(--editorial-secondary)}
.welcome-biography .welcome-about{max-width:none;font-size:14px;line-height:1.9;margin:13px 0 0;color:var(--editorial-secondary)}
.welcome-biography-music{padding-left:28px;border-left:1px solid var(--editorial-rule)}
.welcome-bottom{left:var(--editorial-gutter);right:var(--editorial-gutter);bottom:28px;padding-top:17px}
/* Science: a notebook in the left margin; a legible chronology in the right. */
.career-section{padding:88px var(--editorial-gutter) 42px}
.career-layout{max-width:var(--editorial-width);grid-template-columns:minmax(300px,.87fr) minmax(0,1.45fr);gap:clamp(45px,6vw,90px)}
.career-eyebrow{font-size:9px;line-height:1.9;letter-spacing:1.3px;max-width:330px}
.career-intro h2{font-size:clamp(48px,4.8vw,72px);line-height:1.04;letter-spacing:-2.7px;margin:22px 0 26px}
.career-lead{max-width:365px;font-size:15px;line-height:1.85;color:var(--editorial-secondary)}
.career-sketch,.secondary-sketch{max-width:340px;margin:22px 0 5px}.career-sketch .career-art,.secondary-sketch .career-art{width:100%;max-width:340px}.secondary-sketch{margin:5px 0}
.career-intro .career-aside{font-size:12px;line-height:1.85;max-width:345px;margin-top:23px}.career-profile{font-size:12px}
.career-filters{gap:6px;padding-bottom:17px;margin-bottom:5px;border-bottom:1px solid var(--editorial-rule)}
.career-filters button{font-size:11px;padding:9px 13px;min-height:40px}
.career-entry summary{min-height:90px;padding:17px 0;gap:20px;align-items:flex-start}
.career-point{margin-top:7px;width:13px;height:13px;flex-basis:13px}
.career-summary{display:grid;grid-template-columns:94px minmax(0,1fr);column-gap:20px;row-gap:4px;align-items:start}
.career-date{grid-column:1;grid-row:1/3;font-size:9px;line-height:1.8;letter-spacing:.1px;padding-top:3px}
.career-role{grid-column:2;grid-row:1;font-size:21px;line-height:1.3;letter-spacing:-.4px}
.career-org{grid-column:2;grid-row:2;font-size:11px;line-height:1.7}
.career-plus{font-size:21px;margin-top:1px}
.career-detail{margin-left:147px;font-size:13px;max-width:560px;padding-bottom:25px}
.career-detail p,.career-detail>ul:not(.career-tools){font-size:13px;line-height:1.85}
.career-detail h3{font-size:22px;line-height:1.35}
.career-tools li{font-size:10px}
.career-foundations{max-width:var(--editorial-width);margin-top:38px;padding-top:25px;border-top:1px solid var(--editorial-rule)}
/* Subtle rules and stronger text work in both palettes without extra effects. */
html[data-theme=dark]{--editorial-rule:#8eb7d135;--editorial-secondary:#aec9dc}
html[data-theme=dark] .welcome-biography-label{color:#97b6cd}
@media(min-width:761px) and (max-height:850px){
 .welcome{padding-top:42px;padding-bottom:100px}.welcome h1{font-size:clamp(64px,6.3vw,94px)}.host-world{min-height:410px}.welcome-biography{margin-top:19px;padding-top:24px}.welcome-biography .welcome-about{font-size:13px;line-height:1.85}
}
@media(max-width:1100px){
 .welcome{padding-left:4vw;padding-right:4vw;column-gap:0}.welcome h1{font-size:clamp(64px,7vw,84px)}.host-world{min-height:430px}.host-stage{width:610px}
 .career-layout{grid-template-columns:minmax(270px,.8fr) minmax(0,1.2fr);gap:35px}.career-summary{grid-template-columns:75px minmax(0,1fr);column-gap:15px}.career-detail{margin-left:123px}.career-role{font-size:19px}.career-date{font-size:8px}.career-filters{gap:5px}.career-filters button{padding:8px 10px;font-size:10px}
}
@media(max-width:760px){
 :root{--editorial-gutter:24px}
 .welcome{grid-template-columns:minmax(0,1fr);padding:40px 24px 100px;min-height:0}.welcome-copy{padding:0}.welcome-kicker{font-size:8px}.welcome h1{font-size:clamp(56px,12vw,84px);letter-spacing:-2.8px;line-height:1.05;margin:24px 0}.welcome-identity{font-size:20px;line-height:1.6}.welcome-story{font-size:14px;max-width:390px}.welcome-actions{gap:22px;margin-top:24px}.welcome-paths{margin-top:18px;gap:22px}.welcome-paths a{font-size:11px}
 .host-world{min-height:330px;margin-top:10px}.host-stage{width:600px}
 .welcome-biography{grid-template-columns:minmax(0,1fr);gap:24px;margin-top:5px;padding-top:24px}.welcome-biography-label{font-size:8px;letter-spacing:1px}.welcome-biography .welcome-about{font-size:14px;line-height:1.85;margin-top:10px}.welcome-biography-music{padding-left:0;border-left:0;padding-top:23px;border-top:1px solid var(--editorial-rule)}
 .welcome-bottom{bottom:23px;padding-top:15px}
 .career-section{padding-top:58px;padding-bottom:32px}.career-layout{grid-template-columns:minmax(0,1fr);gap:35px}.career-intro h2{font-size:clamp(43px,9vw,58px);margin:19px 0 23px}.career-intro h2 br{display:initial}.career-lead{font-size:15px;max-width:500px}.career-sketch,.secondary-sketch,.career-sketch .career-art,.secondary-sketch .career-art{max-width:300px}.career-intro .career-aside{font-size:12px;max-width:440px}.career-filters{gap:6px;padding-bottom:15px}.career-filters button{font-size:11px;padding:9px 12px;min-height:44px}
 .career-entry summary{gap:17px;min-height:90px;padding:17px 0}.career-summary{grid-template-columns:80px minmax(0,1fr);column-gap:12px}.career-role{font-size:19px}.career-date{font-size:9px}.career-org{font-size:11px}.career-detail{margin-left:30px;max-width:none}.career-detail p,.career-detail>ul:not(.career-tools){font-size:13px}.career-foundations{margin-top:30px}
}
@media(max-width:390px){.career-summary{grid-template-columns:64px minmax(0,1fr);column-gap:10px}.career-date{font-size:8px}.career-role{font-size:18px}.career-entry summary{gap:12px}.career-filters button{padding:8px 10px;font-size:10px}}

/* Supporting copy remains quiet through scale and spacing, not low contrast. */
.welcome-paths a,.career-date,.career-org,.career-aside,.career-detail p,.career-detail>ul:not(.career-tools){color:var(--editorial-secondary)}
.welcome-about a{color:#375d78}
html[data-theme=dark] .welcome-about a{color:#c1dfef}

/* Keep both biography columns in the opening desktop composition. The section
   can still grow for text zoom, narrower windows and short laptop screens. */
@media(min-width:761px){
 .welcome{padding-top:28px;padding-bottom:72px;align-content:center}
 .welcome-copy{padding:0}
 .welcome h1{font-size:clamp(64px,min(6.6vw,10svh),98px);margin:20px 0 18px;line-height:1.02}
 .welcome-identity{font-size:clamp(19px,1.5vw,22px);line-height:1.5}
 .welcome-story{font-size:14px;line-height:1.8;margin-top:18px;max-width:420px}
 .welcome-actions{margin-top:20px;gap:23px}
 .tour-button{padding:12px 19px;min-height:44px}
 .host-world{min-height:0;height:clamp(320px,45svh,460px);margin:0}
 .host-stage{width:min(650px,calc(45svh * 1.5789));max-width:none}
 .host-halo{width:min(32vw,43svh,440px)}
 .welcome-biography{margin-top:18px;padding-top:18px;gap:clamp(30px,5vw,75px)}
 .welcome-biography .welcome-about{font-size:13px;line-height:1.8;margin-top:9px}
 .welcome-biography-label{font-size:8px}
 .welcome-biography .welcome-paths{margin-top:12px;padding:0;gap:24px}
 .welcome-biography .welcome-paths a{font-size:11px;min-height:28px}
 .welcome-bottom{bottom:19px;padding-top:12px}
}
@media(min-width:761px) and (max-height:800px){
 .welcome{padding-top:22px;padding-bottom:66px}
 .welcome h1{font-size:clamp(58px,min(6vw,10svh),80px);margin:17px 0 16px}
 .welcome-story{margin-top:15px}
 .welcome-actions{margin-top:17px}
 .welcome-biography{margin-top:15px;padding-top:16px}
}
@media(max-width:760px){
 .welcome-biography .welcome-paths{margin-top:17px}
}

/* Lower the biography strip slightly, keeping the opening's overall height. */
@media(min-width:761px){
 .welcome{padding-bottom:48px}
 .welcome-biography{margin-top:42px}
}
@media(min-width:761px) and (max-height:800px){
 .welcome{padding-bottom:42px}
 .welcome-biography{margin-top:39px}
}

/* Large monitors: keep the chapters at a useful proportion of the viewport.
   The laptop composition below 1600px keeps its existing measure. */
@media(min-width:1600px){
 :root{--editorial-width:clamp(1320px,82vw,1840px)}
 .welcome{column-gap:clamp(48px,4vw,110px);padding-top:clamp(28px,3svh,48px);padding-bottom:64px}
 .welcome h1{font-size:clamp(98px,calc(34px + 4vw),132px);letter-spacing:-.04em}
 .welcome-identity{font-size:clamp(22px,1.1vw,30px);max-width:26em}
 .welcome-story{font-size:clamp(14px,calc(7px + .45vw),19px);max-width:34em}
 .welcome-kicker,.welcome-biography-label{font-size:clamp(9px,.43vw,12px)}
 .welcome-actions{margin-top:28px;gap:30px}
 .tour-button,.spawn-button{font-size:clamp(12px,.6vw,16px)}
 .tour-button{padding:16px 25px}
 .welcome-biography{margin-top:clamp(42px,3vw,78px);padding-top:26px;gap:clamp(75px,5vw,130px)}
 .welcome-biography .welcome-about{font-size:clamp(13px,calc(6px + .45vw),18px);max-width:72ch}
 .welcome-biography .welcome-paths a{font-size:clamp(11px,.58vw,15px)}
 .sound-section{padding-left:var(--editorial-gutter);padding-right:var(--editorial-gutter);padding-top:clamp(100px,6vw,160px)}
 .sound-hero,.sound-stories{max-width:var(--editorial-width);gap:clamp(80px,6vw,160px)}
 .sound-intro h2{font-size:clamp(112px,6vw,146px)}
 .sound-lead{font-size:clamp(21px,1.15vw,30px)}
 .sound-story{font-size:clamp(14px,.75vw,20px);max-width:42ch}
 .sound-eyebrow,.sound-player-heading,.sound-gig-label{font-size:clamp(8px,.42vw,11px)}
 .sound-stories{margin-top:clamp(85px,5vw,140px)}
 .sound-stories h3{font-size:clamp(40px,2.4vw,60px)}
 .sound-loop-art{max-width:760px}
 .sound-gear-copy{max-width:60ch}
 .sound-gear-copy h4{font-size:clamp(16px,.9vw,23px)}
 .sound-gear-copy p{font-size:clamp(12px,.7vw,18px)}
 .sound-gear-controls button{font-size:clamp(10px,.56vw,14px);min-height:44px}
 .sound-stage-art{max-width:620px}
 .career-intro h2{font-size:clamp(72px,4.4vw,106px)}
 .career-lead{font-size:clamp(15px,.83vw,21px);max-width:38ch}
 .career-sketch,.secondary-sketch,.career-sketch .career-art,.secondary-sketch .career-art{max-width:clamp(340px,18vw,400px)}
 .career-role{font-size:clamp(21px,1.1vw,28px)}
 .career-org{font-size:clamp(11px,.62vw,16px)}
 .career-date{font-size:clamp(9px,.5vw,13px)}
 .career-detail{max-width:68ch}
 .career-detail p,.career-detail>ul:not(.career-tools){font-size:clamp(13px,.72vw,18px)}
 .correspondence{padding-left:var(--editorial-gutter);padding-right:var(--editorial-gutter)}
 .contact-layout{max-width:var(--editorial-width)}
 .contact-copy{max-width:580px}
 .correspondence h2{font-size:clamp(126px,7vw,172px)}
 .contact-intro{font-size:clamp(13px,.75vw,19px);max-width:40ch}
 .contact-instrument{height:clamp(530px,26vw,600px)}
}
/* Wide, short windows still need room for both biography columns. */
@media(min-width:1600px) and (max-height:900px){
 .welcome h1{font-size:clamp(80px,10svh,108px)}
 .welcome-biography{margin-top:32px}
}


/* Drawn marks keep iOS from substituting colourful emoji glyphs. */
.ui-icon{display:inline-block;width:1em;height:1em;flex:none;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.apartment-brand .ui-star{width:.85em;height:.85em;vertical-align:0}
.sound-player-heading a{display:inline-flex;align-items:center;gap:.35em;white-space:nowrap}
@media(max-width:760px){
 .sound-section{padding-left:16px;padding-right:16px}
 .sound-hero,.sound-stories{grid-template-columns:minmax(0,1fr)}
 .sound-player{padding-left:16px;padding-right:16px;min-width:0;max-width:100%}
 .sound-embed,.sound-player iframe{width:100%;max-width:100%;min-width:0}
}

/* Decorative SVG overflow must not create a second mobile document column.
   Clip on the real page boxes as well as on the oversized artwork itself. */
@media(max-width:760px){
 html{overflow-x:hidden}
 body{width:100%;max-width:100%;overflow-x:clip}
 main{min-width:0;max-width:100%;overflow-x:clip}
 .science-music-thread,.music-home-thread,.home-contact-thread{overflow:hidden}
}
