/* North Star v3.5 motion overlay. Load after v33.css.
   CSS + motion.js only. No Lenis, no GSAP, no CDN, no inline styles.
   Native 1:1 scroll. Hero entrance is CSS-first (animation: both).
   Below-fold reveals wait for a real scroll. Static lighting only (no looping wash). */

/* Native scroll — override site.css html{scroll-behavior:smooth} */
html{scroll-behavior:auto}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* In-page anchors land below the sticky header */
html{scroll-padding-top:4.75rem}
#how,#pilot,#faq,#contact,#service,#problem,#compare{scroll-margin-top:4.75rem}
@media(max-width:480px){
  html{scroll-padding-top:4.5rem}
  #how,#pilot,#faq,#contact,#service,#problem,#compare{scroll-margin-top:4.5rem}
}

/* Lighter sticky header blur — opaque fill does the work, less paint on scroll */
header.site{
  background:#09090ff5;
  backdrop-filter:saturate(120%) blur(6px);
  -webkit-backdrop-filter:saturate(120%) blur(6px);
}

/* Reveals: JS-off and reduced-motion stay visible. allow-motion hides below-fold. */
.js .reveal{opacity:1;transform:none}
.js.allow-motion .reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .78s cubic-bezier(.22,1,.36,1),transform .78s cubic-bezier(.22,1,.36,1);
  transition-delay:0s;
}
@media (max-width:719px){
  .js.allow-motion .reveal{transform:translateY(14px)}
}
.js.allow-motion .reveal.in{opacity:1;transform:none}
.js.allow-motion .reveal.is-animating{will-change:opacity,transform}
/* Kill the old site.css sibling delays; stagger is applied in JS as a sequence */
.js.allow-motion .probs .reveal:nth-child(2),
.js.allow-motion .probs .reveal:nth-child(3),
.js.allow-motion .journey .reveal:nth-child(2),
.js.allow-motion .journey .reveal:nth-child(3){transition-delay:0s}

/* Journey cards stay readable; they play as a workflow, not a group fade */
.js.allow-motion .journey .step.reveal{
  opacity:1;
  transform:none;
  will-change:auto;
  transition:border-color .45s var(--ease),box-shadow .45s var(--ease);
}

/* Route path: drawn unless motion is allowed and not yet entered */
.js .route-path{stroke-dashoffset:0}
.js.allow-motion .route-path{stroke-dashoffset:1}
.js.allow-motion .journey-wrap.drawn .route-path{
  stroke-dashoffset:0;
  transition:stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
}

/* How-it-works: visible once-through. Steps accumulate .is-on; .is-current is the live one. */
.js.allow-motion .journey-wrap.drawn .step.is-on{
  border-color:#8d74d8;
  box-shadow:0 0 0 1px #8d74d866,0 16px 36px -18px #6a4cff80
}
.js.allow-motion .journey-wrap.drawn .step.is-on .wp{
  box-shadow:0 0 0 6px var(--paper),0 0 0 9px #c4b0ff80,0 0 26px #8b5cf6c0
}
.js.allow-motion .journey-wrap.drawn .step.is-current .wp{transform:scale(1.07)}
@media(prefers-reduced-motion:reduce){
  .journey-wrap.drawn .step.is-on,
  .journey-wrap.drawn .step.is-on .wp,
  .journey-wrap.drawn .step.is-current .wp{transform:none;box-shadow:none}
}

/* Hero entrance — CSS-first. H1 no blur, starts at .55. Window present by ~0.6–0.9s.
   Enquiry sequence is timed in motion.js and should finish around 2.2–2.8s. */
.js.allow-motion .home .hero-copy .eyebrow{animation:ns-soft .36s var(--ease) 0s both}
.js.allow-motion .home .hero-copy .display{animation:ns-rise .4s var(--ease) 0s both}
.js.allow-motion .home .hero-copy .lead{animation:ns-soft .4s var(--ease) .05s both}
.js.allow-motion .home .hero-copy .btns{animation:ns-late .36s var(--ease) .12s both}
.js.allow-motion .home .hero-copy .hero-note{animation:ns-late .36s var(--ease) .2s both}
.js.allow-motion .home .ns33-overview{animation:ns-window-in .62s var(--ease) .25s both}
.js.allow-motion .home .principles{animation:ns-soft .45s var(--ease) .7s both}
@keyframes ns-rise{
  from{opacity:.55;transform:translateY(6px)}
  to{opacity:1;transform:none}
}
@keyframes ns-soft{
  from{opacity:.45;filter:blur(2px)}
  to{opacity:1;filter:blur(0)}
}
@keyframes ns-late{
  from{opacity:0}
  to{opacity:1}
}
@keyframes ns-window-in{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* Enquiry sequence (once). Rows hide only after JS adds .is-ready.
   .is-in / .is-filled must beat the hidden selectors. */
.js.allow-motion .ns33-overview.is-ready:not(.is-settled) .ns33-rows li{
  opacity:0;transform:translateY(10px)
}
.js.allow-motion .ns33-overview.is-ready:not(.is-settled) .ns33-detail > *{
  opacity:0;transform:translateY(8px)
}
.js.allow-motion .ns33-overview.is-ready .ns33-rows li.is-in,
.js.allow-motion .ns33-overview.is-settled .ns33-rows li{
  opacity:1;transform:none;
  transition:opacity .52s cubic-bezier(.22,1,.36,1),transform .52s cubic-bezier(.22,1,.36,1)
}
.js.allow-motion .ns33-overview.is-ready .ns33-detail.is-filled > *,
.js.allow-motion .ns33-overview.is-settled .ns33-detail > *{
  opacity:1;transform:none;transition:opacity .5s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)
}
.js.allow-motion .ns33-overview .ns33-detail.is-filled > :nth-child(2){transition-delay:.06s}
.js.allow-motion .ns33-overview .ns33-detail.is-filled > :nth-child(3){transition-delay:.12s}
.js.allow-motion .ns33-overview .ns33-detail.is-filled > :nth-child(4){transition-delay:.18s}
.js.allow-motion .ns33-overview .ns33-detail.is-filled > :nth-child(5){transition-delay:.24s}
.js.allow-motion .ns33-overview .ns33-rows li.is-in .ns33-status{
  animation:ns-status-in .5s cubic-bezier(.22,1,.36,1) .12s both
}
@keyframes ns-status-in{
  from{opacity:0;transform:translateY(4px) scale(.96)}
  to{opacity:1;transform:none}
}
.js.allow-motion .ns33-overview.is-settled .ns33-status:not(.booked) i{
  animation:ns-breathe 3.2s ease-in-out infinite
}
@keyframes ns-breathe{
  0%,100%{opacity:1}
  50%{opacity:.6}
}

/* Section enter: one-shot localised violet light, not a page-wide looping wash */
.js.allow-motion .home .sec::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0;
  background:radial-gradient(ellipse 70% 55% at 50% 0%,#6a4cff28,transparent 70%);
  transition:opacity 1.35s cubic-bezier(.22,1,.36,1);
}
.js.allow-motion .home .sec.is-entered::after{opacity:1}
.js.allow-motion .home .sec > .wrap,
.js.allow-motion .home .sec > .contact-box{
  position:relative;
  z-index:1;
}

/* Showcase / service panels: a quiet once-through illuminate when they arrive */
.js.allow-motion .panel.reveal.in,
.js.allow-motion .showcase.reveal.in{
  box-shadow:0 0 0 1px #8d74d640,0 24px 48px -24px #6a4cff55;
  transition:opacity .78s cubic-bezier(.22,1,.36,1),transform .78s cubic-bezier(.22,1,.36,1),box-shadow 1s cubic-bezier(.22,1,.36,1);
}

/* Desktop hover: 1px lift + quiet violet glow, no layout shift. Off on touch. */
@media (hover:hover) and (min-width:720px){
  .prob,
  .panel,
  .step,
  .showcase,
  .faqs details,
  .excl{
    transition:transform .2s var(--ease),box-shadow .2s var(--ease),border-color .2s var(--ease),background .3s;
  }
  .panel:hover,
  .step:hover,
  .showcase:hover,
  .excl:hover,
  .faqs details:hover{
    transform:translateY(-1px);
    box-shadow:0 0 0 1px #8d74d866,0 18px 36px -18px #6a4cff66;
  }
  /* .probs clips overflow — glow only, no lift */
  .prob:hover{
    box-shadow:inset 0 0 0 1px #8d74d866,0 0 24px -12px #6a4cff55;
  }
}

/* Buttons keep the existing small lift */
.btn{transition:transform .16s var(--ease),background-color .16s,box-shadow .16s,border-color .16s,filter .16s}
.btn.primary:hover,
.btn.primary:focus-visible{
  background:var(--cta-hover);color:#fff;
  transform:translateY(-1px);
  filter:brightness(1.06)
}
.btn.primary:active{transform:none;filter:brightness(.96);background:#5838c7}
.hdr-cta:hover,.hdr-cta:focus-visible{transform:translateY(-1px);filter:brightness(1.06)}
.link{transition:color .16s,filter .16s}
.link:hover,.link:focus-visible{filter:brightness(1.08)}
nav.top a:hover,nav.top a:focus-visible,.menu nav a:hover,.menu nav a:focus-visible{color:#fff}
.brand:focus-visible,.btn:focus-visible,.link:focus-visible,nav.top a:focus-visible,.menu nav a:focus-visible{
  outline:2px solid #c6b2ff;outline-offset:3px
}

/* Mobile typography: no blur. Kicker must not wrap to a lone "UP". */
@media (max-width:719px){
  .js.allow-motion .home .hero-copy .eyebrow,
  .js.allow-motion .home .hero-copy .lead,
  .js.allow-motion .home .principles{animation-name:ns-rise}
  .js.allow-motion .ns33-overview.is-settled .ns33-status:not(.booked) i{animation:none}
  .js.allow-motion .home .sec::after{background:radial-gradient(ellipse 80% 40% at 50% 0%,#6a4cff1f,transparent 70%)}
}
@media (max-width:480px){
  .ns33-header{flex-wrap:wrap;align-items:flex-start;gap:8px 10px}
  .ns33-window{flex:1 1 auto;min-width:0}
  .ns33-kicker{white-space:nowrap;letter-spacing:.04em}
  .ns33-demo-label{margin-left:auto}
}
@media (max-width:360px){
  .ns33-kicker{letter-spacing:.02em}
}

/* Laptop viewport: first activity row can clear 900px. Tall screens keep v3.3 padding. */
@media (min-width:1100px) and (max-height:940px){
  .home .hero{padding-top:3.6rem}
  .home .hero-grid{gap:2.4rem}
  .home .hero h1{margin-bottom:1rem}
  .home .hero .lead{margin-bottom:1rem}
  .home .hero .hero-note{margin-top:.85rem}
}

/* Reduced motion: settled, visible, no required blur or motion */
@media (prefers-reduced-motion:reduce){
  .js .reveal,
  .js .home .hero-copy .eyebrow,
  .js .home .hero-copy .display,
  .js .home .hero-copy .lead,
  .js .home .hero-copy .btns,
  .js .home .hero-copy .hero-note,
  .js .home .ns33-overview,
  .js .home .principles,
  .js .ns33-rows li,
  .js .ns33-detail > *,
  .js .ns33-status,
  .js .ns33-status i,
  .js .journey-wrap .step,
  .js .journey-wrap .wp,
  .js .home .sec::after,
  .js .panel,
  .js .showcase,
  .js .compare-step,
  .js .compare-msg{
    opacity:1!important;filter:none!important;transform:none!important;animation:none!important;transition:none!important
  }
  .js .route-path{stroke-dashoffset:0!important;transition:none!important}
  .js .home .sec::after{opacity:0!important}
}


/* v3.6 Without vs With comparison. Tasteful, one-shot, no pin-scrub. */
.compare{
  display:grid;
  gap:1.15rem;
  min-width:0;
}
@media(min-width:960px){
  .compare{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem;align-items:start}
}
#compare .sec-head{margin-bottom:2.1rem}
#compare .sec-head .sub{max-width:38rem}
.compare-col{
  min-width:0;
  background:#13131d;
  border:1px solid #3a334c;
  border-radius:var(--r);
  padding:clamp(1.05rem,2.2vw,1.55rem) clamp(1rem,2.1vw,1.5rem) 1.2rem;
}
.compare-with{
  border-color:#5a4578;
  background:radial-gradient(ellipse at 98% 0%,#251b41 0%,#161321 62%);
  box-shadow:0 0 0 1px #8d74d633;
}
.compare-tag{
  margin:0 0 .35rem;
  font-size:.72rem;
  font-weight:650;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#b9b3c9;
}
.compare-with .compare-tag{color:#c4b0ff}
.compare-col h3{
  margin:0 0 .95rem;
  font-family:var(--sans);
  font-weight:600;
  font-size:1.15rem;
  letter-spacing:-.03em;
  color:var(--ink);
}
.compare-steps{
  list-style:none;
  margin:0;
  padding:0;
  position:relative;
}
.compare-steps::before{
  content:"";
  position:absolute;
  left:5px;
  top:.55rem;
  bottom:1.1rem;
  width:1px;
  background:linear-gradient(#3a334c,#2a2635);
  pointer-events:none;
}
.compare-with .compare-steps::before{background:linear-gradient(#8d74d888,#3a334c)}
.compare-step{
  position:relative;
  padding:0 0 1rem 1.6rem;
  color:var(--ink-2);
}
.compare-step:last-child{padding-bottom:0}
.compare-step::before{
  content:"";
  position:absolute;
  left:0;
  top:.45rem;
  width:11px;
  height:11px;
  border-radius:50%;
  background:#13131d;
  border:2px solid #6b6578;
  z-index:1;
}
.compare-with .compare-step::before{border-color:#8d74d8;background:#161321}
.compare-step.is-lost::before{border-color:#a8906a;background:#a8906a;box-shadow:0 0 0 4px #a8906a22}
.compare-step.is-recovered::before{border-color:#c4b0ff;background:#c4b0ff;box-shadow:0 0 0 4px #8d74d855}
.compare-step .t{
  display:block;
  font-size:.74rem;
  font-weight:650;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:#9b95ab;
  margin-bottom:.2rem;
}
.compare-with .compare-step .t{color:#c4b0ffc4}
.compare-step strong{
  display:block;
  color:var(--ink);
  font-weight:600;
  font-size:1rem;
  letter-spacing:-.02em;
}
.compare-step p{margin:.2rem 0 0;font-size:.95rem}
.compare-msg{
  display:block;
  margin:.55rem 1.1rem 0 0;
  padding:.62rem .85rem;
  border-radius:16px 16px 16px 5px;
  background:#2a2635;
  color:#f1edfb;
  font-size:.9rem;
  line-height:1.45;
  border:1px solid #3d334e;
  max-width:22rem;
}
.compare-msg.reply{
  margin:.65rem 0 0 1.2rem;
  border-radius:16px 16px 5px 16px;
  background:#1f1a2c;
  border-color:#5a4578;
}
.compare-caption{
  margin:1rem 0 0;
  font-size:.82rem;
  color:#9b95ab;
  text-align:center;
}
.compare-step.is-lost strong{color:#e8d9b8}
.compare-step.is-recovered strong{color:#efe9ff}
.compare-step.is-lost .t{color:#e8d9b8;font-size:.8rem;letter-spacing:.06em}
.compare-step:not(:has(strong)) .t{font-size:.8rem;color:var(--ink);letter-spacing:.06em}
.compare-step.is-lost:not(:has(strong)) .t{color:#e8d9b8}

.compare-step.is-recovered .t{color:#efe9ff}

/* Motion: steps stay visible without JS / reduced motion. allow-motion reveals on play. */
.js .compare-step{opacity:1;transform:none}
.js.allow-motion .compare-step:not(.is-on){
  opacity:0;
  transform:translateY(12px);
  max-height:0;
  padding-bottom:0;
  overflow:hidden;
  margin:0;
}
.js.allow-motion .compare-step.is-on{
  opacity:1;
  transform:none;
  max-height:22rem;
  overflow:visible;
  transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1),max-height .55s cubic-bezier(.22,1,.36,1);
}
.js.allow-motion .compare-step.is-on.is-animating{will-change:opacity,transform,max-height}
.js.allow-motion .compare-step.is-on .compare-msg{
  animation:ns-msg-in .45s cubic-bezier(.22,1,.36,1) .12s both;
}
@keyframes ns-msg-in{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@media (max-width:719px){
  .compare-msg,.compare-msg.reply{margin-left:0;margin-right:0;max-width:100%}
  .js.allow-motion .compare-step{transform:translateY(12px)}
}
