/* Same scroll-driven scenes as desktop, with phone-sized layouts. */
@media (max-width:900px){
  html{scroll-padding-top:12px}
  .agency{max-width:100%;overflow-x:clip;overflow-y:visible}
  .ref-hero{height:auto;min-height:100svh;padding:140px 20px 64px;display:flex;align-items:center}
  .ref-copy{position:relative;inset:auto;width:100%;margin-top:40px}
  .ref-copy h1{font-size:clamp(62px,17vw,102px)}
  .ref-copy h2,.ref-copy>p{max-width:100%}
  .ref-side-note,.ref-scroll{display:none}
  .ref-menu-panel{max-height:calc(100dvh - 100px);overscroll-behavior-y:contain}
  .bridge-motion-scroll{height:190svh}
  .bridge-motion-sticky{height:100svh;min-height:0;padding:36px 20px 18px}
  .bridge-intro h2{font-size:clamp(34px,10vw,44px);line-height:1.03}
  .bridge-kicker{margin-bottom:18px;font-size:8px}
  .bridge-intro>p{font-size:14px;line-height:1.45;margin-top:18px}
  .bridge-orb{width:min(64vw,300px);flex-shrink:0;margin:auto auto 0}
  .bridge-window-bar{height:30px;padding:0 11px;font-size:6px}
  .bridge-window-copy small{margin-bottom:12px}
  .bridge-window-copy strong{font-size:clamp(22px,6.5vw,29px)}
  .bridge-window-copy>span{font-size:5px;margin-top:14px}
  .bridge-window-card{padding:10px}
  .bridge-window-card b{font-size:23px;margin:9px 0}
  .bridge-pillars{padding:48px 20px 56px}
  .service-video{display:block}
  .service-feature{height:calc(100svh - 28px);min-height:0;grid-template-columns:1fr;grid-template-rows:34% minmax(0,1fr);margin-bottom:7svh}
  .service-feature-main{padding:22px 20px}
  .service-feature-number{margin-bottom:0}
  .service-feature-main h3{font-size:clamp(30px,9.2vw,42px);line-height:1.02;margin:16px 0 12px}
  .service-tags span{font-size:9px;padding:6px 8px}
  .service-feature-main p{font-size:14px;line-height:1.45;margin:14px 0}
  .service-feature-main>a{min-height:42px}
  .framework-scroll{height:500svh;min-height:0}
  .framework-sticky{height:100svh;min-height:0}
  .framework-content{padding:28px 14px 22px}
  .framework-stage{height:100%;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  .framework-stage .framework-copy{min-height:265px;padding:0 4px 16px}
  .framework-copy h3{font-size:clamp(30px,8.8vw,40px);line-height:1.02;margin:14px 0}
  .framework-copy p{font-size:14px;line-height:1.5}
  .framework-copy>a{min-height:42px;margin-top:14px}
  .framework-dots{gap:4px;min-height:44px}
  .framework-dots button,.framework-dots button.is-active{position:relative;width:44px;height:44px;background:transparent;border:0}
  .framework-dots button:before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;transform:translate(-50%,-50%);border-radius:99px;background:#ffffff55;transition:width .25s,background .25s}
  .framework-dots button.is-active:before{width:24px;background:#fff}
  .framework-deck{min-height:0;margin:4px 22px 10px 4px;perspective:1000px;touch-action:pan-y pinch-zoom}
  .phase-card{touch-action:pan-y pinch-zoom;overscroll-behavior-y:auto}
  /* Clip decorative overflow without introducing hidden inner scroll areas. */
  .bridge-motion-sticky,.framework-sticky,.framework-stage,.phase-card,.phase-photo,.immersion-intro,.immersion-sticky,.immersion-media{overflow:clip}
  .immersion-intro{min-height:0;padding:90px 20px 64px}
  .immersion-intro h2{font-size:clamp(48px,13vw,76px);line-height:.98}
  .immersion-intro>p{width:100%;margin-top:28px;line-height:1.6}
  .immersion-scroll{height:500svh;min-height:0}
  .immersion-sticky{height:100svh;min-height:0;touch-action:pan-y pinch-zoom}
  .immersion-stage{position:absolute;inset:0;perspective:900px;touch-action:pan-y pinch-zoom}
  .immersion-scene,.immersion-scene.is-active{position:absolute;inset:0;height:auto}
  .immersion-card{left:50%;top:32%;width:min(calc(100vw - 40px),64svh);height:auto;aspect-ratio:16/10;border-radius:20px;transform:translate(-50%,-50%) translate3d(calc(var(--scene-distance)*112vw),calc(var(--scene-abs)*2vh),calc(var(--scene-abs)*-160px)) rotateY(calc(var(--scene-distance)*-11deg)) rotateZ(calc(var(--scene-distance)*-3deg)) scale(calc(1 - var(--scene-abs)*.06))}
  .immersion-media>img{height:100%}
  .immersion-project-title{left:20px;right:20px;top:59%;bottom:auto}
  .immersion-project-title span,.immersion-project-title em{font-size:clamp(38px,12vw,58px);line-height:.9}
  .immersion-project-meta{left:20px;right:20px;bottom:64px;width:auto;font-size:12px;line-height:1.4;gap:10px}
  .immersion-project-meta b{font-size:8px;line-height:1.5;letter-spacing:.08em}
  .immersion-pagination{right:50%;top:auto;bottom:4px;width:calc(100% - 24px);flex-direction:row;justify-content:center;gap:0;transform:translateX(50%)}
  .immersion-pagination button{flex:1;min-width:0;max-width:44px;width:auto;height:44px;justify-content:center}
  .immersion-pagination button span{display:block;font-size:8px}
  .immersion-pagination button i{width:8px}
  .immersion-card-index,.immersion-card-live{font-size:7px;padding:8px 9px}
  .contact-center-card{max-width:calc(100% - 32px)}
  .contact-center-card h2{font-size:clamp(40px,12vw,58px)}
}
@media (max-width:900px) and (max-height:650px){
  .bridge-motion-sticky{padding:22px 20px 14px}
  .bridge-intro h2{font-size:clamp(30px,9.5vw,37px)}
  .bridge-intro>p{font-size:12px;line-height:1.4;margin-top:14px}
  .bridge-orb{width:54vw}
  .bridge-kicker{margin-bottom:14px}
  .service-feature{grid-template-rows:27% minmax(0,1fr)}
  .service-feature-main{padding:16px 18px}
  .service-feature-main h3{font-size:clamp(28px,8.5vw,34px);margin:12px 0 10px}
  .service-feature-main p{font-size:12.5px;line-height:1.4;margin:10px 0}
  .framework-content{padding:18px 12px 12px}
  .framework-stage .framework-copy{min-height:240px;padding-bottom:10px}
  .framework-copy h3{font-size:30px;margin:10px 0}
  .framework-copy p{font-size:13px;line-height:1.4}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
  .bridge-motion-sticky{flex-direction:row;align-items:center;gap:20px;padding:20px}
  .bridge-intro{width:56%;flex:1}
  .bridge-intro h2{font-size:clamp(26px,4.5vw,34px)}
  .bridge-intro>p{font-size:12px}
  .bridge-orb{width:30vw;flex:0 0 30vw;margin:0}
  .framework-stage{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr);gap:16px}
  .framework-stage .framework-copy{min-height:0}
  .framework-copy h3{font-size:27px}
  .framework-copy p{font-size:12px}
  .framework-deck{margin:10px 20px 20px 0}
  .immersion-card{left:26%;top:45%;width:min(42vw,64svh)}
  .immersion-project-title{left:53%;right:18px;top:26%}
  .immersion-project-title span,.immersion-project-title em{font-size:clamp(30px,5.8vw,42px)}
  .immersion-project-meta{left:53%;bottom:65px}
  .service-feature{grid-template-columns:1fr 1fr;grid-template-rows:1fr;height:calc(100svh - 28px)}
  .service-feature-visual{grid-column:2;grid-row:1}
  .service-feature-main{grid-column:1;grid-row:1;padding:14px}
  .service-feature-main h3{font-size:26px}
  .service-feature-main p{font-size:12px}
  .service-tags span{font-size:8px;padding:4px 6px}
  .service-feature-main>a{min-height:34px;font-size:8px}
}
