/* AZ_PORTFOLIO_HERO_3D_V1 — scoped to portfolio case-study heroes ONLY; no global layout changes. */
.page-hero-header.az-portfolio-hero3d-active {
  background: radial-gradient(ellipse at 75% 60%, rgba(31,63,101,.55) 0%, transparent 55%),
              linear-gradient(125deg,#07162b 0%,#0b2240 55%,#061527 100%) !important;
  isolation:isolate;
  overflow:hidden !important;
  min-width:0;
  min-height:620px;
}
.az-portfolio-hero3d-active .hero-content { width:100%; max-width:1240px; }
.az-portfolio-hero3d-active .hero-content .row { min-width:0; }
.az-portfolio-hero3d-active .hero-content .col-lg-7 { min-width:0; }
.az-portfolio-hero3d-active .hero-content h1 { line-height:1.22; text-wrap:balance; }
.az-portfolio-hero3d-active .hero-content .lead { line-height:1.75; }
.az-portfolio-hero3d-stage-col { position:relative; min-width:0; pointer-events:none !important; }
.az-portfolio-hero3d-stage { position:relative; height:clamp(320px,38vw,500px); width:100%; min-width:0; overflow:hidden; user-select:none; -webkit-user-select:none; outline:none; pointer-events:none; }
.az-portfolio-hero3d-glow {
  position:absolute; width:75%; height:68%; left:12.5%; top:17%; border-radius:50%;
  background:radial-gradient(ellipse,rgba(204,155,79,.19) 0%,rgba(58,105,164,.15) 34%,transparent 72%);
  filter:blur(20px); pointer-events:none;
}
.az-portfolio-hero3d-canvas {position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;outline:none;touch-action:auto;}
@media(max-width:991.98px) {
  .page-hero-header.az-portfolio-hero3d-active {min-height:0; padding-top:122px !important;padding-bottom:52px !important;}
  .az-portfolio-hero3d-active .hero-content h1 {font-size:clamp(1.8rem,6vw,3rem);}
  .az-portfolio-hero3d-stage {height:clamp(270px,69vw,405px); max-width:510px; margin:0 auto;}
  .az-portfolio-hero3d-stage-col {margin-top:22px;}
}
@media (max-width:575.98px) {
  .page-hero-header.az-portfolio-hero3d-active {padding-bottom:35px !important;}
  .az-portfolio-hero3d-active .hero-content .lead {font-size:1rem !important;line-height:1.7;}
  .az-portfolio-hero3d-stage {height:300px;}
}
@media(prefers-reduced-motion:reduce){.az-portfolio-hero3d-glow{filter:none;}}
