/* =====================================================================================
   Neuron Tech - motion & polish layer (every public page, loaded after site.css)
   One idea everywhere: the signal. Traces draw, the chip pulses, words rise in, cards light up where the pointer is.
   Rules: only transform / opacity / clip-path move; colours are tokens; loops stop while off screen (motion.js sets .is-paused) and
   everything rests in its final state under prefers-reduced-motion (the universal rule in site.css).
   ===================================================================================== */

/* ── Page to page: the old page fades, the new one rises; a product photo flies from its card into the product page ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: nt-header; }
  .pd__main { view-transition-name: nt-shot; }
  .phone-bar { view-transition-name: nt-bar; }
}
::view-transition-old(root) { animation: nt-vt-out .18s ease-in both; }
::view-transition-new(root) { animation: nt-vt-in .36s cubic-bezier(.2, .7, .2, 1) both; }
::view-transition-group(nt-shot) { animation-duration: .46s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes nt-vt-out { to { opacity: 0; } }
@keyframes nt-vt-in { from { opacity: 0; transform: translateY(14px); } }
/* Light <-> dark: the new theme opens as a circle from the button (site.js animates the clip) */
html.theme-vt .site-header, html.theme-vt .pd__main, html.theme-vt .phone-bar { view-transition-name: none; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

main { overflow-x: clip; }   /* blocks that slide in from the side never widen the page */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

:is(.page-hero, .cp-hero, .swp-hero) .crumbs ol { color: var(--text-2); }   /* 4.5:1 on the aurora */

/* ── Header ── */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--brand); transform: scaleX(0); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) { .site-header::after { animation: nt-progress linear both; animation-timeline: scroll(root block); } }
@keyframes nt-progress { to { transform: none; } }
.nav__link:hover { background: none; }
.nav__link::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent-text);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .32s var(--ease);
}
.nav__link:hover::before, .nav__link:focus-visible::before { transform: none; transform-origin: 0 50%; }
.nav__link[aria-current="page"]::before { display: none; }
.nav__link[aria-current="page"]::after { transform-origin: 0 50%; animation: nt-grow-x .6s var(--ease) .15s backwards; }
@keyframes nt-grow-x { from { transform: scaleX(0); } }
.brand__logo { transition: height .2s ease-out, transform .35s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04) rotate(-1deg); }
.icon-btn .ic { transition: transform .3s var(--ease-pop); }
@media (hover: hover) { .icon-btn:hover .ic { transform: scale(1.16); } }
[data-theme-toggle] .ic { animation: nt-swap .55s var(--ease-pop) backwards; }
@keyframes nt-swap { from { opacity: 0; transform: rotate(-120deg) scale(.3); } }
.mega:not([hidden]), .hsearch:not([hidden]) { animation: nt-drop .3s var(--ease) backwards; }
@keyframes nt-drop { from { opacity: 0; transform: translateY(-12px); } }
.mega__grid > li, .mega__aside { animation: nt-rise-s .45s var(--ease) backwards; }
.mega__grid > li:nth-child(3n+1) { animation-delay: 50ms; } .mega__grid > li:nth-child(3n+2) { animation-delay: 100ms; } .mega__grid > li:nth-child(3n) { animation-delay: 150ms; }
.mega__aside { animation-delay: 190ms; }
@keyframes nt-rise-s { from { opacity: 0; transform: translateY(12px); } }
.mega__head .ic { transition: transform .3s var(--ease-pop); }
.mega__head:hover .ic { transform: rotate(-10deg) scale(1.18); }
.suggest:not([hidden]) { animation: nt-drop .22s var(--ease) backwards; }
.drawer__panel { overflow-x: hidden; }
.drawer.is-open .drawer__list > li, .drawer.is-open .drawer__foot > * { animation: nt-right .5s var(--ease) backwards; }
.drawer.is-open .drawer__list > li:nth-child(1) { animation-delay: 70ms; } .drawer.is-open .drawer__list > li:nth-child(2) { animation-delay: 110ms; }
.drawer.is-open .drawer__list > li:nth-child(3) { animation-delay: 150ms; } .drawer.is-open .drawer__list > li:nth-child(4) { animation-delay: 190ms; }
.drawer.is-open .drawer__list > li:nth-child(5) { animation-delay: 230ms; } .drawer.is-open .drawer__list > li:nth-child(6) { animation-delay: 270ms; }
.drawer.is-open .drawer__list > li:nth-child(n+7) { animation-delay: 310ms; } .drawer.is-open .drawer__foot > * { animation-delay: 360ms; }
/* Order-list badge: bumps when something lands in it */
.list-btn.is-bump { animation: nt-bump .55s var(--ease-pop); }
@keyframes nt-bump { 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(.94) rotate(5deg); } }
.nt-fly { position: fixed; z-index: 120; margin: 0; border-radius: 14px; background: var(--tile); box-shadow: var(--shadow-3); object-fit: contain; pointer-events: none; }

/* ── Section headings: eyebrow from the left, words one after another, then the lead and the link ── */
html.js .sec-head.reveal { opacity: 1; }
html.js .sec-head.reveal.in { animation: none; }
html.js .sec-head.reveal:not(.in) :is(.eyebrow, .w, .sec-lead, .link-arrow) { opacity: 0; }
html.js .sec-head.reveal.in .eyebrow { animation: nt-left .6s var(--ease) backwards; }
html.js .sec-head.reveal.in .w { animation: nt-word .7s var(--ease) backwards; animation-delay: calc(80ms + var(--w, 0) * 55ms); }
html.js .sec-head.reveal.in .sec-lead { animation: nt-rise-s .7s var(--ease) .32s backwards; }
html.js .sec-head.reveal.in .link-arrow { animation: nt-right .6s var(--ease) .28s backwards; }
html.js:not(.motion-ok) .sec-head.reveal :is(.eyebrow, .w, .sec-lead, .link-arrow) { animation: nt-show .01s 2.5s both; }

/* Which way a block comes in */
.p-card.reveal, .bento__tile.reveal, .tool.reveal, .cats > .reveal, .clients > .reveal, .proj.reveal, .tip.reveal, .gallery__item.reveal, .review.reveal, .sw.reveal, .sol.reveal { --rv: nt-zoom; }
.visit__card.reveal, .contact-grid > .form-card.reveal, .doc-grid .prose.reveal, .acc.reveal, .partner__in > .reveal:first-child, .swp-demo > .reveal:first-child { --rv: nt-left; }
.visit__map.reveal, .contact-side .reveal, .doc-aside .reveal, .faq-ask.reveal, .partner__actions.reveal, .step.reveal, .swp-demo > .reveal:last-child { --rv: nt-right; }

/* ── The signal: chip, traces, pads and the beads that run along them (home hero + page heroes) ── */
.core { position: absolute; z-index: 2; aspect-ratio: 1; }
.core__body {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 21%; color: var(--white);
  background: radial-gradient(130% 130% at 22% 0%, var(--core-1), var(--core-2) 64%);
  box-shadow: 0 0 0 1px var(--core-edge), var(--core-glow), inset 0 1px 0 color-mix(in srgb, var(--white) 34%, transparent);
}
.core__body::before { content: ""; position: absolute; inset: 8%; border: 1px solid color-mix(in srgb, var(--white) 26%, transparent); border-radius: 17%; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.core__ring {
  position: absolute; inset: 0; padding: 2px; border-radius: inherit; animation: nt-spin 4.6s linear infinite;
  background: conic-gradient(from var(--spin), transparent 0 52%, color-mix(in srgb, var(--white) 55%, transparent) 80%, var(--white) 86%, transparent 90%);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
}
@keyframes nt-spin { to { --spin: 360deg; } }
.core__pins { position: absolute; border-radius: 2px; }
.core__pins--v { inset: -5.5% 17%; background: repeating-linear-gradient(90deg, var(--pin) 0 7.692%, transparent 7.692% 15.384%); }
.core__pins--h { inset: 17% -5.5%; background: repeating-linear-gradient(180deg, var(--pin) 0 7.692%, transparent 7.692% 15.384%); }
.core__wave { position: absolute; inset: 0; border: 2px solid var(--wave); border-radius: 21%; opacity: 0; animation: nt-wave 4.4s cubic-bezier(.2, .6, .3, 1) 1.4s infinite; }
.core__wave--2 { animation-delay: 3.6s; }
@keyframes nt-wave { 0% { opacity: .8; transform: none; } 70%, 100% { opacity: 0; transform: scale(1.7); } }
.core__mark { width: 52%; height: auto; overflow: visible; fill: currentColor; }
.core__icon { display: grid; color: var(--white); font-size: 2.3rem; }
.sig-trace { fill: none; stroke: var(--trace-c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: nt-draw .75s ease-out backwards; animation-delay: calc(.75s + var(--i, 0) * 100ms); }
@keyframes nt-draw { from { stroke-dashoffset: 1; } }
.sig-quiet { fill: none; stroke: var(--trace-quiet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nt-fade 1s ease-out 1s backwards; }
.sig-pad { fill: var(--bg); stroke: var(--trace-c); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: nt-pop .45s var(--ease-pop) backwards; animation-delay: calc(1.3s + var(--i, 0) * 100ms); }
@keyframes nt-pop { from { opacity: 0; transform: scale(.2); } }
.bead { fill: none; stroke: var(--bead); stroke-width: 8; stroke-linecap: round; stroke-dasharray: .001 2; opacity: 0; animation: nt-bead 5.2s linear infinite; animation-delay: calc(1.9s + var(--i, 0) * 1.3s); }
.bead--o { stroke: var(--bead-ring); stroke-width: 13; }
@keyframes nt-bead { 0% { stroke-dashoffset: 0; opacity: 0; } 2% { opacity: 1; } 24% { stroke-dashoffset: -1; opacity: 1; } 26%, 100% { stroke-dashoffset: -1; opacity: 0; } }

/* ── Page heroes ── */
.page-hero::after, .cp-hero::after, .swp-hero::after {
  content: ""; position: absolute; right: -12%; top: -70%; z-index: -1; width: 56%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--aurora-1), transparent); opacity: .7; animation: nt-drift 16s ease-in-out infinite alternate;
}
@keyframes nt-drift { to { transform: translate(-9%, 8%) scale(1.12); } }
.page-hero .crumbs { animation: nt-left .55s var(--ease) backwards; }
.page-hero__title .w { animation: nt-word .75s var(--ease) backwards; animation-delay: calc(.08s + var(--w, 0) * 60ms); }
.page-hero__lead { animation: nt-rise-s .7s var(--ease) .34s backwards; }
.page-hero__trace path { animation: nt-draw .9s var(--ease) .5s backwards; }
.page-hero__trace circle { transform-box: fill-box; transform-origin: center; animation: nt-pop .4s var(--ease-pop) 1.2s backwards; }
.pha__slab {
  position: absolute; left: 33%; top: -18%; width: 34%; height: 136%; border-radius: 30px; transform: skewX(var(--lean));
  background: radial-gradient(circle at 1px 1px, var(--slab-dot) 1px, transparent 0) 0 0 / 16px 16px, linear-gradient(200deg, var(--slab-1), var(--slab-2) 54%, var(--slab-3));
  box-shadow: inset 0 0 0 1px var(--slab-edge); animation: nt-pha-slab .8s var(--ease) backwards;
}
@keyframes nt-pha-slab { from { opacity: 0; transform: skewX(var(--lean)) translateY(60px); } }
.pha__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pha__core { left: 36.05%; top: 27.14%; width: 27.9%; animation: nt-zoom .7s var(--ease-pop) .15s backwards; }
.cp-hero__copy > *, .swp-hero__copy > * { animation: nt-rise-s .65s var(--ease) backwards; }
:is(.cp-hero__copy, .swp-hero__copy) > :nth-child(2) { animation-delay: 80ms; } :is(.cp-hero__copy, .swp-hero__copy) > :nth-child(3) { animation-delay: 160ms; }
:is(.cp-hero__copy, .swp-hero__copy) > :nth-child(4) { animation-delay: 240ms; } :is(.cp-hero__copy, .swp-hero__copy) > :nth-child(n+5) { animation-delay: 320ms; }
.cp-hero__art, .swp-hero__art { animation: nt-right .8s var(--ease) .15s backwards; }

/* ── Cards: the edge lights up where the pointer is; a soft spot follows it ── */
:is(.bento__tile, .cat, .p-card, .proj, .tip, .sol, .sw, .tool, .review, .swp-mini, .quote-plan)::before {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--edge), transparent 72%);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
}
:is(.bento__tile, .sol, .sw, .tool, .review, .quote-plan)::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 72%);
}
@media (hover: hover) {
  :is(.bento__tile, .cat, .p-card, .proj, .tip, .sol, .sw, .tool, .review, .swp-mini, .quote-plan):hover::before,
  :is(.bento__tile, .sol, .sw, .tool, .review, .quote-plan):hover::after { opacity: 1; }
}
/* A tap must not leave a card lifted */
@media (hover: none) { :is(.bento__tile, .cat, .p-card, .proj, .tip, .sol, .sw, .tool, .swp-mini, .quote-plan):hover { transform: none; } }
:is(.bento__tile, .tool).is-tilt, :is(.bento__tile, .tool).is-tilt:hover { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .14s ease-out, border-color .25s, box-shadow .25s; }
:is(.bento__icon, .sol__icon, .tool__icon, .cat__icon, .how__icon, .svc-group__icon, .quote-plan__icon, .faq-ask__icon, .swp-feat__icon, .cp-why__icon) { transition: background-color .2s, color .2s, transform .35s var(--ease-pop); }
@media (hover: hover) {
  .bento__tile:hover .bento__icon, .sol:hover .sol__icon, .tool:hover .tool__icon, .cat:hover .cat__icon, .how:hover .how__icon,
  .svc-group:hover .svc-group__icon, .quote-plan:hover .quote-plan__icon, .swp-feat:hover .swp-feat__icon, .cp-why__item:hover .cp-why__icon { transform: rotate(-8deg) scale(1.08); }
  .bento__tile:hover .bento__icon .ic, .sol:hover .sol__icon .ic, .tool:hover .tool__icon .ic, .how:hover .how__icon .ic { animation: nt-wiggle .6s var(--ease); }
}
@keyframes nt-wiggle { 30% { transform: rotate(16deg); } 65% { transform: rotate(-9deg); } }
.how:hover .how__icon { background: var(--brand); color: var(--on-brand); }
.svc { transition: padding-left .25s var(--ease); }
.svc-group .svc:hover { padding-left: 8px; }

/* ── Buttons: a light runs over the red button; the hero's buttons lean towards the pointer ── */
.btn--brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 5px; transform: skewX(var(--lean)); pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, color-mix(in srgb, var(--white) 30%, transparent) 50%, transparent 62%) 130% 0 / 260% 100% no-repeat;
}
@media (hover: hover) { .btn--brand:hover::after { background-position: -60% 0; transition: background-position .75s var(--ease); } }
.btn:active { transform: translateY(1px) scale(.985); }
[data-magnet] { transition: color .18s ease-out, transform .18s ease-out, translate .35s var(--ease); }
.chip, .tag { transition: color .15s, transform .2s var(--ease); }
@media (hover: hover) { .chip:hover { transform: translateY(-1px); } }

/* ── Ticker: an LED board ── */
.ticker { background: radial-gradient(circle at 1px 1px, var(--glow-1) 1px, transparent 0) 0 0 / 7px 7px, var(--bg); }
.ticker__delta .ic { animation: nt-bob 1.7s ease-in-out infinite; }
.ticker__delta.is-down .ic { animation-direction: alternate-reverse; }
@keyframes nt-bob { 50% { transform: translateY(-3px); } }

/* ── Home: pillars with a small live drawing each ── */
.bento__num { transition: -webkit-text-stroke-color .3s, transform .4s var(--ease); }
.bento__tile:hover .bento__num { transform: translateX(-4px) scale(1.06); -webkit-text-stroke-color: var(--edge); }
.bento__shot { animation: nt-float-s 6s ease-in-out infinite; }
.bento__shot:nth-child(2) { animation-delay: -2s; } .bento__shot:nth-child(3) { animation-delay: -4s; }
@keyframes nt-float-s { 50% { translate: 0 -6px; } }
/* With four photos the big tile fills its height with a 2 x 2 wall of real products */
.bento__shots--4 .bento__shot:nth-child(1) { transform: rotate(-2deg); } .bento__shots--4 .bento__shot:nth-child(2) { transform: rotate(1.5deg) translateY(6px); }
.bento__shots--4 .bento__shot:nth-child(3) { transform: rotate(1.5deg); } .bento__shots--4 .bento__shot:nth-child(4) { transform: rotate(-2deg) translateY(6px); }
.bento__tile:hover .bento__shots--4 .bento__shot { transform: none; }
.bento__shots--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (min-width: 640px) and (max-width: 991px) { .bento__shots--4 .bento__shot:nth-child(n+3) { display: none; } }
.art { display: block; width: 100%; max-width: 300px; height: auto; margin-top: auto; }
.art + .bento__go { margin-top: 0; }
.art__base { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art__run { fill: none; stroke: var(--sig); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .24 2; stroke-dashoffset: .24; animation: nt-ecg 3.2s linear infinite; }
@keyframes nt-ecg { to { stroke-dashoffset: -1; } }
.feed__bg { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1.5; }
.feed__line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feed__scan { fill: var(--sig); opacity: .5; animation: nt-scan 2.8s linear infinite; }
.feed--2 .feed__scan { animation-delay: -1.3s; }
.feed__rec { fill: var(--red); animation: nt-rec 1.4s ease-in-out infinite; }
@keyframes nt-scan { from { transform: none; } to { transform: translateY(44px); } }
@keyframes nt-rec { 50% { opacity: .2; } }
.wifi path { fill: none; stroke: var(--sig); stroke-width: 3; stroke-linecap: round; animation: nt-wifi 2.4s ease-in-out infinite; }
.wifi path:nth-of-type(2) { animation-delay: .25s; } .wifi path:nth-of-type(3) { animation-delay: .5s; }
.wifi circle { fill: var(--sig); }
@keyframes nt-wifi { 0%, 100% { opacity: .18; } 35%, 65% { opacity: 1; } }
.art-app { display: none; }
@media (min-width: 1200px) {
  .bento__tile--wide > :is(h3, p) { max-width: calc(100% - 280px); }
  .art-app { position: absolute; right: 30px; bottom: 26px; display: block; width: 250px; height: auto; }
}
.app__win { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.app__bar { stroke: var(--line-strong); stroke-width: 1.5; }
.app__side { fill: var(--line-strong); transform-box: fill-box; transform-origin: 0 50%; animation: nt-type 6s ease-in-out infinite; }
.app__side:nth-of-type(even) { animation-delay: .4s; }
.app__col { fill: var(--line-strong); transform-box: fill-box; transform-origin: 50% 100%; animation: nt-bar-s 2.6s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -.55s); }
.app__col--on { fill: var(--sig); }
.app__line { fill: none; stroke: var(--brand-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: nt-line 5s ease-in-out infinite; }
@keyframes nt-type { 0%, 100% { transform: scaleX(.55); } 40%, 70% { transform: none; } }
@keyframes nt-bar-s { from { transform: scaleY(.5); } to { transform: none; } }
@keyframes nt-line { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Categories: a leaning sheet of light sweeps over the tile */
.cat {
  background: linear-gradient(98deg, var(--spot) 0 47%, transparent 51%) 100% 0 / 230% 100% no-repeat, var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background-position .55s var(--ease);
}
@media (hover: hover) { .cat:hover { background-position: 0 0; } }

/* Dark bands lean: the tools band and the partner band are cut along the logo's slant and overlap their neighbours */
.tools-band, .partner {
  --cut: clamp(16px, 2.6vw, 42px); z-index: 1; margin-block: calc(-1 * var(--cut)); padding-block: calc(var(--sec-pad) + var(--cut));
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.tools-band::before, .partner::before, .tools-band::after, .partner::after {
  content: ""; position: absolute; top: -20%; left: -30%; width: clamp(120px, 16vw, 240px); height: 140%; border: 1px solid var(--glow-2); border-radius: 28px;
  transform: skewX(var(--lean)); pointer-events: none; animation: nt-pass 26s linear infinite;
}
.tools-band::after, .partner::after { border-color: var(--glow-1); background: var(--glow-1); animation-duration: 38s; animation-delay: -16s; }
@keyframes nt-pass { from { transform: skewX(var(--lean)) translateX(0); } to { transform: skewX(var(--lean)) translateX(calc(130vw + 400px)); } }
.tools-band > .container { position: relative; z-index: 1; }
.tool__row { transform-box: fill-box; transform-origin: 0 50%; animation: nt-slot 6.4s var(--ease) infinite; }
.tool__led { animation: nt-slot-led 6.4s linear infinite; }
.tool__row:nth-of-type(3), .tool__led:nth-of-type(2) { animation-delay: .45s; }
.tool__row:nth-of-type(4), .tool__led:nth-of-type(3) { animation-delay: .9s; }
.tool__row:nth-of-type(5), .tool__led:nth-of-type(4) { animation-delay: 1.35s; }
@keyframes nt-slot { 0% { opacity: 0; transform: translateX(-16px); } 9%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateX(10px); } }
@keyframes nt-slot-led { 0%, 8% { opacity: 0; } 11%, 70% { opacity: 1; } 76%, 100% { opacity: 0; } }
.tool__cone { transform-origin: 18px 18px; animation: nt-cone 5s ease-in-out infinite alternate; }
@keyframes nt-cone { from { transform: rotate(-9deg); } to { transform: rotate(6deg); } }

/* Repair steps: the line fills as each step arrives */
.step::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--sig); transform: scaleY(0); transform-origin: 50% 0; transition: transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + .35s); }
.step.in::after, html:not(.js) .step::after { transform: none; }
.step:last-child::after { display: none; }
.step.in .step__led::after { animation: nt-pop .5s var(--ease-pop) backwards; animation-delay: calc(var(--d, 0) * 110ms + .2s); }
.track-mini { transition: border-color .25s, box-shadow .25s; }
.track-mini:focus-within { border-color: var(--edge); }

/* Photos are wiped in along the page's direction, then breathe on hover */
.proj.reveal.in .proj__media, .tip.reveal.in .tip__media, .gallery__item.reveal.in img, .sol-figure.reveal.in img { animation: nt-wipe .95s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 75ms + .1s); }
@keyframes nt-wipe { from { clip-path: inset(0 0 100% 0); transform: scale(1.06); } to { clip-path: inset(0); } }
.proj__title a, .tip__title a, .sw__name a, .sol__title a { background: linear-gradient(var(--edge), var(--edge)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) { .proj:hover .proj__title a, .tip:hover .tip__title a, .sw:hover .sw__name a, .sol:hover .sol__title a { background-size: 100% 2px; } }

/* Partner band */
.partner__mark { animation: nt-mark-drift 14s ease-in-out infinite alternate; }
@keyframes nt-mark-drift { from { translate: 0 0; rotate: -3deg; } to { translate: -34px 8px; rotate: 4deg; } }

/* Brands: one sliding row (motion.js builds it only when the brands do not fit in one row) */
.brands-mq { margin-top: var(--s-3); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); }
.brands-mq .brands { flex-wrap: nowrap; width: max-content; margin: 0; padding-block: 5px; animation: nt-brands var(--dur, 40s) linear infinite; }
.brands-mq:hover .brands, .brands-mq:focus-within .brands { animation-play-state: paused; }
@keyframes nt-brands { to { transform: translateX(var(--shift, -50%)); } }
.brands a { transition: color .2s, border-color .2s, background-color .2s, transform .25s var(--ease); }
@media (hover: hover) { .brands a:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); transform: translateY(-2px) skewX(-4deg); } }

/* Reviews */
.review__text::before { content: "\201C"; display: block; height: .36em; margin-bottom: .1em; font: italic 800 4.4rem/1 var(--font-display); color: var(--edge); opacity: .55; }
.review__stars span { display: inline-flex; }
.review.in .review__stars span { animation: nt-star .5s var(--ease-pop) backwards; }
.review.in .review__stars span:nth-child(1) { animation-delay: .35s; } .review.in .review__stars span:nth-child(2) { animation-delay: .43s; } .review.in .review__stars span:nth-child(3) { animation-delay: .51s; }
.review.in .review__stars span:nth-child(4) { animation-delay: .59s; } .review.in .review__stars span:nth-child(5) { animation-delay: .67s; }
@keyframes nt-star { from { opacity: 0; transform: scale(0) rotate(-90deg); } }

/* FAQ: opens smoothly where the browser can animate to its natural height */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .acc { interpolate-size: allow-keywords; }
    .acc::details-content { height: 0; overflow: clip; transition: height .34s var(--ease), content-visibility .34s allow-discrete; }
    .acc[open]::details-content { height: auto; }
  }
}
.acc { transition: border-color .25s, box-shadow .25s; }
.acc[open] { border-color: var(--edge); box-shadow: inset 3px 0 0 var(--edge); }
.acc > summary { transition: padding-left .25s var(--ease); }
@media (hover: hover) { .acc > summary:hover { padding-left: 24px; } }

/* Visit: the pin sends out rings, the road runs */
.map-art__pin, .map-facade__pin { position: relative; animation: nt-pin 2.8s ease-in-out infinite; }
.map-art__pin::before, .map-facade__pin::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 2px solid var(--edge); animation: nt-ring 2.8s ease-out infinite; }
@keyframes nt-pin { 50% { transform: translateY(-6px); } }
@keyframes nt-ring { 0% { opacity: .9; transform: none; } 80%, 100% { opacity: 0; transform: scale(2.4); } }
.map-art__roads .map-art__main { animation: nt-road 1.1s linear infinite; }
@keyframes nt-road { to { stroke-dashoffset: -12; } }

/* ── Catalogue, product page, tools ── */
[data-results] .p-card, [data-cards] .p-card { animation: nt-zoom .55s var(--ease) backwards; }
:is([data-results], [data-cards]) .p-card:nth-child(4n+2) { animation-delay: 60ms; } :is([data-results], [data-cards]) .p-card:nth-child(4n+3) { animation-delay: 120ms; } :is([data-results], [data-cards]) .p-card:nth-child(4n) { animation-delay: 180ms; }
.p-card__fav[aria-pressed="true"] .ic, .chip[data-fav][aria-pressed="true"] .ic, .p-card__cmp[aria-pressed="true"] .ic { animation: nt-heart .5s var(--ease-pop); }
@keyframes nt-heart { 30% { transform: scale(1.5); } 60% { transform: scale(.86); } }
.p-card .tag--signal { animation: nt-tag 5s ease-in-out infinite; }
@keyframes nt-tag { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-5deg) scale(1.08); } 95% { transform: rotate(4deg) scale(1.08); } }
:is(.pd__facts, .visit__facts) .led--on .led__dot { position: relative; }
:is(.pd__facts, .visit__facts) .led--on .led__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: nt-led-ping 2.6s ease-out infinite; }
@keyframes nt-led-ping { 0% { opacity: .65; transform: none; } 70%, 100% { opacity: 0; transform: scale(2.8); } }
.pd__info > * { animation: nt-rise-s .6s var(--ease) backwards; }
.pd__info > :nth-child(2) { animation-delay: 80ms; } .pd__info > :nth-child(3) { animation-delay: 160ms; } .pd__info > :nth-child(n+4) { animation-delay: 240ms; }
.pd__thumbs li { animation: nt-pop .45s var(--ease-pop) backwards; }
.pd__thumbs li:nth-child(2) { animation-delay: 60ms; } .pd__thumbs li:nth-child(3) { animation-delay: 120ms; } .pd__thumbs li:nth-child(n+4) { animation-delay: 180ms; }
.pd__main img.is-swap { animation: nt-swap-img .45s var(--ease); }
@keyframes nt-swap-img { from { opacity: 0; transform: scale(.95); } }
.filters__form :is(.check, .chip) { transition: transform .2s var(--ease), color .15s; }
.center-page__mark { animation: nt-pop .7s var(--ease-pop) .1s backwards; }
.center-page__trace path { animation: nt-draw 1s var(--ease) .4s backwards; }
.big-code { animation: nt-float-s 5s ease-in-out infinite; }
.center-page h1, .center-page .lead, .center-page .search, .center-page .btn-row { animation: nt-rise-s .6s var(--ease) .2s backwards; }

/* ── Footer: a red segment runs along the top edge; the wordmark catches the light ── */
.site-footer { overflow: hidden; }
.site-footer__accent { background: var(--line-strong); }
.site-footer__accent::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, transparent, var(--brand-pure) 30%, var(--brand-pure) 70%, transparent); animation: nt-run 9s linear infinite; }
@keyframes nt-run { from { transform: translateX(-110%); } to { transform: translateX(560%); } }
.site-footer__word {
  margin: 0 0 var(--s-4); overflow: hidden; font: italic 800 calc(min(100vw - 32px, var(--container)) / (var(--n, 11) * .68))/1 var(--font-display); letter-spacing: -.01em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--text-3) 55%, transparent); user-select: none;
  background: linear-gradient(105deg, transparent 42%, var(--brand-pure) 50%, transparent 58%) 150% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
  animation: nt-shine 9s ease-in-out infinite;
}
@keyframes nt-shine { 0%, 12% { background-position: 150% 0; } 72%, 100% { background-position: -50% 0; } }
.site-footer ul:not(.socials):not(.contact-list) a { background: linear-gradient(var(--red-on-ink), var(--red-on-ink)) 0 88% / 0 1px no-repeat; transition: background-size .3s var(--ease), color .2s, padding-left .25s var(--ease); }
@media (hover: hover) { .site-footer ul:not(.socials):not(.contact-list) a:hover { padding-left: 6px; background-size: 100% 1px; } }
.socials a { transition: border-color .2s, color .2s, background-color .2s, transform .3s var(--ease-pop); }
@media (hover: hover) { .socials a:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-4px) rotate(-6deg); } }
/* Back to top: the ring shows how far down the page is (site.js sets --sp) */
.to-top::before {
  content: ""; position: absolute; inset: -4px; padding: 3px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--accent-text) calc(var(--sp, 0) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
}
.to-top .ic { transition: transform .3s var(--ease-pop); }
@media (hover: hover) { .to-top:hover .ic { transform: translateY(-3px); } }
.phone-bar a { transition: transform .15s ease-out; }
.phone-bar a:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  html.js .sec-head.reveal :is(.eyebrow, .w, .sec-lead, .link-arrow) { opacity: 1 !important; }
  .bead, .core__wave, .tools-band::before, .tools-band::after, .partner::before, .partner::after { display: none; }
  .step::after { transform: none; }
}
@media print { .site-footer__word { display: none !important; } .tools-band, .partner { clip-path: none; margin-block: 0; } }
