/* Optional shared opportunities hero: the artwork sits above copy on phones. */
.corp-opportunities .corp-hero.corp-hero--particles { padding-block: 38px 64px; }
.corp-opportunities .corp-hero.corp-hero--particles .corp-hero-copy { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 clamp(28px,4vw,68px); align-items: center; }
.corp-hero--particles .corp-hero-heading { grid-column: 1; align-self: end; }
.corp-hero--particles .corp-opportunity-intro { grid-column: 1; align-self: start; padding-top: 28px; }
.corp-opportunities .corp-hero.corp-hero--particles h1 { font-size: clamp(3rem,5.1vw,5.3rem); max-width: 12ch; }
.corp-hero--particles .career-particles { grid-column: 2; grid-row: 1 / 3; }
.career-particles { min-width: 0; color: var(--nemely-color-editorial-navy); --career-orange: var(--nemely-color-orange); }
.career-particles-stage { position: relative; width: 100%; aspect-ratio: 1.18; isolation: isolate; }
.career-particles-stage::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 11%; height: 6%; border-radius: 50%; background: var(--nemely-color-editorial-navy); opacity: .06; filter: blur(12px); z-index: -1; }
.career-particles-stage canvas,.corp-page .career-particles-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.career-particles-stage canvas { visibility: hidden; }
.career-particles[data-ready] canvas { visibility: visible; }
.career-particles[data-ready] .career-particles-still { visibility: hidden; }
.career-dot-navy { stop-color: var(--nemely-color-editorial-navy); }
.career-dot-orange { stop-color: var(--nemely-color-orange); }
.corp-page .career-particles figcaption { min-height: 3.2em; max-width: 35ch; margin: 0 auto; text-align: center; color: var(--nemely-color-muted-ink); font-size: .88rem; line-height: 1.6; }
@media (max-width: 760px) {
  .corp-opportunities .corp-hero.corp-hero--particles { padding-block: 20px 42px; }
  .corp-opportunities .corp-hero.corp-hero--particles .corp-hero-copy { grid-template-columns: minmax(0,1fr); gap: 0; }
  .corp-hero--particles .career-particles { grid-column: 1; grid-row: 1; width: min(100%,480px); justify-self: center; margin-bottom: 36px; }
  .career-particles-stage { aspect-ratio: 1.35; }
  .corp-opportunities .corp-hero.corp-hero--particles h1 { font-size: clamp(2.8rem,9.3vw,4.8rem); }
  .corp-hero--particles .corp-opportunity-intro { padding-top: 24px; }
  .corp-page .career-particles figcaption { font-size: .8rem; }
}

/* Loose spheres carry the artwork into the open space around the hero copy. */
.career-particles-ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; visibility: hidden; }
.career-particles[data-ready] .career-particles-ambient { visibility: visible; }
.career-particles-ambient span { position: absolute; left: var(--ball-x); top: var(--ball-y); width: var(--ball-size,14px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--nemely-color-white) -60%, var(--nemely-color-orange) 40%, var(--nemely-color-orange) 85%); animation: career-ball-drift var(--ball-duration,6s) ease-in-out infinite alternate; animation-delay: var(--ball-delay,0s); animation-play-state: paused; }
.career-particles[data-running] .career-particles-ambient span { animation-play-state: running; }
.career-particles-ambient span:nth-child(1) { --ball-x: 6%; --ball-y: 8%; --ball-size: 14px; --ball-delay: -2s; }
.career-particles-ambient span:nth-child(2) { --ball-x: 31%; --ball-y: 2%; --ball-size: 9px; --ball-duration: 7s; --ball-delay: -4s; }
.career-particles-ambient span:nth-child(3) { --ball-x: 48%; --ball-y: 20%; --ball-size: 18px; --ball-delay: -1s; }
.career-particles-ambient span:nth-child(4) { --ball-x: 97%; --ball-y: 12%; --ball-size: 11px; --ball-duration: 5s; }
.career-particles-ambient span:nth-child(5) { --ball-x: 99%; --ball-y: 72%; --ball-size: 15px; --ball-delay: -3s; }
.career-particles-ambient span:nth-child(6) { --ball-x: 64%; --ball-y: 95%; --ball-size: 8px; --ball-duration: 8s; --ball-delay: -5s; }
.career-particles-ambient span:nth-child(7) { --ball-x: 19%; --ball-y: 96%; --ball-size: 17px; --ball-delay: -4s; }
.career-particles-ambient span:nth-child(8) { --ball-x: 1%; --ball-y: 84%; --ball-size: 10px; --ball-duration: 7s; --ball-delay: -2s; }
@keyframes career-ball-drift { 0% { transform: translate(-9px,8px); } 50% { transform: translate(10px,-12px); } 100% { transform: translate(-4px,-24px); } }
@media (max-width: 760px) {
  .career-particles-ambient { bottom: auto; height: 240px; }
  .career-particles-ambient span:nth-child(n+5) { display: none; }
  .career-particles-ambient span:nth-child(3) { --ball-x: 1%; --ball-y: 70%; --ball-size: 11px; }
}
