/* One Global shell and one service switcher. Scene-specific media changes;
   the navigation, canvas size and user's place do not. Original CSS. */
.desk .masthead,.desk:has(.work-surface[data-capability=commercial]) .masthead{color:#223130;background:linear-gradient(125deg,#ffffff5c,#d2ddd92e);border-color:#ffffffb8;box-shadow:inset 0 1px #fff9,0 4px 18px #18202215;border-radius:12px 12px 0 0}
.desk .masthead nav :is(a,button),.desk .masthead .portal,.desk .masthead-cta{color:#253533}
.desk .masthead nav :is(a,button):hover{color:#17252c;background:#ffffff55;border-color:#ffffffa8}
.desk .masthead-cta{background:linear-gradient(120deg,#ffffff44,#ffffff10);border-color:#ffffffb8;box-shadow:inset 0 1px #fff8;border-radius:24px}
.desk .work-surface[data-capability]{--global-scene-height:clamp(600px,calc(100svh - 140px),850px);height:var(--global-scene-height);border-radius:0 0 16px 16px;isolation:isolate;overflow:hidden;background-color:#e9edf3;background-image:none}
.work-surface>.surface-heading{display:none}
.work-surface::before{inset:0;height:auto;aspect-ratio:auto;background:radial-gradient(ellipse at 65% 65%,#cfdbef60,transparent 70%);transition:opacity 260ms}
.work-surface[data-capability=commercial]::before{display:block}
.work-surface .commercial-service-toggle{display:flex;position:absolute;left:30px;top:25px;z-index:20;min-width:160px;max-width:calc(100% - 50px);min-height:42px;gap:22px;padding:9px 16px;color:#22364b;border:1px solid #ffffffb8;background:linear-gradient(135deg,#ffffff88,#ffffff24);box-shadow:inset 0 1px #fff9,0 5px 22px #22355012;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.work-surface[data-capability=commercial] .commercial-service-toggle{color:#22364b;background:linear-gradient(135deg,#ffffff88,#ffffff24);border-color:#ffffffb8}
.work-surface .choices,.work-surface[data-capability=commercial] .choices{position:absolute;left:30px;right:auto;top:76px;width:240px;z-index:21;display:flex;flex-flow:column nowrap;gap:2px;padding:7px;overflow:visible;border-radius:18px;background:linear-gradient(135deg,#f5f8fcc9,#d9e1ecb8);border:1px solid #fff;box-shadow:inset 0 1px #fff,0 12px 32px #273b5726;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.work-surface[data-capability=commercial] .choices{background:linear-gradient(135deg,#f5f8fcc9,#d9e1ecb8);border-color:#fff}
.work-surface .choices[hidden]{display:none!important}
.work-surface .choices .choice-indicator{display:none}
.work-surface .choices :is(button,a),.work-surface .choices [data-capability=estate]{flex:0 0 auto;width:100%;min-height:44px;padding:10px 12px;color:#34475e;background:transparent;border:0;border-radius:11px;font-size:11px;white-space:normal}
.work-surface[data-capability=commercial] .choices :is(button,a){color:#34475e}
.work-surface .choices :is(button,a)[aria-pressed=true],.work-surface .choices :is(button,a):hover{background:#fff7;box-shadow:none}
.work-surface[data-capability=commercial] .choices :is(button,a)[aria-pressed=true],.work-surface[data-capability=commercial] .choices :is(button,a):hover{background:#fff7}
.work-surface .choices svg{width:18px;height:19px}.work-surface .choices :is(i,br),.work-surface .choices :is(button,a)::before{display:none}
.work-surface .commercial-service-toggle:focus-visible{outline:2px solid #537eb0;outline-offset:3px}
.work-surface>.scene-heading{left:32px;top:90px;max-width:65%;z-index:3}
.work-surface>.scene-heading h2{font-size:clamp(24px,2.8vw,40px);font-weight:400;letter-spacing:-1.1px;line-height:1.06}
.work-surface>.scene-heading p{font-size:11px;letter-spacing:0;line-height:1.5;margin-top:12px}
.work-surface[data-capability=commercial]>.scene-heading{display:block}
.work-surface .scene-window{left:50%;right:auto;top:145px;width:min(72%,780px,calc((var(--global-scene-height) - 230px)*1.5));height:auto;aspect-ratio:3/2;transform:translateX(-50%)}
.work-surface[data-capability=estate] .storyboard-actions{left:25%;right:25%;height:74px;bottom:16px}
.work-surface .service-scene,.work-surface .website-scene{left:10%;right:10%;top:170px;bottom:25px;animation:none}
.work-surface .service-canvas{height:60%;min-height:200px}
.work-surface .scene-briefing{padding-top:12px}
.work-surface .scene-dock{background:linear-gradient(135deg,#f8fbff85,#c9d4e329);border:1px solid #fff9;box-shadow:inset 0 1px #fffc,0 7px 22px #23355520;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.work-surface .scene-dock button{color:#455770}
.work-surface .scene-dock button[aria-pressed=true]{color:#182f51;background:#ffffff96;border-color:#fff;box-shadow:inset 0 1px #fff}
.work-surface .selection-connector{opacity:0!important}
@media(min-width:1500px){.work-surface .commercial-service-toggle{left:32px}.work-surface .commercial-briefing{left:32px;top:90px}.work-surface .commercial-source-note{left:32px}}
@media(max-width:1050px) and (min-width:721px){.work-surface .scene-window{width:min(78%,710px,calc((var(--global-scene-height) - 250px)*1.5));top:175px}.work-surface .service-canvas{height:53%}.work-surface .scene-briefing{grid-template-columns:1fr auto}.work-surface .scene-briefing .scene-actions{flex-direction:column}}
@media(max-width:720px){
 .desk .masthead{margin-bottom:0;border-radius:12px 12px 0 0}
 .desk .work-surface[data-capability]{height:max(680px,calc(100svh - 177px));border-radius:0 0 12px 12px}
 .work-surface .commercial-service-toggle{left:16px;top:17px;min-width:0;min-height:40px;font-size:10px;gap:16px;padding:9px 13px;max-width:220px}
 .work-surface .choices,.work-surface[data-capability=commercial] .choices{left:16px;top:65px;width:230px}
 .work-surface>.scene-heading{left:20px;right:20px;top:78px;max-width:none}.work-surface>.scene-heading h2{font-size:27px;max-width:300px;letter-spacing:-.8px}.work-surface>.scene-heading p{font-size:10px;margin-top:12px}
 .work-surface .scene-window{left:50%;top:200px;width:94%;max-width:520px}
 .work-surface[data-capability=estate] .storyboard-actions{left:12%;right:12%;bottom:24px;height:80px}
 .work-surface .service-scene,.work-surface .website-scene{left:18px;right:18px;top:170px;bottom:20px}
 .work-surface .service-canvas{height:47%;min-height:180px}
 .work-surface .scene-briefing{display:block;padding-top:10px}
 .work-surface .scene-briefing h3{font-size:22px}.work-surface .scene-briefing p{font-size:11px}
 .work-surface .scene-briefing .scene-actions{margin-top:9px}
 .work-surface .scene-dock{bottom:6px}
 .work-surface .website-scene .web-scene-window{height:66%}
 .work-surface .commercial-caption{bottom:52px}
}
@media(prefers-reduced-motion:reduce){.work-surface::before{transition:none}}
@media(forced-colors:active){.work-surface .choices,.work-surface .commercial-service-toggle,.work-surface .scene-dock{background:Canvas;color:CanvasText;border:1px solid CanvasText}}

/* The former desk-image hotspots are now legible glass controls in every view. */
.work-surface[data-capability=estate] .storyboard-actions{left:50%;right:auto;transform:translateX(-50%);bottom:16px;height:54px;width:max-content;max-width:calc(100% - 32px);display:flex;gap:3px;padding:5px;background:linear-gradient(135deg,#ffffff85,#d4dfec30);border:1px solid #fff9;border-radius:28px;box-shadow:inset 0 1px #fff,0 7px 22px #23355514;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.work-surface .storyboard-actions button{align-items:center;min-height:42px;padding:9px 15px;color:#455770;font-size:10px;border:1px solid transparent;border-radius:23px;background:transparent}
.work-surface .storyboard-actions button[data-active=true]{background:#ffffff96;color:#182f51;border-color:#fff}.work-surface .storyboard-actions button[data-active=true]::after{display:none}
.work-surface:has(.scene-window:not([data-level="0"])) .storyboard-actions{visibility:hidden}
@media(max-width:720px){.work-surface[data-capability=estate] .storyboard-actions{bottom:24px;height:51px;padding:4px;gap:1px}.work-surface .storyboard-actions button{min-height:41px;padding:8px 10px;font-size:9px}}

/* Cinema and Products inhabit the same desk instead of replacing its page. */
.cinema-scene[hidden]{display:none!important}
.work-surface .cinema-scene,.work-surface .commercial-scene{position:absolute;left:18px;right:18px;top:170px;bottom:18px;min-width:0;overflow:hidden;border-radius:22px;border:1px solid #ffffffa6;box-shadow:inset 0 1px #fffd,0 8px 30px #53637810;background:linear-gradient(145deg,#f3f6fa70,#dae1ec30)}
.cinema-scene iframe{display:block;width:100%;height:100%;border:0;background:transparent;border-radius:inherit}
.cinema-loading{position:absolute;inset:45% 15% auto;text-align:center;color:#56667b;font-size:12px;pointer-events:none}
.work-surface .commercial-stage{background:transparent}
.work-surface .commercial-stage::after{background:linear-gradient(180deg,#eef2f600,transparent 75%,#e1e7f133)}
.work-surface .commercial-briefing{left:auto;top:12px;right:14px;pointer-events:none}
.work-surface .commercial-briefing>div:first-child{display:none}
.work-surface .commercial-actions{position:static;pointer-events:auto}
.work-surface .commercial-actions button{font-size:10px;min-height:36px}
.work-surface .commercial-scene :is(.commercial-product-dock,.commercial-disclosure>summary,.commercial-popover,.commercial-tools button,.commercial-actions button){color:#34475e;background:linear-gradient(135deg,#f7faff88,#d5dfed45);border-color:#fffd;box-shadow:inset 0 1px #fff,0 6px 24px #273d5720;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.work-surface .commercial-product-arrow{color:#34475e}
.work-surface .commercial-products button span{background:#6d7f9766;border-color:#6584a255}
.work-surface .commercial-products button[aria-pressed=true] span{background:#304d74}
.work-surface .commercial-popover button{color:#34475e}
.work-surface .commercial-popover button[aria-pressed=true]{background:#fff9;color:#1b365b}
.work-surface .commercial-caption,.work-surface .commercial-source-note{color:#5a6a7f}
.work-surface .commercial-render-status{color:#34475e;top:75px}
.work-surface .commercial-scene :is(button,a,input,summary):focus-visible{outline:2px solid #345c94;outline-offset:3px}
.work-surface .commercial-tools{bottom:102px}
@media(max-width:720px){
 .work-surface .cinema-scene,.work-surface .commercial-scene{left:10px;right:10px;top:158px;bottom:12px;border-radius:18px}
 .work-surface .commercial-briefing{top:10px;right:10px;left:auto}
 .work-surface .commercial-actions{position:static}
 .work-surface .commercial-actions button{max-width:none;min-height:36px;font-size:9px}
 .work-surface .commercial-product-dock{bottom:73px}
 .work-surface .commercial-tools{bottom:145px;right:12px}
 .work-surface .commercial-production{left:12px}.work-surface .commercial-adjust{right:12px}
}
@media(forced-colors:active){.work-surface .commercial-scene :is(.commercial-product-dock,.commercial-disclosure>summary,.commercial-popover,.commercial-tools button,.commercial-actions button){background:Canvas;color:CanvasText;border-color:CanvasText}}
/* Switching a retained iframe must not make its filmstrip a scroll anchor for
   the outer document. Global owns page position; each scene owns its contents. */
.work-surface,.work-surface *{overflow-anchor:none}

/* The section menu is a persistent glass rail, not a dismiss-on-selection popover. */
@media(min-width:721px){
 .work-surface:has(.choices:not([hidden]))>.scene-heading{left:300px;max-width:calc(100% - 330px)}
 .work-surface:has(.choices:not([hidden])) :is(.service-scene,.website-scene,.commercial-scene,.cinema-scene){left:300px;right:18px}
 .work-surface:has(.choices:not([hidden])) .scene-window{left:calc(50% + 140px);width:min(calc(100% - 330px),780px,calc((var(--global-scene-height) - 230px)*1.5))}
 .work-surface:has(.choices:not([hidden])) .storyboard-actions{left:calc(50% + 140px);max-width:calc(100% - 330px)}
}
@media(max-width:720px){
 .work-surface .choices,.work-surface[data-capability=commercial] .choices{left:16px;right:16px;top:65px;width:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
 .work-surface .choices :is(button,a){min-height:44px;font-size:10px;padding:8px;gap:7px;justify-content:flex-start}
 .work-surface .choices svg{flex:0 0 16px;width:16px}
 .desk .work-surface:has(.choices:not([hidden])){height:var(--global-scene-height)}
 .work-surface:has(.choices:not([hidden]))>.scene-heading{top:228px}
 .work-surface:has(.choices:not([hidden])) :is(.service-scene,.website-scene){top:320px}
 .work-surface:has(.choices:not([hidden])) :is(.commercial-scene,.cinema-scene){top:308px}
 .work-surface:has(.choices:not([hidden])) .scene-window{top:350px}
}

/* Current section caption is not a collapsible control. */
.work-surface .commercial-service-toggle{cursor:default}

/* One shared composition, like the approved desk: architecture sits into the
   paper perspective rather than floating above an appended scenery band. */
.desk .work-surface[data-capability]{
 --global-scene-height:clamp(780px,64vw,890px);
 height:var(--global-scene-height);
 background-image:radial-gradient(ellipse at 70% 35%,#fff9,transparent 65%),linear-gradient(150deg,#e6edf2,#d8e1e9);
 background-size:100% 100%;
 background-position:center bottom;
 background-repeat:no-repeat;
}
.work-surface::before{inset:0;background:linear-gradient(#f0f3f955,transparent 40%)}
.work-surface :is(.service-scene,.website-scene,.commercial-scene,.cinema-scene){top:150px;bottom:20%}
.work-surface[data-capability=estate] .storyboard-actions{left:56%;bottom:16px}
.work-surface :is(.scene-briefing,.web-caption){background:#f4f7fbd9;border:1px solid #fff9;border-radius:16px;backdrop-filter:blur(14px);box-shadow:inset 0 1px #fff9;padding:12px 16px}
@media(min-width:721px){
 .work-surface:has(.choices:not([hidden]))>.scene-heading{top:70px}
 .work-surface:has(.choices:not([hidden])) .scene-window{top:110px;width:min(calc(100% - 330px),720px,calc((var(--global-scene-height)*.70 - 110px)*1.5))}
 .work-surface:has(.choices:not([hidden])) .storyboard-actions{left:56%}
}
@media(max-width:720px){
 .desk .work-surface[data-capability]{--global-scene-height:900px;background-size:auto 300px}
 .desk .work-surface[data-capability=estate]{--global-scene-height:740px}
 .work-surface::before{top:auto;bottom:0;height:300px;background:linear-gradient(#e9edf3,transparent 35%)}
 .work-surface :is(.service-scene,.website-scene,.commercial-scene,.cinema-scene){bottom:145px}
 .work-surface[data-capability=estate] .storyboard-actions{left:50%;top:292px;bottom:auto;height:48px}
 .work-surface .scene-state-controls{top:-58px;bottom:auto;min-height:48px}
}

/* The architecture storyboard belongs to Interiors only. Other disciplines
   retain the approved shell, with their own light and materials. */
.desk .work-surface[data-capability=estate]{background-image:url(assets/desk.png)}
.desk .work-surface[data-capability=campaign]{background-image:radial-gradient(ellipse at 72% 32%,#fffdf7 0,transparent 62%),linear-gradient(135deg,#d5dfe8,#ede9e2)}
.desk .work-surface[data-capability=social]{background-image:radial-gradient(ellipse at 67% 40%,#f8f8ff,transparent 66%),linear-gradient(110deg,#cfdbe6,#e8e5ef 65%,#d6e2e5)}
.desk .work-surface[data-capability=commercial]{background-image:radial-gradient(ellipse at 65% 70%,#fafdf8 0,#e0e7e4 48%,#cbd6dc 100%)}
.desk .work-surface[data-capability=websites]{background-image:linear-gradient(90deg,#fff3 1px,transparent 1px),linear-gradient(#fff3 1px,transparent 1px),linear-gradient(145deg,#d9e3ec,#edf1f4);background-size:80px 80px,80px 80px,100% 100%}

/* Cinema is the room itself, not a card placed on the architecture desk.
   Its own controls reserve space for this permanently visible Global rail. */
.desk .work-surface[data-capability=cinema]{--global-scene-height:max(680px,calc(100svh - 116px));background:#e7edf0}
.work-surface[data-capability=cinema]::before{display:none}
.work-surface[data-capability=cinema]>.scene-heading{visibility:hidden;pointer-events:none}
.work-surface[data-capability=cinema]:has(.choices:not([hidden])) .cinema-scene{inset:0;border:0;border-radius:0;box-shadow:none;background:transparent;z-index:1}
@media(max-width:720px){
 .desk .work-surface:not([data-capability=estate]){background-size:100% 100%}
 .desk .work-surface[data-capability=websites]{background-size:60px 60px,60px 60px,100% 100%}
 .desk .work-surface[data-capability=cinema]{--global-scene-height:max(790px,calc(100svh - 160px))}
}
