
/* Navars Edutech: Starry Night parallax zoom slider
   Each slide = Ken Burns background + 1-2 foreground layers + small headline, big headline, Enter button.
   Changing slides "flies" the camera: the old foreground rushes past, stars streak, the next scene approaches.
   Global UI: header, top progress bar, slide counter with up/down arrows. */






/* ---------- hero frame ---------- */
#sn-hero{position:relative;height:100vh;height:100svh;min-height:560px;overflow:hidden;background:var(--night);isolation:isolate}
.sn-layer{position:absolute;inset:0}
.sn-layer-bg{z-index:1}
#sn-stars{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.sn-layer-fg{z-index:3}
.sn-wrap{position:absolute;inset:0;visibility:hidden;opacity:0}
.sn-wrap.sn-show{visibility:visible}

/* background: oversized so zoom and parallax never show an edge */
.sn-bg{position:absolute;top:-10%;left:-10%;width:120%;height:120%;object-fit:cover;display:block;will-change:transform;background:#0b1224}

/* foreground layers: positions match the template layouts */
.sn-fg{position:absolute;display:block;will-change:transform;pointer-events:none;user-select:none;max-width:none}
.sn-fg[data-pos=bottom]{left:-5%;bottom:-2%;width:110%;height:auto}
.sn-fg[data-pos=top]{left:-5%;top:-2%;width:110%;height:auto}
.sn-fg[data-pos=left]{left:-4%;top:-5%;height:110%;width:auto}
.sn-fg[data-pos=right]{right:-4%;top:-5%;height:110%;width:auto}
.sn-fg[data-pos=bottom-left]{left:-4%;bottom:-4%;width:62%;height:auto}
.sn-fg[data-pos=bottom-right]{right:-4%;bottom:-4%;width:62%;height:auto}

/* PLACEHOLDER SHAPES: random photos are rectangles, so data-shape cuts them into rock silhouettes.
   When you swap in a real transparent PNG/WebP cutout, delete data-shape from that <img>. */
.sn-fg[data-shape]{object-fit:cover;filter:brightness(.42) saturate(.6) contrast(1.1);-webkit-mask-image:var(--m);mask-image:var(--m);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.sn-fg[data-shape][data-pos=bottom],.sn-fg[data-shape][data-pos=top]{height:var(--h,38%)}
.sn-fg[data-shape][data-pos=left],.sn-fg[data-shape][data-pos=right]{width:var(--w,34%)}
.sn-fg[data-shape][data-pos=bottom-left],.sn-fg[data-shape][data-pos=bottom-right]{width:var(--w,56%);height:var(--h,72%)}
.sn-fg[data-shape=ridge]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V52L5 40L9 46L15 24L20 33L26 27L32 47L38 34L44 16L49 30L55 10L60 31L66 24L72 44L78 20L84 37L89 29L95 46L100 38V100Z'/%3E%3C/svg%3E")}
.sn-fg[data-shape=overhang]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0V46L6 62L12 50L19 82L25 60L32 70L39 52L46 90L53 64L60 74L67 50L74 80L81 58L88 68L94 52L100 60V0Z'/%3E%3C/svg%3E")}
.sn-fg[data-shape=cliff-left]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H58L50 10L68 22L54 35L80 48L62 60L76 74L52 86L64 100H0Z'/%3E%3C/svg%3E")}
.sn-fg[data-shape=cliff-right]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0H42L50 10L32 22L46 35L20 48L38 60L24 74L48 86L36 100H100Z'/%3E%3C/svg%3E")}
.sn-fg[data-shape=mound]{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V28L10 16L20 24L33 6L46 20L56 12L68 36L80 48L90 68L100 100Z'/%3E%3C/svg%3E")}

.sn-fg[data-shape=disc]{filter:none;aspect-ratio:1/1;height:auto !important;object-fit:cover;--m:radial-gradient(closest-side,#000 calc(var(--disc,95%) - 1.2%),transparent var(--disc,95%))}

/* "Show image slots" helper */
.sn-slot{position:absolute;z-index:5;display:none;transform:translate(-50%,-50%);background:#ffd400;color:#111;font:600 12px/1.3 Inter,system-ui,sans-serif;padding:6px 9px;border-radius:6px;white-space:nowrap;pointer-events:none;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.sn-slot small{display:block;font-weight:500;opacity:.75}
.sn-slot.sn-bgslot{transform:none;left:max(5vw,20px);top:96px;background:#7ee0ff}
.sn-debug .sn-slot{display:block}
.sn-debug .sn-vignette{opacity:.25}
.sn-debug .sn-fg{outline:2px dashed #ffd400;outline-offset:-2px}
#sn-slotsBtn{position:absolute;z-index:6;left:max(5vw,20px);bottom:30px;height:44px;padding:0 16px;border-radius:999px;border:1.5px solid rgba(255,255,255,.55);background:rgba(5,7,13,.35);color:#fff;font:600 14px Inter,system-ui,sans-serif;cursor:pointer}
#sn-slotsBtn[aria-pressed=true]{background:#ffd400;color:#111;border-color:#ffd400}
#sn-slotsBtn:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* darkening behind the text, like the template's radial gradient shape */
.sn-shade{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 58% 46% at var(--sx,50%) 50%,rgba(5,5,5,.55),rgba(5,5,5,0) 72%)}
.sn-slide-right .sn-shade{--sx:74%}
.sn-slide-left .sn-shade{--sx:26%}
.sn-vignette{position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(180deg,rgba(5,7,13,.55) 0%,rgba(5,7,13,0) 18%,rgba(5,7,13,0) 78%,rgba(5,7,13,.6) 100%)}

/* ---------- text ---------- */
.sn-copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:110px max(7vw,20px) 120px;pointer-events:none;--zin:.82;--zout:1.35}
.sn-slide-right .sn-copy{align-items:flex-end;text-align:right}
.sn-slide-left .sn-copy{align-items:flex-start;text-align:left}
.sn-copy>
.sn-small{margin:0 0 14px;font-size:17px;font-weight:500;color:var(--dim)}
.sn-big{margin:0 0 34px;font-family:Archivo,Inter,sans-serif;font-stretch:115%;font-weight:700;font-size:clamp(38px,6.2vw,96px);line-height:1.02;letter-spacing:-.025em;max-width:13ch;text-wrap:balance}
.sn-wd{display:inline-block}
.sn-anim{transition:opacity .9s ease,transform 1.2s cubic-bezier(.16,1,.3,1),filter .9s ease;transition-delay:calc(var(--i)*70ms)}
.sn-pre .sn-anim{opacity:0;transform:translateY(26px) scale(var(--zin));filter:blur(10px);transition:none}
.sn-out .sn-anim{opacity:0;transform:scale(var(--zout));filter:blur(12px);transition:opacity .45s ease,transform .7s cubic-bezier(.55,0,.9,.4),filter .45s ease;transition-delay:calc(var(--i)*25ms)}
.sn-enter{display:inline-flex;align-items:center;gap:14px;height:54px;padding:0 10px 0 26px;border-radius:999px;border:1.5px solid rgba(255,255,255,.75);text-decoration:none;font-weight:600;font-size:16px;background:rgba(5,7,13,.15)}
.sn-enter i{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#05070d;transition:transform .4s cubic-bezier(.16,1,.3,1)}
.sn-enter:hover{background:#fff;color:#05070d}
.sn-enter:hover i{background:#05070d;color:#fff;transform:translateY(3px)}

/* ---------- global UI ---------- */
.sn-top{position:absolute;z-index:6;top:0;left:0;right:0;height:84px;display:flex;align-items:center;gap:34px;padding:0 max(5vw,20px)}
.sn-logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:18px}
.sn-logo b{font-family:Archivo,Inter,sans-serif;font-stretch:115%;font-weight:800}
.sn-top nav{margin-left:auto;display:flex;gap:30px}
.sn-top nav 
.sn-top nav a:hover{opacity:1;text-decoration:underline;text-underline-offset:6px}
#sn-progress{position:absolute;z-index:7;top:0;left:0;height:3px;width:100%;background:var(--accent);transform-origin:0 50%;transform:scaleX(0)}
.sn-ctrl{position:absolute;z-index:6;right:max(5vw,20px);bottom:30px;display:flex;align-items:center;gap:22px}
.sn-count{display:flex;align-items:baseline;gap:8px;font-family:Archivo,Inter,sans-serif;font-stretch:112%;font-weight:700}
.sn-num{display:inline-block;overflow:hidden;height:1.1em;line-height:1.1;font-size:30px}
#sn-num{display:inline-block}
.sn-tot{font-size:15px;opacity:.6}
.sn-arrows{display:flex;flex-direction:column;gap:6px}
.sn-arrows button{width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55);background:rgba(5,7,13,.2);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.sn-arrows button:hover{background:#fff;color:#05070d;border-color:#fff}
.sn-enter:focus-visible,.sn-arrows button:focus-visible,.sn-top a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ---------- placeholder page content (delete if you only need the slider) ---------- */
.sn-after{padding:clamp(48px,8vw,110px) max(7vw,20px);max-width:1100px;margin:0 auto}
.sn-after h2{font-family:Archivo,Inter,sans-serif;font-stretch:112%;font-size:clamp(28px,3.4vw,44px);line-height:1.08;margin:0 0 14px}
.sn-after p{color:var(--dim);max-width:62ch;margin:0}

@media(max-width:760px){
 .sn-top{height:68px}.sn-top nav{gap:18px}.sn-top nav a:not(:last-child){display:none}
 .sn-copy{padding:90px 20px 130px}
 .sn-slide-right .sn-copy,.sn-slide-left .sn-copy{align-items:center;text-align:center}
 .sn-slide-right .sn-shade,.sn-slide-left .sn-shade{--sx:50%}
 .sn-small{font-size:15px}.sn-big{margin-bottom:26px}
 .sn-ctrl{right:20px;bottom:18px;gap:16px}
 #sn-slotsBtn{bottom:18px;left:20px;height:40px;padding:0 12px;font-size:13px}
 .sn-arrows{flex-direction:row}
 .sn-num{font-size:24px}
}
@media(prefers-reduced-motion:reduce){.sn-anim,.sn-pre .sn-anim,.sn-out .sn-anim{transition:opacity .3s !important;transform:none !important;filter:none !important}}

/* Existing Navars copy and buttons, over the supplied visual composition. */
#sn-hero{--ink:#fff;--dim:rgba(255,255,255,.72);--night:#05070d;--accent:#fff;height:calc(100svh - 85px);min-height:650px;color:white}
#sn-hero .sn-wrap{max-width:none;margin:0;width:auto}
#sn-hero .sn-site-copy{align-items:flex-start;text-align:left;padding:70px max(calc((100vw - 1250px)/2),4vw) 100px;pointer-events:none}
#sn-hero .sn-site-copy>*{max-width:620px;pointer-events:auto}
#sn-hero .sn-site-copy h1{font-size:clamp(40px,4.9vw,72px);line-height:1.04;letter-spacing:-.045em;margin:0 0 24px}
#sn-hero .sn-site-copy .lead{font-size:18px;max-width:550px;line-height:1.65;color:#dbe4f0}
#sn-hero .sn-site-copy .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
#sn-hero .sn-site-copy .button{pointer-events:auto}
#sn-hero .sn-shade{--sx:26%}
#sn-hero .sn-ctrl{bottom:24px}#sn-hero .sn-count{font-family:inherit}
.starry-home{background:#05070d;position:relative}.starry-home>.starfield{display:none}.sn-proof{position:relative;z-index:2;margin-top:0;padding:25px 0 30px}.sn-proof .recognition-separate{display:block}.sn-proof .recognition-logo{overflow:hidden}
@media(max-width:760px){#sn-hero{height:auto;min-height:720px}#sn-hero .sn-site-copy{padding:50px 22px 120px}#sn-hero .sn-site-copy h1{font-size:clamp(38px,9vw,58px)}#sn-hero .sn-site-copy .lead{font-size:16px}#sn-hero .sn-site-copy>*{max-width:100%}.sn-proof{padding-top:22px}}
#sn-hero .sn-bg{max-width:none}.sn-proof .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}

#sn-hero .sn-anim{transition-duration:.25s,.35s,.25s;transition-delay:calc(var(--i)*25ms)}#sn-hero .sn-out .sn-anim{transition-duration:.15s,.2s,.15s;transition-delay:0s}

/* Transparent uploads retain their natural silhouette and fit inside the scene. */
#sn-hero .sn-fg.sn-custom-foreground{width:clamp(200px,38vw,620px);height:72%;left:auto;right:2%;top:auto;bottom:4%;object-fit:contain;object-position:center;aspect-ratio:auto;border-radius:0;clip-path:none;mask:none;-webkit-mask:none;filter:none}
#sn-hero .sn-fg.sn-custom-foreground[data-foreground-slot="2"]{width:clamp(100px,17vw,260px);height:30%;right:30%;top:5%;bottom:auto}
@media(max-width:760px){#sn-hero .sn-fg.sn-custom-foreground{width:68%;height:43%;right:-6%;bottom:1%}#sn-hero .sn-fg.sn-custom-foreground[data-foreground-slot="2"]{width:25%;height:20%;right:3%;top:3%;bottom:auto}}

/* Hide incomplete images, including failed fallbacks, without changing layout. */
#sn-hero .sn-fg.sn-image-pending{visibility:hidden}

/* Slide 1 only: lift the satellite above the Earth on mobile. */
@media(max-width:760px){
 #sn-hero .sn-fg.sn-custom-foreground[data-foreground-src="assets/hero-slide-01-foreground-01.png"]{bottom:19%}
}
