/* Retain sentence case. Each reading stop has one stable composition. */
body[data-chapter="1"] #wall .copy{opacity:1}
html{scroll-behavior:auto;overscroll-behavior-y:none}
#wall #wall-label,.label,.workflow-brand span{text-transform:none!important;letter-spacing:0!important}
#wall #wall-label,#wall #wall-title,#wall #wall-body{filter:none;opacity:1}
#wall .beats>button[data-beat="0"]:before{content:'Now · Your running pilot';text-transform:none;letter-spacing:0}
#cue{gap:8px;min-width:110px;min-height:60px;background:none;border:0}
#cue:before,#cue:after{display:none!important}
#cue svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;animation:cue-chevron 2.2s ease-in-out infinite}
#cue small{font-size:12px;letter-spacing:0;text-transform:none}
@keyframes cue-chevron{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
.menu-toggle{display:none}
@media(max-width:1000px){
 header{height:76px;z-index:80;gap:12px;background:#fafaf6}
 header .brand{margin-right:auto}header .brand img{max-width:140px}
 header>.agent{display:none}
 .menu-toggle{display:flex;position:relative;z-index:82;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:46px;height:46px;border:1px solid #23346433;border-radius:50%;background:#fafaf6;color:#233464}
 .menu-toggle span{width:20px;height:2px;background:currentColor;transition:transform .25s}
 .menu-open .menu-toggle span:first-child{transform:translateY(4px) rotate(45deg)}
 .menu-open .menu-toggle span:last-child{transform:translateY(-4px) rotate(-45deg)}
 header #home-menu{display:none;position:fixed;inset:76px 0 auto;max-width:none;width:100%;max-height:calc(100dvh - 76px);overflow:auto;padding:24px 28px 40px;background:#fafaf6;box-shadow:0 30px 50px #23346426;flex-direction:column;align-items:stretch;gap:0}
 .menu-open header #home-menu{display:flex}
 header #home-menu a{font-size:25px;color:#233464;padding:17px 0;border-bottom:1px solid #23346422}
 .menu-open{overflow:hidden}
}
@media(max-width:760px){
 #cue{bottom:0;padding:10px 16px 14px;background:linear-gradient(transparent,#fafaf6 28%);width:100%;color:#121212}
 #rail{display:none}
 body .chapter#wall{height:auto;padding:0 0 110px}
 #wall .copy{position:relative;min-height:0;padding:105px 18px 0;opacity:1!important;transform:none!important}
 #wall .wall-card{width:100%}
 #wall .wall-card>h3{font-size:40px;line-height:1.12}
 #wall .wall-card>p{font-size:16px;line-height:1.5}
 #wall .wall-art{padding:16px 12px;margin:24px 0 0;border-radius:22px;opacity:1;transform:none}
 #wall .workflow-heading{font-size:16px;align-items:flex-start;gap:16px}
 #wall .workflow-heading>*{max-width:60%}
 #wall .workflow-track{margin:18px 0}
 #wall .wall-art .beats{display:flex;flex-direction:column;gap:20px}
 #wall .wall-art .beats [data-beat]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:350px;min-height:350px;padding:18px 12px;box-sizing:border-box;gap:12px;margin:0}
 #wall .wall-art .beats>button[data-beat="0"]{width:calc(100% - 20px);margin:0 10px}
 #wall .beats>button[data-beat="0"]:before{font-size:14px}
 #wall .intelligaia-workflow{display:flex;flex-direction:column;gap:20px;padding:14px 10px 10px;width:100%;box-sizing:border-box}
 #wall .workflow-brand{display:flex;flex-direction:column;align-items:flex-start;padding:8px 5px 14px;gap:8px}
 #wall .workflow-brand b{font-size:28px}#wall .workflow-brand span{font-size:14px}
 #wall .wall-art .beats svg{height:205px;width:100%;max-height:none}
 #wall .beats strong{font-size:24px}#wall .beats small{font-size:16px;margin-top:8px}
 #doors .engagement{opacity:1;grid-template-columns:1fr;display:grid;gap:18px}
 #doors .engagement a{min-height:340px}#doors .copy{position:relative;min-height:0}
 body #doors.chapter{height:auto;padding-bottom:110px}
 #doors .copy{opacity:1!important;transform:none!important}
}
@media(prefers-reduced-motion:reduce){#cue svg{animation:none}.menu-toggle span{transition:none}}

/* Keep the paired engagement cards prominent without crowding the title. */
#doors .engagement{width:min(1600px,100%);margin-top:clamp(38px,4.5vh,72px);gap:clamp(22px,2.2vw,48px)}
#doors .engagement a{padding:clamp(24px,2.2vw,52px);border-radius:56px 56px 24px 24px}
#doors .engagement .service-art{height:clamp(190px,24vh,360px);margin:0 0 24px}
#doors .engagement h3{font-size:clamp(32px,2.6vw,64px)}
#ladder .process-tabs,#ladder .process-visual{width:min(1480px,100%)!important}
#ladder .process-picture{left:2%;width:51%;top:5%;height:90%}
@media(min-width:1800px){#doors .engagement a{min-height:490px}#ladder .process-visual{height:44vh}}
@media(max-width:760px){
 #doors .engagement{margin-top:34px;gap:24px}
 #doors .engagement a{padding:24px 22px;min-height:420px;border-radius:38px 38px 20px 20px}
 #doors .engagement .service-art{height:190px;margin-bottom:22px}
 #ladder .process-picture{left:3%;width:94%;top:12px;height:180px}
}

/* Readable cue on ultrawide screens; generous spacing around the pilot system. */
#cue,body[data-chapter="1"] #cue{bottom:max(16px,env(safe-area-inset-bottom));color:#233464;padding:10px 24px;gap:7px;min-height:72px;min-width:160px;background:rgba(250,250,246,.94);border:1px solid #23346420;border-radius:24px;box-shadow:0 4px 18px #2334640b}
#cue svg{width:clamp(30px,1.25vw,52px);height:clamp(30px,1.25vw,52px);stroke-width:2}
#cue small{font-size:clamp(14px,.65vw,24px);font-weight:500;line-height:1.35}
#wall .wall-art{padding:clamp(28px,2vw,72px);margin-top:clamp(28px,2vh,48px)}
#wall .workflow-track{margin:24px 0 28px}
#wall .wall-art .beats{gap:clamp(18px,1.3vw,36px)}
#wall .intelligaia-workflow{padding:0 clamp(14px,1vw,28px) clamp(14px,1vw,28px);gap:clamp(12px,.8vw,24px)}
#wall .workflow-brand{margin:0;padding:clamp(18px,1.2vw,32px) 6px}
#wall .intelligaia-workflow button{padding:18px 12px 24px;gap:10px}
@media(min-width:761px) and (max-height:800px){#wall .wall-art{padding:24px;margin-top:20px}#wall .workflow-track{margin:16px 0 18px}#wall .workflow-brand{padding:14px 6px}#wall .intelligaia-workflow button{padding:10px 8px 16px}#wall .astra-art,#wall .intelligaia-workflow .astra-art{height:140px}}
@media(max-width:760px){#cue,body[data-chapter="1"] #cue{width:auto;max-width:calc(100% - 32px);min-width:150px;min-height:68px;padding:8px 20px;bottom:max(12px,env(safe-area-inset-bottom));border-radius:22px}#wall .wall-art{padding:24px 16px;margin-top:28px}#wall .wall-art .beats>button[data-beat="0"]{width:100%;margin:0}#wall .intelligaia-workflow{padding:0 12px 16px;gap:20px}#wall .workflow-brand{padding:20px 4px 6px}}
@media(max-width:760px){#wall .wall-art .beats [data-beat]{height:320px;min-height:320px;gap:10px}#wall .wall-art .beats svg{height:175px}#cue,body[data-chapter="1"] #cue{flex-direction:row;gap:10px;min-height:52px}#cue svg{width:28px;height:28px}}
/* Open adoption composition: selection is an outline, never a filled panel. */
#wall .wall-art{display:grid;grid-template-columns:minmax(0,1fr);background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none;padding:24px 12px 44px}
#wall .workflow-heading{grid-row:1;margin-bottom:24px}
#wall .wall-art .beats{grid-row:2;align-items:start}
#wall .intelligaia-workflow{background:transparent!important;padding:0!important;border:0!important;overflow:visible;gap:clamp(18px,1.3vw,36px)}
#wall .workflow-brand{display:none}
#wall .wall-art .beats [data-beat],#wall .wall-art .beats [data-beat].active{background:transparent!important;border:2px solid transparent!important;border-radius:20px;box-shadow:none;padding:24px 16px!important;gap:12px;min-height:0;height:clamp(290px,23vw,470px);display:flex;flex-direction:column;justify-content:center;align-items:center;transition:border-color .35s,box-shadow .35s,transform .35s}
#wall .wall-art .beats [data-beat].active{border-color:#3782F0!important;box-shadow:0 0 0 4px #3782f012,0 0 22px #3782f032!important}
#wall .beats>button[data-beat="0"]:before{display:none}
#wall .wall-art .beats svg{flex:1;min-height:0;max-height:285px;width:100%}
#wall .beats strong{margin-top:12px;color:#233464}
#wall .beats small{margin:0;min-height:1.5em}
#wall .workflow-track{grid-row:3;position:relative;margin:28px 0 36px;width:100%}
#wall .workflow-track:before{content:'Your running pilot';position:absolute;left:0;top:20px;color:#233464;font-size:clamp(13px,.85vw,22px)}
#wall .workflow-track:after{content:'The path to adoption · With Intelligaia';position:absolute;right:0;top:20px;width:74%;padding-top:12px;border-top:3px solid #3782F0;color:#233464;font-size:clamp(14px,1vw,26px);text-align:center}
@media(max-width:760px){#wall .wall-art{padding:20px 4px 64px}#wall .workflow-heading{margin-bottom:20px}#wall .wall-art .beats [data-beat]{height:320px;width:100%;margin:0;padding:24px 16px!important}#wall .wall-art .beats svg{height:175px;flex:none}#wall .intelligaia-workflow{gap:24px}#wall .workflow-brand{display:flex;padding:12px 0 18px;color:#233464;border-bottom:2px solid #3782F0}#wall .workflow-brand span{color:#233464}#wall .workflow-track:before{display:none}#wall .workflow-track:after{width:100%;font-size:14px}#wall .beats strong{margin-top:0}}
@media(min-width:761px) and (max-height:800px){#wall .wall-art{padding:14px 8px 36px}#wall .wall-art .beats [data-beat]{height:265px;padding:18px 12px!important}#wall .wall-art .beats svg{max-height:160px}#wall .workflow-heading{margin-bottom:14px}#wall .workflow-track{margin-top:20px}}
#wall .workflow-track:before{content:'';inset:0;background:#3782F0;transform:scaleX(var(--line-progress,0));transform-origin:left}

/* Plain responsive scroll hint and a soft edge behind Selected work. */
#cue,body[data-chapter="1"] #cue{background:none;border:0;box-shadow:none;border-radius:0;backdrop-filter:none}
.portfolio-grid{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--edge-fade,0px));mask-image:linear-gradient(to right,transparent 0,#000 var(--edge-fade,0px))}

/* One frosted surface separates the complete workflow from the moving scene. */
#wall .wall-art{background:rgba(255,255,255,.74)!important;border:1px solid rgba(255,255,255,.85)!important;backdrop-filter:blur(24px) saturate(.7);-webkit-backdrop-filter:blur(24px) saturate(.7);box-shadow:0 12px 45px rgba(35,52,100,.055)!important;border-radius:28px;padding:clamp(24px,2vw,64px) clamp(22px,2vw,64px) clamp(58px,3vw,86px)}
@media(max-width:760px){#wall .wall-art{border-radius:22px;padding:24px 16px 64px}}
@media(min-width:761px) and (max-height:800px){#wall .wall-art{padding:20px 24px 54px}}

/* Phone: actual vertical cards, no horizontal rail or edge fade. */
@media(max-width:760px){
 body .chapter#work{height:auto;padding:0 0 100px}
 #work .copy{position:relative;height:auto;min-height:0;padding:100px 18px 0;display:flex;opacity:1!important;transform:none!important}
 #work .portfolio-grid{display:flex;flex-direction:column;overflow:visible;gap:24px;width:100%;mask-image:none!important;-webkit-mask-image:none!important;opacity:1}
 #work .portfolio-grid .project{flex:0 0 auto;width:100%;margin:0;min-width:0}
 #work .project-image{width:100%;aspect-ratio:1713/1149}
 #work .project-caption{min-height:150px}
 #work .gallery-progress{display:none}
 #work .portfolio-more{margin:24px 0 0}
 #wall .wall-art{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(255,255,255,.93)}
}
