/* NEXT PAGE card + transition (assets/components/next-page.js) */
.nxp {
  --p: 0;
  position: fixed; left: 50%; bottom: 24px; z-index: 900; width: min(440px, calc(100vw - 32px)); box-sizing: border-box;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k go" "t go" "h go" "bar bar"; column-gap: 20px;
  padding: 20px 22px 0; border-radius: 18px; background: #0e1020; color: #fff; text-decoration: none; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(14, 16, 32, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: translate(-50%, calc(140% - var(--p) * 40%)) scale(calc(.94 + var(--p) * .06)); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.nxp.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, calc(12px - var(--p) * 12px)) scale(calc(.96 + var(--p) * .04)); }
.nxp__k { grid-area: k; display: flex; justify-content: space-between; align-items: baseline; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.nxp__k b { font-weight: 500; }
.nxp__k i { font-style: normal; color: rgba(255, 255, 255, .35); }
.nxp__t { grid-area: t; margin-top: 10px; font: 500 clamp(22px, 2vw, 28px)/1.15 "Geologica", sans-serif; letter-spacing: -.02em; }
.nxp__h { grid-area: h; margin: 8px 0 18px; font: 400 13px/1.4 Inter, sans-serif; color: rgba(255, 255, 255, .6); }
.nxp__go { grid-area: go; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #4a3dcc; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.nxp__go svg { width: 18px; height: 18px; transform: rotate(calc(var(--p) * 45deg)); transition: transform .2s; }
.nxp:hover .nxp__go { transform: scale(1.06); }
.nxp__bar { grid-area: bar; display: block; height: 3px; margin: 0 -22px; background: rgba(255, 255, 255, .08); }
.nxp__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #4a3dcc, #29ccb2); transition: width .12s linear; }
.nxp.is-go { opacity: 0; transition: opacity .25s; }

/* the card opens into the whole screen, the next page's name in the middle */
.nxp-veil { position: fixed; z-index: 1000; left: var(--x, 50%); top: var(--y, 100%); width: var(--w, 0); height: var(--h, 0); border-radius: 18px;
  background: #0e1020; color: #fff; display: grid; place-content: center; text-align: center; gap: 14px; opacity: 0; pointer-events: none;
  transition: left .75s cubic-bezier(.76, 0, .24, 1), top .75s cubic-bezier(.76, 0, .24, 1), width .75s cubic-bezier(.76, 0, .24, 1), height .75s cubic-bezier(.76, 0, .24, 1), border-radius .75s, background .75s; }
.nxp-veil.is-on { opacity: 1; }
.nxp-veil.is-full { left: 0; top: 0; width: 100vw; height: 100vh; border-radius: 0; background: #4a3dcc; }
.nxp-veil__k { font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); opacity: 0; transform: translateY(12px); transition: opacity .4s .35s, transform .5s .35s cubic-bezier(.2, .8, .2, 1); }
.nxp-veil__t { font: 500 clamp(36px, 5vw, 72px)/1.05 "Geologica", sans-serif; letter-spacing: -.03em; opacity: 0; transform: translateY(18px); transition: opacity .4s .4s, transform .6s .4s cubic-bezier(.2, .8, .2, 1); }
.nxp-veil.is-full .nxp-veil__k, .nxp-veil.is-full .nxp-veil__t { opacity: 1; transform: none; }
@media (max-width: 640px) { .nxp { bottom: 16px; padding: 16px 18px 0; } .nxp__bar { margin: 0 -18px; } }
@media (prefers-reduced-motion: reduce) { .nxp, .nxp-veil, .nxp-veil * { transition: none !important; } }
/* the card sits over the dark footer: white card, ink text, purple action, so it stands out */
.nxp { background: #fff; color: #11131f; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(17, 19, 31, .06) inset; }
.nxp__k { color: #6b7183; }
.nxp__k i { color: #a3a7b3; }
.nxp__h { color: #6b7183; }
.nxp__go { background: #4a3dcc; color: #fff; }
.nxp__bar { background: #eceef3; }

/* v2 (Manager, 19 Nov 2026): a full-width band below the footer, part of the page, not a card over it.
   The line on its top edge fills while the reader keeps scrolling. */
.nxp { position: relative !important; left: auto !important; bottom: auto !important; z-index: 1; width: 100% !important; max-width: none;
  transform: none !important; opacity: 1 !important; pointer-events: auto !important; border-radius: 0 !important; box-shadow: none !important;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "bar bar" "k go" "t go" "h go"; align-items: center; column-gap: 32px;
  padding: 0 calc(var(--pad-x) + clamp(24px, 3.4vw, 56px)) clamp(48px, 5vw, 72px) !important; background: #fff; color: #11131f;
  background-image: linear-gradient(rgba(17, 19, 31, .07), rgba(17, 19, 31, .07)), linear-gradient(rgba(17, 19, 31, .07), rgba(17, 19, 31, .07));
  background-size: 1px 100%, 1px 100%; background-position: var(--pad-x) 0, calc(100% - var(--pad-x)) 0; background-repeat: no-repeat; }
.nxp__bar { grid-area: bar; margin: 0 calc(-1 * (var(--pad-x) + clamp(24px, 3.4vw, 56px))) clamp(48px, 5vw, 72px) !important; height: 4px; background: #eceef3; }
.nxp__k { justify-content: flex-start; gap: 16px; font-size: 12px; }
.nxp__t { margin-top: 16px; font-size: clamp(40px, 5.2vw, 80px) !important; line-height: 1.02; letter-spacing: -.035em; }
.nxp__h { margin: 16px 0 0; font-size: 15px; }
.nxp__go { width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); }
.nxp__go svg { width: 28px; height: 28px; }
.nxp:hover .nxp__t { color: #4a3dcc; }
.nxp__t { transition: color .3s; }
@media (max-width: 640px) {
  .nxp { padding: 0 20px 40px !important; column-gap: 16px; background-image: none; }
  .nxp__bar { margin: 0 -20px 36px !important; }
  .nxp__t { font-size: 34px !important; }
  .nxp__h { font-size: 14px; }
}
/* down arrow (Manager): it points the way the reader keeps scrolling; it nudges down instead of turning */
.nxp__go svg { transform: translateY(calc(var(--p) * 4px)) !important; }
.nxp:hover .nxp__go svg { transform: translateY(3px) !important; }

/* ---------- v3 transition (Manager, 19 Nov 2026: "make it more interesting") ----------
   Leave: the band grows into the screen and turns purple; the frame lines draw down; the count, the product logo
   and the name rise word by word; a loading line runs along the foot. Arrive: the same screen, then it lifts. */
.nxv { --ease: cubic-bezier(.76, 0, .24, 1); position: fixed; z-index: 2147483000; left: var(--x, 0); top: var(--y, 100vh); width: var(--w, 100vw); height: var(--h, 0);
  background: #fff; color: #fff; overflow: hidden; pointer-events: none; opacity: 0;
  transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease), background-color .6s .1s var(--ease); }
.nxv.is-shown { opacity: 1; }
.nxv.is-full { left: 0; top: 0; width: 100vw; height: 100vh; background-color: #4a3dcc; }
.nxv__ln { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .22); transform: scaleY(0); transform-origin: top; transition: transform .9s .55s var(--ease); }
.nxv__ln--l { left: var(--pad-x, 54px); } .nxv__ln--m { left: 50%; transition-delay: .65s; } .nxv__ln--r { right: var(--pad-x, 54px); transition-delay: .6s; }
.nxv.is-full .nxv__ln { transform: scaleY(1); }
.nxv__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 24px; }
.nxv__k { font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  opacity: 0; transform: translateY(10px); transition: opacity .5s .7s, transform .6s .7s var(--ease); }
.nxv__logo { height: clamp(36px, 4vw, 56px); width: auto; filter: brightness(0) invert(1); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s .78s, transform .7s .78s var(--ease); }
.nxv__t { font: 500 clamp(44px, 7vw, 112px)/1 "Geologica", sans-serif; letter-spacing: -.04em; }
.nxv__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.nxv__w > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(.82s + var(--j) * .08s); }
.nxv.is-full .nxv__k, .nxv.is-full .nxv__logo { opacity: 1; transform: none; }
.nxv.is-full .nxv__w > span { transform: none; }
.nxv__load { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.nxv__load i { display: block; height: 100%; width: 0; background: #fff; transition: width .9s .75s cubic-bezier(.6, 0, .2, 1); }
.nxv.is-full .nxv__load i { width: 100%; }
/* arriving: already full and shown, no draw-in; then the content leaves upward and the curtain lifts */
.nxv.is-arrive, .nxv.is-arrive * { transition-delay: 0s !important; }
.nxv.is-arrive { transition: clip-path .9s .18s var(--ease); clip-path: inset(0 0 0 0); }
.nxv.is-arrive .nxv__load i { width: 100%; }
.nxv.is-lift { clip-path: inset(0 0 100% 0); }
.nxv.is-lift .nxv__in { transform: translateY(-60px); opacity: 0; transition: transform .7s var(--ease), opacity .45s; }
.nxv.is-lift .nxv__ln { transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
html.nxv-arriving body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .nxv { display: none !important; } }
/* product pages: the logo alone, big, rising out of its own mask like the words do */
.nxv__w--logo { padding-bottom: 0; }
.nxv__mark { display: block; height: clamp(120px, 15vw, 240px); width: auto; filter: brightness(0) invert(1); transform: translateY(110%); transition: transform .9s .82s var(--ease); }
.nxv.is-full .nxv__mark { transform: none; }
.nxv.is-arrive .nxv__mark { transition-delay: 0s !important; }

/* ---------- v4 (Manager, 19 Nov 2026): a clearer cue, a percentage, and the previous page at the top ---------- */
/* the arrow button carries a ring that fills with the pull, and the arrow nudges in its direction while idle */
.nxp__go { position: relative; overflow: visible; }
.nxp__ring { position: absolute; inset: -7px; width: calc(100% + 14px) !important; height: calc(100% + 14px) !important; transform: rotate(-90deg) !important; pointer-events: none; }
.nxp__ringBg { fill: none; stroke: rgba(74, 61, 204, .14); stroke-width: 3; }
.nxp__ringFg { fill: none; stroke: #4a3dcc; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .12s linear; }
.nxp__arw { display: grid; place-items: center; animation: nxpNudge 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
.nxp__arw svg { width: 28px; height: 28px; transform: none !important; }
.nxt .nxp__arw { animation-name: nxpNudgeUp; }
.is-pull .nxp__arw { animation: none; }
@keyframes nxpNudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes nxpNudgeUp { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-5px); } }
.nxp .nxp__go svg:not(.nxp__ring) { transform: none !important; }
/* the hint carries the live percentage */
.nxp__h { display: flex; align-items: baseline; gap: 12px; font-weight: 500; color: #4a3dcc !important; }
.nxp__pc { font: 500 13px/1 "JetBrains Mono", monospace; color: #11131f; opacity: 0; transition: opacity .2s; }
.is-pull .nxp__pc { opacity: 1; }

/* previous: drops in under the nav while the reader pulls up at the top */
.nxt { position: fixed; z-index: 950; left: 50%; top: 92px; display: flex; align-items: center; gap: 18px; padding: 14px 22px 14px 16px; border-radius: 999px;
  background: #fff; color: #11131f; text-decoration: none; box-shadow: 0 24px 60px -24px rgba(14, 16, 32, .45), 0 0 0 1px rgba(17, 19, 31, .06);
  transform: translate(-50%, calc(-140% + var(--p, 0) * 140%)); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.nxt.is-pull { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(calc(.96 + var(--p, 0) * .04)); }
.nxt.is-go { opacity: 0; }
.nxt__go { width: 52px !important; height: 52px !important; flex: none; border-radius: 50%; background: #4a3dcc; color: #fff; display: grid; place-items: center; }
.nxt__go .nxp__arw svg { width: 22px; height: 22px; }
.nxt__txt { display: flex; flex-direction: column; gap: 4px; }
.nxt__k { font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b7183; }
.nxt__t { font: 500 20px/1.15 "Geologica", sans-serif; letter-spacing: -.02em; }
.nxt__h { font: 500 12px/1.3 Inter, sans-serif; color: #4a3dcc; display: flex; gap: 10px; align-items: baseline; }
.nxt__h .nxp__pc { font-size: 12px; }

/* the transition counts 0–100% in the corner */
.nxv__pct { position: absolute; left: calc(var(--pad-x, 54px) + 24px); bottom: 32px; font: 500 clamp(40px, 5vw, 72px)/1 "Geologica", sans-serif; letter-spacing: -.03em; color: #fff;
  opacity: 0; transform: translateY(16px); transition: opacity .4s .7s, transform .6s .7s var(--ease); font-variant-numeric: tabular-nums; }
.nxv__pct b { font-weight: 500; }
.nxv.is-full .nxv__pct { opacity: 1; transform: none; }
.nxv.is-arrive .nxv__pct { transition-delay: 0s !important; }
.nxv.is-lift .nxv__pct { opacity: 0; transform: translateY(-40px); transition: opacity .4s, transform .6s var(--ease); }
@media (max-width: 640px) { .nxt { top: 84px; width: calc(100vw - 32px); box-sizing: border-box; border-radius: 20px; } .nxv__pct { left: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .nxp__arw { animation: none; } }

/* ---------- v5 (Manager, 19 Nov 2026: "not round — make the top one better") ----------
   Previous is a squared strip that slides out from under the nav, between the page's frame lines,
   mirroring the band at the bottom: arrow tile left, name, a large live percentage right,
   and a purple line along its bottom edge that fills with the pull. */
.nxt { left: 0; right: 0; top: var(--nxt-top, 72px); z-index: 99; width: auto; margin: 0 var(--pad-x, 54px); padding: 20px clamp(20px, 2.4vw, 32px) 22px;
  gap: clamp(16px, 2vw, 24px); border-radius: 0; background: #fff; box-shadow: 0 1px 0 rgba(17, 19, 31, .08), 0 28px 48px -32px rgba(14, 16, 32, .35);
  border-left: 1px solid rgba(17, 19, 31, .08); border-right: 1px solid rgba(17, 19, 31, .08);
  transform: translateY(calc(-101% + var(--p, 0) * 101%)); opacity: 1; visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.nxt.is-pull { visibility: visible; transform: translateY(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.nxt.is-go { opacity: 1; }
.nxt::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #4a3dcc; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .12s linear; }
.nxt__go { width: 48px !important; height: 48px !important; border-radius: 0; }
.nxt .nxp__ring { display: none; }
.nxt__go .nxp__arw svg { width: 20px; height: 20px; }
.nxt__txt { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k pc" "t pc"; column-gap: 24px; row-gap: 8px; align-items: end; }
.nxt__k { grid-area: k; }
.nxt__t { grid-area: t; font-size: clamp(20px, 1.8vw, 26px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxt__h { display: contents; }
.nxt__h > span[data-ph] { display: none; }
.nxt__h .nxp__pc { grid-area: pc; align-self: center; opacity: 1; font: 500 clamp(28px, 2.6vw, 40px)/1 "Geologica", sans-serif; letter-spacing: -.03em; color: #4a3dcc; font-variant-numeric: tabular-nums; }
.nxt:hover .nxt__t { color: #4a3dcc; }
@media (max-width: 900px) { .nxt { --nxt-top: 80px; margin: 0; border-left: 0; border-right: 0; } }
@media (max-width: 640px) { .nxt { width: auto; border-radius: 0; padding: 16px 20px 18px; } .nxt__go { width: 40px !important; height: 40px !important; } }
.nxt__txt { grid-template-areas: "k pc" "t pc" "h pc"; }
.nxt__h > span[data-ph] { display: block; grid-area: h; font: 500 12px/1.3 Inter, sans-serif; color: #6b7183; }

/* Manager: no middle line on the purple transition */
.nxv__ln--m { display: none !important; }
@media (max-width: 640px) { .nxt__k { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nxt__t { font-size: 18px; } .nxt__h .nxp__pc { font-size: 26px; } .nxt__txt { column-gap: 12px; row-gap: 6px; } }

/* Manager: the transition percentage sits bottom-right */
.nxv__pct { left: auto !important; right: calc(var(--pad-x, 54px) + 24px); text-align: right; }
@media (max-width: 640px) { .nxv__pct { right: 24px; } }

/* ---------- v6 (Manager, 19 Nov 2026): the arriving curtain splits into 5 columns that rise one after another ---------- */
.nxv__cols { position: absolute; inset: 0; display: none; }
.nxv__cols i { flex: 1; margin-right: -1px; background: #4a3dcc; transform: translateY(0); }
.nxv > :not(.nxv__cols) { z-index: 1; }
.nxv.is-arrive { background-color: transparent !important; clip-path: none !important; transition: none !important; }
.nxv.is-arrive .nxv__cols { display: flex; }
.nxv.is-lift .nxv__cols i { transform: translateY(-101%); transition: transform .85s cubic-bezier(.76, 0, .24, 1) calc(.28s + var(--c) * .09s) !important; }
.nxv.is-lift .nxv__in { transform: translateY(-40px); opacity: 0; transition: transform .5s cubic-bezier(.76, 0, .24, 1), opacity .3s !important; }
.nxv.is-lift .nxv__pct, .nxv.is-lift .nxv__load { opacity: 0; transition: opacity .25s !important; }
.nxv.is-lift .nxv__ln { opacity: 0; transition: opacity .3s !important; }
