/* ELARIS — Middle School hero art (middle-page.css): a 3D atom, STEM at the centre */
.md-scene { position: relative; width: min(500px, 100%); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; }
.md-glow { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(74, 95, 209, .22), transparent 66%); }
.md-atom { position: relative; width: 380px; height: 380px; transform-style: preserve-3d; animation: md-tilt 18s ease-in-out infinite alternate; }
@keyframes md-tilt { from { transform: rotateX(-14deg) rotateY(-24deg); } to { transform: rotateX(14deg) rotateY(24deg); } }
.md-nuc { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ffe27a, #fdc500 55%, #c89400); box-shadow: 0 0 50px 14px rgba(253, 197, 0, .55); }
.md-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.md-ring.r1 { transform: rotateX(72deg); } .md-ring.r2 { transform: rotateX(72deg) rotateY(60deg); } .md-ring.r3 { transform: rotateX(72deg) rotateY(-60deg); }
.md-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(74, 95, 209, .6); animation: md-spin 7s linear infinite; }
.md-ring.r2 i { animation-duration: 9s; border-color: rgba(11, 138, 150, .6); } .md-ring.r3 i { animation-duration: 11s; animation-direction: reverse; border-color: rgba(138, 86, 184, .6); }
.md-ring i::after { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff, #4a5fd1 60%); box-shadow: 0 0 20px 6px rgba(74, 95, 209, .6); }
.md-ring.r2 i::after { background: radial-gradient(circle at 34% 28%, #fff, #0b8a96 60%); box-shadow: 0 0 20px 6px rgba(11, 138, 150, .6); } .md-ring.r3 i::after { background: radial-gradient(circle at 34% 28%, #fff, #8a56b8 60%); box-shadow: 0 0 20px 6px rgba(138, 86, 184, .6); }
@keyframes md-spin { to { transform: rotate(360deg); } }
.md-chip { position: absolute; padding: 11px 17px; border-radius: 14px; background: #fff; font: 800 15px/1 var(--font-heading); color: var(--x-navy); box-shadow: 0 18px 34px -14px rgba(0, 41, 107, .5); animation: md-bob 6s ease-in-out infinite; }
.md-chip.m1 { left: 4%; top: 18%; } .md-chip.m2 { right: 0; top: 30%; animation-delay: -2s; } .md-chip.m3 { left: 8%; bottom: 18%; animation-delay: -4s; } .md-chip.m4 { right: 8%; bottom: 8%; animation-delay: -1s; }
@keyframes md-bob { 50% { margin-top: -12px; } }
@media (max-width: 820px) { .md-scene { width: min(340px, 100%); } .md-atom { width: 250px; height: 250px; } .md-nuc { width: 54px; height: 54px; margin: -27px; } .md-chip { font-size: 12px; padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .md-atom, .md-ring i, .md-chip { animation: none; } }
