.work-atlas{max-width:1440px;margin:0 auto;padding:110px var(--edge) 80px;border-top:1px solid rgb(var(--line),var(--line),var(--line));--atlas-rule:rgb(var(--line),var(--line),var(--line));--atlas-muted:rgb(var(--muted),var(--muted),var(--muted))}
.work-atlas>header h2{font-size:clamp(38px,4.3vw,62px);max-width:740px;line-height:1.12}
.atlas-layout{display:grid;grid-template-columns:43% 57%;position:relative;margin-top:26px;align-items:start}
.atlas-chapters{grid-column:1;grid-row:1;padding-right:36px}
.atlas-chapter{min-height:440px;height:58svh;max-height:700px;display:flex;flex-direction:column;justify-content:center;scroll-margin-top:110px}
.atlas-chapter h3{font:400 clamp(42px,4.45vw,64px)/1.06 'Instrument Serif',Georgia,serif;letter-spacing:-.02em;margin:20px 0 28px;text-wrap:balance}
.atlas-chapter>p{font-size:17px;line-height:1.8;color:var(--atlas-muted);max-width:395px;margin:0 0 28px}
.atlas-chapter>p.atlas-org{font-size:13px;color:inherit;margin-bottom:22px}
.atlas-stage{grid-column:2;grid-row:1;position:sticky;top:calc(var(--header-height) + var(--section-heading-height,80px) - 8px);min-width:0;z-index:2;padding:8px 0 20px}
.atlas-tabs{display:flex;gap:22px;align-items:center;justify-content:center;font-size:12px;height:44px;margin-bottom:8px}
.atlas-tabs a{padding:12px 0;color:var(--atlas-muted);border-bottom:1px solid transparent;white-space:nowrap}
.atlas-tabs a[aria-current=true]{color:inherit;border-color:transparent}
.atlas-tabs a:hover{text-decoration:none}
.atlas-tabs a:not([aria-current=true]){color:rgb(118,118,118)}
.atlas-viewport{height:min(45vw,500px);max-height:48svh;min-height:260px;position:relative;isolation:isolate;overflow:hidden;touch-action:pan-y}
.atlas-viewport canvas,.atlas-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.atlas-viewport canvas{touch-action:pan-y;cursor:grab;outline-offset:-4px;opacity:0;transition:opacity 320ms}
.atlas-viewport canvas:active{cursor:grabbing}
.atlas-ready .atlas-viewport canvas{opacity:1}
.atlas-ready .atlas-poster{visibility:hidden}
.atlas-hint{font-size:11px;color:var(--atlas-muted);margin:0;text-align:center}
.atlas-tools{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:16px 20px 0;padding:0 0 8px;border-bottom:1px solid var(--atlas-rule)}
.atlas-tools label{flex:1;min-width:0}
.atlas-tools select{font:inherit;font-size:12px;color:inherit;border:0;background:transparent;width:100%;max-width:100%;padding:10px 20px 10px 0;cursor:pointer;text-overflow:ellipsis}
.atlas-tools select option{background:rgb(var(--paper),var(--paper),var(--paper));color:inherit}
.atlas-tools button,.atlas-detail button,.atlas-load button{border:0;background:none;font:inherit;font-size:12px;padding:10px 4px;cursor:pointer;text-decoration:underline;text-underline-offset:4px;min-height:44px}
.atlas-detail{margin:20px 20px 0;min-height:130px;position:relative;max-width:520px}
.atlas-detail .atlas-place{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--atlas-muted);margin:0 50px 8px 0;line-height:1.5}
.atlas-detail h4{font:400 27px/1.12 'Instrument Serif',Georgia,serif;margin:0 24px 10px 0}
.atlas-detail .atlas-description{font-size:13px;line-height:1.65;color:var(--atlas-muted);margin:0 0 10px;max-width:480px}
.atlas-detail a{font-size:12px;text-decoration:underline;line-height:1.5;color:var(--atlas-muted)}
.atlas-detail button{position:absolute;right:0;top:-10px}
.atlas-detail:not([data-selected=true]){visibility:hidden}
.atlas-load{font-size:12px;text-align:center;line-height:1.6;margin:10px 20px;color:var(--atlas-muted)}
.atlas-load[hidden],.atlas-detail [hidden]{display:none}
.atlas-tools[hidden]{display:none}
.atlas-sources{font-size:11px;line-height:1.8;color:var(--atlas-muted);max-width:720px;margin-top:45px}
.atlas-sources summary{cursor:pointer;min-height:44px;padding:12px 0}
.atlas-sources a{text-decoration:underline}
.atlas-flat-list{margin:20px 0;font-size:14px;line-height:1.7}
.atlas-flat-list summary{cursor:pointer}
.atlas-flat-list li{margin:16px 0}
.atlas-flat-list a{text-decoration:underline}
@media(min-width:1600px){.work-atlas{padding-left:96px;padding-right:96px}}
@media(max-width:1050px){.atlas-chapter h3{font-size:48px}.atlas-chapter>p{font-size:15px}.atlas-tabs{gap:14px;font-size:11px}.atlas-viewport{min-height:260px}.atlas-tools,.atlas-detail{margin-left:10px;margin-right:10px}.atlas-detail{min-height:180px}}
@media(max-width:700px){
 .work-atlas{padding:70px 24px 40px}.work-atlas>header h2{font-size:39px}
 .atlas-layout{display:flex;flex-direction:column;margin-top:28px}.atlas-chapters{padding:0;width:100%}
 .atlas-stage{order:-1;top:calc(var(--header-height) + var(--section-heading-height,64px));width:calc(100% + 48px);margin-left:-24px;padding:6px 20px 10px;background:rgb(var(--paper),var(--paper),var(--paper));border-bottom:1px solid var(--atlas-rule)}
 .atlas-tabs{height:36px;margin:0;gap:24px}.atlas-tabs a{padding:9px 0}.atlas-viewport{height:clamp(170px,28svh,260px);min-height:0;max-height:none}
 .atlas-hint{font-size:10px}.atlas-tools{margin:4px 4px 0;padding-bottom:0;gap:12px}.atlas-tools select{font-size:11px;padding-top:8px;padding-bottom:8px}
 .atlas-detail{margin:10px 4px 0;min-height:64px;max-height:none}.atlas-detail .atlas-place{font-size:9px;margin-bottom:5px}.atlas-detail h4{font-size:22px;margin-bottom:8px}.atlas-detail .atlas-description{font-size:12px;line-height:1.45;max-height:88px;overflow:auto;margin-bottom:6px}.atlas-detail a{font-size:11px}
 .atlas-detail:not([data-selected=true]) .atlas-description{display:none}.atlas-detail:not([data-selected=true]){min-height:50px}.atlas-load{margin:4px;font-size:11px}
 .atlas-chapter{height:auto;min-height:48svh;max-height:none;padding:65px 0 80px;justify-content:flex-start;scroll-margin-top:440px}.atlas-chapter h3{font-size:44px;max-width:350px;margin:18px 0 24px}
 .atlas-chapter>p{font-size:15px}.atlas-sources{margin-top:0}
}
@media(max-height:650px) and (min-width:701px){.atlas-stage{top:calc(var(--header-height) + var(--section-heading-height,64px))}.atlas-viewport{height:280px;min-height:0}.atlas-tabs{margin-bottom:0}.atlas-detail{margin-top:12px;min-height:130px}.atlas-tools{margin-top:10px}.atlas-detail .atlas-description{font-size:12px}.atlas-detail h4{font-size:24px}}
html[data-motion=reduced] .atlas-viewport canvas{transition:none}html[data-motion=reduced] .work-atlas *{scroll-behavior:auto}

.atlas-chapter h3{position:sticky;top:calc(var(--header-height) + var(--section-heading-height,80px) + 12px);align-self:start;background:rgb(var(--paper),var(--paper),var(--paper));padding:8px 0;z-index:3}
@media(max-width:700px){
 .work-atlas>header h2{font-size:32px}
 .atlas-chapter h3{top:calc(var(--header-height) + var(--section-heading-height,60px) + var(--atlas-stage-height,380px) + 8px);font-size:36px}
 .atlas-viewport{height:clamp(150px,24svh,220px)}
}

/* The same live canvas moves into the top-layer dialog; no second WebGL scene. */
.atlas-expand{position:absolute;right:12px;bottom:10px;z-index:3;border:1px solid currentColor;background:rgb(var(--paper),var(--paper),var(--paper));color:inherit;font:inherit;font-size:11px;padding:10px 12px;min-height:40px;cursor:pointer}
.atlas-placeholder{grid-column:2;grid-row:1;width:100%;pointer-events:none}
.atlas-placeholder[hidden]{display:none}
.atlas-viewer-open{overflow:hidden;scrollbar-gutter:stable}
.atlas-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:24px;border:0;color:rgb(var(--ink),var(--ink),var(--ink));background:rgb(var(--paper) var(--paper) var(--paper) / .78);--atlas-rule:rgb(var(--line),var(--line),var(--line));--atlas-muted:rgb(var(--muted),var(--muted),var(--muted));overflow:hidden}
.atlas-dialog::backdrop{background:rgb(0 0 0 / .32);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.atlas-dialog .atlas-stage{position:relative;inset:auto;width:100%;height:100%;margin:0;padding:0;background:none;border:0;display:block}
.atlas-dialog .atlas-tabs{position:absolute;left:0;top:0;margin:0;justify-content:flex-start;z-index:2}
.atlas-dialog .atlas-viewport{position:absolute;inset:44px 0 75px;width:100%;height:auto;min-height:0;max-height:none;overflow:hidden;touch-action:none}
.atlas-dialog .atlas-viewport canvas{touch-action:none}
.atlas-dialog .atlas-expand{display:none}
.atlas-close{position:absolute;right:24px;top:24px;z-index:5;display:flex;gap:14px;align-items:center;min-height:44px;border:0;padding:10px 0 10px 16px;background:none;color:inherit;font:inherit;font-size:13px;cursor:pointer}

.atlas-dialog .atlas-tools{position:absolute;right:0;bottom:0;width:300px;margin:0;z-index:2}
.atlas-dialog .atlas-detail{position:absolute;left:0;bottom:0;max-width:365px;max-height:240px;min-height:0;margin:0;padding:16px;background:rgb(var(--paper) var(--paper) var(--paper) / .85);overflow:auto;z-index:2}
.atlas-dialog .atlas-detail:not([data-selected=true]){display:none}
.atlas-dialog .atlas-detail button{top:0;right:12px}
.atlas-dialog .atlas-hint{position:absolute;bottom:55px;right:0;margin:0;text-align:right}
.atlas-dialog .atlas-load{position:absolute;top:55px;left:50%;transform:translateX(-50%);z-index:4;background:rgb(var(--paper),var(--paper),var(--paper));padding:10px 16px}
.atlas-zoom{position:absolute;right:24px;top:50%;z-index:5;display:flex;flex-direction:column;border:1px solid var(--atlas-rule);background:rgb(var(--paper) var(--paper) var(--paper) / .7)}
.atlas-zoom button{width:44px;height:44px;border:0;background:none;color:inherit;display:grid;place-items:center;cursor:pointer}
.atlas-zoom svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
@media(max-width:700px){
 .atlas-placeholder{order:-1}
 .atlas-expand{font-size:10px;right:0;bottom:0;padding:8px}
 .atlas-dialog{padding:12px 16px max(16px,env(safe-area-inset-bottom))}
 .atlas-close{top:10px;right:16px;font-size:12px;gap:8px}
 .atlas-dialog .atlas-tabs{gap:15px;font-size:10px;padding-right:75px}
 .atlas-dialog .atlas-viewport{inset:50px -16px 170px;width:auto}
 .atlas-dialog .atlas-detail{bottom:53px;left:0;right:0;max-width:none;max-height:170px;padding:12px}
 .atlas-dialog .atlas-detail h4{font-size:23px}.atlas-dialog .atlas-detail .atlas-description{max-height:52px}
 .atlas-dialog .atlas-tools{width:100%;bottom:0}.atlas-dialog .atlas-hint{right:0;left:0;bottom:149px;text-align:center}
 .atlas-dialog:has(.atlas-detail[data-selected=true]) .atlas-hint{display:none}
 .atlas-zoom{right:16px;top:45%;transform:translateY(-50%)}
}
html[data-motion=reduced] .atlas-dialog::backdrop{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}

/* Freeze the obscured dust so backdrop blur can reuse a static layer. */
.atlas-viewer-open .dust-grain{animation-play-state:paused!important}

/* A quiet directional affordance replaces the boxed expand label. */
.work-atlas,.atlas-tools,.atlas-stage{border:0}
.atlas-expand{right:8px;top:50%;bottom:auto;transform:translateY(-50%);width:48px;height:48px;min-height:48px;padding:0;display:grid;place-items:center;border:0;background:none}
.atlas-expand svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms var(--ease-out),opacity 180ms ease;opacity:.7}
.atlas-chapter h3{background:transparent}
@media(hover:hover) and (pointer:fine){.atlas-expand:hover svg{transform:translateX(5px);opacity:1}}
html[data-motion=reduced] .atlas-expand svg{transition:none}

/* Role stories keep a stable reading position while the globe changes chapter. */
.role-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.atlas-chapter h3,.role-copy h3{position:static;transform:none;font:400 clamp(30px,2.8vw,40px)/1.12 'Instrument Serif',Georgia,serif;letter-spacing:-.02em;margin:0 0 22px;padding:0;max-width:370px;text-wrap:balance}
.role-copy>p{font-size:16px;line-height:1.8;color:var(--atlas-muted);max-width:395px;margin:0 0 24px}
.role-copy>.atlas-org{font-size:13px;color:inherit;margin-bottom:22px}
.role-details summary{display:grid;place-items:center;width:48px;height:48px;cursor:pointer;list-style:none}
.role-details summary::-webkit-details-marker{display:none}
.role-details svg,.role-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform 180ms var(--ease-out)}
.role-details[open]{flex:1}.role-details[open] .role-details-body{min-width:220px;font-size:14px;line-height:1.7}
.role-stage{position:sticky;top:calc(var(--header-height) + var(--section-heading-height,80px) + 48px);height:0;z-index:4}
.role-stack{display:grid;max-height:calc(100svh - var(--header-height) - var(--section-heading-height,80px) - 100px);overflow-y:auto;scrollbar-width:thin}
.role-stack>.role-copy{grid-area:1/1;align-self:start;opacity:0}
.has-role-stories .atlas-chapter{pointer-events:none}
.role-card{position:fixed;left:var(--edge);top:calc(var(--header-height) + 24px);right:auto;bottom:auto;width:min(580px,calc(100vw - 2*var(--edge)));max-width:none;max-height:calc(100svh - var(--header-height) - 48px);margin:0;padding:36px;border:1px solid rgb(var(--line) var(--line) var(--line) / .3);background:rgb(var(--paper),var(--paper),var(--paper));color:rgb(var(--ink),var(--ink),var(--ink));box-shadow:0 24px 80px #0005;z-index:50;overflow-y:auto;overscroll-behavior:contain;transform-origin:top left}
.role-card h3{font:400 32px/1.12 'Instrument Serif',Georgia,serif;margin:0 44px 18px 0}
.role-card .atlas-org{font-size:13px;line-height:1.6;margin:0 30px 8px 0}
.role-dates{font-size:12px;line-height:1.6;color:rgb(var(--muted),var(--muted),var(--muted));margin:0 0 24px}
.role-card ul{padding-left:18px;margin:0;font-size:14px;line-height:1.65;color:rgb(var(--muted),var(--muted),var(--muted))}
.role-card li+li{margin-top:14px}
.role-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:44px;height:44px;background:none;color:inherit;border:0;cursor:pointer}
.atlas-dialog .lighting-rig{position:fixed;z-index:62}
.atlas-dialog .atlas-tabs{top:var(--header-height)}
.atlas-dialog .atlas-viewport{top:calc(var(--header-height) + 50px)}
@media(hover:hover) and (pointer:fine){.role-details summary:hover svg{transform:translateX(5px)}.role-close:hover svg{transform:rotate(90deg)}}
@media(max-width:700px){
 .role-stage{top:calc(var(--header-height) + var(--section-heading-height,60px) + var(--atlas-stage-height,300px) + 16px)}
 .role-stack{max-height:calc(100svh - var(--header-height) - var(--section-heading-height,60px) - var(--atlas-stage-height,300px) - 32px)}
 .role-copy h3{font-size:28px;margin-bottom:16px}
 .role-copy>p{font-size:14px;line-height:1.65;margin-bottom:18px}
 .role-copy>.atlas-org{font-size:12px;margin-bottom:16px}
 .atlas-detail:not([data-selected=true]){display:none}
 .role-card{left:16px;width:calc(100vw - 32px);padding:28px 24px;top:calc(var(--header-height) + 16px);max-height:calc(100svh - var(--header-height) - 32px)}
 .role-card h3{font-size:28px}.role-card ul{font-size:13px}
}
html[data-motion=reduced] .role-details svg,html[data-motion=reduced] .role-close svg{transition:none}
.role-heading:has(.role-details[open]){flex-wrap:wrap}
.role-details[open]{flex-basis:100%}

.role-content{display:flex;align-items:flex-end;gap:16px}
.role-content>p{flex:1;min-width:0;font-size:16px;line-height:1.8;color:var(--atlas-muted);max-width:395px;margin:0 0 24px}
.role-content .role-details{flex-shrink:0;margin-bottom:14px}
.role-content summary{border:1px solid rgb(var(--line) var(--line) var(--line) / .6);border-radius:50%;transition:background-color 180ms ease,color 180ms ease}
@media(hover:hover){.role-content summary:hover{background:rgb(var(--ink),var(--ink),var(--ink));color:rgb(var(--paper),var(--paper),var(--paper))}.role-content summary:hover svg{transform:none}}
.role-content summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.role-content:has(.role-details[open]){flex-wrap:wrap}
.role-content .role-details svg{width:20px;height:20px;stroke-width:1.4}
/* Let tablet role copy use its whole column instead of losing 64px to the
   detail control. Preserve the desktop and phone arrangements. */
@media(min-width:701px) and (max-width:1050px){
 .role-content{flex-wrap:wrap;gap:0}
 .role-content>p{flex-basis:100%;margin-bottom:12px}
 .role-content .role-details{margin-bottom:0}
}
.atlas-tools label{position:relative;flex:0 1 auto;display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 85px);min-height:44px;font-size:12px}
.atlas-select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.atlas-select-arrow{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.atlas-tools label select{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0}
.atlas-tools label:focus-within{outline:1px solid currentColor;outline-offset:4px}
@media(max-width:700px){.role-content .role-details{margin-bottom:7px}.role-content>p{font-size:14px;line-height:1.65;margin-bottom:18px}.atlas-tools label{font-size:11px}}

/* Mobile keeps the story above a right-aligned globe, with topics beside it.
   Both sticky regions share the chapter track; desktop keeps its two columns. */
@media(max-width:700px){
 .has-role-stories .atlas-layout{display:grid;grid-template-columns:minmax(0,1fr)}
 .has-role-stories .atlas-chapters{grid-area:1/1}
 .has-role-stories .role-stage{top:calc(var(--header-height) + var(--section-heading-height,60px) + 4px)}
 .has-role-stories .role-stack{max-height:min(260px,32svh)}
 .has-role-stories .atlas-stage{grid-area:1/1;align-self:start;order:0;top:calc(var(--header-height) + var(--section-heading-height,60px) + 12px + var(--role-story-height,220px));margin:calc(var(--role-story-height,220px) + 8px) 0 0;width:100%;padding:0;background:none;display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:8px}
 .work-atlas .atlas-tabs{grid-column:1;grid-row:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;height:auto;font-size:11px}
 .work-atlas .atlas-tabs a{min-height:44px;display:flex;align-items:center;padding:8px 0;white-space:normal}
 .work-atlas .atlas-viewport{grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:1;min-height:0;max-height:none}
 .work-atlas .atlas-expand{display:none}
 .work-atlas .atlas-hint{grid-column:1/-1;margin-top:8px}
 .work-atlas .atlas-tools,.work-atlas .atlas-detail,.work-atlas .atlas-load{grid-column:1/-1;margin-left:0;margin-right:0}
 .work-atlas .flight-slot{grid-column:2;grid-row:1}
 .has-role-stories .atlas-placeholder{grid-area:1/1;margin-top:calc(var(--role-story-height,220px) + 16px)}
}
