/* LIFEVerity North Star — the closing scene of the Swimming Upstream keynote, carried to the site.
   A star lifts from the compass, arcs across the misty lake, and settles as the North Star.
   The final state (compass + North Star) is the default, so the scene is complete without JavaScript
   and under reduced motion. northstar.js arms and plays it once per page view. */

/* The footer manifesto was drawn with generated CSS text; it is now real text inside the scene. */
footer .foot-grid:before,footer .foot-grid:after{content:none!important;display:none!important}

.ns-close{position:relative;overflow:hidden;isolation:isolate;display:grid;align-items:center;
  min-height:clamp(440px,44vw,620px);margin:-68px 0 60px;
  background:#0B1D36 url("assets/northstar-lake.jpg") center 60%/cover no-repeat}
.ns-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%;z-index:-2;pointer-events:none}
.ns-shade{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(7,20,38,.78) 0%,rgba(7,20,38,.42) 52%,rgba(7,20,38,.18) 100%),
             linear-gradient(0deg,#071426 0%,rgba(7,20,38,0) 30%)}
.ns-grid{display:grid;grid-template-columns:minmax(190px,330px) 1fr;gap:clamp(28px,5vw,76px);align-items:center;padding-top:clamp(70px,8vw,120px);padding-bottom:clamp(56px,6vw,90px)}
.ns-compass{position:relative;width:100%;aspect-ratio:1}
.ns-seal{display:block;width:100%;height:100%;filter:drop-shadow(0 20px 44px rgba(0,0,0,.5))}
.ns-travel{position:absolute;left:12.5%;top:12.5%;width:75%;height:75%;transform-origin:50% 50%;pointer-events:none;z-index:3;opacity:0}
.ns-motto{margin:0;font-family:var(--footer-serif,var(--serif));font-weight:400;font-size:clamp(2.6rem,5.2vw,6.2rem);line-height:1.08;letter-spacing:-.04em;color:var(--ivory,#FAF7F0)}
.ns-motto span{display:block}
.ns-motto span+span{color:var(--gold-pale,#E5D5B4)}
.ns-north{position:absolute;z-index:2;right:clamp(26px,8vw,150px);top:clamp(30px,5.4vw,78px);width:clamp(52px,5.4vw,78px);height:auto;pointer-events:none;
  animation:nsTwinkle 4.8s ease-in-out infinite alternate}
@keyframes nsTwinkle{from{filter:drop-shadow(0 0 8px rgba(229,196,120,.35));transform:scale(1)}to{filter:drop-shadow(0 0 22px rgba(229,196,120,.75));transform:scale(1.045)}}

/* armed: hidden until the scene plays */
.ns-close.ns-armed .ns-north{opacity:0;animation:none}
.ns-close.ns-armed.ns-done .ns-north{opacity:1;animation:nsTwinkle 4.8s ease-in-out infinite alternate}

@media(max-width:760px){
  .ns-close{min-height:auto}
  .ns-grid{grid-template-columns:1fr;gap:26px;padding-top:96px;padding-bottom:56px}
  .ns-compass{width:min(52vw,220px)}
  .ns-motto{font-size:clamp(2.4rem,11vw,3.4rem)}
  .ns-north{right:24px;top:30px;width:50px}
  .ns-shade{background:linear-gradient(180deg,rgba(7,20,38,.45) 0%,rgba(7,20,38,.62) 55%,#071426 100%)}
}
@media(prefers-reduced-motion:reduce){.ns-north,.hero-northstar{animation:none!important}}

/* The North Star on the homepage chart: the orbit turns, the North Star holds its bearing. */
.hero-orbit-frame{position:absolute;right:-7vw;top:50%;z-index:2;width:min(68vw,900px);aspect-ratio:1;transform:translateY(-48%);pointer-events:none}
.hero-northstar{position:absolute;left:50%;top:0;width:clamp(34px,3.4vw,48px);height:auto;transform:translate(-50%,-50%);
  animation:nsHeroTwinkle 5.2s ease-in-out infinite alternate}
@keyframes nsHeroTwinkle{from{filter:drop-shadow(0 0 6px rgba(229,196,120,.3));opacity:.86}to{filter:drop-shadow(0 0 18px rgba(229,196,120,.7));opacity:1}}
@media(max-width:900px){.hero-orbit-frame{right:-58vw;width:130vw}}
@media(max-width:600px){.hero-orbit-frame{opacity:.8}}

/* Speaking: program library (three cards across) */
.program-library{padding-top:0}
.program-library .format-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.program-library .format-grid{grid-template-columns:1fr}}

/* Captions that give the North Star its meaning */
.ns-caption{margin:26px 0 0;max-width:34em;font-family:var(--serif);font-style:italic;font-size:clamp(1.05rem,1.5vw,1.35rem);line-height:1.5;color:rgba(250,247,240,.82)}
.verity-meaning{position:relative}
.verity-star{display:inline-block;width:1.35em;height:auto;vertical-align:-.28em;margin-right:.45em;filter:drop-shadow(0 0 6px rgba(191,155,85,.45))}
@media(max-width:760px){.ns-caption{margin-top:18px}}

/* LIFEVerity wordmark: the North Star is the dot of the i in Verity (display sizes only) */
.vstar{white-space:nowrap}
.vi{position:relative;display:inline-block;line-height:1}
.vi img{display:inline-block;position:absolute;left:52%;top:.255em;width:.32em;height:.32em;max-width:22px;max-height:22px;transform:translate(-50%,-50%);filter:drop-shadow(0 0 .07em rgba(229,196,120,.75));pointer-events:none}
.ns-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.life-strip .vi img,.paper .vi img,.capture-section .vi img{filter:brightness(.72) saturate(1.3) drop-shadow(0 0 .04em rgba(142,111,49,.6))}
