/* НАА 23 — SELENE motion and editorial polish v6.
   Safe progressive enhancement: no animation is required to read content. */
:root{--telemetry:'IBM Plex Mono',ui-monospace,monospace;--mission-display:'Michroma',var(--display);--mission-accent:#b0d8ff}
html{overflow-x:clip}body{overflow-x:clip}
/* v6 — authentic SELENE layer choreography. Never display all foreground cuts at once. */
.earthrise{height:270svh;position:relative;isolation:isolate}
.hero-sticky{position:sticky;top:0;height:100svh;min-height:430px;overflow:hidden;isolation:isolate;background:#060a12}
.hero-layers{position:absolute;inset:0;transform:none!important;overflow:hidden;isolation:isolate}
.earthrise .hero-layer{display:block;position:absolute;inset:0;opacity:1;transform:none;will-change:transform,opacity;transform-origin:center center;pointer-events:none}
.earthrise .hero-layer img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%;display:block}
/* Original photographic cuts share the same crop and cannot be freely repositioned. */
.earthrise .hero-layer[data-layer=sky]{transform:scale(1.12);z-index:1}
.earthrise .hero-layer[data-layer=earth]{transform:translate3d(0,21vh,0);z-index:2}
.earthrise .hero-layer[data-layer=moonscape]{transform:translate3d(0,7vh,0);z-index:3}
.earthrise .hero-layer[data-layer=frame]{opacity:0;transform:scale(1.6);z-index:4}
.earthrise .hero-layer[data-layer=astronaut]{opacity:0;transform:translate3d(0,28vh,0);z-index:5}
.earthrise .hero-layer[data-layer=ground]{opacity:0;transform:translate3d(0,52vh,0);z-index:6}
.hero-sticky:after{background:linear-gradient(180deg,rgba(4,8,16,.24) 0%,transparent 46%,rgba(4,7,14,.30) 82%,#070a10 100%);z-index:7}
.hero-veil{pointer-events:none;opacity:.56;transition:none;z-index:8}
.hero-exit{position:absolute;inset:0;z-index:9;opacity:0;pointer-events:none;background:linear-gradient(180deg,rgba(6,9,16,.5),#080d16 94%)}
.hero-title{z-index:11;max-width:1300px;margin:0 auto;left:5%;right:5%;top:44%;text-shadow:0 5px 50px rgba(0,0,0,.75)}
.hero-title h1{font-size:clamp(2.1rem,6.9vw,8rem);line-height:1.2;letter-spacing:-.052em}
.hero-title .eyebrow,.hero-hud,.hero-scroll{font-family:var(--telemetry);font-weight:500;letter-spacing:.14em}
.hero-title>p{max-width:700px;font-size:clamp(.95rem,1.32vw,1.1rem);color:#eef6ff;text-shadow:0 2px 14px #000}
.hero-hud{z-index:12;bottom:5%;gap:24px;line-height:1.6;text-shadow:0 1px 8px #000}
.hero-hud span:last-child{text-align:right}
.hero-scroll{z-index:12;top:44%;transition:opacity .3s}
.hero-title .button{box-shadow:0 18px 60px #0008}
@media(max-width:767px){.earthrise{height:220svh}.earthrise .hero-layer img{object-position:50% 50%}.hero-sticky{min-height:0}.hero-title{top:45%}}
/* Adapted from SELENE's hand-drawn trajectory, using real НАА 23 activities. */
.orbit-path{position:relative;overflow:hidden;padding:105px clamp(20px,6vw,120px) 110px;background:radial-gradient(ellipse at 54% 43%,rgba(37,73,118,.24),transparent 67%),#080d17;border-block:1px solid rgba(196,223,255,.09)}
.orbit-path:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.17;background-image:radial-gradient(#cbdfff .7px,transparent .8px);background-size:48px 48px;mask-image:linear-gradient(transparent,black 30%,black 73%,transparent)}
.orbit-path-head{display:flex;align-items:start;flex-direction:column;position:relative;z-index:1}
.orbit-path-head h2{font:700 clamp(2rem,4.1vw,4.3rem)/1.26 var(--display);letter-spacing:-.055em;margin:22px 0 20px;max-width:1200px}
.orbit-path-head h2 span{color:var(--mission-accent)}
.orbit-path-head p{max-width:610px;color:#b6c6dc;line-height:1.8;margin:0;font-size:1rem}
.orbit-route{position:relative;width:min(100%,1160px);margin:18px auto -15px;min-height:180px}
.orbit-route svg{display:block;width:100%;height:auto;overflow:visible}
.orbit-route-guide,.orbit-route-active{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.orbit-route-guide{stroke:#92b4d8;stroke-opacity:.21;stroke-dasharray:3 10}
.orbit-route-active{stroke:#bedfff;filter:drop-shadow(0 0 5px rgba(104,174,255,.7))}
.orbit-stop{fill:#0e1b2b;stroke:#a8cff7;stroke-width:2.5}
.orbit-traveler{fill:#eaf7ff}.orbit-traveler-glow{fill:#b1dbff;opacity:.25}
.orbit-story{max-width:1160px;padding:0;margin:0 auto;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;position:relative;z-index:1}
.orbit-story li{border-top:1px solid rgba(200,224,255,.25);padding-top:20px;display:flex;flex-direction:column;gap:13px;min-width:0}
.orbit-story li span{font:500 .66rem/1.5 var(--telemetry);letter-spacing:.13em;color:#91c5ff}
.orbit-story li strong{font:600 clamp(.95rem,1.35vw,1.28rem)/1.55 var(--body);max-width:280px;color:#e5efff}
/* Subtle motions everywhere, while preserving reading flow. */
.js-motion [data-reveal]{transition:opacity .85s cubic-bezier(.22,.68,.18,1),transform .85s cubic-bezier(.22,.68,.18,1);transition-delay:var(--reveal-delay,0ms)}
.js-motion [data-reveal]:not(.is-visible){opacity:0;transform:translate3d(0,24px,0)}
.js-motion [data-reveal].is-visible{opacity:1;transform:translate3d(0,0,0)}
.news-card,.program-card,.sky-date{transition:border-color .45s ease,box-shadow .45s ease,background .45s ease,transform .55s cubic-bezier(.2,.7,.2,1)}
.news-card:hover,.js-motion .news-card[data-reveal].is-visible:hover{transform:translateY(-7px);box-shadow:0 22px 55px rgba(0,0,0,.3)}
.program-card:hover,.js-motion .program-card[data-reveal].is-visible:hover{transform:translateY(-6px)}
.sky-date:hover{background:#18283d}
.program-card img,.news-cover img{transition:transform .75s cubic-bezier(.2,.7,.2,1),filter .7s}
.program-card:hover img,.news-card:hover .news-cover img{transform:scale(1.065)}
.program-card:focus-visible,.news-card:focus-within{outline:2px solid #9fcfff;outline-offset:3px}
.page-hero,.story-hero,.archive-hero{isolation:isolate}
.page-space,.story-hero-cover{will-change:transform}
.archive-orbit{will-change:transform}
.page-hero-v3 .page-heading{max-width:1160px}.page-hero-v3 h1{hyphens:auto}
.page-hero .hero-line{max-width:550px;transform-origin:left;animation:line-appear 1.5s .2s both}
@keyframes line-appear{from{transform:scaleX(0);opacity:.25}to{transform:scaleX(1);opacity:1}}
.astro-news .section-head h2,.programs-section .section-head h2{max-width:950px}
.section-head .eyebrow,.page-heading .eyebrow,.archive-hero .eyebrow{font-family:var(--telemetry);font-size:.68rem}
/* Hierarchy and breathing room for imported WordPress article HTML. */
.editorial-body,.story-article{font-size:1.045rem;line-height:1.88;max-width:1050px}
.cms-prose :is(h2,h3){scroll-margin-top:110px;position:relative;clear:both}
.cms-prose h2{padding-top:18px;border-top:1px solid rgba(186,214,247,.18);margin-top:2.4em}
.cms-prose h2:before{content:'✦';font:500 .7rem var(--telemetry);position:absolute;top:-.78em;left:0;color:#8fc4ff;background:#090e17;padding-right:12px}
.cms-prose :is(ul,ol):not(.astro-gallery){padding-left:clamp(24px,2vw,38px)}
.cms-prose :is(img,video){box-shadow:0 16px 60px #0002}
.cms-prose .astro-gallery{gap:14px;margin-block:38px 50px}
.cms-prose .astro-gallery>:is(img,a,figure),.cms-prose .astro-gallery>.astro-media-unit{border:1px solid rgba(168,209,255,.24);border-radius:5px;box-shadow:0 8px 30px rgba(0,0,0,.16)}
.cms-prose .astro-single-photo{margin-block:45px 52px}
.cms-prose blockquote{border-left-width:3px;background:linear-gradient(90deg,rgba(111,182,255,.10),rgba(111,182,255,0));border-radius:0 6px 6px 0}
.cms-prose table{width:100%;margin:28px 0 38px}
.cms-prose table tr:nth-child(even){background:rgba(170,207,255,.035)}
.cms-prose table th{background:#132036;text-align:left;color:#eff6ff}
.article-index[hidden]{display:none!important}
.article-index{max-width:1160px;margin:35px auto 0;border:1px solid rgba(188,217,249,.18);background:linear-gradient(135deg,#122035,#0c1421);padding:30px 35px}
.article-index ol{list-style:decimal;padding-left:26px;margin:18px 0 0;columns:2;column-gap:46px}
.article-index li{break-inside:avoid;margin:0 0 13px;color:#8eb6e2;line-height:1.65}
.article-index li a{color:#d8eaff;font-size:.91rem;text-decoration:none;overflow-wrap:anywhere}
.article-index li a:hover{text-decoration:underline;text-underline-offset:4px}
.article-index-sub{margin-left:15px!important;opacity:.8}
.story-main{min-width:0;max-width:1050px}
.story-main .article-index{margin:0 0 45px}
/* Always-visible progress indicator and accessible return-to-top action. */
.read-progress{height:2px;position:absolute;bottom:0;left:0;right:0;overflow:hidden;pointer-events:none;background:rgba(255,255,255,.05)}
.read-progress>span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#619bea,#dceeff);transform:scaleX(0);transform-origin:left;will-change:transform}
.back-top{position:fixed;right:23px;bottom:25px;z-index:80;display:flex;align-items:center;gap:10px;padding:13px 16px;border:1px solid rgba(197,223,255,.32);background:rgba(11,19,32,.90);color:#fff;box-shadow:0 9px 35px #0006;font:500 .68rem var(--telemetry);letter-spacing:.13em;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .3s,transform .3s,border-color .3s}
.back-top-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.back-top:hover{border-color:#b3d9ff;background:#172942}
.back-top span:first-child{font-size:1.18rem}
/* Fullscreen image viewer: real keyboard controls and image count. */
.astro-lightbox{position:fixed;overscroll-behavior:contain}
.astro-lightbox img{max-width:min(94vw,1400px);max-height:78vh;transition:opacity .2s ease}
.astro-lightbox-nav{position:absolute;top:48%;width:43px;height:48px;display:grid;place-items:center;background:#102034;color:#fff;border:1px solid #6b8bab;cursor:pointer;font-size:1.4rem;z-index:2}
.astro-lightbox-prev{left:clamp(8px,2vw,32px)}.astro-lightbox-next{right:clamp(8px,2vw,32px)}
.astro-lightbox-nav:hover{background:#203955}
.astro-lightbox-counter{font-family:var(--telemetry);font-size:.73rem;letter-spacing:.08em;color:#c7dfff}
@media(max-width:1000px){.orbit-path{padding-block:85px}.orbit-route{margin-block:25px 0}.orbit-story{gap:16px}}
@media(max-width:720px){.earthrise{height:170svh}.hero-sticky{min-height:0}.hero-title{top:46%}.hero-title h1{font-size:clamp(2rem,8vw,4.3rem);line-height:1.23}.hero-hud{left:20px;right:20px;bottom:25px}.orbit-path{padding:75px 20px 80px}.orbit-path-head h2{font-size:clamp(1.9rem,6.6vw,3rem)}.orbit-route{min-height:unset;margin:32px auto 15px}.orbit-story{grid-template-columns:1fr;gap:18px}.orbit-story li{gap:5px;padding-top:12px}.orbit-story li strong{max-width:none}.article-index{margin-top:25px;padding:22px}.article-index ol{columns:1}.astro-news .section-head h2{font-size:clamp(2rem,7vw,3.2rem)}.back-top{right:13px;bottom:15px;padding:11px 12px}.back-top span:last-child{display:none}}
@media(max-width:450px){.hero-title .eyebrow{font-size:.54rem;letter-spacing:.1em}.hero-title h1{font-size:clamp(1.85rem,8.4vw,3rem)}.hero-title>p{font-size:.86rem}.hero-hud{font-size:.44rem;letter-spacing:.07em}.cms-prose .astro-gallery{gap:7px}.orbit-path-head h2{letter-spacing:-.04em}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-layers,.hero-layer,.page-space,.story-hero-cover,.archive-orbit{transform:none!important;will-change:auto!important}.hero-veil{opacity:.28!important}.hero-exit{display:none}.hero-title{opacity:1!important;transform:translateY(-50%)!important}.js-motion [data-reveal]{transform:none!important;opacity:1!important;transition:none!important}.orbit-route-active{stroke-dasharray:none!important;stroke-dashoffset:0!important}.orbit-traveler-glow{display:none}.page-hero .hero-line{animation:none}.back-top{transition:none}.astro-lightbox img{transition:none}}

/* v6 readable gallery and safe image loading. */
.astro-lightbox{max-width:none;max-height:none;width:100vw;height:100vh;border:0;padding:4vh 5vw;background:rgba(3,7,14,.97);color:#eef6ff}
.astro-lightbox[open]{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px}
.astro-lightbox img{display:block;width:auto;height:auto;object-fit:contain;max-width:92vw;max-height:81vh;min-width:0;min-height:0}
.astro-lightbox .astro-lightbox-close{position:absolute;top:22px;right:22px;z-index:3}
.astro-lightbox-counter{position:static!important;color:#dbeaff;font-family:var(--telemetry);letter-spacing:.15em;margin-top:8px}
.astro-lightbox .astro-image-status{font-size:.75rem;line-height:1.5;color:#aabbd0;min-height:1.2rem;text-align:center;margin:0}
.astro-lightbox-nav{border-radius:5px;top:50%;transform:translateY(-50%)}
/* Ensure the orbital trajectory stays legible even if a theme assigns SVG fills. */
.orbit-route svg{display:block;max-width:100%;height:auto;overflow:visible}
.orbit-route svg path{fill:none!important}
.orbit-route-guide{fill:none!important;stroke:#92b4d8;stroke-opacity:.35;stroke-dasharray:3 10}
.orbit-route-active{fill:none!important;stroke:#bedfff;stroke-width:2.8;filter:drop-shadow(0 0 6px rgba(104,174,255,.7))}
.orbit-route .orbit-stop{fill:#0e1b2b;stroke:#a8cff7;stroke-width:2.5}
.orbit-route .orbit-traveler-glow{fill:#b1dbff}.orbit-route .orbit-traveler{fill:#fff}
.orbit-story li{line-height:1.6}
@media(max-width:580px){.earthrise{height:210svh}.orbit-path{padding:75px 20px}.orbit-story{grid-template-columns:1fr;gap:20px}.orbit-route{min-height:120px}}
@media(prefers-reduced-motion:reduce){.hero-layer{transform:none!important}.earthrise .hero-layer[data-layer=frame],.earthrise .hero-layer[data-layer=ground],.earthrise .hero-layer[data-layer=astronaut]{opacity:0!important}.earthrise .hero-layer[data-layer=moonscape]{transform:translate3d(0,7vh,0)!important}.earthrise .hero-layer[data-layer=earth]{transform:translate3d(0,4vh,0)!important}.hero-title{opacity:1!important}.hero-exit{display:none}}
