/* Site motion (24 Nov 2026): scroll progress line on every page; sections fade up as you reach them
   (motion.js tags them on every page); the home page's hero tilt, feature strip, pinned three-step
   story and count-up numbers. Everything is still for "Reduce motion". */
/* The icon's blue and amber. Defined here (24 Nov): they used to live in the retired new-look.css, so without
   this the numbers, progress line and dots had no colour. */
:root{--blue:#2f7bff;--amber-ink:#f39a1d}
/* Scroll progress line, in the icon's blue and amber */
.nl-progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:60;transform-origin:0 50%;transform:scaleX(0);
  background:linear-gradient(90deg,var(--blue),var(--amber-ink));will-change:transform}

/* Hero: words rise in; the screenshot starts tipped back and flattens as you scroll */
.nl-word{display:inline-block;opacity:0;transform:translateY(.6em);animation:nlRise .8s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes nlRise{to{opacity:1;transform:none}}
.nl-tilt{perspective:1600px}
.nl-tilt img{transform-origin:50% 0;transform:rotateX(calc(var(--p,1) * 22deg)) scale(calc(1 - var(--p,1) * .06));
  will-change:transform;box-shadow:0 40px 90px rgba(0,0,0,.55);border-radius:8px}
.nl-glow{position:absolute;inset:-20% -10% auto auto;width:60vw;height:60vw;max-width:900px;max-height:900px;pointer-events:none;
  background:radial-gradient(closest-side,rgba(47,123,255,.22),rgba(243,154,29,.10) 55%,transparent 70%);}
header#top{position:relative;overflow:hidden}

/* Reveal on scroll */
[data-reveal]{opacity:0;transform:translateY(40px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
[data-reveal].in{opacity:1;transform:none}
[data-reveal-delay="1"]{transition-delay:.12s}[data-reveal-delay="2"]{transition-delay:.24s}[data-reveal-delay="3"]{transition-delay:.36s}

/* Feature strip that moves with your scroll */
.nl-strip{background:var(--bench);color:var(--fg);overflow:hidden;padding:34px 0;border-block:1px solid var(--bline)}
.nl-strip .row{display:flex;gap:46px;white-space:nowrap;font-weight:600;font-size:clamp(34px,5vw,68px);letter-spacing:-.03em;
  will-change:transform}
.nl-strip .row span{display:inline-flex;align-items:center;gap:46px}
.nl-strip .row span::after{content:"";width:12px;height:12px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--amber-ink))}
.nl-strip .row.two{margin-top:10px;transform:translateX(-40%);color:transparent;-webkit-text-stroke:1px #55575c}

/* "Three things": the picture stays put while the steps scroll past */
.nl-story{display:grid;grid-template-columns:5fr 7fr;gap:var(--gap);margin-top:30px}
.nl-step{min-height:78vh;display:flex;flex-direction:column;justify-content:center;opacity:.28;transition:opacity .5s}
.nl-step.on{opacity:1}
.nl-step .n{font-family:var(--label);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink3);font-weight:700}
.nl-step h3{font-size:clamp(34px,3.6vw,50px);margin:10px 0 15px}
.nl-step p,.nl-step li{color:var(--ink2);max-width:46ch}
.nl-step .mob{display:none}
.nl-frame{position:sticky;top:12vh;height:76vh;display:grid;place-items:center}
.nl-frame figure{grid-area:1/1;margin:0;width:100%;opacity:0;transform:scale(.94) translateY(30px);
  transition:opacity .7s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.nl-frame figure.on{opacity:1;transform:none}
.nl-frame img{width:100%;height:auto;border-radius:8px;box-shadow:0 30px 70px rgba(20,20,24,.25)}
.nl-frame .pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
.nl-dots{display:flex;gap:8px;margin-top:22px;justify-content:center}
.nl-dots i{width:28px;height:3px;border-radius:2px;background:var(--rule);transition:background .4s}
.nl-dots i.on{background:linear-gradient(90deg,var(--blue),var(--amber-ink))}

/* Numbers that count up */
.nl-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);text-align:center;padding-block:90px}
.nl-stats b{display:block;font-size:clamp(54px,7vw,96px);font-weight:600;letter-spacing:-.04em;line-height:1;
  background:linear-gradient(135deg,var(--blue),var(--amber-ink));-webkit-background-clip:text;background-clip:text;color:transparent}
.nl-stats span{display:block;margin-top:12px;font-family:var(--label);font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--fg2)}

/* Explore cards: gentle depth and lift */
.explore a{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.explore a:hover{transform:translateY(-8px)}
.explore a img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.explore a:hover img{transform:scale(1.03)}

@media (max-width:900px){
  .nl-story{grid-template-columns:1fr}
  .nl-frame,.nl-dots{display:none}
  .nl-step{min-height:0;opacity:1;margin-bottom:60px}
  .nl-step .mob{display:block;margin-top:20px}
  .nl-step .mob img{width:100%;height:auto;border-radius:6px}
  .nl-stats{grid-template-columns:repeat(2,1fr);row-gap:50px}
}
@media (prefers-reduced-motion:reduce){
  .nl-word,[data-reveal]{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
  .nl-tilt img{transform:none!important}
  .nl-strip .row,.nl-strip .row.two{transform:none!important}
  .nl-glow{transform:none!important}
}

/* ?still: everything shown as-is, nothing moves */
html.nl-still [data-reveal]{opacity:1;transform:none;transition:none}
html.nl-still .nl-tilt img{transform:none}
html.nl-still .nl-step{opacity:1}
html.nl-still .nl-frame figure:first-child{opacity:1;transform:none}
