/*
 * AJVESTOR Intelligence — localized wheel interaction, DRAFT ONLY.
 * Shorten obsolete 280vh scroll track while preserving original fixed-height
 * sticky/visual display rules. The 3D card scene requires a measured height.
 */
@media (min-width:1001px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body.page-id-9236 #aji-architecture .aji-arch-scroll {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* Thinner, lighter mobile slabs: physical WebGL depth, fallback sidewalls,
   rounded geometry and contact spacing all read these shared CSS variables.
   A restrained 6px air gap is preserved by the controller's mobile gap rule. */
@media (max-width:1000px) {
  body.page-id-9236 #aji-architecture .aji-material-physical {
    --aji-slab-depth:13px!important;
    --aji-slab-bevel:3px!important;
  }
}
@media (max-width:600px) {
  body.page-id-9236 #aji-architecture .aji-material-physical {
    --aji-slab-depth:10px!important;
    --aji-slab-bevel:2.6px!important;
  }
}

/* Mobile touch-driven reveal: re-enable 3D arrival/reverse travel only while
   a central-card swipe is animating; original static/mobile mode is otherwise
   untouched. Outside the cards, ordinary vertical page scroll stays native. */
@media (max-width:1000px) and (prefers-reduced-motion:no-preference) {
  body.page-id-9236 #aji-architecture[data-aji-mobile-touch-animating="true"] .aji-plate {
    transform:translateZ(var(--aji-z))
      translate3d(var(--aji-entry-x,0px),var(--aji-entry-y,0px),var(--aji-entry-z,0px))
      rotateX(var(--aji-landing-tilt,0deg));
  }
}

/* Recover the unused upper theater space without reducing card size or
   changing the content below the scene. */
/* Tighten the blank space above the first visible card at every breakpoint.
   Keep the 3D card dimensions and preserve clearance for the descending layer. */
@media (min-width:1001px) {
  body.page-id-9236 #aji-architecture .aji-arch-visual {
    padding-top:6px!important;
  }
  body.page-id-9236 #aji-architecture .aji-studio-display {
    max-height:610px!important;
  }
}
@media (max-width:1000px) {
  body.page-id-9236 #aji-architecture .aji-arch-visual {
    padding-top:5px!important;
    padding-bottom:14px!important;
  }
  body.page-id-9236 #aji-architecture .aji-studio-body {
    gap:18px!important;
    margin-top:8px!important;
  }
  body.page-id-9236 #aji-architecture .aji-studio-display {
    height:380px!important;
  }
  body.page-id-9236 #aji-architecture .aji-arch-panel {
    margin-top:0!important;
  }
}
@media (max-width:600px) {
  body.page-id-9236 #aji-architecture .aji-arch-visual {
    padding-top:3px!important;
    padding-bottom:10px!important;
  }
  body.page-id-9236 #aji-architecture .aji-studio-body {
    gap:11px!important;
    margin-top:4px!important;
  }
  body.page-id-9236 #aji-architecture .aji-studio-display {
    height:clamp(265px,76vw,290px)!important;
  }
  body.page-id-9236 #aji-architecture .aji-panel-head {
    margin-bottom:10px!important;
  }
}
