body { margin: 0; }
a { color: #16140F; }
a:hover { color: #0B6B34; }
.nb-go { color: #0B6B34; }
.nb-go:hover { color: #16140F; }
.nb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nb-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #EEEAE2; }
.nb-tint { position: absolute; border-radius: 50%; will-change: transform; }
.nb-tint-a { left: -18%; top: -6%; width: 58%; height: 86%; background: radial-gradient(closest-side, rgba(214,232,217,0.85), rgba(214,232,217,0)); animation: nbDriftA 44s ease-in-out infinite alternate; }
.nb-tint-b { right: -20%; bottom: -30%; width: 64%; height: 92%; background: radial-gradient(closest-side, rgba(250,205,192,0.8), rgba(250,205,192,0)); animation: nbDriftB 56s ease-in-out infinite alternate; }
.nb-tint-c { left: 30%; top: -34%; width: 50%; height: 70%; background: radial-gradient(closest-side, rgba(251,248,243,0.9), rgba(251,248,243,0)); animation: nbDriftC 38s ease-in-out infinite alternate; }
.nb-gridwrap { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 46%, #000 34%, rgba(0,0,0,0.25) 78%, transparent 100%); mask-image: radial-gradient(ellipse 80% 78% at 50% 46%, #000 34%, rgba(0,0,0,0.25) 78%, transparent 100%); }
.nb-grid { position: absolute; inset: -80px; background-image: linear-gradient(to right, rgba(58,50,38,0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(58,50,38,0.09) 1px, transparent 1px); background-size: 40px 40px; animation: nbGrid 80s linear infinite; will-change: transform; }
.nb-ink { position: absolute; opacity: 0; background-image: linear-gradient(to right, rgba(58,50,38,0.34) 1px, transparent 1px), linear-gradient(to bottom, rgba(58,50,38,0.34) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); animation: nbInk 19s ease-in-out infinite; }
.nb-noise { background: repeating-radial-gradient(#000 0 0.0001%, #fff 0 0.0002%) 50% 0 / 2500px 2500px, repeating-conic-gradient(#000 0 0.0001%, #fff 0 0.0002%) 60% 60% / 2500px 2500px; background-blend-mode: difference; }

.nb-3d { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.nb-hide { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.nb-slab { position: absolute; left: 0; top: 0; width: 9.6em; height: 12.8em; border-radius: 0.9em; background: #3A3D40; }
.nb-edge-v { position: absolute; left: 50%; top: 50%; width: 0.6em; height: 11em; margin: -5.5em 0 0 -0.3em; background: linear-gradient(to right, #222426 0%, #6E7378 42%, #9A9FA4 52%, #2A2C2F 100%); }
.nb-edge-h { position: absolute; left: 50%; top: 50%; width: 7.8em; height: 0.6em; margin: -0.3em 0 0 -3.9em; background: linear-gradient(to bottom, #222426 0%, #6E7378 42%, #9A9FA4 52%, #2A2C2F 100%); }
.nb-front { position: absolute; left: 0; top: 0; width: 9.6em; height: 12.8em; box-sizing: border-box; padding: 0.42em; border-radius: 0.9em; background: #0E0F10; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); }
.nb-back { position: absolute; left: 0; top: 0; width: 9.6em; height: 12.8em; box-sizing: border-box; border-radius: 0.9em; overflow: hidden; background: linear-gradient(160deg, #5A5E62 0%, #44474A 55%, #383B3E 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }

.nb-eye-part { position: absolute; border-radius: 50%; }
.nb-eye-housing { inset: 0; background: radial-gradient(circle at 50% 50%, #0A0C0B 0 44%, #1C201E 45% 58%, #3B423E 59% 61%, #151817 62% 84%, #49504C 85% 86.5%, #101211 87.5% 100%); box-shadow: 0 0 120px rgba(107,255,166,0.22), inset 0 0 40px rgba(0,0,0,0.8); }
.nb-eye-ticks { inset: 3.5%; background: repeating-conic-gradient(rgba(206,232,216,0.6) 0deg 0.9deg, rgba(0,0,0,0) 0.9deg 7.5deg); -webkit-mask-image: radial-gradient(circle, transparent 0 87%, #000 88% 95%, transparent 96%); mask-image: radial-gradient(circle, transparent 0 87%, #000 88% 95%, transparent 96%); }
.nb-eye-ring { inset: 14%; background: conic-gradient(from 30deg, #262B28, #707A74, #262B28, #5A625D, #262B28, #707A74, #262B28); -webkit-mask-image: radial-gradient(circle, transparent 0 82%, #000 83% 100%); mask-image: radial-gradient(circle, transparent 0 82%, #000 83% 100%); }
.nb-eye-blades { inset: 19%; background: radial-gradient(circle, rgba(0,0,0,0) 0 38%, rgba(0,0,0,0.65) 100%), repeating-conic-gradient(from 0deg, #2A302C 0deg 44deg, #48514B 44deg 47deg, #1C201E 47deg 60deg); animation: nbBlades 3s ease-in-out infinite alternate; }
.nb-eye-lens { inset: 31%; background: radial-gradient(circle at 37% 32%, rgba(225,255,236,0.95) 0 2.5%, rgba(150,210,180,0.55) 6%, #15352A 30%, #07120D 64%, #0D2018 100%); box-shadow: inset 0 0 0 3px rgba(160,200,180,0.35), 0 0 60px rgba(107,255,166,0.35); }
.nb-eye-pupil { inset: 41%; background: radial-gradient(circle, #000 0 52%, #04170D 66%, rgba(107,255,166,0.75) 71%, rgba(0,0,0,0.9) 78%, #000 100%); animation: nbIris 0.7s ease-in-out infinite alternate; }
.nb-eye-core { inset: 47%; background: radial-gradient(circle, rgba(170,255,205,1) 0 18%, rgba(107,255,166,0) 72%); animation: nbPulse 0.9s ease-in-out infinite; }
.nb-eye-glint { left: 36%; top: 35%; width: 6%; height: 3.6%; background: rgba(255,255,255,0.85); transform: rotate(-32deg); filter: blur(1px); }

@keyframes nbDriftA { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(16%, 9%, 0) scale(1.12); } }
@keyframes nbDriftB { from { transform: translate3d(4%, 2%, 0) scale(1.05); } to { transform: translate3d(-18%, -10%, 0) scale(0.94); } }
@keyframes nbDriftC { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(14%, 8%, 0); } }
@keyframes nbGrid { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(80px, 40px, 0); } }
@keyframes nbInk { 0%, 100% { opacity: 0; } 42%, 58% { opacity: 1; } }
@keyframes nbNoise { 100% { background-position: 50% 0, 60% 50%; } }
@keyframes nbZap { 0% { opacity: 0.95; } 70% { opacity: 0.6; } 100% { opacity: 0; } }
@keyframes nbTear { from { transform: translateY(-100%); } to { transform: translateY(700%); } }
@keyframes nbLoad { 0% { opacity: 1; } 58% { opacity: 0; } 100% { opacity: 0; } }
@keyframes nbOn { 0% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes nbSettle { 0% { transform: translateY(0) rotate(0deg); } 35% { transform: translateY(9px) rotate(0.5deg); } 70% { transform: translateY(-3px) rotate(-0.2deg); } 100% { transform: translateY(0) rotate(0deg); } }
@keyframes nbPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes nbPopA { 0% { transform: scale(0.9) translateY(18px); filter: brightness(1.6); } 60% { transform: scale(1.025) translateY(-3px); filter: brightness(1.1); } 100% { transform: scale(1) translateY(0); filter: brightness(1); } }
@keyframes nbPopB { 0% { transform: scale(0.9) translateY(18px); filter: brightness(1.6); } 60% { transform: scale(1.025) translateY(-3px); filter: brightness(1.1); } 100% { transform: scale(1) translateY(0); filter: brightness(1); } }
@keyframes nbRiseA { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nbRiseB { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nbFillA { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nbFillB { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nbFlow { to { stroke-dashoffset: -18; } }

@keyframes nbSpin { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
@keyframes nbShade { 0% { opacity: 0; } 12.5% { opacity: 0.066; } 25% { opacity: 0.225; } 37.5% { opacity: 0.384; } 50% { opacity: 0.45; } 62.5% { opacity: 0.384; } 75% { opacity: 0.225; } 87.5% { opacity: 0.066; } 100% { opacity: 0; } }
@keyframes nbBob { from { transform: translateY(6%); } to { transform: translateY(-6%); } }
@keyframes nbDrift { from { transform: translate(-5%, 4%); } to { transform: translate(5%, -4%); } }
@keyframes nbPick { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes nbBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes nbTurn { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.08); } 100% { transform: scaleX(1); } }
@keyframes nbPing { 0% { box-shadow: 0 0 0 0 rgba(255,138,61,0.65); } 100% { box-shadow: 0 0 0 0.9em rgba(255,138,61,0); } }
@keyframes nbGrow { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

@keyframes nbGlitchIn {
  0% { opacity: 0; transform: translate(0, 0) skewX(0deg); clip-path: inset(0 0 100% 0); }
  5% { opacity: 1; transform: translate(-0.16em, 0.02em) skewX(-14deg); clip-path: inset(38% 0 42% 0); }
  10% { opacity: 0; transform: translate(0.1em, 0) skewX(0deg); clip-path: inset(0 0 0 0); }
  15% { opacity: 1; transform: translate(0.12em, -0.03em) skewX(6deg); clip-path: inset(8% 0 64% 0); }
  21% { opacity: 1; transform: translate(-0.06em, 0) skewX(0deg); clip-path: inset(58% 0 6% 0); }
  27% { opacity: 0.15; transform: translate(0.2em, 0.01em) skewX(-4deg); clip-path: inset(0 0 0 0); }
  33% { opacity: 1; transform: translate(-0.1em, 0) skewX(10deg); clip-path: inset(0 0 46% 0); }
  40% { opacity: 1; transform: translate(0.03em, 0.02em) skewX(0deg); clip-path: inset(24% 0 30% 0); }
  47% { opacity: 0.5; transform: translate(-0.04em, 0) skewX(-3deg); clip-path: inset(0 0 0 0); }
  54% { opacity: 1; transform: translate(0.08em, -0.01em) skewX(0deg); clip-path: inset(66% 0 0 0); }
  61% { opacity: 1; transform: translate(-0.02em, 0) skewX(2deg); clip-path: inset(0 0 0 0); }
  68% { opacity: 0.7; transform: translate(0.05em, 0) skewX(0deg); clip-path: inset(14% 0 62% 0); }
  76% { opacity: 1; transform: translate(-0.015em, 0) skewX(0deg); clip-path: inset(0 0 0 0); }
  84% { opacity: 1; transform: translate(0.02em, 0) skewX(-1deg); clip-path: inset(48% 0 40% 0); }
  90%, 100% { opacity: 1; transform: translate(0, 0) skewX(0deg); clip-path: inset(0 0 0 0); }
}
@keyframes nbGhostR {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  5% { opacity: 0.9; transform: translate(-0.22em, 0); clip-path: inset(20% 0 50% 0); }
  15% { opacity: 0.8; transform: translate(-0.12em, 0.02em); clip-path: inset(0 0 0 0); }
  27% { opacity: 0.9; transform: translate(-0.3em, 0); clip-path: inset(50% 0 20% 0); }
  40% { opacity: 0.7; transform: translate(-0.08em, 0); clip-path: inset(0 0 0 0); }
  54% { opacity: 0.8; transform: translate(-0.16em, -0.01em); clip-path: inset(10% 0 60% 0); }
  68% { opacity: 0.5; transform: translate(-0.05em, 0); clip-path: inset(0 0 0 0); }
  84% { opacity: 0.4; transform: translate(-0.03em, 0); clip-path: inset(40% 0 30% 0); }
  92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}
@keyframes nbGhostC {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  5% { opacity: 0.9; transform: translate(0.2em, 0.01em); clip-path: inset(60% 0 10% 0); }
  15% { opacity: 0.7; transform: translate(0.1em, 0); clip-path: inset(0 0 0 0); }
  27% { opacity: 0.9; transform: translate(0.26em, -0.01em); clip-path: inset(5% 0 70% 0); }
  40% { opacity: 0.6; transform: translate(0.07em, 0); clip-path: inset(0 0 0 0); }
  54% { opacity: 0.8; transform: translate(0.14em, 0.01em); clip-path: inset(44% 0 26% 0); }
  68% { opacity: 0.5; transform: translate(0.04em, 0); clip-path: inset(0 0 0 0); }
  84% { opacity: 0.4; transform: translate(0.03em, 0); clip-path: inset(12% 0 64% 0); }
  92%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}
@keyframes nbFlick { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: 0.2; } 55% { opacity: 1; } 70% { opacity: 0.5; } 100% { opacity: 1; } }

@keyframes nbEyeBg { 0% { opacity: 0; } 2% { opacity: 1; } 80% { opacity: 1; } 82% { opacity: 0.25; } 84% { opacity: 1; } 91% { opacity: 0.4; } 93% { opacity: 1; } 98% { opacity: 0.2; } 100% { opacity: 0; } }
@keyframes nbEyeMain {
  0% { opacity: 0; transform: translate(0, 0) scale(1) skewX(0deg); }
  3% { opacity: 1; transform: translate(-4%, 1%) scale(1.08) skewX(-8deg); }
  6% { opacity: 0.2; transform: translate(3%, -1%) scale(0.96) skewX(4deg); }
  9% { opacity: 1; transform: translate(-1%, 0) scale(1.02) skewX(0deg); }
  13% { opacity: 1; transform: translate(0, 0) scale(1) skewX(0deg); }
  34% { opacity: 1; transform: translate(1.5%, 0) scale(1) skewX(-2deg); }
  36% { opacity: 1; transform: translate(0, 0) scale(1) skewX(0deg); }
  55% { opacity: 0.4; transform: translate(-2%, 0.5%) scale(1.01) skewX(3deg); }
  57% { opacity: 1; transform: translate(0, 0) scale(1) skewX(0deg); }
  78% { opacity: 1; transform: translate(5%, 0) scale(1.04) skewX(-10deg); }
  82% { opacity: 0.15; transform: translate(-3%, 1%) scale(0.97) skewX(0deg); }
  86% { opacity: 1; transform: translate(-6%, -1%) scale(1.1) skewX(6deg); }
  91% { opacity: 0; transform: translate(0, 0) scale(1) skewX(0deg); }
  95% { opacity: 0.7; transform: translate(4%, 0) scale(1.02) skewX(-4deg); }
  100% { opacity: 0; transform: translate(0, 0) scale(1) skewX(0deg); }
}
@keyframes nbEyeGhostR {
  0% { opacity: 0; transform: translate(0, 0); }
  3% { opacity: 0.9; transform: translate(-7%, 0); }
  9% { opacity: 0.6; transform: translate(-3%, 1%); }
  13% { opacity: 0.35; transform: translate(-1.2%, 0); }
  34% { opacity: 0.8; transform: translate(-4%, 0); }
  36% { opacity: 0.35; transform: translate(-1.2%, 0); }
  55% { opacity: 0.8; transform: translate(-5%, -0.5%); }
  57% { opacity: 0.35; transform: translate(-1.2%, 0); }
  78% { opacity: 0.9; transform: translate(-9%, 0); }
  86% { opacity: 0.9; transform: translate(-6%, 1%); }
  91% { opacity: 0; transform: translate(0, 0); }
  95% { opacity: 0.8; transform: translate(-5%, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes nbEyeGhostC {
  0% { opacity: 0; transform: translate(0, 0); }
  3% { opacity: 0.9; transform: translate(6%, -1%); }
  9% { opacity: 0.6; transform: translate(3%, 0); }
  13% { opacity: 0.35; transform: translate(1.2%, 0); }
  34% { opacity: 0.8; transform: translate(5%, 0.5%); }
  36% { opacity: 0.35; transform: translate(1.2%, 0); }
  55% { opacity: 0.8; transform: translate(4%, 0); }
  57% { opacity: 0.35; transform: translate(1.2%, 0); }
  78% { opacity: 0.9; transform: translate(8%, -1%); }
  86% { opacity: 0.9; transform: translate(7%, 0); }
  91% { opacity: 0; transform: translate(0, 0); }
  95% { opacity: 0.8; transform: translate(6%, 1%); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes nbEyeSliceA {
  0% { opacity: 1; clip-path: inset(18% 0 74% 0); transform: translateX(-7%); }
  25% { opacity: 1; clip-path: inset(52% 0 40% 0); transform: translateX(9%); }
  50% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  75% { opacity: 1; clip-path: inset(70% 0 22% 0); transform: translateX(-11%); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
}
@keyframes nbEyeSliceB {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  20% { opacity: 1; clip-path: inset(34% 0 58% 0); transform: translateX(12%); }
  45% { opacity: 1; clip-path: inset(80% 0 12% 0); transform: translateX(-8%); }
  70% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  85% { opacity: 1; clip-path: inset(8% 0 86% 0); transform: translateX(6%); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateX(0); }
}
@keyframes nbEyeNoise { 0% { opacity: 0.85; } 8% { opacity: 0.85; } 10% { opacity: 0; } 76% { opacity: 0; } 78% { opacity: 0.5; } 84% { opacity: 0; } 90% { opacity: 0.8; } 100% { opacity: 0; } }
@keyframes nbIris { from { transform: scale(0.72); } to { transform: scale(1.12); } }
@keyframes nbBlades { from { transform: rotate(0deg); } to { transform: rotate(28deg); } }
@keyframes nbPowerGlow { 0%, 100% { box-shadow: 0 0 24px rgba(107,255,166,0.35), inset 0 0 12px rgba(107,255,166,0.25); } 50% { box-shadow: 0 0 44px rgba(107,255,166,0.6), inset 0 0 18px rgba(107,255,166,0.4); } }

/* "Need Output." effects.
   Rolling wave: a band of the screen green (#6BFFA6) passes down the text every 3s,
   like the roll bar a camera picks up from an analog TV.
   Seizure: a short glitch fit (jitter, slices, red/cyan split) every 5s.
   --nb-g is the glitch offset; it scales with the font size, minimum 2px. */
:root { --nb-g: max(2px, 0.05em); --nb-wave: #6BFFA6; }
.nb-fx { position: relative; display: inline-block; white-space: nowrap; }
.nb-fx-r, .nb-fx-c, .nb-fx-wave { position: absolute; inset: 0; pointer-events: none; white-space: nowrap; }
.nb-fx-base { position: relative; display: inline-block; animation: nbSeize 5s steps(1, end) infinite; }
.nb-fx-r { color: #FF3B6B; opacity: 0; animation: nbSeizeR 5s steps(1, end) infinite; }
.nb-fx-c { color: #22E6E6; opacity: 0; animation: nbSeizeC 5s steps(1, end) infinite; }
.nb-fx-wave {
  color: var(--nb-wave);
  text-shadow: 0 0 0.07em rgba(107,255,166,0.95), 0 0 0.2em rgba(107,255,166,0.6);
  clip-path: inset(130% -10% -60% -10%);
  opacity: 0;
  animation: nbWave 3s linear infinite;
}
/* The band (30% of the text height) starts fully above the text and ends fully below it,
   so its glow never shows at the edges. Between passes the layer is also fully transparent. */
@keyframes nbWave {
  0%     { clip-path: inset(-60% -10% 130% -10%); transform: translateX(0); opacity: 1; }
  8%     { transform: translateX(calc(var(--nb-g) * 0.6)); }
  16%    { transform: translateX(calc(var(--nb-g) * -0.4)); }
  24%    { transform: translateX(calc(var(--nb-g) * 0.3)); }
  32%    { clip-path: inset(130% -10% -60% -10%); transform: translateX(0); opacity: 1; }
  32.01% { clip-path: inset(130% -10% -60% -10%); opacity: 0; }
  100%   { clip-path: inset(130% -10% -60% -10%); opacity: 0; }
}
@keyframes nbSeize {
  0%    { transform: none; clip-path: none; opacity: 1; }
  90%   { transform: translate(calc(var(--nb-g) * -1), 0) skewX(-12deg); }
  91.5% { transform: translate(calc(var(--nb-g) * 1.5), calc(var(--nb-g) * -0.5)) skewX(8deg); clip-path: inset(0 0 50% 0); }
  93%   { transform: translate(calc(var(--nb-g) * -2), 0); clip-path: inset(35% 0 0 0); opacity: 0.7; }
  94.5% { transform: translate(var(--nb-g), calc(var(--nb-g) * 0.5)) scaleY(1.1); clip-path: none; opacity: 1; }
  96%   { transform: translate(calc(var(--nb-g) * -0.5), 0) skewX(16deg); }
  97.5% { transform: translate(calc(var(--nb-g) * 2), 0); clip-path: inset(0 0 30% 0); }
  99%   { transform: none; clip-path: none; opacity: 1; }
}
@keyframes nbSeizeR {
  0%    { opacity: 0; transform: none; }
  90%   { opacity: 0.9; transform: translate(calc(var(--nb-g) * 2.5), 0); }
  91.5% { transform: translate(calc(var(--nb-g) * -2), calc(var(--nb-g) * 0.5)); }
  93%   { opacity: 0.6; transform: translate(calc(var(--nb-g) * 3.5), 0); }
  94.5% { opacity: 0.9; transform: translate(calc(var(--nb-g) * -1.5), 0); }
  96%   { transform: translate(calc(var(--nb-g) * 2), 0); }
  97.5% { opacity: 0.7; transform: translate(calc(var(--nb-g) * -3), 0); }
  99%   { opacity: 0; transform: none; }
}
@keyframes nbSeizeC {
  0%    { opacity: 0; transform: none; }
  90%   { opacity: 0.9; transform: translate(calc(var(--nb-g) * -2.5), 0); }
  91.5% { transform: translate(calc(var(--nb-g) * 2), calc(var(--nb-g) * -0.5)); }
  93%   { opacity: 0.6; transform: translate(calc(var(--nb-g) * -3.5), 0); }
  94.5% { opacity: 0.9; transform: translate(calc(var(--nb-g) * 1.5), 0); }
  96%   { transform: translate(calc(var(--nb-g) * -2), 0); }
  97.5% { opacity: 0.7; transform: translate(calc(var(--nb-g) * 3), 0); }
  99%   { opacity: 0; transform: none; }
}

/* "Outputting project..." — the dots build up one at a time, then reset (0 → 1 → 2 → 3 dots, every 2s). */
.nb-dots span { opacity: 0; }
.nb-dots span:nth-child(1) { animation: nbDot1 2s steps(1, end) infinite; }
.nb-dots span:nth-child(2) { animation: nbDot2 2s steps(1, end) infinite; }
.nb-dots span:nth-child(3) { animation: nbDot3 2s steps(1, end) infinite; }
@keyframes nbDot1 { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; } }
@keyframes nbDot2 { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes nbDot3 { 0% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: 1; } }

/* ---- Hero: the slide-and-scratch headline ("MAKING IDEAS" → buried "REAL") ---- */

/* Silver-outlined dark letters (used for the finished "MAKING IDEAS").
   A silver copy sits behind; its text-stroke widens the glyphs and the silver gradient is
   clipped to them, so a thin silver rim shows around each dark letter. nbShine sweeps a highlight. */
.nb-outline { position: relative; display: block; white-space: nowrap; }
.nb-outline-ink { position: relative; color: #16140F; }
.nb-outline-silver {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  color: transparent;
  -webkit-text-stroke: 0.06em transparent;
  background-image:
    linear-gradient(110deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #E4E8ED 0%, #9AA1AA 45%, #D5DAE0 55%, #7D848D 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: nbShine 4s ease-in-out infinite;
}
@keyframes nbShine {
  0%   { background-position: 160% 0, 0 0; }
  60%  { background-position: -60% 0, 0 0; }
  100% { background-position: -60% 0, 0 0; }
}

/* Hand-written style prompts ("SLIDE HERE", "SCRATCH HERE") with a nudging arrow. */
.nb-prompt {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; line-height: 1.25; white-space: nowrap; pointer-events: none;
  animation: nbNudge 1.6s ease-in-out infinite;
}
.nb-prompt svg { display: block; flex: none; }
@keyframes nbNudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, 2px); } }
.nb-prompt-scratch { transform: translateY(-50%); animation-name: nbNudgeMid; }
@keyframes nbNudgeMid { 0%, 100% { transform: translate(0, -50%); } 50% { transform: translate(3px, calc(-50% + 2px)); } }
/* narrow phones: stack "SCRATCH / HERE" so it stays on screen */
@media (max-width: 520px) {
  .nb-prompt-scratch { font-size: 10px; gap: 4px; }
  .nb-prompt-scratch > span { white-space: normal; width: min-content; }
}

/* ---- Slider (before/after style) ----
   --x (0..1) is the handle position, set directly by JS while dragging.
   Left of the handle shows the next, sharper level; right of it the current level.
   Three full left-to-right slides take the text from nothing → pieces → nearly whole → crisp. */
.nb-slider {
  --x: 0;
  position: relative;
  font-family: 'Sixtyfour', 'Geist Mono', ui-monospace, monospace;
  font-size: var(--nb-sf, 0.84em); line-height: 1.15; letter-spacing: 0;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.nb-slider-win {
  position: relative; display: block; padding: 0.18em 0.45em; border-radius: 0.24em;
  border: 1px solid rgba(11,107,52,0.45);
  background: rgba(255,255,255,0.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 0.3em 0.8em -0.45em rgba(46,34,16,0.4);
  overflow: hidden;
  transition: border-color 700ms ease, background-color 700ms ease, box-shadow 700ms ease;
}
/* faint "low-res" scanlines inside the window until it's done */
.nb-slider-win::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(22,20,15,0.05) 0 1px, rgba(22,20,15,0) 1px 4px);
  transition: opacity 700ms ease;
}
.nb-slider-sizer { display: block; visibility: hidden; white-space: nowrap; }
.nb-lvl { position: absolute; left: 0; top: 0; right: 0; bottom: 0; padding: 0.18em 0.45em; white-space: nowrap; color: #16140F; }
/* passes 1 and 3 sweep left→right: the sharper level is left of the handle */
.nb-lvl-cur  { clip-path: inset(-30% -30% -30% calc(var(--x) * 100%)); }
.nb-lvl-next { clip-path: inset(-30% calc((1 - var(--x)) * 100%) -30% -30%); }
/* pass 2 sweeps back right→left: the sharper level is right of the handle */
.nb-dir-l .nb-lvl-cur  { clip-path: inset(-30% calc((1 - var(--x)) * 100%) -30% -30%); }
.nb-dir-l .nb-lvl-next { clip-path: inset(-30% -30% -30% calc(var(--x) * 100%)); }
.nb-piece { position: absolute; left: 0.45em; top: 0.18em; white-space: nowrap;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.nb-lvl-1 .nb-piece-a { transform: translate(-0.14em, 0.06em) rotate(-1.5deg); filter: blur(0.05em); opacity: 0.55; animation: nbShard 2.2s steps(2) infinite; }
.nb-lvl-1 .nb-piece-b { transform: translate(0.12em, -0.07em) rotate(1deg); filter: blur(0.045em); opacity: 0.5; animation: nbShard 2.6s steps(2) -1s infinite; }
.nb-lvl-2 .nb-piece-a { transform: translate(-0.05em, 0.025em); filter: blur(0.018em); opacity: 0.85; animation: nbShard 2.4s steps(2) infinite; }
.nb-lvl-2 .nb-piece-b { transform: translate(0.04em, -0.02em); filter: blur(0.012em); opacity: 0.8; animation: nbShard 2.8s steps(2) -1.2s infinite; }
@keyframes nbShard { 0%, 100% { margin-left: 0; } 50% { margin-left: 0.03em; } }

.nb-slider-handle { position: absolute; top: -4px; bottom: -4px; left: calc(var(--x) * 100%); width: 0; z-index: 2; outline: none; }
.nb-slider-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #0B6B34; }
.nb-slider-knob {
  position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: #0B6B34; border: 2px solid #FFFFFF; box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(11,107,52,0.35); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.nb-slider-handle:focus-visible .nb-slider-knob { box-shadow: 0 0 0 3px #6BFFA6, 0 3px 10px rgba(11,107,52,0.35); }
.nb-slider-pips { position: absolute; right: 2px; bottom: calc(100% + 7px); display: flex; gap: 5px; pointer-events: none; }
.nb-slider-pips span { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #0B6B34; box-sizing: border-box; }
.nb-slider-pips span.on { background: #0B6B34; }
/* No spring: while dragging nothing animates. data-snap only smooths keyboard steps and the
   small settle onto the end of a finished pass. */
.nb-slider[data-snap] .nb-slider-handle { transition: left 260ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.nb-slider[data-snap] .nb-lvl-cur, .nb-slider[data-snap] .nb-lvl-next { transition: clip-path 260ms cubic-bezier(0.3, 0.7, 0.2, 1); }
/* "SLIDE HERE" at the left end: arrow first, mirrored, so it points down at the handle */
.nb-prompt-lead { flex-direction: row-reverse; }
.nb-prompt-lead svg { transform: scaleX(-1); }
/* Done: the frame melts away, leaving the crisp, glitching words. */
.nb-slider-done { cursor: default; touch-action: auto; }
.nb-slider-done .nb-slider-win { border-color: transparent; background-color: transparent; box-shadow: none; overflow: visible; }
.nb-slider-done .nb-slider-win::before { opacity: 0; }
.nb-slider-done .nb-lvl-cur { clip-path: none; }
.nb-hero-words { filter: drop-shadow(0 0.09em 0.07em rgba(22,20,15,0.38)); }

/* ---- Treasure: the X, the scratch canvas, the magic coin and the gold REAL ---- */
.nb-treasure {
  position: relative; width: 4.4em; height: 1.28em; margin-top: 0.04em;
  font-family: 'Zen Dots', 'Geist', sans-serif; font-weight: 400; letter-spacing: 0.02em;
}
/* The X only appears once MAKING IDEAS is whole (.nb-x-on), fading in like fresh paint. */
.nb-scratch { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; touch-action: pan-y;
  opacity: 0; transform: scale(0.92); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.nb-x-on .nb-scratch { opacity: 1; transform: none; }
.nb-stage-scratch .nb-scratch { pointer-events: auto; touch-action: none; cursor: crosshair; outline: none; }
.nb-x-on.nb-stage-real .nb-scratch { opacity: 0; transition: opacity 300ms ease; }

/* REAL in glowing 3-D gold: an extruded dark-gold copy behind, a gold gradient face in front,
   a warm glow, and the same sweeping shine. */
.nb-gold { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.nb-gold-word { position: relative; display: inline-block; font-size: 1em; line-height: 1; white-space: nowrap;
  filter: drop-shadow(0 0 0.1em rgba(255,196,60,0.75)) drop-shadow(0 0 0.32em rgba(255,176,40,0.4)); }
.nb-gold-depth { position: absolute; left: 0; top: 0; color: #6E4A0C;
  text-shadow: 0.012em 0.014em 0 #7A5410, 0.024em 0.028em 0 #73500E, 0.036em 0.042em 0 #6A480B, 0.048em 0.056em 0 #5E3F08, 0.06em 0.07em 0 #533706, 0.07em 0.09em 0.06em rgba(40,25,0,0.45); }
.nb-gold-face { position: relative; color: transparent;
  background-image:
    linear-gradient(110deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #FFF6C8 0%, #FFE07A 26%, #F2B730 48%, #C98A12 60%, #FFE38C 78%, #B67C10 100%);
  background-size: 250% 100%, 100% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: nbShine 3.5s ease-in-out 900ms infinite; }
.nb-stage-real .nb-gold { opacity: 1; animation: nbGoldPop 950ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes nbGoldPop {
  0%   { opacity: 0; transform: scale(0.45) translateY(0.12em); }
  32%  { opacity: 1; transform: scale(1.3) translateY(-0.2em); }
  56%  { transform: scale(0.93) translateY(0.03em); }
  76%  { transform: scale(1.05) translateY(-0.02em); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* The black scratch pen with a copper tip: drifts in, bobs with its tip near the X, and follows the
   pointer (tip first) while scratching. Its box is 160×60; the tip sits at 6.25% / 83.3% of it. */
.nb-pen { position: absolute; left: 63.5%; top: 0.12em; width: 2.3em; z-index: 4; pointer-events: none;
  transition: left 380ms cubic-bezier(0.3, 0.7, 0.2, 1), top 380ms cubic-bezier(0.3, 0.7, 0.2, 1);
  filter: drop-shadow(0 0.05em 0.05em rgba(22,20,15,0.35));
  animation: nbPenIn 750ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nb-pen.nb-following { transition: none; }
.nb-pen svg { display: block; width: 100%; height: auto; overflow: visible; }
.nb-pen-bob { display: block; transform-origin: 6.25% 83.3%; animation: nbBob 2.6s ease-in-out infinite alternate; }
.nb-pen.nb-following .nb-pen-bob { animation: nbRub 0.16s linear infinite alternate; }
@keyframes nbPenIn { from { opacity: 0; transform: translate(0.45em, -0.3em) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes nbBob { from { transform: translateY(-0.06em) rotate(-3deg); } to { transform: translateY(0.06em) rotate(2deg); } }
@keyframes nbRub { from { transform: translate(-0.015em, 0.01em) rotate(-4deg); } to { transform: translate(0.015em, -0.01em) rotate(3deg); } }

/* ---- Neon app titles ----
   Dark letters (front) over a coloured neon rim (back: text-stroke + glow in each part's colour).
   Front and back are split into the same pieces so their spacing matches exactly. */
.nb-neon { position: relative; display: inline-block; }
.nb-neon-block { display: block; }
.nb-neon-back { position: absolute; left: 0; top: 0; right: 0; bottom: 0; color: transparent; pointer-events: none; }
.nb-neon-c { -webkit-text-stroke: max(2px, 0.06em) var(--c); text-shadow: 0 0 0.05em var(--c), 0 0 0.16em var(--c); }
.nb-neon-rainbow { -webkit-text-stroke: max(2px, 0.06em) transparent;
  background-image: linear-gradient(90deg, #FF3B3B, #FF9F1A, #FFE53B, #3BFF6A, #3BC7FF, #7A5CFF, #FF3BD5);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 0.05em rgba(255,140,220,0.7)); }
.nb-neon-front { position: relative; color: #16140F; }

/* ---- Electric pulses on the background grid ----
   4 horizontal + 4 vertical soft-blue sparks run along grid lines (positioned by JS in
   startPulses()). When one reaches the end of its line it carries on along another line. */
.nb-pulse { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 1px; will-change: transform; animation: nbSpark 0.24s steps(2) infinite alternate; }
.nb-pulse-h { width: 160px; height: 1px; background: linear-gradient(to right, rgba(96,165,250,0), rgba(110,175,255,0.6) 70%, rgba(225,238,255,1)); box-shadow: 0 0 6px 1px rgba(96,165,250,0.55); }
.nb-pulse-v { width: 1px; height: 160px; background: linear-gradient(to bottom, rgba(96,165,250,0), rgba(110,175,255,0.6) 70%, rgba(225,238,255,1)); box-shadow: 0 0 6px 1px rgba(96,165,250,0.55); }
@keyframes nbSpark { from { opacity: 0.95; } to { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .nb-outline-silver, .nb-gold-face { animation: none !important; }
  .nb-prompt, .nb-piece, .nb-pen-bob, .nb-pen { animation: none !important; }
  .nb-stage-real .nb-gold { animation: none !important; }
  .nb-pulse { display: none; }
  .nb-dots span { animation: none !important; opacity: 1; }
  .nb-bg * { animation: none !important; }
  .nb-spin { animation-play-state: paused !important; }
  .nb-fx-base, .nb-fx-r, .nb-fx-c, .nb-fx-wave, .nb-fx-anim { animation: none !important; }
  .nb-fx-wave { display: none; }
}
