/* The page is one operational response, with scroll setting the pace. */
html:not(.motion-off) .story-intro{overflow:clip}
html:not(.motion-off) .rapid-story{height:auto!important;position:relative;isolation:isolate}
html:not(.motion-off) .rapid-stage{height:100svh!important;min-height:0!important;max-height:none!important;padding-top:clamp(18px,3.5vh,36px);padding-bottom:18px;overflow:hidden;isolation:isolate;--scroll-progress:0;--scene-progress:0}
html:not(.motion-off) .story-layout{flex:1 1 auto!important;min-height:0!important;padding:clamp(18px,3.5vh,32px) 0;align-items:stretch;position:relative;z-index:2}
html:not(.motion-off) .step-list{justify-content:center}
html:not(.motion-off) .step-list button{padding:clamp(9px,1.3vh,17px) 0;transition:color .3s,transform .5s}
html:not(.motion-off) .step-list button[aria-selected=true]{transform:translateX(10px)}
html:not(.motion-off) .story-panel{height:100%;min-height:0!important;padding:clamp(18px,2.6vh,30px) clamp(20px,2.8vw,38px);transform-style:preserve-3d;transform-origin:center;will-change:transform}
html:not(.motion-off) .panel-context{padding-bottom:16px}
html:not(.motion-off) .stage-copy{margin-top:clamp(16px,2.4vh,28px)}
html:not(.motion-off) .stage-copy h3{font-size:clamp(30px,3.5vw,58px);min-height:2.16em}
html:not(.motion-off) .stage-copy>p{font-size:clamp(13px,1.03vw,16px);min-height:0;margin-top:16px}
html:not(.motion-off) .stage-visual{min-height:90px;flex:1;margin:clamp(14px,2.3vh,26px) 0}
html:not(.motion-off) .story-panel-bottom{padding-top:16px;min-height:56px}
html:not(.motion-off) .story-panel-bottom .button{min-height:44px}
html:not(.motion-off) .story-topline,html:not(.motion-off) .story-bottomline{position:relative;z-index:3;flex-shrink:0}
.scene-numeral{position:absolute;left:var(--gutter);bottom:5%;font-size:clamp(160px,24vw,420px);font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.08em;line-height:.8;color:#f7b54808;z-index:0;pointer-events:none;user-select:none}
.response-spine{position:absolute;left:0;right:0;bottom:0;height:2px;background:#262d36;z-index:4;pointer-events:none}
.response-spine:before{content:'';display:block;height:100%;background:var(--amber);transform:scaleX(var(--scroll-progress));transform-origin:left}
.response-spine i{position:absolute;left:calc(var(--scroll-progress) * 100%);top:-4px;width:10px;height:10px;background:var(--amber);border-radius:50%;transform:translateX(-50%)}
.rapid-stage[data-scene="6"] .story-panel{border-color:#98763d}
.rapid-stage[data-scene="6"] .status-label{color:#b5d5bb}
html:not(.motion-off) .platform-section{position:relative;perspective:none;transform:none;will-change:auto}
html:not(.motion-off) .platform-section>.section-heading{overflow:visible}
html:not(.motion-off) .platform-tabs{position:relative;z-index:3}
html:not(.motion-off) .command-shell{position:relative;z-index:2;transform-style:preserve-3d;will-change:transform}
html:not(.motion-off) .command-content,html:not(.motion-off) #command-content{overflow:clip}
html:not(.motion-off) .compliance-section,html:not(.motion-off) .audit-section,html:not(.motion-off) .control-section{overflow:clip}
html:not(.motion-off) .credential-story{perspective:1000px}
html:not(.motion-off) .audit-art{perspective:1400px;overflow:visible}
html:not(.motion-off) .audit-paper{backface-visibility:hidden;will-change:transform}
html:not(.motion-off) .control-row{will-change:transform}
html:not(.motion-off) .control-title,html:not(.motion-off) .closing-top{overflow:clip}
html:not(.motion-off) .site-footer{overflow:clip}
html.motion-off .scene-numeral,html.motion-off .response-spine{display:none}
@media(max-height:760px){
 html:not(.motion-off) .rapid-stage{padding-top:18px;padding-bottom:12px}
 html:not(.motion-off) .story-topline{padding-bottom:15px}
 html:not(.motion-off) .story-layout{padding:18px 0}
 html:not(.motion-off) .story-panel{padding-top:18px;padding-bottom:18px}
 html:not(.motion-off) .stage-copy h3{font-size:clamp(29px,3.1vw,44px)}
 html:not(.motion-off) .stage-copy>p{font-size:13px;line-height:1.6;margin-top:12px}
 html:not(.motion-off) .stage-visual{min-height:80px;margin:14px 0}
 html:not(.motion-off) .roster-avatars>span{width:43px;height:43px}
 html:not(.motion-off) .story-bottomline{padding-top:8px}
}
@media(max-width:600px){
 html:not(.motion-off) .rapid-stage{padding-top:16px;padding-bottom:12px}
 html:not(.motion-off) .story-topline{padding-bottom:12px;gap:7px}
 html:not(.motion-off) .story-topline>span:nth-child(2){font-size:10px;line-height:1.6}
 html:not(.motion-off) .story-layout{display:grid;grid-template-columns:1fr;grid-template-rows:55px minmax(0,1fr);gap:14px;padding:14px 0}
 html:not(.motion-off) .step-list{justify-content:space-between;gap:2px;align-self:center}
 html:not(.motion-off) .step-list button{padding:0;font-size:11px;gap:5px;min-height:44px}
 html:not(.motion-off) .step-list button[aria-selected=true]{transform:translateY(-3px)}
 html:not(.motion-off) .step-list button>span{width:24px;height:24px}
 html:not(.motion-off) .story-panel{padding:18px;min-height:0!important;height:100%}
 html:not(.motion-off) .panel-context{font-size:11px;padding-bottom:13px;gap:5px}
 html:not(.motion-off) .stage-copy{margin-top:16px}
 html:not(.motion-off) .stage-copy h3{font-size:clamp(29px,7.5vw,36px);line-height:1.06;min-height:2.12em}
 html:not(.motion-off) .stage-copy>p{font-size:12px;line-height:1.65;margin-top:12px}
 html:not(.motion-off) .status-label{font-size:11px;margin-bottom:10px}
 html:not(.motion-off) .stage-visual{min-height:80px;margin:14px 0}
 html:not(.motion-off) .roster-avatars{gap:8px}
 html:not(.motion-off) .roster-avatars>span{width:35px;height:35px;font-size:11px}
 html:not(.motion-off) .visual-footnote{font-size:11px;line-height:1.6}
 html:not(.motion-off) .story-panel-bottom{gap:16px;min-height:48px;padding-top:12px}
 html:not(.motion-off) .story-panel-bottom .button{font-size:11px;padding:11px 13px;gap:12px}
 html:not(.motion-off) .story-bottomline{font-size:11px;padding-top:8px}
 html:not(.motion-off) .story-bottomline button{font-size:11px}
 html:not(.motion-off) .scene-numeral{font-size:230px;left:0;bottom:10%}
 html:not(.motion-off) .command-shell{max-height:calc(100svh - 150px);overflow:auto;min-height:400px}
 html:not(.motion-off) .platform-tabs{margin-bottom:0}
 html:not(.motion-off) .audit-art{min-height:440px}
}
@media(max-width:600px) and (max-height:700px){
 html:not(.motion-off) .story-topline>span:nth-child(2){font-size:11px;line-height:1.4}
 html:not(.motion-off) .story-panel{padding:14px 16px}
 html:not(.motion-off) .stage-copy{margin-top:12px}
 html:not(.motion-off) .stage-copy h3{font-size:29px}
 html:not(.motion-off) .stage-copy>p{font-size:12px;line-height:1.55}
 html:not(.motion-off) .stage-visual{min-height:65px;margin:12px 0}
 html:not(.motion-off) .panel-context{font-size:10px}
 html:not(.motion-off) .story-layout{grid-template-rows:50px minmax(0,1fr);gap:10px;padding:12px 0}
 html:not(.motion-off) .check-rows span{font-size:11px;padding:6px 8px}
 html:not(.motion-off) .visual-footnote{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 .scene-numeral,.response-spine{display:none}
}

@media(max-height:499px){html:not(.motion-off) .rapid-stage{height:auto!important;min-height:700px!important}html:not(.motion-off) .story-layout{min-height:560px!important}}
@media(max-width:600px) and (max-height:700px){html:not(.motion-off) .panel-context{font-size:11px}}

/* Fixed pin containing block stays neutral; all perspective belongs to its child. */
.command-pin-stage{display:flow-root;position:relative;margin-top:40px;transform:none;perspective:none;filter:none;will-change:auto}
.command-pin-stage .command-shell{margin-top:0}
html:not(.motion-off) .command-pin-stage{transform:none;perspective:none;filter:none;will-change:auto;z-index:2}
@media(max-width:600px){.command-pin-stage{margin-top:25px}}
@media(max-width:600px){.command-pin-stage{min-height:480px}html:not(.motion-off) .command-pin-stage .command-shell{min-height:480px}}

/* Short phones keep a normal document flow so the action never sits offscreen. */
@media(max-width:600px) and (max-height:619px){
 html:not(.motion-off) .rapid-stage{height:auto!important;min-height:0!important;overflow:visible}
 html:not(.motion-off) .story-layout{display:flex;flex-direction:column;flex:initial!important;min-height:0!important;gap:14px;align-items:stretch}
 html:not(.motion-off) .story-panel{height:auto!important;min-height:490px!important}
 html:not(.motion-off) .stage-visual{min-height:100px}
 html:not(.motion-off) .story-bottomline{padding-bottom:12px}
}
