/* V6.12: phone-first layout; desktop presentation is unchanged. */
@media (max-width: 900px) {
 html,body{max-width:100%;overflow-x:clip}
 .container{width:calc(100% - 36px);max-width:680px}
 img,video,iframe{max-width:100%}
 .hero-grid{display:flex;flex-direction:column;gap:22px;min-height:0;padding:50px 0 48px}
 .hero-copy,.hero-visual{width:100%;min-width:0}
 .hero h1{font-size:clamp(40px,10vw,65px);letter-spacing:-.045em;line-height:1.08}
 .hero-copy>p{font-size:16px;line-height:1.65}
 .hero-visual{height:auto;min-height:0}
 .hero-visual .app-window{position:relative;top:auto;left:auto;width:100%;height:auto;aspect-ratio:600/392;transform:none}
 .hero-visual .orbit{display:none}
 .hero-visual .app-body{height:calc(100% - 35px)}
 .topbar{height:66px;padding-inline:18px}
 .topbar nav{max-height:calc(100dvh - 66px);overflow-y:auto}
 .cinematic-chapter{height:auto!important;min-height:0!important;padding:52px 0!important}
 .cinematic-chapter .cinematic-sticky{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;width:calc(100% - 32px)!important;margin-inline:auto!important;padding:20px 14px!important}
 .cinematic-chapter h2,.arch-pause h2{font-size:clamp(30px,8vw,49px)!important;line-height:1.12!important;overflow-wrap:break-word}
 .cinematic-chapter [class*="grid"],.cinematic-chapter [class*="view"]{min-width:0}
 .v7-three{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;scrollbar-width:thin;overscroll-behavior-inline:contain}
 .v7-pillar{flex:0 0 min(82vw,350px)!important;scroll-snap-align:center}
 .v5-stages,.v5-role-buttons,.v7-tool-buttons{display:flex;overflow-x:auto;max-width:100%;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
 .v5-stages button,.v5-role-buttons button,.v7-tool-buttons button{scroll-snap-align:center;min-height:44px}
 .v7-stage,.v7-tool-view{display:grid;grid-template-columns:minmax(0,1fr)!important}
 .v7-stage-media img,.v7-tool-view img{object-fit:contain;max-height:42vh}
 .journey-layout{display:flex;flex-direction:column!important}
 .journey-visual{position:relative!important;top:auto!important;order:0;width:100%;z-index:1}
 .journey-steps{order:1;width:100%}
 .journey-step{min-height:42vh;opacity:.65;transform:none;padding:24px 12px 24px 18px}
 .journey-step.is-active{opacity:1}
 .journey-screen{height:clamp(190px,45vw,300px)}
 .journey-window-bar{font-size:9px;gap:8px}
 .rv-video-section{grid-template-columns:minmax(0,1fr)!important;gap:20px}
 .rv-services{grid-template-columns:minmax(0,1fr)!important}
 .rv-price-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .rv-preview-video{min-height:190px}
 .arch-pause{min-height:42vh}
 .button,.plan-button{min-height:44px}
}
@media(max-width:600px){
 .rv-price-grid{grid-template-columns:minmax(0,1fr)!important}
 .hero h1{font-size:clamp(38px,10vw,52px)}
 .hero-visual .app-side{width:25%;padding:8px 3px;font-size:7px}
 .hero-visual .app-main{padding:10px}
 .hero-visual .app-main h3{font-size:13px}
 .hero-visual .metrics{margin:8px 0}
 .hero-visual .metrics div{padding:5px}
 .hero-visual .metrics strong{font-size:12px}
 .hero-visual .property-card{height:70px}
 .hero-visual .building-art{width:35%}
 .journey-step h3{font-size:clamp(25px,7vw,36px)}
 .journey-step p{max-width:none}
 .v7-pillar{flex-basis:84vw!important}
}
@media(prefers-reduced-motion:reduce){.journey-step{transition:none!important}}

/* V6.14 safe mobile: never trap vertical scrolling in a sticky chapter. */
@media(max-width:900px){
 html,body{overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y pinch-zoom;}
 .cinematic-chapter{height:auto!important;min-height:0!important;overflow:visible!important;}
 .cinematic-chapter .cinematic-sticky{position:relative!important;top:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;}
 #features .v7-three{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;scroll-snap-type:none!important;}
 #features .v7-pillar{display:flex!important;flex-basis:auto!important;width:100%!important;min-height:155px!important;overflow:visible!important;transform:none!important;opacity:1!important;}
 .journey-visual{display:none!important;}
 .journey-step{min-height:0!important;opacity:1!important;padding:22px 12px!important;margin-bottom:18px!important;}
 .rv-mobile-stage-image{display:block;width:100%;height:auto;max-height:250px;object-fit:contain;margin:18px 0 8px;border:1px solid rgba(255,255,255,.16);border-radius:8px;}
 .rv-mobile-swipe-note{font-size:12px;opacity:.75;margin:8px 0;text-align:center;}
 .v7-pillar{overflow-wrap:anywhere;}
}
