/* Home-only atmosphere: one rounded light origin centered just above the hero.
   Reuses the original middle-light artwork; only transform/opacity animate. */
body[data-ar-page="home"] #main-content-home .hero{isolation:isolate!important;}
/* Put the light behind both the live wording and sigil, above the backdrop art. */
body[data-ar-page="home"] #main-content-home .hero-grid{position:relative;z-index:1;}
body[data-ar-page="home"] #main-content-home .ar-hero-illumination{
  position:absolute;inset:0;display:block;width:100%;height:100%;z-index:0;
  pointer-events:none;user-select:none;contain:strict;opacity:.9;mix-blend-mode:screen;
  mask-image:linear-gradient(to bottom,#000 0%,#000 48%,#000b 72%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 48%,#000b 72%,transparent 100%);
}
/* Hide the legacy light system so there is only one shared origin. */
body[data-ar-page="home"] #main-content-home .ar-scene-lights,
body[data-ar-page="home"] #main-content-home .ar-scene-top-rays{display:none!important;opacity:0!important;}
body[data-ar-page="home"] #main-content-home .ar-scene-dust{display:none!important;}
body[data-ar-page="home"] #main-content-home .ar-emblem-stack::before{filter:none!important;}
body[data-ar-page="home"] #main-content-home .ar-dust{animation-play-state:paused!important;}
body[data-ar-page="home"][data-ar-atmosphere-running="true"] #main-content-home .ar-dust[data-ar-dust-visible="true"]{animation-play-state:running!important;}

/* The soft round crown and the original downward rays share exactly the same
   offscreen center. One image, no separate cones, moving hotspots or filters. */
body[data-ar-page="home"] #main-content-home .ar-light-source{
  position:absolute;display:block;left:50%;top:clamp(-64px,-4.5vw,-24px);
  width:min(140vw,2000px);aspect-ratio:4/3;pointer-events:none;
  background:radial-gradient(ellipse 13% 18% at 50% 0%,rgba(255,242,206,.94) 0%,rgba(255,235,186,.54) 30%,rgba(245,215,157,.13) 64%,rgba(245,215,157,0) 100%),url('/assets/f9dd091ebaffacfea2d074c3.webp') center top/100% 100% no-repeat;
  opacity:.18;transform:translateX(-50%);transform-origin:50% 0;
  animation:ar-home-source-breathe 48s ease-in-out -13s infinite alternate;
  animation-play-state:paused;will-change:auto;
}
body[data-ar-page="home"] .ar-light-mote{
  position:absolute;display:block;width:var(--mote-size);height:var(--mote-size);border-radius:50%;
  background:radial-gradient(circle,#fff8df 0%,#f3d69a88 18%,#dbc18422 43%,transparent 72%);
  opacity:.4;animation:ar-home-light-mote var(--mote-duration) ease-in-out var(--mote-delay) infinite alternate;
  animation-play-state:paused;will-change:auto;pointer-events:none;
}
body[data-ar-page="home"] #main-content-home .ar-hero-illumination[data-ar-lights-running="true"] .ar-light-source,
body[data-ar-page="home"] .ar-hero-illumination[data-ar-lights-running="true"] .ar-light-mote{animation-play-state:running;will-change:transform,opacity;}
@keyframes ar-home-source-breathe{from{transform:translateX(-50%) rotate(-.3deg) scaleX(.996);opacity:.16}to{transform:translateX(-50%) rotate(.35deg) scaleX(1.014);opacity:.20}}
@keyframes ar-home-light-mote{from{transform:translate3d(-3px,8px,0);opacity:0.195}to{transform:translate3d(5px,-10px,0);opacity:0.769}}
@media(max-width:650px){
  body[data-ar-page="home"] #main-content-home .ar-light-source{width:180vw;}
  body[data-ar-page="home"] .ar-light-mote:nth-of-type(n+15){display:none;}
}
@media(prefers-reduced-motion:reduce){
  body[data-ar-page="home"] #main-content-home .ar-light-source,body[data-ar-page="home"] .ar-light-mote{animation:none!important;will-change:auto!important;}
}

/* Three source-texture strata. All softness/edge lighting is already in the artwork;
   only transforms animate, and only while this small footer region is onscreen. */
body[data-ar-page="home"] .ar-bottom-clouds{
  height:clamp(360px,34vw,540px);overflow:hidden;contain:paint;isolation:isolate;
  mix-blend-mode:normal;mask-image:linear-gradient(to bottom,transparent,#000 32%);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 32%);
}
body[data-ar-page="home"] .ar-bottom-clouds::before,
body[data-ar-page="home"] .ar-bottom-clouds::after{
  content:"";position:absolute;pointer-events:none;inset:22% 0 0;
}
body[data-ar-page="home"] .ar-bottom-clouds::before{
  background:radial-gradient(ellipse at 16% 98%,rgba(203,182,136,.085),transparent 57%),radial-gradient(ellipse at 83% 100%,rgba(164,183,202,.075),transparent 54%);
}
body[data-ar-page="home"] .ar-bottom-clouds::after{
  z-index:4;inset:62% 0 0;
  background:linear-gradient(0deg,rgba(2,2,2,.28),transparent 70%);
}
body[data-ar-page="home"] .ar-bottom-clouds img{
  display:block;position:absolute;max-width:none;min-height:0;height:auto;object-fit:contain;
  filter:none!important;mask-image:none!important;-webkit-mask-image:none!important;
  transform-origin:center bottom;mix-blend-mode:screen;pointer-events:none;
  animation-play-state:paused!important;will-change:auto;
}
body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-far{
  left:-18%;width:136%;bottom:15px;z-index:1;opacity:.15;
  transform:translate3d(1.5%,0,0) scaleX(-1) scaleY(.82);
  animation:ar-home-cloud-far 64s ease-in-out -21s infinite alternate;
}
body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-middle{
  left:-10%;width:120%;bottom:-34px;z-index:2;opacity:.25;
  transform:translate3d(-1.5%,0,0) scaleY(.93);
  animation:ar-home-cloud-middle 43s ease-in-out -17s infinite alternate;
}
body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-near{
  left:-16%;width:132%;bottom:-92px;z-index:3;opacity:.32;
  transform:translate3d(-2%,0,0) scaleX(-1) scaleY(1.06);
  animation:ar-home-cloud-near 31s ease-in-out -9s infinite alternate;
}
body[data-ar-page="home"] .ar-bottom-clouds[data-ar-clouds-running="true"] img{animation-play-state:running!important;will-change:transform;}
@keyframes ar-home-cloud-far{from{transform:translate3d(1.5%,0,0) scaleX(-1) scaleY(.82)}to{transform:translate3d(-1.5%,-5px,0) scaleX(-1) scaleY(.85)}}
@keyframes ar-home-cloud-middle{from{transform:translate3d(-1.5%,0,0) scaleY(.93)}to{transform:translate3d(1.7%,7px,0) scaleY(.98)}}
@keyframes ar-home-cloud-near{from{transform:translate3d(-2%,0,0) scaleX(-1) scaleY(1.06)}to{transform:translate3d(2.1%,-9px,0) scaleX(-1) scaleY(1.1)}}
@media(max-width:650px){
  body[data-ar-page="home"] .ar-bottom-clouds{height:300px;}
  body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-far{width:194%;left:-47%;bottom:33px;opacity:.13;}
  body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-middle{width:182%;left:-41%;bottom:-8px;opacity:.26;}
  body[data-ar-page="home"] .ar-bottom-clouds img.ar-cloud-near{width:198%;left:-49%;bottom:-42px;opacity:.31;}
  body[data-ar-page="home"] #main-content-home .ar-hero-illumination{opacity:.8;}
}
body[data-ar-page="home"][data-reading-sprites="off"] .ar-hero-illumination,
html[data-reading-sprites="off"] body[data-ar-page="home"] .ar-hero-illumination,
body[data-ar-page="home"][data-reading-contrast="high"] .ar-hero-illumination{display:none!important;}
body[data-ar-page="home"][data-reading-sprites="off"] #main-content-home .ar-dust,
html[data-reading-sprites="off"] body[data-ar-page="home"] #main-content-home .ar-dust{display:none!important;}
body[data-ar-page="home"][data-reading-sprites="off"] .ar-bottom-clouds img,
html[data-reading-sprites="off"] body[data-ar-page="home"] .ar-bottom-clouds img,
body[data-ar-page="home"][data-reading-contrast="high"] .ar-bottom-clouds img{animation:none!important;will-change:auto!important;}
@media(prefers-reduced-motion:reduce){
  body[data-ar-page="home"] .ar-bottom-clouds img{animation:none!important;will-change:auto!important;}
  body[data-ar-page="home"] #main-content-home .ar-hero-illumination{opacity:.7;}
}
@media(forced-colors:active){
  body[data-ar-page="home"] .ar-hero-illumination,
  body[data-ar-page="home"] .ar-bottom-clouds{display:none!important;}
}
