/* Session archetypes layer over the existing atmosphere. Artwork is never recolored. */
html{--material-ink:var(--ht-ink,#172c38);--material-accent:var(--ht-accent,#476e83);--material-paper:var(--ht-bg,#eef3f6);--brand-display-font:var(--body,'DM Sans',sans-serif)}
html[data-brand-archetype=luxury]{--ht-bg:#eee9df;--ht-surface:#e1d9ca;--ht-card:#faf6ed;--ht-ink:#292720;--ht-muted:#625b4c;--ht-line:#877c6555;--ht-accent:#735c36;--ht-deep:#2c2a23;--ht-dark:#151510;--ht-light:#f4efe4;--ht-glow:#d6c19b;--brand-display-font:Georgia,serif;color-scheme:light}
html[data-brand-archetype=disruptor]{--ht-bg:#141318;--ht-surface:#24212b;--ht-card:#302a39;--ht-ink:#f6f3ef;--ht-muted:#c0b7c9;--ht-line:#b9abc059;--ht-accent:#d2f259;--ht-deep:#303a1b;--ht-dark:#11150b;--ht-light:#f6f3ef;--ht-glow:#bca0ef;--brand-display-font:'Barlow Condensed','DM Sans',sans-serif;color-scheme:dark}
html[data-brand-archetype=editorial]{--ht-bg:#f2ede3;--ht-surface:#e6decf;--ht-card:#fffaf0;--ht-ink:#29231e;--ht-muted:#6f5c4c;--ht-line:#9a827555;--ht-accent:#98452c;--ht-deep:#3b281f;--ht-dark:#211912;--ht-light:#fbf4e8;--ht-glow:#cfae97;--brand-display-font:Georgia,serif;color-scheme:light}
html[data-brand-archetype=industrial]{--ht-bg:#e2e8e5;--ht-surface:#cfd8d2;--ht-card:#f2f5f1;--ht-ink:#1a3028;--ht-muted:#465e52;--ht-line:#71877a66;--ht-accent:#2d6953;--ht-deep:#183d2f;--ht-dark:#10251b;--ht-light:#eef4ed;--ht-glow:#99bdab;--brand-display-font:'IBM Plex Mono',monospace;color-scheme:light}
html[data-brand-archetype]:not([data-brand-archetype=original]) body.signal-system main :is(h1,h2,h3):not(.ws-heading),html[data-brand-archetype]:not([data-brand-archetype=original]) .hero-signal-panel h1>small{font-family:var(--brand-display-font)!important}
html[data-brand-archetype=disruptor] body.signal-system main :is(h1,h2,h3){font-weight:600!important;letter-spacing:-.035em}
html[data-brand-archetype=industrial] .hero-signal-panel :is(h1,h2){font-size:clamp(46px,min(7.6vw,11svh),120px)!important;letter-spacing:-.07em}
html[data-brand-archetype]:not([data-brand-archetype=original]) .hero-signal-scenes{mix-blend-mode:normal!important}
.dn-archetype-panel{margin-top:14px;padding-top:14px;border-top:1px solid var(--ht-line)}
.dn-archetype-panel>label{display:grid;gap:8px;margin-block:12px;font:11px/1.6 var(--body);color:var(--ht-ink)}
.dn-archetype-panel select{width:100%;min-height:44px;border:1px solid var(--ht-line);border-radius:12px;padding:9px 12px;background:var(--ht-card);color:var(--ht-ink);font:inherit}
.dn-archetype-panel p{font:10px/1.7 var(--mono);color:var(--ht-muted);margin:8px 0;letter-spacing:0}
.dn-theme-popover{max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
.dn-archetype-panel select:focus-visible{outline:2px solid var(--ht-accent);outline-offset:3px}
.dn-material-host{position:relative;isolation:isolate;overflow:hidden}
.dn-material-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:1}
.dn-material-ready>[data-material-fallback]{opacity:0!important}
.hero-silk-banner{position:absolute;inset:8% 0 9%;display:grid;place-content:center;background:linear-gradient(130deg,var(--ht-accent),var(--ht-deep));border-radius:3px;color:var(--ht-light);text-align:center;font:400 clamp(48px,6.5vw,110px)/.9 var(--brand-display-font);box-shadow:0 30px 70px #0002}
.hero-silk-banner small{font:10px/1.5 var(--mono);letter-spacing:.22em;margin-bottom:35px}.hero-silk-banner em{font-style:italic}.hero-silk-banner span{font:9px/1.5 var(--mono);letter-spacing:.12em;margin-top:45px}
html.hero-scroll-enabled .hero-signal-art.dn-material-host{inset:9% 0 20% 31%;overflow:visible;opacity:1;pointer-events:auto;z-index:4;transform:rotate(-2deg);touch-action:pan-y}
.hero-signal-art.dn-material-host.dn-material-ready>.hero-silk-banner{opacity:0}
.hero-signal-art.dn-material-host .dn-material-canvas{pointer-events:auto;touch-action:pan-y}
.hero-signal-art.dn-material-host~.hero-signal-scenes{mix-blend-mode:normal}
.material-hint{position:absolute;right:5%;bottom:2%;font:9px/1.5 var(--mono);color:var(--ht-muted);letter-spacing:.1em;pointer-events:none}
.identity-material{position:relative;min-height:300px;aspect-ratio:3/2;overflow:hidden;border:1px solid var(--ht-line);border-radius:20px;background:var(--ht-card)}
.identity-material img{width:100%;height:100%;object-fit:contain}
.identity-material .dn-material-canvas{pointer-events:none}
.material-piece{display:block;position:relative;min-height:120px;overflow:hidden;isolation:isolate;background:var(--ht-surface);border:1px solid var(--ht-line);border-radius:2px}
.material-piece>strong{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:var(--ht-ink);font:500 28px/1.1 var(--brand-display-font);padding:16px}
@media(max-width:760px){html.hero-scroll-enabled .hero-signal-art.dn-material-host{inset:44% 1% 20% 24%;opacity:1;transform:rotate(-5deg);pointer-events:auto}.hero-silk-banner{font-size:13vw}.hero-silk-banner small,.hero-silk-banner span,.material-hint{display:none}.dn-theme-control--mobile .dn-theme-popover{max-height:none;overflow:visible}.dn-archetype-panel{padding-bottom:10px}html[data-brand-archetype=industrial] .hero-signal-panel :is(h1,h2){font-size:12.5vw!important}}
html.motion-off .dn-material-canvas{display:none!important}html.motion-off .dn-material-ready>[data-material-fallback]{opacity:1!important}
@media(prefers-reduced-motion:reduce){.dn-material-canvas{display:none!important}.dn-material-ready>[data-material-fallback]{opacity:1!important}html{transition:none!important}}
@media print{.dn-material-canvas,.dn-archetype-panel{display:none!important}.dn-material-ready>[data-material-fallback]{opacity:1!important}}

html[data-dn-theme] body.signal-system .strategy-atlas :is(.atlas-open,.atlas-controls button){color:var(--ht-ink)!important;background:radial-gradient(130% 120% at 8% 0%,#ffffff18,transparent 43%),linear-gradient(135deg,var(--ht-card),var(--ht-surface))!important;border:1px solid var(--ht-line)!important}

/* A framed, uncropped painting is the still and no-WebGL version of the textile. */
.hero-silk-banner:has(.hero-silk-artwork){inset:0;display:grid;grid-template:100%/100%;place-items:center;place-content:normal;background:none;box-shadow:none;border-radius:0;padding:0}
.hero-silk-banner :is(.hero-silk-artwork,.hero-silk-frame){grid-area:1/1;display:block;width:88%;height:auto;aspect-ratio:1280/581;max-height:72%;object-fit:contain;border:8px solid #d5c4a5;outline:1px solid #8b7046;outline-offset:-5px;box-sizing:border-box;box-shadow:0 30px 50px #0003}
.hero-silk-frame[hidden]{display:none}
.hero-silk-artwork{position:relative;z-index:1}
/* Keep frame zero visible on a fresh entry while the agents arrange the page.
   Once they pick up the artwork, its existing reveal owns the live surface. */
@media screen{
 html[data-swarm-boot="opening"] body.home-page #vision .hero-silk-banner,
 html[data-swarm-boot="opening"] body.home-page #vision .hero-silk-banner :is(.hero-silk-artwork,.hero-silk-frame),
 html body.home-page[data-swarm-construction] #vision .hero-signal-art[data-swarm-pending]:not([data-swarm-placing]) .hero-silk-banner,
 html body.home-page[data-swarm-construction] #vision .hero-signal-art[data-swarm-pending]:not([data-swarm-placing]) .hero-silk-banner :is(.hero-silk-artwork,.hero-silk-frame){visibility:visible!important}
 html body.home-page[data-swarm-construction] #vision .hero-signal-art[data-swarm-pending]:not([data-swarm-placing]){opacity:1!important}
}
.hero-signal-art.dn-material-host .dn-material-canvas{filter:drop-shadow(0 32px 32px #0003);cursor:grab}
.hero-signal-art.dn-material-host .dn-material-canvas:active{cursor:grabbing}
.hero-signal-art.dn-material-host:focus-visible{outline:2px solid var(--ht-accent);outline-offset:-20px}
.hero-signal-art.dn-material-host .material-hint{left:8%;right:auto;bottom:8%;padding:5px 9px;border:1px solid var(--ht-line);border-radius:20px;background:var(--ht-card);color:var(--ht-ink);font-size:8px;letter-spacing:.08em}
@media(min-width:1001px) and (min-height:600px){
 html.hero-scroll-enabled .hero-signal-scenes{right:64%}
 html.hero-scroll-enabled .hero-signal-panel :is(h1,h2){font-size:clamp(56px,min(6vw,10.6svh),106px);max-width:100%}
 .hero-signal-art.dn-material-host .material-hint{left:43%;bottom:6%}
}
@media(max-width:760px){.hero-silk-banner :is(.hero-silk-artwork,.hero-silk-frame){border-width:5px}.hero-signal-art.dn-material-host .material-hint{display:block;font-size:6px;bottom:1%;left:9%;max-width:90%;white-space:nowrap}}

/* On smaller screens the painting owns a clear band between text and controls. */
@media(max-width:1000px) and (min-height:600px){
 html.hero-scroll-enabled .hero-signal-scenes{inset:78px 6% auto;height:calc(var(--hero-stage-height,700px)*.35)}
 html.hero-scroll-enabled .hero-signal-panel :is(h1,h2){font-size:clamp(40px,min(8.5vw,7svh),64px)!important;line-height:1;max-width:100%}
 html.hero-scroll-enabled .hero-signal-panel h1>small{font-size:.4em;margin-top:12px}
 html.hero-scroll-enabled .hero-signal-kicker{font-size:8px;margin-bottom:12px}
 html.hero-scroll-enabled .hero-signal-copy{font-size:12px;line-height:1.6;margin-top:14px;max-width:390px}
 html.hero-scroll-enabled .hero-signal-art.dn-material-host{inset:auto 0 211px;height:clamp(170px,30svh,270px);width:auto;transform:none;opacity:1;pointer-events:auto}
 .hero-signal-art.dn-material-host .material-hint{bottom:-7px;left:50%;transform:translateX(-50%);font-size:7px;display:block;white-space:nowrap}
}
html:not(.hero-scroll-enabled) .hero-signal-art.dn-material-host{display:block;position:relative;inset:auto;width:100%;height:auto;aspect-ratio:2;transform:none;margin:25px 0;pointer-events:none}
/* Static poster only where the hero itself is static (hero-scroll.js: below 420px tall). */
@media(prefers-reduced-motion:reduce),(max-height:419px){
 html.hero-scroll-enabled .hero-signal-art.dn-material-host{display:block;position:relative;inset:auto;width:100%;height:auto;aspect-ratio:2;transform:none;margin:25px 0;pointer-events:none}
 .hero-signal-art.dn-material-host .hero-silk-banner{opacity:1!important}
 .hero-signal-art.dn-material-host .material-hint{display:none}
}
/* Tablet composition keeps the painting at exhibition scale beside the message. */
@media(min-width:601px) and (max-width:1000px) and (min-height:600px){
 html.hero-scroll-enabled .hero-signal-scenes{inset:90px 66% 190px 6%;height:auto}
 html.hero-scroll-enabled .hero-signal-panel :is(h1,h2){font-size:clamp(38px,5.9vw,58px)!important;line-height:1.02}
 html.hero-scroll-enabled .hero-signal-copy{max-width:100%;font-size:12px;line-height:1.65}
 html.hero-scroll-enabled .hero-signal-art.dn-material-host{inset:80px 0 170px 30%;height:auto;width:auto;transform:rotate(-2deg)}
 .hero-signal-art.dn-material-host .material-hint{bottom:8%;left:50%;font-size:7px}
}
/* Short phones retain a separate artwork band without covering the message. */
@media(max-width:600px) and (min-height:600px) and (max-height:779px){
 html.hero-scroll-enabled .hero-signal-scenes{inset:58px 6% auto;height:160px}
 html.hero-scroll-enabled .hero-signal-panel :is(h1,h2){font-size:30px!important}
 html.hero-scroll-enabled .hero-signal-kicker{font-size:7px;margin-bottom:8px}
 html.hero-scroll-enabled .hero-signal-copy{font-size:10.5px;line-height:1.5;margin-top:8px}
 html.hero-scroll-enabled .hero-signal-panel h1>small{margin-top:8px}
 html.hero-scroll-enabled .hero-signal-art.dn-material-host{inset:auto 0 220px;height:clamp(110px,calc(100svh - 496px),240px)}
 .hero-signal-art.dn-material-host .material-hint{display:none}
}
@media(max-width:600px) and (min-height:600px) and (max-height:660px){
 html.hero-scroll-enabled .hero-signal-scenes{height:145px}
 html.hero-scroll-enabled .hero-signal-panel :is(h1,h2){font-size:28px!important}
 html.hero-scroll-enabled .hero-signal-art.dn-material-host{bottom:218px}
}
