/* BARQLO visual preview v1 — CSS-only, reversible, no business logic changes. */
:root{--ink:#142a28;--forest:#126b58;--mint:#d8eee5;--cream:#f7f8f4;--paper:#fffefa;--line:#d9e3df;--muted:#526b65;--gold:#b28d52;--accent:#36b98b;--surface:#fffefa;--radius-card:20px;--radius-control:12px;--space-page:clamp(16px,3vw,40px)}
:root[data-theme=dark]{--ink:#eef7f2;--forest:#66d5ad;--mint:#163d34;--cream:#0b1416;--paper:#121f21;--line:#2b4441;--muted:#a5bbb4;--surface:#121f21}
html{max-width:100%;}body{min-width:0}img,video,svg,canvas{max-width:100%;height:auto} .wrap{width:min(1160px,calc(100% - 2 * var(--space-page)))}
.hero,.hero-copy,.hero-art,.demo-grid,.demo-grid>*,.editorial-grid>*,.portal-layout,.portal-view{min-width:0}
.hero h1,.section h2,.editorial h1{overflow-wrap:break-word}
.card,.portal-view{border-radius:var(--radius-card)}.button{border-radius:var(--radius-control);min-height:44px}
.button:focus-visible,a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #36b98b;outline-offset:3px}
.nav{height:auto;min-height:78px;flex-wrap:wrap;padding-block:12px}.nav nav,.nav-tools{min-width:0;flex-wrap:wrap}
.portal-layout{grid-template-columns:minmax(0,245px) minmax(0,1fr)}
.portal-nav button.active{background:color-mix(in srgb,var(--accent) 15%,var(--paper));color:var(--forest)}
.portal-nav button[aria-current=page]{outline:1px solid var(--accent)}
.editorial-panel{max-width:100%}
@media(max-width:900px){.hero{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0;padding-block:42px 56px}.hero-art{min-height:280px}.demo-grid{grid-template-columns:minmax(0,1fr)}.portal-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.wrap{width:calc(100% - 32px)}.hero{padding-block:28px 40px}.hero h1{font-size:clamp(30px,9vw,44px);line-height:1.3;letter-spacing:-.025em}.hero-copy,.hero-art{width:100%}.hero-art{min-height:220px}.orb{width:min(230px,65vw)}.signal{max-width:calc(100% - 16px);padding:10px 12px}.lead{font-size:16px}.section{padding-block:52px}.actions{gap:9px}.actions .button{max-width:100%;white-space:normal;text-align:center}.nav{gap:12px}.nav nav{gap:10px}.nav nav a{font-size:12px}.nav-tools{width:100%;gap:8px}.nav-tools .country-label{min-width:0}.card,.editorial-panel{max-width:100%}.portal-shell{width:calc(100% - 24px)}.portal-top,.portal-view{padding:16px}.tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}}
@media(max-width:360px){.wrap{width:calc(100% - 24px)}.hero h1{font-size:29px}.nav .brand{font-size:21px}.actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* v2: landing-v27.css ::before is fixed 600px with overflow:visible.
   Resize the decoration itself; do not clip the document. */
.hero.wrap::before{width:min(600px,78%);max-width:78%;right:11%;left:auto}
@media(max-width:760px){
.hero.wrap{width:calc(100% - 32px);max-width:calc(100% - 32px);min-width:0;display:flex;flex-direction:column;align-items:stretch;padding-inline:0}
.hero.wrap>.hero-copy,.hero.wrap>.hero-scene{min-width:0;max-width:100%;width:100%}
.hero.wrap .hero-copy{overflow-wrap:anywhere}
.hero.wrap .hero-scene,.hero.wrap .glimpse-top,.hero.wrap .glimpse-inquiry,.hero.wrap .glimpse-reply,.hero.wrap .glimpse-footer{min-width:0}
.hero.wrap .hero-copy .actions{width:100%;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.hero.wrap .hero-copy .actions .button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.nav.wrap{grid-template-columns:minmax(0,1fr) auto;max-width:calc(100% - 32px)}
.nav.wrap>*,.nav.wrap .nav-tools{min-width:0}
}
@media(max-width:380px){
.hero.wrap .hero-copy .actions{grid-template-columns:minmax(0,1fr)}
.hero.wrap .hero-copy .actions .button{width:100%}
.nav.wrap{display:flex;flex-wrap:wrap}
.nav.wrap .nav-tools{width:100%;justify-content:space-between}
}
