/* Stable viewport-sized stages: native scrolling owns every frame. */
#marketing,#speaking{overflow:visible!important}
.strategy-art-scroll{display:contents}
#marketing .marketing-scroll{height:calc(100svh + 80svh);min-height:0}
#marketing .marketing-stage{position:sticky;top:82px;height:calc(100svh - 82px);min-height:0;padding:52px 6% 30px;overflow:hidden}
#marketing .strategy-copy{width:50%}
#marketing .strategy-copy h2{font-size:clamp(40px,4.6vw,76px);margin:22px 0 20px}
#marketing .strategy-copy .eyebrow{margin-top:0}
#marketing .strategy-lead{font-size:16px;line-height:1.55}
#marketing .strategy-chapters{position:absolute;bottom:25px;left:6%;right:6%;margin:0;padding:16px 0 0;background:linear-gradient(#eae8dfe6,#eae8df);gap:5%}
#marketing .strategy-chapters strong{font-size:clamp(18px,1.6vw,24px)}
#marketing .strategy-chapters p{font-size:14px}
#marketing .strategy-photo{inset:0 0 0 25%;height:100%!important}
.scene-scroll-cue{position:absolute;bottom:18px;right:24px;z-index:4;font:11px/1.4 ui-monospace,monospace;letter-spacing:.04em;padding:8px 11px;background:#eae8dfec;color:#334539;pointer-events:none}
#speaking{min-height:0;background:#101919;isolation:isolate}
#speaking:after{display:none}
.speaker-scroll{height:calc(100svh + 78svh)}
.speaker-stage{position:sticky;top:82px;height:calc(100svh - 82px);min-height:0;overflow:hidden;isolation:isolate;background:#101919}
#speaking .speaker-atmosphere{position:absolute;inset:0;height:100%;z-index:0}
#speaking .speaker-atmosphere:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#101919ed 0%,#101919a0 35%,transparent 72%),linear-gradient(0deg,#101919,transparent 25%);pointer-events:none}
#speaking .speaker-copy{position:relative;z-index:2;padding:60px 6% 40px;width:58%}
#speaking .speaker-copy h2{font-size:clamp(64px,7.8vw,118px);line-height:.94;margin:25px 0}
#speaking .speaker-statement{font-size:17px;line-height:1.55;margin:20px 0}
#speaking .speaker-invite{margin-top:12px;min-height:48px}
#speaking .speaker-bottom{margin:0;padding:28px 6%;background:#101919;border-top:1px solid #a3bc9c33}
.speaker-stage>.scene-scroll-cue{background:#101919dd;color:#d7edca}
/* The code portrait dissolves into the wave, then clears before the section unpins. */
.living-code .source-stage:after{content:'';position:absolute;inset:0;background:#eae8df;opacity:var(--code-wash,0);pointer-events:none;z-index:10}
.living-code .source-captions,.living-code .source-masthead,.living-code .source-footer,.living-code .living-code-capabilities{opacity:calc(1 - var(--code-exit,0))!important}
.living-code .source-progress{opacity:calc(1 - var(--code-exit,0))}
@media(min-width:761px) and (max-height:850px){
 #marketing .marketing-stage{padding-top:32px}
 #marketing .strategy-copy h2{font-size:clamp(38px,4.3vw,62px);margin:16px 0}
 #marketing .strategy-lead{font-size:15px;line-height:1.5}
 #marketing .strategy-cta{margin-top:18px}
 #marketing .strategy-chapters{bottom:20px;padding-top:10px}
 #marketing .strategy-chapters strong{font-size:19px;margin:8px 0}
 #speaking .speaker-copy{padding-top:36px}
 #speaking .speaker-copy h2{font-size:clamp(62px,7.3vw,98px);margin:20px 0}
}
@media(max-width:760px){
 #marketing .marketing-scroll{height:auto;min-height:0}
 #marketing .marketing-stage{position:relative;top:0;height:auto;min-height:0;padding:0 0 30px;overflow:visible;display:flex;flex-direction:column}
 #marketing .strategy-copy{position:relative;width:auto;padding:48px 24px 28px;order:1}
 #marketing .strategy-copy h2{font-size:clamp(34px,10.3vw,48px);margin:22px 0}
 #marketing .strategy-copy .eyebrow{font-size:11px;line-height:1.5}
 #marketing .strategy-lead{font-size:16px;line-height:1.6;max-width:100%}
 #marketing .strategy-cta{font-size:14px;min-height:48px}
 .strategy-art-scroll{display:block;position:relative;order:2;height:calc(clamp(280px,52svh,430px) + 65svh);width:100%}
 #marketing .strategy-photo{position:sticky;top:68px;inset-inline:0;bottom:auto;height:clamp(280px,52svh,430px)!important;width:100%;margin:0}
 #marketing .strategy-photo:after{background:linear-gradient(0deg,#eae8df,transparent 12%,transparent 90%,#eae8df)!important}
 #marketing .strategy-photo img{object-position:83% center!important}
 #marketing .strategy-chapters{position:relative;inset:auto;order:3;padding:10px 24px 15px;margin:0;background:#eae8df;gap:20px}
 #marketing .strategy-chapters strong{font-size:21px}
 #marketing .strategy-chapters p{font-size:14px}
 .scene-scroll-cue{bottom:12px;right:16px;font-size:10px}
 .speaker-scroll{height:175svh}
 .speaker-stage{top:68px;height:calc(100svh - 68px)}
 #speaking .speaker-atmosphere{height:36svh;inset:0 0 auto}
 #speaking .speaker-atmosphere img{object-position:92% 34%;object-fit:cover}
 #speaking .speaker-atmosphere:after{background:linear-gradient(0deg,#101919 0%,#10191955 20%,transparent 55%)}
 #speaking .speaker-copy{position:relative;width:auto;padding:calc(30svh - 8px) 24px 22px}
 #speaking .speaker-copy .eyebrow{font-size:10px;line-height:1.4;margin:0 0 12px;padding:0;background:none;max-width:100%;color:#e8eee6}
 #speaking .speaker-copy h2{font-size:clamp(46px,min(14vw,8svh),68px);line-height:.95;margin:0 0 16px}
 #speaking .speaker-statement{font-size:15px;line-height:1.5;margin:0 0 16px}
 #speaking .speaker-invite{font-size:13px;min-height:46px;margin:0;padding:12px 16px;gap:20px}
 #speaking .speaker-bottom{padding:24px}
 #speaking .speaker-bottom>div{font-size:11px;gap:10px;line-height:1.6}
 #speaking .speaker-bottom small{font-size:11px;margin-top:12px}
 .speaker-stage>.scene-scroll-cue{bottom:8px;font-size:9px}
}
/* Portrait tablets keep the speaker in frame instead of cropping him off the right. */
@media(min-width:761px) and (max-width:1024px){
 #speaking .speaker-atmosphere{height:48svh;inset:0 0 auto}
 #speaking .speaker-atmosphere img{object-position:92% 34%}
 #speaking .speaker-atmosphere:after{background:linear-gradient(0deg,#101919,transparent 65%)}
 #speaking .speaker-copy{width:auto;padding:calc(39svh - 8px) 6% 30px}
 #speaking .speaker-copy h2{font-size:clamp(54px,7vw,72px);margin:18px 0}
 #speaking .speaker-statement{margin:16px 0;font-size:16px}
}
/* Short screens and zoom retain ordinary document flow; nothing gets clipped. */
@media(max-height:680px){
 #marketing .marketing-scroll{height:auto}
 #marketing .marketing-stage{position:relative;height:auto;min-height:760px;top:0}
 #marketing .strategy-chapters{position:relative;inset:auto;margin-top:35px}
 .speaker-scroll{height:auto}
 .speaker-stage{position:relative;top:0;height:auto;min-height:690px}
 #speaking .speaker-copy{padding-top:48px;padding-bottom:40px}
 #speaking .speaker-stage>.scene-scroll-cue{display:none}
}
@media(max-width:760px) and (max-height:680px){
 #marketing .marketing-stage{min-height:0}
 #marketing .strategy-chapters{margin-top:0}
 #speaking .speaker-atmosphere{height:310px}
 #speaking .speaker-copy{padding-top:260px}
 #speaking .speaker-copy h2{font-size:54px}
}
.reading #marketing .marketing-scroll,.reading .strategy-art-scroll,.reading .speaker-scroll,.journey-static .speaker-scroll{height:auto!important}
.reading #marketing .marketing-stage,.reading .speaker-stage,.journey-static .speaker-stage{position:relative!important;top:0!important;height:auto!important;min-height:0!important}
.reading #marketing .strategy-chapters{position:relative;inset:auto;margin-top:40px}
.reading #marketing .strategy-photo{position:absolute}
.reading .scene-scroll-cue{display:none}
.reading .living-code .source-stage:after,.journey-static .living-code .source-stage:after{display:none}
.reading .living-code .source-captions,.reading .living-code .source-masthead,.reading .living-code .source-footer{opacity:1!important}
@media(max-width:760px){.reading #marketing .strategy-photo{position:relative;top:0}.reading #marketing .strategy-chapters{margin-top:0}.reading #speaking .speaker-copy{padding-top:280px}.reading #speaking .speaker-atmosphere{height:330px}}
