/* Mobile composition for the existing scroll story. Desktop rules and choreography stay in their original assets. */
@media (max-width:700px) {
  html:not(.static-home) .unified-scroll.depth-scene:not(.is-static) .canvas-copy { top:38px; }
  .depth-scene .canvas-copy .location { font-size:9px; margin-bottom:12px; }
  .depth-scene .unified-headline { --depth-text-size:clamp(23px,6.2vw,28px); }
  .depth-scene .depth-suffix { max-width:21ch; margin:8px auto 0; text-wrap:balance; }
  .depth-scene .canvas-body { font-size:14px; line-height:1.5; margin-top:14px; }
  .depth-scene .canvas-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:10px; margin-top:16px; }
  .depth-scene .canvas-actions .button,.depth-scene .canvas-secondary { min-height:48px; padding:12px 9px; font-size:12px; justify-content:center; gap:10px; }
  .depth-scene .canvas-call { display:block; font-size:10px; margin-top:8px; }
  .depth-scene .unified-network .canvas-tool small { font-size:8px; }
  .depth-scene .unified-art { bottom:64px; }
  .depth-scene:not(.is-static) .unified-model { top:0; transform:none; }
  .depth-scene:not(.is-static) .unified-stack-anchor { top:0; transform:translateX(-50%); }
  .depth-scene .depth-playback { top:3px; }
  .depth-scene .depth-playback button { min-height:30px; font-size:10px; }
  .depth-scene .unified-progress { bottom:max(8px,env(safe-area-inset-bottom)); padding-top:4px; }
  .depth-scene .unified-progress button { min-height:44px; font-size:11px; }
}
@media (max-width:700px) and (max-height:740px) {
  html:not(.static-home) .unified-scroll.depth-scene:not(.is-static) .canvas-copy { top:34px; }
  .depth-scene .canvas-copy .location { margin-bottom:8px; }
  .depth-scene .canvas-body { font-size:13px; margin-top:10px; }
  .depth-scene .canvas-actions { margin-top:12px; }
  .depth-scene .canvas-actions .button,.depth-scene .canvas-secondary { min-height:44px; }
}
@media (max-width:700px) {
  :root .unified-scroll.depth-scene .unified-stage { background:radial-gradient(ellipse at 50% 64%,#91b7ed18,transparent 65%),color-mix(in srgb,#e9eff7,#06152a calc(var(--depth-navy)*100%)); }
  html:not(.static-home) .depth-scene:not(.is-static) .unified-stage { height:100svh; }
  .depth-scene .depth-word { font-size:clamp(58px,15vw,68px)!important; }
  .depth-scene .unified-network .canvas-stage { display:flex; flex-direction:column; padding-bottom:0; margin:8px 0 0; }
  .depth-scene .unified-network .canvas-tools { order:2; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px 2px; margin-top:44px; padding:10px 4px; border:1px solid #aac5e152; border-radius:16px; background:#ffffff40; }
  .depth-scene .unified-network .canvas-tool:nth-child(n) { grid-column:auto; height:48px; gap:4px; }
  .depth-scene .unified-network .canvas-tool>span { width:34px; height:34px; border-radius:10px; box-shadow:0 4px 10px #234e8412,inset 0 1px 0 #fff; }
  .depth-scene .unified-network .canvas-tool img { width:23px; height:23px; }
  .unified-scroll.depth-scene .unified-network .canvas-core.logo-hub { order:1; margin:0 auto; --partner-gap:16px; width:260px; }
  .depth-scene .unified-network .canvas-core::before { top:100%; bottom:auto; height:40px; background:linear-gradient(#6e9cdb,#6e9cdb00); }
  .depth-scene .canvas-mobile-packet { display:none; }
  .depth-scene .partnership-caption { top:calc(100% + 10px); font-size:11px; }
  .depth-scene .unified-progress { border-top:0; }
  .depth-scene .unified-progress>div:first-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; padding:3px; border:1px solid color-mix(in srgb,#bfd0e8,#42638e calc(var(--depth-navy)*100%)); border-radius:12px; }
  .depth-scene .unified-progress button { padding-inline:3px; border-radius:8px; }
  .depth-scene .unified-progress button[aria-pressed="true"] { background:color-mix(in srgb,#d6e4f6,#17385f calc(var(--depth-navy)*100%)); text-decoration:none; }
}
@media (max-width:700px) and (max-height:740px) {
  .depth-scene .depth-word { font-size:54px!important; }
  .depth-scene .unified-network .canvas-tool:nth-child(n) { height:44px; gap:3px; }
  .depth-scene .unified-network .canvas-tool>span { width:30px; height:30px; }
  .depth-scene .unified-network .canvas-tool img { width:21px; height:21px; }
}

/* A compact grid fades as one group instead of using the desktop tile flight coordinates. */
@media (max-width:700px) {
  .depth-scene .unified-network .canvas-tool { translate:0!important; }
  .depth-scene[data-disconnecting="true"] .canvas-tools { opacity:0; transform:translateY(12px); }
}
@media (max-width:700px) and (prefers-reduced-motion:no-preference) {
  .depth-scene .canvas-tools { transition:opacity .24s ease,transform .3s ease; }
}

/* Short phones retain full-size type and actions. Tools use a native swipe rail to clear the story controls. */
@media (max-width:700px) and (max-height:740px) {
  .depth-scene .unified-network .canvas-tools { display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:thin; padding:8px; }
  .depth-scene .unified-network .canvas-tool:nth-child(n) { flex:0 0 44px; scroll-snap-align:start; }
}
@media (max-height:479px) and (pointer:coarse) {
  .depth-scene.is-static .canvas-actions .button,.depth-scene.is-static .canvas-secondary { min-height:44px; }
}
