/* VB Professional – isolated rotating emblem for homepage HERO.
   Hero artwork and text stay motionless. Pure local CSS, no iframe/CDN. */
:is(.hero, .page-hero) .vb-hero-emblem {
  position:absolute;
  z-index:5;
  /* Centered in the right-side visual space, away from the headline. */
  top:44%;
  left:77%;
  right:auto;
  transform:translate(-50%, -50%);
  width:clamp(247px,24.7vw,390px); /* 30% above previous desktop dimensions */
  aspect-ratio:1137 / 931;
  pointer-events:none;
  perspective:1050px;
  -webkit-perspective:1050px;
  display:grid;
  place-items:center;
  isolation:isolate;
}
:is(.hero, .page-hero) .vb-hero-emblem::before {
  content:"";
  position:absolute;
  z-index:-1;
  width:130%;
  height:134%;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(207,168,92,.16),rgba(21,83,56,.07) 40%,transparent 70%);
  filter:blur(19px);
}
:is(.hero, .page-hero) .vb-logo-rotor {
  position:relative;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  transform:rotateX(-7deg) rotateY(0deg);
  animation:vbHeroTurntable 22s linear infinite;
  will-change:transform;
}
:is(.hero, .page-hero) .vb-logo-rotor img {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}
:is(.hero, .page-hero) .vb-logo-front,
:is(.hero, .page-hero) .vb-logo-back {
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  filter:drop-shadow(0 10px 13px rgba(0,0,0,.22));
}
:is(.hero, .page-hero) .vb-logo-front { transform:translateZ(12px); }
:is(.hero, .page-hero) .vb-logo-back  { transform:rotateY(180deg) translateZ(12px); }
:is(.hero, .page-hero) .vb-logo-edge {
  opacity:.7;
  filter:brightness(.33) sepia(.58) saturate(1.9);
  backface-visibility:visible;
}
@keyframes vbHeroTurntable {
  from{transform:rotateX(-7deg) rotateY(0deg)}
  to{transform:rotateX(-7deg) rotateY(360deg)}
}
@media(max-width:1100px){
  :is(.hero, .page-hero) .vb-hero-emblem{
    top:44%;
    left:77%;
    right:auto;
    width:clamp(213px,24.7vw,299px);
  }
}
@media(max-width:930px) and (min-width:621px){
  :is(.hero, .page-hero) .vb-hero-emblem{
    /* Keep emblem above the title when the right-side space narrows. */
    top:17%;
    left:77%;
    right:auto;
    width:clamp(176px,26vw,234px);
  }
}
@media(max-width:620px){
  :is(.hero, .page-hero) .vb-hero-emblem {
    transform:none; /* Preserve mobile centering */
    position:relative;
    top:auto;
    right:auto;
    left:auto;
    width:clamp(179px,46.8vw,229px);
    margin:5px auto 38px;
    flex-shrink:0;
    z-index:4;
  }
}
@media(prefers-reduced-motion:reduce){
  :is(.hero, .page-hero) .vb-logo-rotor {
    animation:none;
    transform:rotateX(-7deg) rotateY(-10deg);
    will-change:auto;
  }
}

/* Keep long inner-page headlines and descriptions clear of the metallic emblem. */
@media(min-width:931px){
 .page-hero .page-hero-body{
   box-sizing:border-box;
   padding-right:clamp(290px,35vw,470px);
 }
 .page-hero .page-hero-body h1{max-width:660px}
 .page-hero .page-hero-body .lead{max-width:600px}
}
@media(min-width:621px) and (max-width:930px){
 .page-hero .page-hero-body{
   box-sizing:border-box;
   padding-right:clamp(185px,29vw,285px);
 }
 .page-hero .page-hero-body h1{font-size:clamp(2.7rem,4.3vw,4rem)}
}
@media(max-width:620px){
 .page-hero .page-hero-body{padding-right:0}
 .page-hero .vb-hero-emblem{margin-top:20px;margin-bottom:10px}
}

/* Mobile-only fine tuning: lower the rotating 3D emblem by ~20% of the
   mobile viewport height (112–180px), creating real breathing room above it.
   Keep tablet/desktop position and the 3D rotor animation unchanged. */
@media (max-width:620px) {
  :is(.hero, .page-hero) .vb-hero-emblem {
    --vb-mobile-logo-drop: clamp(112px, 20svh, 180px);
  }
  .hero .vb-hero-emblem {
    margin-top: calc(5px + var(--vb-mobile-logo-drop));
  }
  .page-hero .vb-hero-emblem {
    margin-top: calc(20px + var(--vb-mobile-logo-drop));
  }
}
