/* One composition, two themes. Warm gold is reserved for deliberate moments. */
:root{--sam-gold:#D6B77E;--gold:var(--sam-gold);--type-body:1rem;--type-label:.875rem;--safe-page:clamp(1rem,5vw,5rem)}
:root[data-theme=light]{--gold:#76521c}
main :is(h1,h2,h3){text-wrap:balance;overflow-wrap:break-word}
main .hero h1{font-size:clamp(3rem,7.6vw,8rem);white-space:nowrap;overflow-wrap:normal;max-width:none}
main p{max-width:68ch;line-height:1.65}
.eyebrow{font-size:.8rem;line-height:1.5}
.button{font-size:.875rem;line-height:1.45;white-space:normal;text-align:center;min-height:48px}
:root .final-cta{background:#7D1218;color:#fff;border-color:#a5373c}
:root .final-cta :is(h2,p){color:#fff;margin-inline:auto}
:root .final-cta h2 span{color:var(--sam-gold)}
:root .final-cta .button,:root .final-cta .button:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#fff,#f3efea);color:#7D1218;border-color:#fff}
:root .site-footer{background:#101012;--text:#fff;--muted:#c9c6c6;--gold:var(--sam-gold);color:#fff;border-top:0;padding-top:3rem}
:root .site-footer :is(p,a,button){color:#e5e3df}
:root .site-footer .footer-identity{margin-bottom:2rem}
/* Dark theme: a lighter opening breath, then brand energy before Ascend. */
:root .ask-home{grid-template-columns:minmax(0,1fr);background:#f5f3ef;--text:#171719;--muted:#515155;--surface:#fff;--surface-2:#ece9e4;--line:#d8d1c6;--gold:#76521c;color:var(--text)}
:root .ask-home .sam-prompt-form{background:#fff;color:#171719}
:root .ask-home .sam-prompt-form :is(textarea,input){color:#171719}
:root .ask-home .sam-prompt-form :is(textarea,input)::placeholder{color:#515155}
:root .ask-home .prompt-grid button{background:#7D1218;color:#fff;border-color:#9a3239}
:root .ask-home .prompt-mic,:root .ask-home .prompt-send{background:#7D1218;color:#fff}
:root .product-home{background:linear-gradient(115deg,#681018,#7D1218);--text:#fff;--muted:#ece3e2;--gold:var(--sam-gold);color:#fff}
:root .product-home .section-heading :is(h2,p){color:#fff}
:root .product-home .section-heading .button{background:#fff;color:#7D1218;border-color:#fff}
:root[data-theme=light] #home-what-we-do{background:#7D1218;--text:#fff;--muted:#ece3e2;--gold:var(--sam-gold);color:#fff}
:root[data-theme=light] #home-what-we-do .section-heading>a{background:#fff;color:#7D1218}
:root[data-theme=light] .product-home{background:#fff;--text:#171719;--muted:#515155;--gold:#76521c;color:#171719}
:root[data-theme=light] .product-home .section-heading{background:transparent;box-shadow:none;padding:0}
:root[data-theme=light] .product-home .section-heading :is(h2,p){color:#171719}
:root[data-theme=light] .product-home .section-heading .button{background:#7D1218;color:#fff;border-color:#9a3239}
:root[data-theme] .ascend-home{background:radial-gradient(ellipse at 85% 80%,#371016,transparent 55%),#101012;--text:#fff;--muted:#ccc8c7;--surface:#1c1c20;--surface-2:#252529;--gold:var(--sam-gold);--line:#494348;color:#fff}
:root .ascend-home :is(h2,p,textarea,input){color:var(--text)}
:root[data-theme] .ascend-home .sam-prompt-form{background:#1c1c20;color:#fff;border-color:#746344}
:root .ascend-home .prompt-grid button{background:#28282c;color:#fff;border-color:#534a43}
:root .ascend-home .prompt-mic{background:#28282c;color:#fff}
:root .showcase-home{background:#ece9e3;--text:#171719;--muted:#505055;--gold:#76521c;--line:#cdc7bd;color:#171719}
:root .showcase-home p{color:#505055}
:root .local-home{background:var(--sam-gold);--text:#181715;--muted:#35312b;--gold:#514020;--line:#8a734a;color:#181715}
:root .local-home .section-heading :is(p,h2,a),:root .local-home :is(.eyebrow,.home-founding-price,.home-board-spec){color:#181715}
:root .local-home .section-heading .button,:root .local-home .section-heading .button:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#171719,#2c2b28);color:#fff;border-color:#34312b;box-shadow:0 2px 0 #78603b,0 6px 18px #6f573b30,inset 0 1px 0 #ffffff30}
:root :is(.catalog-resource,.flagship-box,.board-host){background:var(--sam-gold);--page-bg:#f8e4bd;--surface:#f8e4bd;--surface-2:#f2d69f;--depth-surface:#f8e4bd;--line:#9e804f;--depth-edge:#9e804f;--text:#181715;--muted:#35312b;--gold:#514020;color:#181715}
:root :is(.catalog-resource,.flagship-box,.board-host) :is(h2,h3,p,.eyebrow){color:#181715}
:root :is(.catalog-resource,.flagship-box,.board-host) .button,:root :is(.catalog-resource,.flagship-box,.board-host) .button:is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#171719,#2c2b28);color:#fff;border-color:#34312b}
/* Shared conversational control grows vertically; icons have their own fixed columns. */
.sam-prompt-form{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;min-width:0;align-items:center;border-radius:30px;width:100%;max-width:100%;gap:.4rem}
.sam-prompt-form textarea{display:block;width:100%;min-width:0;min-height:48px;max-height:180px;padding:.65rem .2rem;resize:none;border:0;outline:0;background:transparent;color:var(--text);font:1rem/1.5 var(--hk);overflow-wrap:anywhere}
.sam-prompt-form textarea::placeholder{color:var(--muted);opacity:1}
.sam-prompt-form button{width:48px;height:48px;min-height:48px;flex:none}
:root[data-theme=light] .sam-prompt-form textarea{color:#181416}
:root .ask-home .sam-prompt-form textarea{color:#171719}
:root .ascend-home .sam-prompt-form textarea{color:#fff}
.sam-prompt .prompt-grid{display:flex;flex-wrap:wrap;overflow:visible;gap:.65rem;padding:1rem 0}
.sam-prompt .prompt-grid button{min-width:0;max-width:100%;white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:.95rem;line-height:1.5}
.assistant-log :is(p,a){overflow-wrap:anywhere}
.sam-prompt.has-conversation .assistant-log{max-height:min(55dvh,32rem);overflow:auto;overscroll-behavior:contain}
.services-conversation,.conversational-shop,.prompt-full{gap:0}
.services-conversation>p,.conversational-shop .store-title>p,.prompt-explanation{margin-inline:auto}
.service-world{display:flex;flex-direction:column;min-width:0}
.service-world .service-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.service-world .service-copy>a{margin-top:auto}
.service-world .service-copy ul{margin-bottom:1.5rem}
.service-worlds.compact .service-copy :is(h2,h3){min-height:2.4em}
.service-worlds.compact .service-copy p{min-height:4.8em}
.mobile-menu-utilities{display:none}
/* Each small screen gets one clean header and a readable navigation drawer. */
@media(max-width:1100px){
 :root{--header-height:4.8rem}
 .site-header{height:var(--header-height);min-height:var(--header-height);flex-wrap:nowrap;align-content:center;padding:0 var(--safe-page);gap:1rem}
 .site-brand span{display:block!important;font-size:.92rem}.site-brand small{font-size:.55rem}.site-brand img{width:2.55rem;height:2.95rem}
 .site-header>.header-utility{display:none}.site-header .menu-button{order:2;margin-left:auto;min-height:44px;font-size:.875rem}.site-header .menu-button b{display:block;font-size:.8rem}
 .site-header nav{position:fixed;top:var(--header-height);left:0;right:0;width:100%;max-height:calc(100dvh - var(--header-height));overflow:auto;background:var(--page-bg);padding:1rem var(--safe-page) 2rem;overscroll-behavior:contain;gap:.5rem}
 .site-header nav.open{display:flex;flex-direction:column;align-items:stretch}
 .site-header nav>a,.site-header nav .nav-shop-link{display:flex;align-items:center;min-height:48px;font-size:.95rem;line-height:1.4;padding:.75rem 1rem;white-space:normal}
 .site-header nav .nav-shop{display:grid;grid-template-columns:minmax(0,1fr) 48px;width:100%}
 .nav-shop-toggle{width:48px;min-height:48px}
 .site-header nav .print-mega{position:static;grid-column:1/-1;max-height:none;width:100%;margin:0;padding:1rem;overflow:visible}
 .print-mega-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.print-mega-groups a{font-size:.9rem;min-height:44px}.print-mega-top{display:grid}.print-mega-top form{min-width:0;width:100%}
 .mobile-menu-utilities{display:block;border-top:1px solid var(--line);padding-top:1rem;margin-top:.75rem}
 .mobile-menu-utilities .header-utility{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:0!important;gap:.8rem;order:initial!important;padding:0;border:0}
 .mobile-menu-utilities .header-contact{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0;gap:.8rem}
 .mobile-menu-utilities .header-contact>a{display:grid;justify-content:center;min-height:58px;padding:.5rem;border:1px solid var(--line);border-radius:16px;text-align:center}
 .mobile-menu-utilities .header-contact small{display:block;font-size:.875rem}.mobile-menu-utilities .header-contact b{font-size:1rem!important}
 .mobile-menu-utilities .header-email{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;height:58px;min-height:58px;font-size:.875rem}
 .mobile-menu-utilities .header-email::after{content:'EMAIL'}
 .mobile-menu-utilities .client-login-link{justify-content:center;font-size:.875rem;min-height:48px}.mobile-menu-utilities .utility-label{display:inline!important}
 .mobile-menu-utilities .theme-toggle{margin-top:.5rem;grid-column:1/-1;justify-self:center}
}
@media(max-width:800px){
 .ascend-workspace{grid-template-columns:minmax(0,1fr);min-height:0}.ascend-center{order:1}.ascend-modules{order:2}
 .ascend-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-right:0;border-bottom:1px solid var(--line);overflow:visible;padding:.75rem;gap:.5rem}
 .ascend-modules button{width:100%;min-width:0;min-height:70px;padding:.75rem;text-align:left;white-space:normal}.ascend-modules button b{font-size:.875rem}.ascend-modules button span{font-size:.875rem}
 .ascend-status{flex-wrap:wrap;gap:.5rem;font-size:.8rem}.ascend-output{padding:1.25rem}.ascend-output h2{max-width:100%;font-size:clamp(1.8rem,8vw,3rem);line-height:1.1}
 .ascend-command-form{display:flex;flex-direction:column;margin:0 1rem 1rem;border-radius:18px}.ascend-command-form input{width:100%;font-size:1rem}.ascend-command-form button{min-height:48px;font-size:.875rem}
 .command-actions,.approval-actions{display:flex;flex-wrap:wrap;gap:.75rem}.command-actions button{min-height:48px;white-space:normal}
 .invoice-experience,.ascend-flow,.ascend-pillars,.board-hardware,.board-steps,.local-paths{grid-template-columns:minmax(0,1fr)}
 .board-scale{width:min(100%,20rem);justify-self:center}
}
@media(max-width:600px){
 .home-section,.page-body{padding-inline:var(--safe-page);padding-bottom:3rem}.home-section{padding-top:3rem}
 main :is(h1,.prompt-full h1,.services-conversation h1,.store-top.conversational-shop .store-title h2,.ascend-simple h1){font-size:clamp(2.4rem,11.4vw,4rem);line-height:1.02;letter-spacing:-.035em}
 main .hero h1{font-size:clamp(2.7rem,13vw,5rem);line-height:.95}
 main :is(.section-heading h2,.final-cta h2,.local-intro h2,.local-hero h2,.board-hardware h2){font-size:clamp(2.1rem,9vw,3.5rem);line-height:1.05}
 .showcase-intro h1{font-size:clamp(2.05rem,10vw,3.5rem)}
 .eyebrow{font-size:.75rem;letter-spacing:.1em}.section-heading{margin-bottom:1.75rem}
 .sam-prompt,.prompt-full{min-width:0;width:100%;max-width:100%;padding-inline:0}
 .sam-prompt-form{grid-template-columns:44px minmax(0,1fr) 44px;gap:.25rem;padding:.4rem;border-radius:24px;min-height:4rem}
 .sam-prompt-form button{width:44px;height:44px;min-height:44px}.sam-prompt-form textarea{font-size:1rem;min-height:3.2em;padding:.45rem .15rem;line-height:1.45}
 .sam-prompt .prompt-grid button{flex:1 1 100%;max-width:100%;min-height:48px;text-align:left;padding:.85rem 1rem}
 .honest-note{padding-inline:0;font-size:.875rem}
 .assistant-log{padding:1rem .5rem}.sam-reply>div{min-width:0}.sam-reply p,.user-reply p{font-size:1rem}.sam-next{display:inline-block;max-width:100%;font-size:.875rem;padding:.65rem 0}
 .service-worlds,.service-worlds.compact,.store-grid,.service-catalog-grid,.home-product-grid,.box-fields,.brand-item-grid,.dynamic-options{grid-template-columns:minmax(0,1fr)}
 .service-worlds.compact .service-copy :is(h2,h3),.service-worlds.compact .service-copy p{min-height:0}.service-copy{padding:1.25rem}.service-image{height:14rem}.service-copy ul{grid-template-columns:minmax(0,1fr)}
 .store-product-card p,.catalog-service p{min-height:0}.store-product-card h3,.catalog-service h3{font-size:1.35rem;min-height:0}
 .shop-tabs,.catalog-filter,.shop-intents{position:static;display:flex;flex-wrap:wrap;gap:.55rem;overflow:visible}.shop-tabs button,.catalog-filter button,.shop-intents button{min-width:0;max-width:100%;white-space:normal;font-size:.875rem;min-height:44px}
 .store-search{width:100%;min-width:0}.store-search input{min-width:0;width:100%;font-size:1rem}
 .shopping-paths .button,.config-actions .button{flex:1 1 100%;width:100%}.shopping-paths{gap:.75rem}
 .commerce-config label,.config-field,.artwork-field,.custom-request-form label,.vision-booking label,.login-card label{font-size:.875rem}
 :is(input,select,textarea){max-width:100%;min-width:0;font-size:1rem}
 .catalog-resource{padding:1.25rem}.catalog-resource .button{margin-top:1rem}
 .ascend-modules{grid-template-columns:minmax(0,1fr)}.ascend-modules button{min-height:64px}.ascend-deeper{margin-top:2rem}.ascend-deeper>summary{font-size:.95rem;line-height:1.5;padding:1rem;min-height:48px}
 .approval-demo{padding:1rem}.approval-demo .button,.command-actions button{flex:1 1 100%;width:100%}.ascend-command-examples details{padding:1rem}
 .showcase-directory{padding:1rem}.showcase-development-notice .button{font-size:.875rem}.showcase-page .client-exhibit{padding-block:2rem}.showcase-block-grid{gap:.75rem}.showcase-block{grid-column:1/-1!important}.exhibit-head h2{font-size:clamp(1.6rem,7vw,2.4rem)}
 .local-home .local-board-concept img{aspect-ratio:4/5;object-fit:cover;object-position:65% center;width:100%}.local-board-concept figcaption{font-size:.75rem}
 .board-scale{width:min(100%,18rem)}.board-hardware{gap:2rem}.scale-screen{min-height:22rem}
 .site-footer{padding:2.5rem var(--safe-page)}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem .8rem}.footer-grid>div{min-width:0}.footer-grid a,.footer-grid button{font-size:.875rem;min-height:36px;overflow-wrap:anywhere}.footer-identity p{font-size:1.05rem}.footer-bottom{align-items:flex-start;font-size:.75rem}
 .sam-section-reveal{transform:translateY(24px)}.sam-section-reveal.visible{transform:none}
 .sam-drawer{height:var(--sam-viewport-height,100dvh);max-height:100dvh}.sam-drawer-overlay{top:var(--sam-viewport-top,0px)}
 .contact-overlay{align-items:start;top:var(--sam-viewport-top,0px);height:var(--sam-viewport-height,100dvh);padding:.75rem}.contact-dialog{max-height:calc(var(--sam-viewport-height,100dvh) - 1.5rem);width:100%;padding:1rem}.contact-dialog h2{font-size:1.8rem}.contact-dialog>footer{flex-wrap:wrap}
 .sam-drawer>p{font-size:.875rem}.drawer-form{padding:.75rem;flex-wrap:wrap}.drawer-form input{width:100%;flex-basis:100%;font-size:1rem}.drawer-form button{width:100%;min-height:44px;font-size:.875rem}
}
@media(prefers-reduced-motion:reduce){.sam-section-reveal{transform:none}}
@media(max-width:600px){
 .local-home .local-board-concept img{object-position:25% center}.local-hero>img{object-position:28% center}
 .services-page .service-copy h2{min-height:2.2em;line-height:1.05}.services-page .service-copy>p{min-height:3.3em}.services-page .service-copy ul{width:100%;min-height:17rem;align-content:start}
 .service-copy>a,.store-grid a,.service-catalog-grid a{font-size:.875rem;min-height:44px;display:inline-flex;align-items:center}
}
.header-utility .header-contact{order:0}.header-utility .client-login-link[href$="client-login.html"]{order:1}.header-utility .client-login-link[href$="cart.html"]{order:2}.header-utility .theme-toggle{order:3}
@media(max-width:1100px){.sam-drawer{height:var(--sam-viewport-height,100dvh);max-height:100dvh}.sam-drawer-overlay{top:var(--sam-viewport-top,0px)}.contact-overlay{top:var(--sam-viewport-top,0px);height:var(--sam-viewport-height,100dvh)}.contact-dialog{max-height:calc(var(--sam-viewport-height,100dvh) - 1.5rem)}}
/* Surface rules outrank legacy theme-specific button treatments. */
:root[data-theme] :is(.catalog-resource,.flagship-box,.board-host,.local-home) :is(a,button).button:not([disabled]),:root[data-theme] :is(.catalog-resource,.flagship-box,.board-host,.local-home) :is(a,button).button:not([disabled]):is(:hover,:focus-visible,:active){background:linear-gradient(110deg,#171719,#2c2b28);color:#fff;border-color:#34312b}
