/* The opening moment (about 3.5 seconds, first visit to the home page), symmetric on every axis: a round
   turquoise glow swells on navy, radar rings ripple out of the centre, the magnifier springs in, three products
   at equal angles are drawn into it together, the name opens from its middle, the line rises, the bar fills
   from the centre, and an even wave lifts the screen away to uncover the site.
   Markup and the show/skip decision are inline at the top of index.html, so it paints before the page. */
.nk-intro{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;overflow:hidden;color:#f7f9fc;
 background:radial-gradient(90% 70% at 50% 42%,#17407f 0%,#0c2d62 55%,#071c40 100%);
 animation:nk-out .75s cubic-bezier(.7,0,.2,1) 2.75s forwards;cursor:pointer}
.nk-intro[hidden]{display:none}
/* The wave edge that leads the exit. */
.nk-intro::after{content:"";position:absolute;left:-5%;right:-5%;bottom:-118px;height:120px;
 background:#0bd3b5;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v30c-200 0-400 70-600 70S200 30 0 30z'/%3E%3C/svg%3E") 0 0/100% 100%;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v30c-200 0-400 70-600 70S200 30 0 30z'/%3E%3C/svg%3E") 0 0/100% 100%}
.nk-stage{position:relative;display:flex;flex-direction:column;align-items:center;gap:22px;transform:translateY(-2vh)}
/* The turquoise form behind it all. */
.nk-blob{display:none}
/* Radar: rings ripple out of the centre. */
.nk-radar::before{content:"";position:absolute;inset:-48%;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(11,211,181,.6) 0%,rgba(11,211,181,.2) 42%,transparent 68%);animation:nk-swell 1s cubic-bezier(.2,1.2,.3,1) both,nk-breathe 1.6s ease-in-out 1s infinite}
.nk-radar{position:relative;width:min(56vmin,360px);aspect-ratio:1;display:grid;place-items:center}
.nk-ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(124,200,255,.75);opacity:0;animation:nk-ripple 1.6s cubic-bezier(.2,.7,.2,1) infinite}
.nk-ring:nth-child(2){animation-delay:.35s}.nk-ring:nth-child(3){animation-delay:.7s}
.nk-sweep{display:none}
/* The centre: the Nickel mark in a glowing turquoise disc. */
.nk-core{position:relative;z-index:2;width:34%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:#0bd3b5;
 box-shadow:0 0 0 8px rgba(11,211,181,.18),0 0 46px 6px rgba(11,211,181,.55);animation:nk-pop .8s cubic-bezier(.2,1.7,.35,1) .25s both,nk-beat .9s ease-in-out 1.9s 1}
.nk-core svg{width:52%;height:52%;color:#0c2d62}
/* Products drawn into the magnifier from three sides. */
.nk-item{position:absolute;z-index:1;width:22%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;color:#f7f9fc;
 background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(124,200,255,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.nk-item svg{width:52%;height:52%}
.nk-i1{--x:0%;--y:-175%;animation:nk-orbit 1.95s cubic-bezier(.55,0,.35,1) .5s both}
.nk-i2{--x:-152%;--y:88%;animation:nk-orbit 1.95s cubic-bezier(.55,0,.35,1) .5s both}
.nk-i3{--x:152%;--y:88%;animation:nk-orbit 1.95s cubic-bezier(.55,0,.35,1) .5s both}
/* The name, written in from its start. */
.nk-name{width:min(56vw,260px);height:auto;clip-path:inset(0 50% 0 50%);animation:nk-write .8s cubic-bezier(.6,0,.2,1) .75s forwards}
.nk-line{margin:0;font-size:clamp(24px,3.2vw,40px);font-weight:800;letter-spacing:-.01em;text-align:center;animation:nk-rise .6s cubic-bezier(.2,.9,.3,1) 1.05s both}
.nk-sub{margin:-12px 0 0;font-size:clamp(15px,1.6vw,19px);color:rgba(247,249,252,.75);animation:nk-rise .6s cubic-bezier(.2,.9,.3,1) 1.2s both}
.nk-bar{width:min(60vw,260px);height:5px;border-radius:4px;background:rgba(255,255,255,.14);overflow:hidden}
.nk-bar i{display:block;height:100%;background:linear-gradient(90deg,#0bd3b5,#7cc8ff);transform-origin:center;animation:nk-fill 2.3s cubic-bezier(.4,0,.2,1) .3s both}
.nk-skip{position:absolute;bottom:calc(22px + env(safe-area-inset-bottom));inset-inline-start:22px;color:rgba(247,249,252,.7);font-size:14px;background:none;padding:10px 12px;border-radius:999px}
.nk-skip:focus-visible{outline:2px solid #0bd3b5}

@keyframes nk-swell{from{scale:.2;opacity:0}}
@keyframes nk-breathe{50%{scale:1.08;opacity:.85}}
@keyframes nk-morph{50%{border-radius:58% 42% 38% 62%/52% 60% 40% 48%;rotate:12deg}}
@keyframes nk-ripple{0%{transform:scale(.35);opacity:.9}100%{transform:scale(1.25);opacity:0}}
@keyframes nk-spin{to{rotate:-360deg}}
@keyframes nk-in{from{opacity:0}}
@keyframes nk-pop{0%{transform:scale(0) rotate(-40deg)}100%{transform:none}}
@keyframes nk-beat{50%{transform:scale(1.08)}}
@keyframes nk-orbit{0%{transform:translate(var(--x),var(--y)) scale(.6);opacity:0}25%{opacity:1;transform:translate(calc(var(--x)*.9),calc(var(--y)*.9)) scale(1)}70%{opacity:1}100%{transform:translate(0,0) scale(.2);opacity:0}}
@keyframes nk-write{to{clip-path:inset(0 0 0 0)}}
@keyframes nk-rise{from{opacity:0;transform:translateY(14px)}}
@keyframes nk-fill{from{transform:scaleX(0)}}
@keyframes nk-out{to{transform:translateY(calc(-100% - 130px))}}
body.intro-active{overflow:hidden}
