/* A drawing-led mobile composition. Desktop retains its original scene and geometry. */
.story-mobile-scroll{display:contents}
.story-mobile-circuits{display:none}
@media(max-width:999px){
 .reference-hero[data-project-story]{--story-grid:24px;overflow:visible}
 .reference-hero[data-project-story] .story-stage{padding:40px var(--story-grid) 0}
 .reference-hero[data-project-story] .rh-hero-copy{margin-bottom:36px}
 .reference-hero[data-project-story] h1{font-size:clamp(32px,6.4vw,56px);line-height:1.12;letter-spacing:-.045em;text-wrap:balance}
 .reference-hero[data-project-story] .rh-hero-value{font-size:16px;line-height:1.6;max-width:34em;margin-top:18px;text-wrap:balance}
 .reference-hero[data-project-story] .rh-hero-ctas{margin-top:24px;gap:24px}
 .reference-hero[data-project-story] .rh-platform-sidebar{display:none}
 .reference-hero[data-project-story] .rh-platform-workspace{width:100%;display:flex;flex-direction:column;min-width:0;overflow:visible}
 .reference-hero[data-project-story] .rh-platform-top,.reference-hero[data-project-story] .rh-platform-breadcrumb,.reference-hero[data-project-story] .rh-hero-viewer-toolbar{display:none}
 .reference-hero[data-project-story] .rh-platform-body{display:block;height:auto}
 .reference-hero[data-project-story] .rh-platform-shell{height:auto;border-radius:8px;overflow:hidden}
 .reference-hero[data-project-story] .story-browser{height:32px;padding:0 12px;gap:12px}
 .reference-hero[data-project-story] .story-browser-tab{padding:6px 12px;font-size:11px}
 .reference-hero[data-project-story] .story-browser-address{margin:0 0 0 auto;width:auto;border:0;background:none;padding:0;font-size:10px}
 .reference-hero[data-project-story] .story-browser-dots{gap:4px}
 .reference-hero[data-project-story] .story-browser-dots i{width:4px;height:4px}
 .reference-hero[data-project-story] .rh-hero-dwg-viewer{order:0;overflow:hidden;display:block;flex:none}
 .reference-hero[data-project-story] .rh-hero-viewer-canvas{width:100%;height:auto;aspect-ratio:1.6;max-height:320px;min-height:0;flex:none;container-type:size}
 .reference-hero[data-project-story] .story-facade{object-fit:contain;object-position:center;width:100%;height:100%}
 .reference-hero[data-project-story] .story-comparison-controls{display:none!important}
 .reference-hero[data-project-story] .story-comparison-controls select{min-height:30px;padding:4px;max-width:65%;font-size:11px}
 .reference-hero[data-project-story] .rh-ai-panel{order:1;border:0;border-top:1px solid #414141;overflow:visible}
 .reference-hero[data-project-story] .rh-ai-panel .rh-platform-heading{padding:14px 16px 0}
 .reference-hero[data-project-story] .rh-platform-heading h3{font-size:15px}
 .reference-hero[data-project-story] .rh-platform-review-label{display:none}
 .reference-hero[data-project-story] .rh-hero-review-tabs{margin-top:2px;padding:0 16px;gap:16px;flex-wrap:nowrap}
 .reference-hero[data-project-story] .rh-hero-review-tabs button{font-size:11px;min-height:44px;padding:10px 0;white-space:nowrap}
 .reference-hero[data-project-story] .rh-platform-findings{display:block;position:relative}
 .reference-hero[data-project-story] .rh-platform-finding{padding:16px;gap:10px;border-left:2px solid transparent;display:flex}
 .reference-hero[data-project-story] .rh-platform-finding[data-current=true]{border-left-color:#ef4129;background:#ef412910}
 .reference-hero[data-project-story] .rh-platform-finding .rh-finding-kind{font-size:10px;line-height:1.4;margin-bottom:8px}
 .reference-hero[data-project-story] .rh-platform-finding strong{font-size:15px;line-height:1.45;word-break:normal;overflow-wrap:normal}
 .reference-hero[data-project-story] .rh-platform-finding p{font-size:12px;line-height:1.6;margin:10px 0 12px;word-break:normal;overflow-wrap:normal}
 .reference-hero[data-project-story] .rh-platform-finding .rh-file-tag{font-size:10px;line-height:1.5;overflow-wrap:normal;word-break:normal;padding:5px 7px}
 .reference-hero[data-project-story] .story-finding-select{min-height:44px}
 .reference-hero[data-project-story] .story-finding-indicator{display:none}
 .reference-hero[data-mobile-motion] .story-mobile-scroll{display:block;position:relative;height:var(--mobile-scroll-height)}
 .reference-hero[data-mobile-motion] .rh-product-preview{position:sticky;top:76px}
 .reference-hero[data-mobile-motion] .rh-platform-findings{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto}
 .reference-hero[data-mobile-motion] .rh-platform-finding{grid-area:1/1;transition:opacity .18s;align-self:start}
 .reference-hero[data-mobile-motion] .rh-platform-finding[data-current=false]{visibility:hidden;opacity:0;pointer-events:none}
 .reference-hero[data-project-story] .project-intelligence{margin:48px calc(-1 * var(--story-grid)) 0;padding:56px var(--story-grid);scroll-margin-top:76px}
 .reference-hero[data-project-story] .pi-copy h2{font-size:clamp(29px,5vw,42px);line-height:1.13;letter-spacing:-.04em;text-wrap:balance;margin-bottom:20px}
 .reference-hero[data-project-story] .pi-copy p{font-size:14px;line-height:1.75;max-width:46em}
 .reference-hero[data-project-story] .story-system{display:flex;flex-direction:column;gap:0;width:100%;max-width:540px;min-height:0;margin:32px auto 28px;isolation:isolate}
 .reference-hero[data-project-story] .story-inputs{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding-bottom:34px}
 .reference-hero[data-project-story] .story-source{position:relative;z-index:1;min-width:0;min-height:52px;padding:9px 10px;border:1px solid #dcdad4;border-radius:4px;background:#f5f4f1;font-size:12px;line-height:1.4;gap:8px;overflow-wrap:normal;word-break:normal;text-align:left}
 .reference-hero[data-project-story] .story-source svg{width:16px;height:16px;flex:none}
 .reference-hero[data-project-story] .story-source>span:last-child{min-width:0}
 .reference-hero[data-project-story] .story-franklin{position:relative;z-index:1;flex:none;width:72px;height:72px;margin:0 auto 34px;justify-content:center;background:#f5f4f1}
 .reference-hero[data-project-story] .story-franklin img{width:64px;height:64px}
 .reference-hero[data-project-story] .story-franklin:before,.reference-hero[data-project-story] .story-franklin:after{display:none}
 .reference-hero[data-project-story] .story-results{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 .reference-hero[data-project-story] .story-results h3{grid-column:1/-1;text-align:center;margin:0 0 4px;font-size:10px;background:#f5f4f1;position:relative;z-index:1}
 .reference-hero[data-project-story] .story-result{position:relative;z-index:1;background:#ecebe7;border:1px solid #dcdad4;border-radius:4px;padding:10px;min-width:0;min-height:60px;height:auto;gap:8px;font-size:12px;line-height:1.45;text-align:left}
 .reference-hero[data-project-story] .story-result svg{width:16px;height:16px;flex:none}
 .reference-hero[data-project-story] .story-static-circuits{display:none}
 .reference-hero[data-project-story] .story-mobile-circuits{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:0;fill:none;stroke:#b5b1a8;stroke-width:1.2;pointer-events:none}
 .story-mobile-circuits path{stroke-dasharray:1;stroke-dashoffset:var(--mobile-wire-offset,0);vector-effect:non-scaling-stroke}
 .reference-hero[data-project-story] .story-trust{display:grid;grid-template-columns:1fr;gap:8px;width:100%;max-width:540px;margin:0 auto;font-size:12px;text-align:left}
 .reference-hero[data-project-story] .story-trust>span{width:100%;max-width:none;min-height:0;justify-content:flex-start;padding:12px;border-radius:4px;gap:10px}
 .reference-hero[data-project-story] .story-trust i{font-size:16px}
}
@media(max-width:900px){.reference-hero[data-project-story]{margin-top:56px}}
@media(max-width:700px){
 .reference-hero[data-project-story]{--story-grid:20px}
 .reference-hero[data-project-story] .story-stage{padding-top:32px}
 .reference-hero[data-project-story] h1{font-size:clamp(29px,7.3vw,40px)}
 .reference-hero[data-project-story] .rh-hero-value{font-size:14px;max-width:30em}
 .reference-hero[data-project-story] .rh-hero-viewer-canvas{aspect-ratio:1.45}
 .reference-hero[data-project-story] .story-facade{transform:scale(1.12);transform-origin:center}
 .reference-hero[data-project-story] .story-source{padding:8px;font-size:11px;gap:6px}
 .reference-hero[data-project-story] .story-result{font-size:11px;padding:8px;gap:6px}
 .sc-story-pin{padding:72px 20px}
 .sc-story-tools{margin-block:36px}
 .sc-story-labels li{font-size:clamp(22px,5.8vw,28px);overflow-wrap:normal}
 .sc-story :is(h2,h3){font-size:clamp(29px,7.6vw,40px);line-height:1.14}
 .origin>.wrap{width:calc(100% - 40px)}
 .lifecycle-story .lc-pin{padding-inline:20px}
 .lifecycle-story .lc-tab-name{overflow-wrap:normal;word-break:normal}
 .closing-invitation{padding-top:72px}
}
@media(prefers-reduced-motion:reduce){
 .reference-hero[data-project-story] .story-mobile-scroll{display:contents;height:auto}
 .reference-hero[data-project-story] .rh-product-preview{position:relative;top:auto}
 .reference-hero[data-project-story] .story-mobile-circuits path{stroke-dashoffset:0}
}

@media(max-width:700px){
 .scroll-showreel .showreel-mobile-row{grid-template-columns:44px minmax(0,1fr) 44px;gap:10px}
 .scroll-showreel .showreel-arrow{width:44px;height:44px}
 .scroll-showreel .showreel-current-title{font-size:clamp(14px,4vw,18px);line-height:1.4;overflow-wrap:normal;word-break:normal;hyphens:none}
 html:not(.product-showcase-embed) .scroll-showreel .showreel-screen>.showreel-card-sidebar{display:none}
 html:not(.product-showcase-embed) .scroll-showreel .showreel-screen>.scene{margin-left:0;width:100%}
 html:not(.product-showcase-embed) .scroll-showreel .showreel-screen .h1x{font-size:clamp(22px,6vw,30px);line-height:1.2;overflow-wrap:normal;word-break:normal}
 .lifecycle-story .lc-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .lifecycle-story :is(.lc-track,.lc-progress){display:none}
 .lifecycle-story .lc-tab{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:10px;min-height:56px;text-align:left;border:1px solid #ffffff30;border-radius:4px;background:#16161680}
 .lifecycle-story .lc-tab[aria-selected=true]{border-color:#ef4129;background:#ef412918}
 .lifecycle-story .lc-tab-name,html[lang=et] .lifecycle-story .lc-tab-name{display:block;min-height:0;margin:0;font-size:11px;line-height:1.45;text-align:left;order:1}
 .lifecycle-story .lc-dot{width:16px;height:16px;flex:none;order:0}
 .lifecycle-story .lc-dot:before{width:12px;height:12px;left:2px;top:2px}
 .lifecycle-story .lc-dot:after{display:none}
 .builtfor{padding-block:80px}
 .builtfor>.wrap,footer>.wrap{padding-inline:20px}
 .builtfor .role p{color:#aaa}
 .builtfor h2{margin-bottom:32px}
}

@media(max-width:700px){html:not(.product-showcase-embed) .scroll-showreel .scr #sc2>.documents-head .h1x{font-size:clamp(20px,5.5vw,28px);letter-spacing:-.03em}}

/* Mobile reading must not wait for a timed entrance after a quick scroll. */
@media(max-width:999px){.origin .reveal{opacity:1;transform:none;transition:none}}
