/* Motion for the public pages. Loaded after site-2026.css and paired with
   site-2026-motion.js. Nothing here changes the design at rest: take both
   files away and every page looks as it did, only still.

   Everything that moves sits behind prefers-reduced-motion: no-preference,
   and nothing is hidden in a way that needs the script to bring it back —
   the headline's wait below ends by itself. */

:root { --nm-ease: cubic-bezier(.2, .8, .2, 1); --nm-blue: #7022ff; --nm-teal: #7022ff; }

/* ── page to page ────────────────────────────────────────────────────
   A cross-document view transition: the old page lets go and the new one
   settles, instead of a white flash. The nav is named so it holds still
   while the page under it changes. Browsers without it navigate as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  nav:has([data-nbx-open="cand"]) { view-transition-name: nbx-nav; }
  ::view-transition-old(root) { animation: nmPageOut .2s ease both; }
  ::view-transition-new(root) { animation: nmPageIn .45s var(--nm-ease) both; }
}
@keyframes nmPageOut { to { opacity: 0; } }
@keyframes nmPageIn { from { opacity: 0; transform: translateY(10px); } }

/* ── the top of a page arrives ───────────────────────────────────────
   The headline waits (at most 1.4s) for the script to bring it in word by
   word; if the script never comes, the wait ends and it is simply there.
   What follows the headline rises after it, with no script at all. */
@media (prefers-reduced-motion: no-preference) {
  h1 { animation: nmWait 1.4s linear both; }
  h1.nm-go { animation: none; }
  h1 ~ * { animation: nmRise .9s var(--nm-ease) .5s backwards; }
  h1 + * { animation-delay: .28s; }
  h1 + * + * { animation-delay: .4s; }
  /* a menu that opens later must not replay the entrance */
  h1 ~ [data-nbx-menu] { animation: none; }
}
@keyframes nmWait { 0%, 99% { opacity: 0; } 100% { opacity: 1; } }
@keyframes nmRise { from { opacity: 0; transform: translateY(22px); } }

.nm-w { display: inline-block; will-change: transform, opacity; }

/* ── scroll reveals ──────────────────────────────────────────────────
   The script marks what is below the fold and lets it in as it arrives. */
.nm-rv { opacity: 0 !important; }
@media print { .nm-rv { opacity: 1 !important; } }

/* ── reading progress ────────────────────────────────────────────── */
.nm-bar { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 90; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--nm-blue), var(--nm-teal) 55%, #fd8f32); }

/* ── the section rail ────────────────────────────────────────────────
   Right edge, wide screens only: a tick per section, the current one long
   and purple with its name, and a capsule that slides as the page scrolls.
   On these screens it stands in for the reading-progress line. */
/* Hairlines and no box: what keeps them readable over a picture or the
   painted pond is a soft halo in the tone of the page behind. */
.nm-rail { --rt: rgba(1, 1, 2, .3); --rt2: rgba(1, 1, 2, .55); --rp: #7022ff; --rl: #220a55; --rbg: rgba(255, 255, 255, .86); --rh: rgba(255, 255, 255, .9);
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; z-index: 85; display: none; pointer-events: none;
  filter: drop-shadow(0 0 1.5px var(--rh)) drop-shadow(0 0 3px var(--rh)); }
.nm-rail.dark { --rt: rgba(255, 255, 255, .32); --rt2: rgba(255, 255, 255, .6); --rp: #fd8f32; --rl: #ffffff; --rbg: rgba(1, 1, 2, .78); --rh: rgba(1, 1, 2, .55); }
.nm-tick { all: unset; position: absolute; right: 12px; height: 14px; margin-top: -7px; padding-left: 10px; cursor: pointer; pointer-events: auto;
  display: flex; align-items: center; justify-content: flex-end; }
.nm-tick i { display: block; width: 10px; height: 1px; border-radius: 1px; background: var(--rt);
  transition: width .4s cubic-bezier(.2, .8, .2, 1), height .3s, background-color .3s; }
.nm-tick.on i { width: 22px; height: 1.5px; background: var(--rp); }
.nm-tick:hover i { width: 16px; background: var(--rt2); }
.nm-tick.on:hover i { width: 24px; background: var(--rp); }
.nm-tick span { position: absolute; right: 100%; margin-right: 6px; white-space: nowrap; pointer-events: none;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--rl);
  padding: 3px 7px; border-radius: 3px; background: var(--rbg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(4px); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.nm-rail.awake .nm-tick.on span, .nm-tick:hover span, .nm-tick:focus-visible span { opacity: 1; transform: none; }
.nm-tick:focus-visible i { outline: 1.5px solid var(--rp); outline-offset: 4px; }
.nm-pill { position: absolute; right: 0; top: 0; width: 5px; height: 14px; box-sizing: border-box; border: 1px solid var(--rt2); border-radius: 3px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s; will-change: transform; }
/* how far through the current section: the capsule fills from the top */
.nm-pill::after { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: calc((100% - 2px) * var(--f, 0));
  border-radius: 2px; background: var(--rp); }
@media (min-width: 1100px) {
  .nm-rail { display: block; }
  .nm-railed .nm-bar { display: none; }
}
@media print { .nm-rail { display: none !important; } }

/* ── the light under the pointer ─────────────────────────────────────
   Two layers on one moving point: `screen` shows on the dark sections,
   `multiply` leaves a faint tint on the light ones. */
.nm-glow { position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  z-index: 80; pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform; }
.nm-glow.on { opacity: 1; }
.nm-glow i { position: absolute; inset: 0; border-radius: 50%; }
.nm-glow i:first-child { mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(112, 34, 255, .22), rgba(112, 34, 255, .09) 46%, transparent 72%); }
.nm-glow i:last-child { mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(112, 34, 255, .07), transparent 62%); }

/* ── the live queue on the home page ─────────────────────────────────
   Sits over the painted pond: on the left Aria reads one application factor
   by factor, on the right the queue re-orders itself as each score lands. */
.nm-live { position: absolute; left: 0; right: 0; top: 0; bottom: var(--nm-cap, 44px); padding: 20px;
  display: flex; justify-content: flex-end; align-items: stretch; gap: 12px;
  font-family: "Geist", system-ui, sans-serif; color: #ffffff; text-align: left; }
.nm-panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: rgba(1, 1, 2, .93); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.nm-mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.nm-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); color: #a8a8b0; white-space: nowrap; }
.nm-ph b { font-weight: 500; color: #ffffff; }
.nm-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--nm-teal); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(112, 34, 255, .6); animation: nmPulse 1.6s ease-out infinite; }
@keyframes nmPulse { to { box-shadow: 0 0 0 8px rgba(112, 34, 255, 0); } }

/* the reader */
.nm-reader { width: 300px; flex: none; align-self: flex-end; }
.nm-facts { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.nm-f { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: baseline; opacity: .38; transition: opacity .3s; }
.nm-f.on { opacity: 1; }
.nm-f span { font-size: 12.5px; letter-spacing: -.005em; }
.nm-f em { font-style: normal; color: #8b8b94; }
.nm-f u { grid-column: 1 / -1; display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; text-decoration: none; }
.nm-f u s { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: #7022ff;
  transition: transform .5s var(--nm-ease), background-color .3s; }
.nm-f.low u s { background: #e0563f; }
.nm-total { margin-top: 8px; padding: 12px 14px 14px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; }
.nm-total > span { color: #8b8b94; }
.nm-num { font-size: 40px; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nm-num small { font-size: 15px; letter-spacing: 0; color: #8b8b94; margin-left: 2px; }
.nm-note { grid-column: 1 / -1; min-height: 28px; font-size: 11.5px; line-height: 1.25; color: #e88a78; opacity: 0; transition: opacity .3s; }
.nm-note.on { opacity: 1; }

/* the queue */
.nm-queue { width: 500px; max-width: 100%; flex: 0 1 auto; }
.nm-role { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nm-role strong { font: 500 14px/1.2 "Geist", system-ui, sans-serif; letter-spacing: -.01em; text-transform: none; color: #ffffff;
  overflow: hidden; text-overflow: ellipsis; }
.nm-rows { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.nm-row { position: absolute; left: 0; right: 0; top: 0; height: var(--nm-h, 60px); padding: 0 14px;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07); opacity: 0;
  transition: transform .7s var(--nm-ease), opacity .45s, background-color .8s; }
.nm-row.in { opacity: 1; }
.nm-row.new { background: rgba(112, 34, 255, .16); }
.nm-row.off { opacity: 0; }
.nm-rank { color: #6c6c75; }
.nm-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nm-who b { font-weight: 500; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-who span { font-size: 11.5px; line-height: 1.25; color: #9a9aa2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-sc { font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; font-variant-numeric: tabular-nums; }
.nm-chip { min-width: 78px; text-align: center; padding: 4px 8px; border-radius: 3px; border: 1px solid currentColor; }
.nm-chip.connect { color: #9b6bff; background: rgba(112, 34, 255, .14); }
.nm-chip.hold { color: #fd8f32; background: rgba(253, 143, 50, .1); }
.nm-chip.pass { color: #8b8b94; }
.nm-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: var(--nm-s, 0%);
  background: linear-gradient(90deg, transparent, currentColor); opacity: .5; transition: width .8s var(--nm-ease); }
.nm-row.connect { color: #ffffff; } .nm-row.connect::after { color: #9b6bff; }
.nm-row.hold::after { color: #fd8f32; }
.nm-row.pass::after { color: #6c6c75; }
.nm-row.pass .nm-who b, .nm-row.pass .nm-sc { color: #a8a8b0; }

@media (max-width: 980px) { .nm-reader { display: none; } .nm-queue { width: 100%; max-width: 480px; } }
@media (max-width: 640px) {
  .nm-live-host { height: 530px !important; }
  .nm-role strong { font-size: 13px; }
  .nm-live { padding: 12px; }
  .nm-row { padding: 0 12px; gap: 10px; grid-template-columns: 18px minmax(0, 1fr) auto auto; }
  .nm-chip { min-width: 0; padding: 3px 6px; font-size: 9.5px; }
  .nm-who span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-dot { animation: none; }
  .nm-glow, .nm-bar { display: none; }
}

/* ── the welcome poster (site-2026-motion.js, once per browser) ── */
html.nw-lock { overflow: hidden; }
.nw-pop { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px;
  background: rgba(1, 1, 2, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .32s var(--nm-ease); }
.nw-pop.nw-in { opacity: 1; }
.nw-card { position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 56px 48px 48px; border-radius: 16px; text-align: center; color: #fff; font-family: Geist, system-ui, sans-serif;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(112, 34, 255, .55), transparent 58%),
    radial-gradient(70% 55% at 100% 100%, rgba(253, 143, 50, .26), transparent 62%),
    #010102;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(112, 34, 255, .6);
  transform: translateY(18px) scale(.97); transition: transform .5s var(--nm-ease); }
.nw-in .nw-card { transform: none; }
.nw-card:focus { outline: none; }
.nw-x { all: unset; position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; cursor: pointer; transition: background .2s; }
.nw-x svg { width: 22px; height: 22px; }
.nw-x:hover { background: rgba(255, 255, 255, .1); }
.nw-x:focus-visible, .nw-skip:focus-visible, .nw-go:focus-visible { outline: 2px solid #fd8f32; outline-offset: 3px; }
.nw-title { margin: 0; font-size: clamp(30px, 4.6vw, 52px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }

.nw-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px);
  margin: 28px 0 30px; min-height: clamp(200px, 30vw, 330px); }
.nw-ring { position: absolute; left: 50%; top: 50%; width: clamp(240px, 40vw, 400px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .07);
  background: radial-gradient(circle, rgba(112, 34, 255, .22), transparent 66%); }
.nw-big { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center;
  font-size: clamp(54px, 10.5vw, 128px); font-weight: 600; line-height: .92; letter-spacing: -.045em; }
.nw-big span { display: block; padding: 0 .04em .06em;
  background: linear-gradient(180deg, #fff 4%, #eee6ff 20%, #9b6bff 38%, #7022ff 52%, #3a0f99 57%, #b07cff 64%, #ffb877 80%, #fd8f32 94%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #4a0fc0) drop-shadow(0 4px 0 #220a55) drop-shadow(0 14px 26px rgba(112, 34, 255, .55)); }
.nw-charm { position: relative; flex: none; width: clamp(40px, 7vw, 74px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.nw-charm svg { display: block; width: 100%; height: auto; }
.nw-spark { transform: rotate(-14deg); }
.nw-heart { transform: rotate(16deg); }
.nw-in .nw-spark { animation: nwBob 5s ease-in-out infinite; }
.nw-in .nw-heart { animation: nwBob 5.6s ease-in-out -2.4s infinite; }
@keyframes nwBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.nw-in .nw-big span { animation: nwRise .7s var(--nm-ease) backwards; }
.nw-in .nw-big span + span { animation-delay: .1s; }
@keyframes nwRise { from { opacity: 0; transform: translateY(24px); } }

.nw-note { max-width: 34em; margin: 0 auto; font-size: clamp(16px, 2vw, 21px); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.nw-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 30px; }
.nw-go { display: inline-block; padding: 15px 34px; border-radius: 999px; background: #fff; color: #010102;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; transition: background .2s, color .2s; }
.nw-go:hover { opacity: 1; background: #fd8f32; color: #010102; }
.nw-skip { all: unset; cursor: pointer; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62); border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px; }
.nw-skip:hover { color: #fff; }
@media (max-width: 560px) {
  .nw-card { padding: 52px 20px 28px; }
  .nw-stage { margin: 18px 0 20px; }
}
.nw-still, .nw-still .nw-card { transition: none; }
.nw-still .nw-charm, .nw-still .nw-big span { animation: none !important; }
