/* Final SAM composition. Brand gold is a surface; darker gold is readable ink. */
:root{--sam-gold:#F2CC82;--sam-red:#7D1218}
.sam-home .hero{background:#000;isolation:isolate}
.sam-home .hero::before,.sam-home .hero::after{background-image:none!important}
.sam-home .hero-shade{background:radial-gradient(ellipse at 80% 80%,#29101480,transparent 60%)}
:root[data-theme] .ask-home{text-align:center;background:#0c0c0e;--text:#fff;--muted:#ccc8c7;--surface:#19191d;--surface-2:#242428;--line:#595256;--gold:var(--sam-gold);color:var(--text)}
:root[data-theme] .ask-home .section-heading{display:block;max-width:54rem;margin-inline:auto}
:root[data-theme] .ask-home .section-heading h2{font-size:clamp(3rem,7vw,6.5rem);color:var(--text);margin-bottom:1rem}
:root[data-theme] .ask-home .section-heading p{margin-inline:auto;color:var(--muted)}
:root[data-theme] .ask-home .sam-prompt{max-width:58rem;margin-inline:auto}
:root[data-theme] .ask-home .sam-prompt-form{background:var(--surface);color:var(--text);border-color:var(--line)}
:root[data-theme] .ask-home .sam-prompt-form textarea{color:var(--text)}
:root[data-theme] .ask-home .sam-prompt-form textarea::placeholder{color:var(--muted)}
:root[data-theme] .ask-home .prompt-grid button{background:var(--surface-2);color:var(--text);border-color:var(--line)}
:root[data-theme=light] .ask-home{background:#fff;--text:#181416;--muted:#555056;--surface:#fff;--surface-2:#f6f3f0;--line:#b9afb1;--gold:#76521c}
:root[data-theme=dark] #home-what-we-do{background:#f5f3ef;--text:#171719;--muted:#515155;--surface:#fff;--surface-2:#ece9e4;--line:#d8d1c6;--gold:#76521c;color:#171719}
:root[data-theme=dark] #home-what-we-do .section-heading :is(h2,p){color:#171719}
:root[data-theme] #home-what-we-do .service-world{background:#fff;color:#171719;--text:#171719;--muted:#515155;--gold:#76521c;--line:#d8d1c6}
:root[data-theme] #home-what-we-do .service-copy :is(h3,p){color:#171719}
:root[data-theme] #home-what-we-do .service-copy>a,:root[data-theme=dark] #home-what-we-do .section-heading>a{background:#7D1218;color:#fff;border-color:#9a3239}
:root[data-theme] .showcase-home .showcase-teaser{background:transparent;color:#171719;box-shadow:none;align-items:center;gap:clamp(2rem,5vw,5rem)}
:root[data-theme] .showcase-home .showcase-teaser h3{color:#171719}
:root[data-theme] .showcase-home .showcase-teaser .button{background:linear-gradient(115deg,#7D1218,#7D1218);color:#fff;border-color:#9a3239}
.sam-brand-card{margin:0;width:100%;max-width:36rem;justify-self:center;min-width:0}
.sam-brand-card>a{display:block;line-height:0;border-radius:12px;overflow:hidden;box-shadow:0 12px 32px #0002}
.sam-brand-card img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:1213/2048;object-fit:contain;transform:none!important}
.sam-brand-card figcaption{font-size:.75rem;line-height:1.6;letter-spacing:.06em;padding-top:1rem;color:inherit}
.sam-brand-card figcaption a{display:inline-block;padding:.5rem 0;text-underline-offset:4px}
.showcase-intro .sam-brand-card{margin:3rem auto 0;max-width:32rem}
.sam-prompt,.sam-prompt-form,.assistant-log,.ascend-center,.commerce-config,.config-field{min-width:0}
.sam-prompt-form textarea:focus-visible{outline:2px solid var(--sam-gold);outline-offset:2px;border-radius:8px}
:root[data-theme=light] .sam-prompt-form textarea:focus-visible{outline-color:#7D1218}
.sam-prompt .prompt-grid button{height:auto;word-break:normal}
.service-worlds.compact{align-items:stretch}
.service-worlds.compact .service-copy{gap:.5rem}
.service-worlds.compact .service-copy>a{margin-top:auto}
.directory-letters{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:.25rem;overscroll-behavior-inline:contain;padding:.5rem 0;scrollbar-width:thin}
.directory-letters :is(a,span){display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;font-size:1rem}
@media(min-width:1280px){.directory-letters{flex-wrap:wrap}}
@media(max-width:800px){
 .ascend-command-form textarea{width:100%;min-height:5rem;resize:vertical;font:1rem/1.5 var(--hk);background:transparent;color:var(--text);padding:1rem;border:0}
 .approval-actions>*{flex:1 1 100%}
 .sam-brand-card{max-width:30rem}
}
@media(max-width:600px){
 .showcase-teaser{grid-template-columns:minmax(0,1fr)}
 .sam-prompt-form{align-items:end}
 .sam-prompt-form textarea{min-height:4.4rem}
 .sam-prompt-form button{margin-bottom:.15rem}
 .site-header .site-brand{min-width:0;gap:.5rem}.site-header .menu-button{flex-shrink:0}
 .site-header nav{max-height:calc(var(--sam-viewport-height,100dvh) - var(--header-height))}
 .services-page .service-copy ul{min-height:0}.services-page .service-copy>p,.services-page .service-copy h2{min-height:0}
 .assistant-log{max-height:min(50dvh,24rem)}
 .sam-prompt.has-conversation .assistant-log{max-height:min(45dvh,24rem)}
 .footer-grid a,.footer-grid button{min-height:44px}
 .contact-dialog :is(input,textarea,select),.login-card :is(input,textarea,select){font-size:16px}
 .sam-section-reveal{transform:translateY(18px)}.sam-section-reveal.visible{transform:none}
}
.ascend-command-form textarea{flex:1;min-width:0;width:100%;padding:1rem;border:0;background:transparent;color:var(--text);font:1rem/1.5 var(--hk);resize:vertical}
.booking-contact-fallback{padding:1.25rem 0;margin-block:1rem;border-block:1px solid var(--line)}
.sam-keyboard-open :is(.custom-project-float,.directory-return){visibility:hidden}

/* Surgical corrections: shrink the actual grid/flex tracks, never conceal content. */
main,main>.page-body,.sam-prompt,.ascend-simple,.store-top,.store-title,.services-conversation{min-inline-size:0;max-inline-size:100%}
:is(.service-worlds,.store-grid,.home-product-grid,.commerce-detail,.brand-builder,.box-builder,.cart-layout,.checkout-layout,.ascend-workspace,.host-sides)>*{min-inline-size:0}
fieldset{min-inline-size:0;max-inline-size:100%}
legend{max-inline-size:100%;white-space:normal}
.sam-prompt-form{box-sizing:border-box;min-inline-size:0}
.sam-prompt-form textarea{min-inline-size:0;max-inline-size:100%;box-shadow:none}
.sam-prompt .prompt-grid{min-inline-size:0;max-inline-size:100%;white-space:normal}
.sam-prompt .prompt-grid button{min-inline-size:0;text-align:center}
.ascend-output,.ascend-center,.ascend-fast-examples article{min-inline-size:0;overflow-wrap:anywhere}
.ascend-command-form{min-inline-size:0}.ascend-command-form textarea{width:0;flex:1 1 0}
:root[data-theme] #home-what-we-do .service-copy{background:#fff;--text:#171719;--muted:#515155;--gold:#76521c;color:#171719}
:root[data-theme] #home-what-we-do .service-copy small{color:#7D1218}
.service-worlds.compact .service-copy>a{align-self:stretch;min-height:48px}
:root[data-theme=dark] .sam-home .hero h1{color:#fff}
:root[data-theme] .ascend-simple{background:#08080a;--text:#fff;--muted:#d4cfd0;--surface:#1b1b20;--surface-2:#25252a;--depth-surface:#1b1b20;--depth-control:linear-gradient(110deg,#28282e,#202026);--depth-edge:#5a5055;--line:#5a5055;--gold:#F2CC82;color:#fff;padding:clamp(1rem,3vw,2.5rem);border-radius:24px}
:root[data-theme] .ascend-simple h1{font-size:clamp(3.2rem,8vw,7rem);line-height:1;max-width:100%;margin:0 auto 1rem;white-space:nowrap}
:root[data-theme] .ascend-simple h1 .ascend-title-word{color:#fff}
:root[data-theme] .ascend-simple h1 .ascend-title-period{display:inline-block;width:.11em;height:.11em;margin-left:.035em;vertical-align:.025em;border-radius:50%;background:#7D1218;color:transparent;line-height:0;overflow:hidden}
:root[data-theme] .ascend-simple .sam-prompt-form{background:var(--surface);color:var(--text);border-color:var(--line)}
:root[data-theme] .ascend-simple .sam-prompt-form textarea{color:var(--text)}
:root[data-theme] .ascend-simple .prompt-grid button{background:var(--depth-control);color:var(--text);border-color:var(--line)}
:root[data-theme] .ascend-simple .prompt-mic{background:var(--depth-control);color:var(--text)}
:root[data-theme] .ascend-simple .prompt-mic:is(:hover,:focus-visible){background:var(--depth-control);color:#fff}
:root[data-theme] .ascend-simple .prompt-mic[aria-pressed=true]{background:#7D1218;color:#fff}
:root[data-theme] .ascend-simple .sam-prompt-form textarea::placeholder{color:var(--muted)}
:root[data-theme] #home-what-we-do .service-copy>a:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#7D1218,#7D1218);color:#fff;border-color:#a93640}
:root[data-theme] .showcase-home .showcase-teaser .button:is(:hover,:focus-visible,:active){background:linear-gradient(115deg,#7D1218,#7D1218);color:#fff;border-color:#9a3239}
@media(max-width:800px){.ascend-command-form textarea{width:100%;flex:none}.artwork-options{grid-template-columns:minmax(0,1fr)}.host-sides{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 .ascend-simple{padding:1rem}.ascend-simple h1{font-size:clamp(2.6rem,12vw,4rem)}
 :root[data-theme] .ascend-simple h1{font-size:clamp(2.6rem,12vw,4rem)}
 .sam-prompt .prompt-grid button{text-align:left}
 .config-actions,.store-products>header{flex-wrap:wrap}
 .config-actions>*{min-inline-size:0;max-inline-size:100%}
 .artwork-options label{min-inline-size:0;overflow-wrap:anywhere}
 .host-content-tags span,.qr-destinations span{max-inline-size:100%;overflow-wrap:anywhere}
 .cart-line{min-inline-size:0}.cart-line :is(input,select){min-inline-size:0}
}
/* The light-theme accent edge must not change card geometry. */
.service-worlds.compact .service-world{border-top:3px solid #7D1218}
/* Local Board image and offer surfaces own their foreground tokens in both themes. */
:root[data-theme] .local-hero{--text:#fff;--muted:#ece3e2;--gold:#F2CC82;color:#fff}
:root[data-theme] .local-paths .advertiser-offer{background:linear-gradient(110deg,#681018,#7D1218);--text:#fff;--muted:#ece3e2;--gold:#F2CC82;--line:#b96569;color:#fff}
:root[data-theme] .local-paths .advertiser-offer .button,:root[data-theme] .local-paths .advertiser-offer .button:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#fff,#f3efea);color:#7D1218;border-color:#fff;box-shadow:0 2px 0 #440b11,0 7px 18px #30050933,inset 0 1px 0 #fff}

/* Correct only the light homepage canvas; the dark cinematic opening stays dark. */
:root[data-theme=light] .sam-home .hero{background:#fff;--text:#171719;--muted:#515155;--surface:#fff;--line:#bcb5b4;color:#171719}
:root[data-theme=light] .sam-home .hero-shade{background:none}
:root[data-theme=light] .sam-home .hero h1{color:#7D1218}
:root[data-theme=light] .sam-home .hero .hero-tagline{color:#171719}
:root[data-theme=light] .sam-home .hero .eyebrow{color:#7D1218}
:root[data-theme=light] .sam-home .hero .button-gold,:root[data-theme=light] .sam-home .hero .button-gold:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#7D1218,#650e13);color:#fff;border-color:#7D1218}
:root[data-theme=light] .sam-home .hero .button-ghost,:root[data-theme=light] .sam-home .hero .button-ghost:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#F2CC82,#f7dca5);color:#171719;border-color:#F2CC82;box-shadow:0 2px 0 #8a6736,0 7px 20px #0002,inset 0 1px 0 #fff8}
@media(max-width:800px){
 .ascend-deeper,.ascend-demo{width:100%;max-width:100%;min-width:0}
 .ascend-workspace{grid-template-columns:minmax(0,1fr)}
 .ascend-workspace>*{min-width:0;max-width:100%}
 .ascend-modules{grid-template-columns:minmax(0,1fr)}
 .ascend-command-examples>div,.ascend-flow,.execution-showcase,.ask-ascend-unified,.ecosystem-section,.my-sam-section{grid-template-columns:minmax(0,1fr)}
 .work-status-card :is(header,footer){flex-wrap:wrap}
 .work-status-card>div{grid-template-columns:minmax(0,1fr)}
 .work-status-card>div i{grid-column:1;grid-row:auto}
}
@media(max-width:600px){
 .sam-home .hero h1{font-size:clamp(2rem,10.8vw,4.6rem);white-space:normal;overflow-wrap:normal}
 .sam-home .hero-content{padding-inline:var(--safe-page)}
 .sam-prompt .prompt-grid{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .sam-prompt .prompt-grid button{width:100%;max-width:100%;min-width:0;white-space:normal}
 .sam-prompt-form{grid-template-columns:44px minmax(0,1fr) 44px}
 .sam-prompt-form .prompt-mic{grid-column:1;grid-row:1}
 .sam-prompt-form textarea{grid-column:2;grid-row:1;width:100%;min-width:0}
 .sam-prompt-form .prompt-send{grid-column:3;grid-row:1}
 .split-section>div,.section-heading,.prompt-explanation{min-width:0;max-width:100%}
}
main :is(img,video){max-inline-size:100%}
.line-icon{max-inline-size:100%}

/* Layout-only safe areas: preserve hero type and all SAM camera/choreography. */
.page-body:is(.ask-page,.ascend-page){padding-top:calc(var(--header-height) + 2.5rem + clamp(2rem,3vw,3rem))}
/* An exhibit's grid must shrink to its page track, including its media/text. */
.showcase-page :is(.showcase-intro,.showcase-directory,.showcase-exhibits,.client-exhibit,.exhibit-head,.showcase-block-grid,.showcase-block,.exhibit-module,.exhibit-gallery,.exhibit-moments,.exhibit-comparisons){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
.showcase-page .showcase-exhibits{grid-template-columns:minmax(0,1fr)}
.showcase-page :is(.exhibit-head,.showcase-block,.showcase-development-notice){overflow-wrap:anywhere}
.showcase-page .directory-letters{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.showcase-page .showcase-block-grid>*{min-width:0;max-width:100%;box-sizing:border-box}
.showcase-page :is(img,video,figure){min-width:0;max-width:100%}
.showcase-page .block-image-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:767px){
 .showcase-page .showcase-block-grid{grid-template-columns:minmax(0,1fr)}
 .showcase-page .showcase-block-grid>.showcase-block{grid-column:1/-1!important;width:100%;margin-inline:0}
 .showcase-page :is(.exhibit-gallery,.exhibit-moments,.comparison-slots,.block-image-gallery){grid-template-columns:minmax(0,1fr)}
 .showcase-page .exhibit-head h2 span{display:block}
 .showcase-page .directory-letters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain}
}
