/* V38: approved quantum tile illustration + softly animated glyphs.
   Isolated to homepage, keeps the graphite nav and all existing sections untouched. */
body[data-current-section="home"] .home-container .hero-visual {
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none !important;
}
body[data-current-section="home"] .quantum-visual-stage {
  position:relative;
  height:100%;
  max-height:540px;
  max-width:100%;
  aspect-ratio:1198 / 1313;
  flex:0 1 auto;
  animation:quantum-stage-float 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 13px 19px rgba(43,60,107,.10));
}
body[data-current-section="home"] .home-container .hero-visual .quantum-visual-stage img {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  object-fit:fill;
  filter:none;
  animation:none !important;
  transform:none !important;
}
.quantum-glyph {
  position:absolute;
  z-index:2;
  left:var(--qx);
  top:var(--qy);
  transform:translate(-50%,-50%) translateY(2px);
  font:500 clamp(13px,2.1vw,31px)/1.1 Georgia, 'Times New Roman',serif;
  opacity:0;
  white-space:nowrap;
  pointer-events:none;
  animation:quantum-glyph-cycle 9.6s ease-in-out infinite;
  animation-delay:var(--delay);
  text-shadow:0 0 6px rgba(255,255,255,.3);
}
.quantum-glyph--light {color:#FFFFFF}
.quantum-glyph--dark {color:#1E4371}
@keyframes quantum-glyph-cycle {
  0%,7%,49%,100% { opacity:0; transform:translate(-50%,-50%) translateY(3px); }
  16%,35% {opacity:.92; transform:translate(-50%,-50%) translateY(0);}
}
@keyframes quantum-stage-float {
  from { transform:translateY(4px) rotate(-.25deg); }
  to { transform:translateY(-5px) rotate(.25deg); }
}
@media(max-width:850px){
  body[data-current-section="home"] .quantum-glyph {font-size:clamp(13px,3.1vw,21px)}
}
@media(max-width:660px){
  body[data-current-section="home"] .home-container .hero-visual {height:318px;min-height:0;max-height:none;}
  body[data-current-section="home"] .quantum-glyph {font-size:clamp(12px,3.7vw,18px)}
}
@media(max-width:375px){
  body[data-current-section="home"] .home-container .hero-visual {height:286px;}
}
@media(prefers-reduced-motion:reduce){
  body[data-current-section="home"] .quantum-visual-stage,
  body[data-current-section="home"] .quantum-glyph {animation:none!important;}
  body[data-current-section="home"] .quantum-glyph {opacity:0;}
}
