/* Scoped to Hope Night. Homepage and shared motion stay untouched. */
.hope-night-page .hope-depth-ready{overflow:hidden;--hope-x:0px;--hope-y:0px;--hope-turn:0deg}
.hope-depth-ready>.udo-butterfly,.hope-depth-ready>.udo-ambient-glow{display:none}
.hope-night-page .hope-depth-ready>.life-hero-copy{position:relative;z-index:2}
.hope-night-page .hope-depth-ready>img,.hope-night-page .hope-hearth{transform:translate3d(calc(var(--hope-x)*-.45),calc(var(--hope-y)*-.45),0) scale(1.025);transition:transform 1.1s cubic-bezier(.2,.7,.25,1)}
.hope-flight-scene{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
/* Flight distance follows the available image area, not the butterfly's own size. */
.hope-flight-field{position:absolute;inset:9% 4% 20% 55%;perspective:950px;transform:translate3d(var(--hope-x,0px),var(--hope-y,0px),0) rotateY(var(--hope-turn,0deg));transition:transform .9s cubic-bezier(.2,.7,.25,1);transform-style:preserve-3d;--flight-w:200px;--flight-h:300px}
.hope-flight{position:absolute;width:94px;aspect-ratio:1;left:0;top:0;opacity:.96;filter:drop-shadow(0 0 9px #8ddbd555);transform-style:preserve-3d;animation:hope-flight-orbit 15s ease-in-out -2s infinite;animation-play-state:paused}
.hope-flight-1{width:63px;opacity:.9;animation-duration:19s;animation-delay:-11s;animation-direction:reverse}
.hope-flight-2{width:43px;opacity:.8;animation-duration:23s;animation-delay:-18s}
.hope-flight-body{position:absolute;inset:0;transform-style:preserve-3d;transform:rotate(-18deg) rotateX(16deg)}
.hope-flight-wing{position:absolute;top:0;width:50%;height:100%;background-image:url('/udo-website-app-r2e85d972/assets/hope-night-butterfly.webp');background-size:200% 100%;background-repeat:no-repeat;backface-visibility:visible;animation-duration:.29s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-play-state:paused}
.hope-flight-left{left:0;background-position:left center;transform-origin:right center;animation-name:hope-wing-left;transform:rotateY(-20deg)}
.hope-flight-right{right:0;background-position:right center;transform-origin:left center;animation-name:hope-wing-right;transform:rotateY(20deg)}
.hope-flight-1 .hope-flight-wing{animation-duration:.24s;animation-delay:-.4s}
.hope-flight-2 .hope-flight-wing{animation-duration:.32s;animation-delay:-.8s}
.hope-light-layer{position:absolute;width:60%;height:100%;right:-8%;top:-15%;border-radius:50%;opacity:.6;animation:hope-light-tide 19s ease-in-out infinite alternate;animation-play-state:paused;transform:rotate(-12deg)}
.hope-light-blue{background:radial-gradient(ellipse,#68cdd424,transparent 66%)}
.hope-light-gold{width:42%;height:65%;top:38%;right:7%;background:radial-gradient(ellipse,#edc77d20,transparent 68%);animation-duration:27s;animation-delay:-11s}
.hope-light-mote{position:absolute;left:var(--mote-x);top:var(--mote-y);width:3px;height:3px;border-radius:50%;background:#f5d7a1;box-shadow:0 0 7px #e9d3ab88;opacity:.4;animation:hope-mote-rise 17s ease-in-out var(--mote-delay) infinite alternate;animation-play-state:paused}
.hope-scene-active .hope-flight,.hope-scene-active .hope-flight-wing,.hope-scene-active .hope-light-layer,.hope-scene-active .hope-light-mote{animation-play-state:running}
.hope-night-page .hope-motion-control{position:absolute;z-index:3;right:6.5%;bottom:94px;min-height:44px;padding:9px 13px;border:1px solid #c7dceb55;border-radius:24px;background:#081b36db;color:#e2edf4;font:400 12px/1.4 Arial,sans-serif;text-decoration:none;cursor:pointer;backdrop-filter:blur(8px)}
.hope-night-page .hope-motion-control:hover{background:#183d67}
.hope-night-page .hope-motion-control:focus-visible{outline:2px solid #efd49a;outline-offset:4px}
@keyframes hope-flight-orbit{
 0%,100%{transform:translate3d(calc(var(--flight-w)*.08),calc(var(--flight-h)*.57),0) rotate(-20deg) scale(.95)}
 20%{transform:translate3d(calc(var(--flight-w)*.42),calc(var(--flight-h)*.08),28px) rotate(15deg) scale(1.05)}
 42%{transform:translate3d(calc(var(--flight-w)*.94),calc(var(--flight-h)*.3),0) rotate(30deg) scale(.92)}
 64%{transform:translate3d(calc(var(--flight-w)*.65),calc(var(--flight-h)*.9),-20px) rotate(-10deg) scale(.85)}
 82%{transform:translate3d(calc(var(--flight-w)*.28),calc(var(--flight-h)*.82),20px) rotate(-32deg) scale(1)}
}
@keyframes hope-wing-left{from{transform:rotateY(-15deg)}to{transform:rotateY(-73deg)}}
@keyframes hope-wing-right{from{transform:rotateY(15deg)}to{transform:rotateY(73deg)}}
@keyframes hope-light-tide{from{transform:translate3d(0,0,0) scale(.9);opacity:.4}to{transform:translate3d(-9%,8%,0) scale(1.1);opacity:.8}}
@keyframes hope-mote-rise{from{transform:translate3d(0,12px,0);opacity:.15}to{transform:translate3d(12px,-28px,0);opacity:.6}}
body.udo-motion-paused .hope-flight,body.udo-motion-paused .hope-flight-wing,body.udo-motion-paused .hope-light-layer,body.udo-motion-paused .hope-light-mote,body.udo-tab-hidden .hope-flight,body.udo-tab-hidden .hope-flight-wing,body.udo-tab-hidden .hope-light-layer,body.udo-tab-hidden .hope-light-mote{animation-play-state:paused!important}
body.udo-motion-paused .hope-depth-ready>img,body.udo-motion-paused .hope-flight-field{transform:none;transition:none}
@media(max-width:1000px){.hope-flight{width:78px}.hope-flight-1{width:54px}.hope-flight-2{width:36px}}
@media(max-width:760px){
 .hope-flight-scene{height:285px;bottom:auto}
 .hope-flight-field{inset:8% 7% 12%;transform:none;transition:none}
 .hope-flight{width:68px;animation-duration:12s}
 .hope-flight-1{width:46px;animation-duration:16s}
 .hope-flight-2,.hope-light-mote:nth-last-child(-n+4){display:none}
 .hope-night-page .hope-depth-ready>img,.hope-night-page .hope-hearth{transform:none;transition:none}
 .hope-night-page .hope-motion-control{top:226px;bottom:auto;right:25px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .hope-flight,.hope-flight-wing,.hope-light-layer,.hope-light-mote{animation:none!important}
 .hope-night-page .hope-depth-ready>img,.hope-flight-field{transform:none;transition:none}
 .hope-night-page .hope-motion-control{display:none}
}

/* Original More Than Hope artwork beside the welcome, complete and uncropped. */
body.hope-night-page #entdecken.hope-welcome{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:34px;background:radial-gradient(ellipse at 85% 45%,#12313e,transparent 65%),#061521;color:#edf5f5;overflow:hidden}
body.hope-night-page #entdecken .hope-welcome-short{text-align:left}
body.hope-night-page #entdecken .hope-welcome-short h2{font-size:clamp(29px,3.2vw,46px);color:#fff;line-height:1.15}
body.hope-night-page #entdecken .hope-welcome-short h2 em{color:#efd49a}
body.hope-night-page #entdecken .hope-welcome-short p{color:#d9e7eb;line-height:1.75}
body.hope-night-page #entdecken .hope-origin{background:transparent;border:0;border-top:1px solid #b9d9df30;border-radius:0;box-shadow:none;padding:25px 0 0;margin-top:25px}
body.hope-night-page #entdecken .hope-origin-quote p{font-size:clamp(17px,1.5vw,21px);font-weight:400;color:#e0ebed}
.hope-welcome-art{position:relative;isolation:isolate;min-width:0;margin:0;aspect-ratio:1}
.hope-welcome-art>img{display:block;width:100%;height:auto;mask-image:radial-gradient(ellipse at center,#000 54%,transparent 72%)}
.hope-welcome-art .hope-flight-scene{height:100%;inset:0}
.hope-welcome-art .hope-flight-field{inset:9% 10% 24%;transform:none}
.hope-welcome-art .hope-flight{width:57px;animation-duration:13s}
.hope-welcome-art .hope-flight-1{width:39px;animation-duration:17s}
/* Firelight and rising embers sit in the photograph's coordinate space. */
.hope-hearth{position:absolute;left:0;top:0;z-index:-3;pointer-events:none;overflow:hidden}
.hope-hearth-plane{position:absolute}
.hope-window-sky{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.hope-window-ember{opacity:0;animation:hope-window-rise var(--window-time) var(--window-delay) linear infinite;animation-play-state:paused}
.hope-window-meteor{opacity:0;filter:drop-shadow(0 0 4px #bcecff);animation:hope-window-shoot 16s linear infinite;animation-play-state:paused}
.hope-window-burst{opacity:0;filter:drop-shadow(0 0 4px #ffe9c2);animation:hope-window-burst 16s ease-out infinite;animation-play-state:paused}
.hope-scene-active .hope-window-ember,.hope-scene-active .hope-window-meteor,.hope-scene-active .hope-window-burst{animation-play-state:running}
@keyframes hope-window-rise{0%{opacity:0;transform:translate(0,0)}14%{opacity:.82}75%{opacity:.58}100%{opacity:0;transform:translate(var(--window-drift),-200px)}}
@keyframes hope-window-shoot{0%,7%{opacity:0;transform:translate(130px,-90px)}9%{opacity:.95}18%{opacity:1;transform:translate(0,0)}19%,100%{opacity:0;transform:translate(0,0)}}
@keyframes hope-window-burst{0%,17%{opacity:0;transform:scale(.1)}19%{opacity:1;transform:scale(.4)}27%,100%{opacity:0;transform:scale(1.65)}}
body.udo-motion-paused .hope-window-sky *,body.udo-tab-hidden .hope-window-sky *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.hope-window-sky{display:none}}
.hope-firelight{position:absolute;left:63.5%;top:42%;width:38%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#fff0b066 0%,#ffac4f55 12%,#e86e1924 38%,transparent 68%);opacity:.8;animation:hope-fire-breathe 4s ease-in-out infinite alternate;animation-play-state:paused}
.hope-fire-rays{position:absolute;left:63.5%;top:42%;width:65%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(-12deg);border-radius:50%;background:repeating-conic-gradient(from -40deg,#f9d58a00 0deg,#f9d58a1c 8deg,#f9d58a00 17deg,#f9d58a00 36deg);mask-image:radial-gradient(circle,transparent 4%,#000 16%,#0008 30%,transparent 65%);animation:hope-fire-rays 11s ease-in-out infinite alternate;animation-play-state:paused}
.hope-ember-source{position:absolute;left:63.5%;top:42%;width:1px;height:1px}
.hope-fire-core{position:absolute;left:-42px;top:-14px;width:84px;height:27px;border-radius:50%;background:radial-gradient(ellipse,#fff0baaa,#f6a34966 30%,transparent 70%);filter:blur(3px);animation:hope-core-glow 2.7s ease-in-out infinite alternate;animation-play-state:paused}
.hope-flame{position:absolute;bottom:0;left:var(--flame-x);width:16px;height:var(--flame-height);border-radius:65% 35% 55% 45%;background:radial-gradient(ellipse at 50% 85%,#fff5c4,#ffcd71 32%,#f1923d9c 55%,transparent 78%);filter:blur(1.6px);transform-origin:50% 100%;animation:hope-flame-dance var(--flame-time) ease-in-out var(--flame-delay) infinite alternate;animation-play-state:paused}
.hope-ember{position:absolute;left:var(--ember-x);top:0;width:3px;height:3px;border-radius:50%;background:#ffd391;box-shadow:0 0 6px #ff9e36;opacity:0;animation:hope-ember-rise var(--ember-time) linear var(--ember-delay) infinite;animation-play-state:paused}
.hope-scene-active .hope-firelight,.hope-scene-active .hope-fire-rays,.hope-scene-active .hope-fire-core,.hope-scene-active .hope-flame,.hope-scene-active .hope-ember{animation-play-state:running}
@keyframes hope-fire-breathe{0%{opacity:.6;transform:translate(-50%,-50%) scale(.9)}30%{opacity:.85}65%{opacity:.7;transform:translate(-50%,-50%) scale(1.04)}100%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}}
@keyframes hope-fire-rays{from{opacity:.5;transform:translate(-50%,-50%) rotate(-12deg) scale(.95)}to{opacity:1;transform:translate(-50%,-50%) rotate(12deg) scale(1.1)}}
@keyframes hope-core-glow{from{opacity:.65;transform:scale(.9)}to{opacity:1;transform:scale(1.15)}}
@keyframes hope-flame-dance{0%{transform:scale(.8,1) rotate(-8deg);opacity:.8}45%{transform:scale(1.1,.75) rotate(7deg);opacity:1}100%{transform:scale(.65,1.3) rotate(-4deg);opacity:.75}}
@keyframes hope-ember-rise{0%{transform:translate3d(0,0,0) scale(.5);opacity:0}12%{opacity:.9}50%{transform:translate3d(calc(var(--ember-drift)*.4),calc(var(--ember-rise)*-.45),0);opacity:.7}100%{transform:translate3d(var(--ember-drift),calc(var(--ember-rise)*-1),0) scale(.25);opacity:0}}
body.udo-motion-paused .hope-hearth{transform:none;transition:none}
body.udo-motion-paused .hope-fire-rays,body.udo-motion-paused .hope-fire-core,body.udo-tab-hidden .hope-fire-rays,body.udo-tab-hidden .hope-fire-core,body.udo-motion-paused .hope-firelight,body.udo-motion-paused .hope-flame,body.udo-motion-paused .hope-ember,body.udo-tab-hidden .hope-firelight,body.udo-tab-hidden .hope-flame,body.udo-tab-hidden .hope-ember{animation-play-state:paused!important}
@media(max-width:760px){
 body.hope-night-page #entdecken.hope-welcome{grid-template-columns:1fr;gap:14px;padding-bottom:24px}
 .hope-welcome-art{width:min(100%,430px);justify-self:center}
 .hope-welcome-art .hope-flight{width:54px}.hope-welcome-art .hope-flight-1{width:37px}
 .hope-ember{width:2px;height:2px;--ember-rise:140px!important}.hope-ember:nth-child(n+17){display:none}.hope-flame{height:calc(var(--flame-height)*.65);width:12px}
}
@media(prefers-reduced-motion:reduce){
 .hope-firelight,.hope-fire-rays,.hope-fire-core,.hope-flame,.hope-ember{animation:none!important}
 .hope-ember{display:none}
 .hope-night-page .hope-hearth{transform:none;transition:none}
}

/* Photo and copy share the same night tone; the fade ends before the photo does. */
body.hope-night-page .hope-hero{background:#081b36}
body.hope-night-page .hope-hero:after{background:linear-gradient(0deg,#061521 0,transparent 150px),linear-gradient(90deg,#081b36f5 0%,#081b36d9 34%,#081b3650 60%,transparent 85%)}
@media(max-width:760px){body.hope-night-page .hope-hero:after{background:linear-gradient(0deg,#061521,transparent 120px),linear-gradient(180deg,transparent calc(var(--hope-photo-height,380px)*.40),#081b36a6 calc(var(--hope-photo-height,380px)*.70),#081b36 calc(var(--hope-photo-height,380px) - 20px))}}
.hope-room-meteor-field{position:absolute;left:0;top:0;z-index:-1;overflow:hidden;pointer-events:none;mask-image:linear-gradient(#000 65%,transparent 100%)}
.hope-room-meteor{position:absolute;left:-245px;top:42%;width:230px;height:3px;opacity:0;transform-origin:right center;background:linear-gradient(90deg,transparent,#3198e444 24%,#68caff 74%,#f0fcff);border-radius:50%;filter:drop-shadow(0 0 5px #52b8ff);animation:hope-room-crossing 14s linear infinite;animation-play-state:paused}
.hope-room-meteor:after{content:'';position:absolute;right:-5px;top:-4px;width:11px;height:11px;border-radius:50%;background:radial-gradient(circle,#fff 0,#d3f7ff 22%,#4fc1ff88 45%,transparent 73%);box-shadow:0 0 15px #70cfff88}
.hope-room-meteor span{position:absolute;inset:-7px 0;background:linear-gradient(90deg,transparent,#71d4ff35);border-radius:50%;filter:blur(5px)}
.hope-room-meteor-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 92% 22%,#56bdff2e,transparent 45%);opacity:0;animation:hope-room-light 14s ease-out infinite;animation-play-state:paused}
.hope-scene-active .hope-room-meteor,.hope-scene-active .hope-room-meteor-glow{animation-play-state:running}
/* The bright right-hand head leads upward; the tail follows the same slope. */
@keyframes hope-room-crossing{0%,7%{opacity:0;transform:translate3d(0,0,0) rotate(var(--room-angle,-7deg))}9%{opacity:.95}26%{opacity:1;transform:translate3d(var(--room-travel),calc(var(--room-rise,110px)*-1),0) rotate(var(--room-angle,-7deg))}28%,100%{opacity:0;transform:translate3d(var(--room-travel),calc(var(--room-rise,110px)*-1),0) rotate(var(--room-angle,-7deg))}}
@keyframes hope-room-light{0%,22%,40%,100%{opacity:0}27%{opacity:.8}}
body.udo-motion-paused .hope-room-meteor-field *,body.udo-tab-hidden .hope-room-meteor-field *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.hope-room-meteor-field{display:none}}
