/* V9.4: one persistent surface from the live Silk to the Nexa workspace. */
.home-entrance{position:relative;isolation:isolate;z-index:1;overflow:clip}
.home-entrance .home-blur-surface{inset:0}
.home-transition-tail{height:clamp(240px,58svh,650px);pointer-events:none}
#home{background:transparent}
/* Keep the animated glyphs legible even when the video frame starts dark. */
.hero h1 .title-film-canvas { filter: contrast(.28) brightness(1.8); }
.silk-shared-film{background:#080909}
.silk-screen,.story-screen{position:absolute;inset:0;width:var(--story-native-width,max(100vw,1280px));height:var(--story-native-height,calc(max(100vw,1280px) / 1.6));transform-origin:0 0;transform:translate(var(--story-x,0px),var(--story-y,0px)) scale(var(--story-scale,1));border-radius:var(--story-radius,0px);overflow:hidden}
#loop-act.journey-act{height:900svh;background:transparent}
#loop-act .loop-sticky{height:100svh;background:transparent;overflow:hidden;position:sticky;top:0;display:block}
.journey-anchor{position:absolute;top:344svh;width:0;height:0;pointer-events:none}
.story-screen{z-index:1}
.platform-surface{position:absolute;inset:0;z-index:2;background:#111014;opacity:var(--platform,0);visibility:hidden;overflow:hidden}
.platform-surface .demo-window,.platform-surface .demo-window[data-full=true]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;padding-top:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important}
.laptop-hardware{inset:auto;top:0;left:0;width:var(--story-native-width,max(100vw,1280px));height:var(--story-native-height,calc(max(100vw,1280px) / 1.6));z-index:3;opacity:1;transform-origin:0 0;transform:translate(var(--story-x,0px),var(--story-y,0px)) scale(var(--story-scale,1));pointer-events:none}
.laptop-lid{background:transparent}
.laptop-camera{z-index:1}
.journey-motto{font-size:clamp(20px,2.8vw,34px)!important;color:var(--landing-text)!important;line-height:1.35!important;margin:38px 0 24px!important}
.capabilities{position:relative;isolation:isolate;background:radial-gradient(ellipse at 85% 45%,#9333ea12,transparent 65%),radial-gradient(ellipse at 12% 85%,#d946ef0b,transparent 60%)}
@media(max-width:600px){.laptop-camera{width:3px;height:3px}.platform-surface .demo-top{padding-inline:18px}.platform-surface .demo-stage{padding-inline:16px}.platform-surface .demo-bottom{padding-inline:16px}}
@media(min-width: 560px) and (max-width: 1000px) and (max-height: 550px) and (pointer: coarse){.platform-surface .demo-top{height:34px;min-height:34px}.platform-surface .demo-bottom{min-height:30px}.platform-surface .demo-stage{padding-block:8px}}
.reading .home-transition-tail,.reading .silk-shared-backdrop,.reading .laptop-hardware,.reading .story-screen>.film-seal,.reading .film-intro,.reading .story-screen>.type-mask{display:none!important}
.reading .home-entrance{overflow:visible;background:#111214}
.reading #loop-act.journey-act{height:auto!important}
.reading .silk-shared-scene{overflow:visible}
.reading #loop-act .loop-sticky{position:relative;height:auto;overflow:visible;background:#111014}
.reading .story-screen{position:relative;inset:auto;transform:none;height:auto;border-radius:0;overflow:visible}
.reading .platform-surface{position:relative;inset:auto;opacity:1!important;visibility:visible!important;overflow:visible}
.reading .platform-surface .demo-window{position:relative!important;inset:auto!important;height:auto!important;overflow:visible!important}
.reading .platform-surface .demo-stage{height:auto;overflow:visible;flex:none}
.reading .journey-anchor{position:static;display:block}

.platform-surface .demo-team-contact>a{min-height:56px}

/* V9.4 refinement: compact header, complete device and edge-to-edge section. */
:root{--nexa-topbar-height:62px}
html{scroll-padding-top:calc(var(--nexa-topbar-height) + 12px)}
.topbar{height:var(--nexa-topbar-height)}
.topbar nav{top:var(--nexa-topbar-height)}
.laptop-lid,.laptop-front{box-shadow:none}
.capabilities{display:block;width:100%;max-width:none;margin-inline:0;box-shadow:none;clip-path:none;background:radial-gradient(ellipse at 85% 45%,#9333ea12,transparent 65%),radial-gradient(ellipse at 12% 85%,#d946ef0b,transparent 60%),var(--section-bg,#18191c)}
.capabilities-content{display:grid;grid-template-columns:1.3fr 1fr;gap:12%}
@media(max-width:760px){:root{--nexa-topbar-height:58px}.capabilities-content{grid-template-columns:1fr;gap:40px}}
@media(min-width: 560px) and (max-width: 1000px) and (max-height: 550px) and (pointer: coarse){:root{--nexa-topbar-height:52px}}

/* Overscan the opaque matte beneath the bezel, avoiding double antialiasing.
   The SVG viewBox expands equally, so brand coordinates do not move. */
.story-screen{overflow:visible}
.story-screen>.film-seal{inset:-3px}
.story-screen>.type-mask{inset:-3px;clip-path:inset(calc(var(--mask-cover-y,100svh) + 3px) 0 0)}
.platform-surface{border-radius:inherit}

/* A single fixed-aspect surface is shared by the live canvas, matte and hardware. */
.reading .story-screen{width:100%;height:auto}

#loop-act #build-act.platform-surface{height:100%;min-height:0;max-height:100%}
