/* Layout follows available space; text remains readable at the compact end. */
:root{--screen-height:var(--app-height,100dvh);--space-flow:clamp(16px,3dvh,34px);--reading-size:clamp(16px,2dvh,20px)}
.app-frame{width:100%;max-width:none}
#main .poster{min-width:0}
#main .poster>*{min-width:0}
@media(max-width:899px){
 #main .poster{padding-left:clamp(24px,6.5vw,64px);padding-right:clamp(24px,6.5vw,64px)}
 .topbar{padding-left:clamp(24px,6.5vw,64px);padding-right:clamp(24px,6.5vw,64px)}
 #main .story-page>.poster-heading{font-size:clamp(26px,7vw,42px)}
 #main .story-hero>.product-title{font-size:clamp(21px,5.6vw,29px)}
 #main .story-hero>.product-definition{font-size:clamp(32px,min(10vw,6dvh),62px);margin-top:clamp(24px,4dvh,48px)}
 #main .story-hero>.product-copy{font-size:var(--reading-size);max-width:38em;margin-top:clamp(24px,3.5dvh,40px);line-height:1.7}
 #main .story-home .display{font-size:clamp(34px,min(10.5vw,6.2dvh),66px)}
 #main .story-home .intro{font-size:var(--reading-size);margin-top:clamp(20px,3dvh,34px)}
 .story-home .entry{padding:clamp(9px,1.7dvh,20px) 0}
 .story-home .entry-name{font-size:clamp(17px,2.3dvh,23px)}
 .story-home .entry-desc{font-size:clamp(14px,1.85dvh,18px)!important}
 .story-home .home-products{padding-top:var(--space-flow)}
 #main .story-page .focused-explanation,#main .story-page .signal-explanation,#main .story-page .value-text p,.case-facts p,.story-lead,.story-start>p{font-size:var(--reading-size)}
 #main .story-page .value-text h3{font-size:clamp(17px,2.25dvh,23px)}
 #main .story-page.headline-values .value-item{padding:clamp(12px,2.7dvh,32px) 0;grid-template-columns:clamp(32px,4.3dvh,48px) 1fr;gap:clamp(12px,2.4vw,22px)}
 #main .story-page.headline-values .value-item>svg{width:clamp(32px,4.3dvh,48px);height:clamp(32px,4.3dvh,48px)}
 #main .story-page.ops-kpi .ops-detail-panel>.poster-graphic>svg,#main .story-page.ops-meetings .poster-graphic>svg{height:clamp(76px,16dvh,220px);max-height:none}
 #main .story-page.ops-kpi .goal-tree-art{font-size:clamp(15px,2dvh,21px)}
 #main .story-page.ops-kpi .goal-tree-art>span,#main .story-page.ops-kpi .goal-tree-art>div>span{padding:clamp(5px,1dvh,13px) clamp(12px,2.5vw,24px)}
 .signal-pair>div{min-height:clamp(76px,13dvh,150px);padding:clamp(14px,2.3dvh,28px) clamp(12px,3vw,24px)}
 .signal-pair span{font-size:clamp(16px,2.1dvh,22px)}.signal-pair strong{font-size:clamp(30px,5dvh,54px)}
 #main .story-page.demo-poster #report-demo{height:clamp(190px,29dvh,340px)!important;min-height:clamp(190px,29dvh,340px)!important;padding:clamp(16px,2.4dvh,30px)}
 #main .story-page .demo-card h3{font-size:clamp(19px,2.6dvh,27px)}
 #main .story-page .demo-card>p{font-size:var(--reading-size)}
 #main .story-case h3{font-size:clamp(17px,2.4dvh,24px)}
 .case-facts li{padding:clamp(7px,1.6dvh,19px) 0}
 .decision-card{padding:clamp(14px,2.4dvh,32px) clamp(16px,4vw,32px)}
 .decision-card h3{font-size:clamp(18px,2.6dvh,27px)}
 .decision-card dd{font-size:clamp(16px,2.1dvh,22px)}
 .decision-state{margin-top:clamp(12px,2dvh,24px);padding-top:clamp(10px,1.8dvh,20px)}
 .story-steps b{font-size:clamp(14px,1.9dvh,19px)}.story-steps span{font-size:clamp(13px,1.8dvh,17px)}
 .deployment-condition{font-size:var(--reading-size);margin-top:var(--space-flow)}
 .company-clients .client-logo{height:clamp(36px,6.2dvh,76px)}
 .company-clients .client-grid{gap:clamp(10px,1.5dvh,18px)}
 #main .story-page.company-start .story-start .poster-graphic>svg{height:clamp(60px,16dvh,200px)}
}
/* Tablet portrait uses the screen width instead of a phone-width frame. */
@media(min-width:600px) and (max-width:899px){
 #main .poster{padding-top:clamp(90px,11dvh,130px);padding-bottom:clamp(110px,14dvh,160px)}
 #main .story-page>.poster-heading{font-size:clamp(34px,4.8vw,44px)}
 .company-clients .client-showcase{width:100%}
 .company-clients .client-logo{height:clamp(60px,8dvh,96px)}
 .company-clients .client-tabs button{font-size:17px}
 #main .story-page .value-text p,#main .story-page .focused-explanation,.case-facts p{font-size:clamp(18px,2dvh,21px)}
 .story-home .entry-desc{font-size:17px!important}
}
/* Wide tablets have enough room for side-by-side explanation and illustration. */
@media(min-width:700px) and (max-width:899px){
 #main .story-page{display:grid;grid-template-columns:1fr 1.15fr;column-gap:32px;align-content:center}
 #main .story-page>.poster-heading,#main .story-page>.product-title{grid-column:1;grid-row:1}
 #main .story-page>.product-definition{grid-column:1;grid-row:2;font-size:clamp(32px,4.8vw,43px)}
 #main .story-page>.product-copy{grid-column:1;grid-row:3;font-size:18px;margin-top:24px}
 #main .story-page>:is(.case-showcase,.headline-scenario-showcase,.value-list,.story-deploy,.ops-goal-content,.ops-meeting-content,.decision-card,.ops-start-content,.story-start,.story-report-preview,.ops-overview-strip){grid-column:2;grid-row:1/5;align-self:center;margin:0;padding-top:0;padding-bottom:0}
 #main .story-page>.poster-cta,#main .story-page>.start-invitation{grid-column:1;grid-row:4;align-self:start;margin-top:24px}
 #main .story-page .story-report-preview{display:block;padding:20px}
 #main .story-page .ops-overview-strip{display:flex;flex-direction:column;gap:12px}
 .ops-overview-strip i{transform:rotate(90deg)}
 #main .story-page.demo-poster>.demo-tabs{grid-column:2;grid-row:1;margin:0}
 #main .story-page.demo-poster>#report-demo{grid-column:2;grid-row:2/5;margin-top:18px}
 #main .story-page>.company-source,#main .story-page>.poster-note,#main .story-page.demo-poster>.demo-label{position:static;grid-column:2;grid-row:5;margin-top:20px!important}
 #main .story-page .value-text p{font-size:17px}
 .story-steps{grid-template-columns:1fr;gap:16px}.story-steps li{display:flex;align-items:baseline;gap:12px}.story-steps span{margin:0}
 .signal-pair>div{flex-direction:column;gap:12px}
}
/* Desktop grows the composition, while keeping line length comfortable. */
@media(min-width:900px){
 .topbar{padding-left:clamp(36px,4vw,144px);padding-right:clamp(36px,4vw,144px)}
 #main .poster{min-height:var(--app-height,100dvh);padding:clamp(112px,15dvh,170px) clamp(40px,5vw,160px) clamp(100px,14dvh,150px)}
 #main .story-page{grid-template-columns:1fr 1.15fr;column-gap:clamp(40px,6vw,140px)}
 #main .story-page>.poster-heading{font-size:clamp(38px,3.4vw,76px)}
 #main .story-page>.product-title{font-size:clamp(30px,2.7vw,60px)}
 #main .story-page>.product-definition{font-size:clamp(42px,4vw,90px);line-height:1.3}
 #main .story-page>.product-copy{font-size:clamp(18px,1.35vw,25px);max-width:34em}
 #main .story-home .display{font-size:clamp(66px,6vw,140px)}
 #main .story-home .intro{font-size:clamp(18px,1.35vw,25px)}
 .story-home .entry-name{font-size:clamp(24px,2vw,40px)}
 .story-home .entry-desc{font-size:clamp(17px,1.3vw,24px)}
 .story-home .entry{padding:clamp(25px,4dvh,54px) 0}
 .story-report-preview{padding:clamp(26px,2.4vw,55px)}
 .story-report-preview h3{font-size:clamp(26px,2.1vw,46px)}
 .story-report-preview p,#main .signal-explanation,.case-facts p,#main .story-page .value-text p,#main .story-page .focused-explanation{font-size:clamp(18px,1.4vw,25px)}
 #main .story-page .value-text h3{font-size:clamp(22px,1.9vw,36px)}
 #main .story-page.headline-values .value-item{padding:clamp(25px,4dvh,50px) 0;grid-template-columns:clamp(48px,4vw,80px) 1fr}
 #main .story-page .value-item>svg{width:clamp(42px,3.8vw,74px);height:clamp(42px,3.8vw,74px)}
 #main .story-page .poster-graphic{max-width:none;width:100%}
 #main .story-page.ops-kpi .ops-detail-panel>.poster-graphic>svg,#main .story-page.ops-meetings .poster-graphic>svg{height:clamp(200px,30dvh,420px);max-height:none}
 .signal-pair>div{min-height:clamp(110px,18dvh,230px)}
 .signal-pair span{font-size:clamp(20px,1.6vw,30px)}.signal-pair strong{font-size:clamp(40px,4.5vw,80px)}
 .company-clients .client-logo{height:clamp(68px,9dvh,125px)}
 .decision-card{padding:clamp(24px,2.5vw,52px)}.decision-card h3{font-size:clamp(23px,2vw,38px)}
 .decision-card dd{font-size:clamp(18px,1.5vw,27px)}
}
@media(min-width:900px) and (max-height:650px){
 #main .poster{padding-top:110px;padding-bottom:96px}
 #main .story-page>.product-definition{font-size:clamp(34px,3.3vw,58px)}
 #main .story-page>.poster-heading{font-size:clamp(32px,3vw,50px)}
}
@media(min-width:700px) and (max-width:899px) and (max-height:650px){
 #main .story-page{padding-top:80px;padding-bottom:100px}
 #main .story-page>.poster-heading{font-size:28px}
 #main .story-page>.product-definition{font-size:32px;margin-top:18px}
 #main .story-page>.product-title{font-size:20px}
 #main .story-page>.product-copy{font-size:16px;margin-top:18px}
}
/* Very short landscape windows may extend a poster rather than crop its text. */
@media(max-width:899px) and (max-height:450px){
 #main .poster{height:auto;min-height:var(--app-height,100dvh);max-height:none}
 #main .story-page>:is(.case-showcase,.headline-scenario-showcase,.value-list,.story-deploy,.ops-goal-content,.ops-meeting-content,.decision-card,.ops-start-content,.story-start){margin-top:24px;margin-bottom:12px}
}
/* A tall tablet reads as a generous vertical poster, not two narrow columns. */
@media(min-width:700px) and (max-width:899px) and (orientation:portrait){
 #main .story-page{display:flex;flex-direction:column}
 #main .story-page>.poster-heading{font-size:clamp(40px,5.6vw,50px)}
 #main .story-hero>.product-title{font-size:30px;margin-top:18px}
 #main .story-hero>.product-definition{font-size:clamp(52px,7.5vw,68px);margin-top:42px}
 #main .story-hero>.product-copy{font-size:22px;line-height:1.8;margin-top:38px;max-width:100%}
 #main .story-page>:is(.case-showcase,.headline-scenario-showcase,.value-list,.story-deploy,.ops-goal-content,.ops-meeting-content,.decision-card,.ops-start-content,.story-start,.story-report-preview,.ops-overview-strip){width:100%;align-self:stretch;margin:auto 0}
 #main .story-page>.poster-cta,#main .story-page>.start-invitation{width:100%;margin-top:24px}
 #main .story-page .story-report-preview{padding:36px}
 .story-report-preview h3{font-size:30px}.story-report-preview p{font-size:21px}
 #main .story-page .ops-overview-strip{flex-direction:row;font-size:24px;gap:24px;padding:38px 0}
 .ops-overview-strip i{transform:none}
 #main .story-page .value-text p,#main .story-page .focused-explanation,.case-facts p,.story-lead,.story-start>p{font-size:22px}
 #main .story-page .value-text h3{font-size:27px}
 #main .story-page.headline-values .value-item{padding:38px 0;grid-template-columns:58px 1fr;gap:28px}
 #main .story-page.headline-values .value-item>svg{width:52px;height:52px}
 #main .story-page.ops-kpi .goal-tree-art{font-size:24px}
 #main .story-page.ops-kpi .ops-detail-panel>.poster-graphic>svg,#main .story-page.ops-meetings .poster-graphic>svg{height:260px}
 #main .story-page.demo-poster>.demo-tabs{width:100%;margin-top:44px}
 #main .story-page.demo-poster>#report-demo{height:360px!important;min-height:360px!important;margin-top:28px;padding:36px}
 #main .story-page .demo-card h3{font-size:29px}#main .story-page .demo-card>p{font-size:22px}
 .story-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.story-steps li{display:block}
 .story-steps b{font-size:21px}.story-steps span{font-size:18px;margin-top:12px}
 .deployment-condition{font-size:22px}
 #main .story-page>.company-source,#main .story-page>.poster-note,#main .story-page.demo-poster>.demo-label{position:absolute;bottom:calc(76px + env(safe-area-inset-bottom,0px));left:90px;right:54px;font-size:14px}
}
/* Diagram nodes and connectors grow too, not only their surrounding canvas. */
#main .story-page .poster-graphic{width:100%;max-width:none}
#main .story-page.ops-kpi .goal-tree-art{width:100%;max-width:none;font-size:clamp(15px,2.4dvh,24px)}
#main .story-page.ops-kpi .goal-tree-art>span,#main .story-page.ops-kpi .goal-tree-art>div>span{min-width:clamp(84px,28vw,200px);padding:clamp(5px,calc(2dvh - 5px),18px) clamp(12px,2.5vw,28px)}
#main .story-page.ops-kpi .goal-tree-art>i{height:clamp(9px,calc(7.5dvh - 27px),44px)}
#main .story-page.ops-kpi .goal-tree-art>div{width:fit-content;margin:0 auto;gap:clamp(22px,5vw,60px);padding-top:clamp(9px,calc(7.5dvh - 27px),44px)}
#main .story-page.ops-kpi .goal-tree-art>div:before{height:clamp(9px,calc(7.5dvh - 27px),44px)}
