/* Inner pages art layer: the same 3D brand objects as the home page anchor each hero and
   every closing plate. Loaded on brand pages other than the home page. */
body.nk-refined #main-content > .nk-inner-hero > .max-w-7xl { position:relative; }
body.nk-refined .nk-hero-object { position:absolute; pointer-events:none; background:center/contain no-repeat; filter:drop-shadow(0 20px 28px #4031ff2a); animation:nk-float 5.5s ease-in-out infinite alternate; }
@keyframes nk-float { from { translate:0 0; } to { translate:0 -12px; } }

/* Hero objects, one per page, in the empty corner of each composition */
body.nk-refined[data-page=news] #main-content > .nk-inner-hero > .max-w-7xl::after { content:''; position:absolute; right:56px; top:48px; width:220px; height:220px; pointer-events:none; background:url(/images/3d/newspaper.webp) center/contain no-repeat; filter:drop-shadow(0 20px 28px #4031ff2a); animation:nk-float 5.5s ease-in-out infinite alternate; }
body.nk-refined[data-page=news] .nk-news-intro > [data-animate="news-left"] { padding-right:300px; }
body.nk-refined[data-page=program] #main-content > .nk-inner-hero > .nk-program-intro::after { content:''; position:absolute; right:40px; top:14px; width:118px; height:118px; pointer-events:none; background:url(/images/3d/megaphone.webp) center/contain no-repeat; filter:drop-shadow(0 16px 24px #00000055); animation:nk-float 5.5s ease-in-out infinite alternate; }
body.nk-refined[data-page=team] #main-content > .nk-inner-hero > .nk-team-intro::after { content:''; position:absolute; left:8px; bottom:-8px; width:150px; height:150px; pointer-events:none; background:url(/images/3d/puzzle.webp) center/contain no-repeat; filter:drop-shadow(0 16px 24px #4031ff26); animation:nk-float 5.5s ease-in-out infinite alternate; }
body.nk-refined[data-page=portfolio] .nk-inner-hero dl { position:relative; }
body.nk-refined[data-page=portfolio] .nk-inner-hero dl::after { content:''; position:absolute; right:-6px; top:-92px; width:96px; height:96px; pointer-events:none; background:url(/images/3d/chart.webp) center/contain no-repeat; filter:drop-shadow(0 12px 18px #4031ff26); animation:nk-float 5.5s ease-in-out infinite alternate; }

/* Closing plates: deep-blue gradient like the home closing plate, with a page-specific object */
body.nk-refined #main-content .nk-page-cta { background:radial-gradient(900px 480px at 100% 0%,#8c43ff73,transparent 62%),linear-gradient(135deg,#4a3cff 0%,#2f22d1 55%,#171553 100%)!important; }
body.nk-refined #main-content .nk-page-cta > .max-w-7xl { position:relative; }
body.nk-refined #main-content .nk-page-cta > .max-w-7xl::after { content:''; position:absolute; right:300px; top:50%; translate:0 -50%; width:200px; height:200px; pointer-events:none; background:center/contain no-repeat; filter:drop-shadow(0 22px 30px #0b0a3a66); animation:nk-float 6s ease-in-out infinite alternate; }
body.nk-refined[data-page=portfolio] #main-content .nk-page-cta > .max-w-7xl::after { background-image:url(/images/3d/cubes.webp); }
body.nk-refined[data-page=program] #main-content .nk-page-cta > .max-w-7xl::after { background-image:url(/images/3d/plane.webp); }
body.nk-refined[data-page=team] #main-content .nk-page-cta > .max-w-7xl::after { background-image:url(/images/3d/rings.webp); }
body.nk-refined[data-page=news] #main-content .nk-page-cta > .max-w-7xl::after { background-image:url(/images/3d/envelope.webp); }
body.nk-refined #main-content .nk-page-cta a { background:#fff!important; color:#11113a!important; border:0!important; box-shadow:0 10px 26px #0b0a3a33; }
body.nk-refined #main-content .nk-page-cta a:hover { background:#e6f54a!important; }
body.nk-refined #main-content .nk-page-cta p { max-width:520px!important; }

@media (max-width:1023px) {
  body.nk-refined #main-content .nk-page-cta > .max-w-7xl::after { right:0; top:0; translate:0 0; width:120px; height:120px; }
  body.nk-refined #main-content .nk-page-cta h2 { padding-right:130px; }
}
@media (max-width:767px) {
  body.nk-refined[data-page=news] #main-content > .nk-inner-hero > .max-w-7xl::after { right:0; top:0; width:110px; height:110px; }
  body.nk-refined[data-page=news] .nk-news-intro > [data-animate="news-left"] { padding-right:0; }
  body.nk-refined[data-page=news] .nk-news-intro h1 { padding-right:110px; }
  body.nk-refined[data-page=program] #main-content > .nk-inner-hero > .nk-program-intro::after { right:12px; top:12px; width:84px; height:84px; }
  body.nk-refined[data-page=program] .nk-program-intro h1 { padding-right:90px; }
  body.nk-refined[data-page=team] #main-content > .nk-inner-hero > .nk-team-intro::after { left:auto; right:0; bottom:auto; top:-6px; width:96px; height:96px; }
  body.nk-refined[data-page=team] .nk-team-intro h1 { padding-right:100px; }
  body.nk-refined[data-page=portfolio] .nk-inner-hero dl::after { width:72px; height:72px; top:-80px; right:0; }
  body.nk-refined #main-content .nk-page-cta > .max-w-7xl::after { width:96px; height:96px; }
  body.nk-refined #main-content .nk-page-cta h2 { padding-right:104px; }
}

body.nk-refined[data-page=team] .tmx-group > div:first-child { position:sticky; }
@media (max-width:767px) {
  /* the desktop sticky offset (top:120px) must not survive on phones: with a static heading it pushed the title under the cards */
  body.nk-refined[data-page=team] .tmx-group > div:first-child { position:relative!important; top:auto!important; }
}
