/* Homepage "Built by NVISION": a second hero where pixels and code build the name as you arrive.
   Dark with the lights off, white with the lights on. Everything is scoped to .nv-built. */
section#work.nv-built { --bb-ink: #f5f5f7; --bb-bg: #050508; --bb-line: rgba(160,170,255,0.2); --bb-grid: rgba(255,255,255,0.045); position: relative; height: calc(100vh - var(--nv-nav, 4.6rem) - 128px); height: calc(100svh - var(--nv-nav, 4.6rem) - 128px); min-height: 440px; padding: 0 var(--space-inline); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; color: var(--bb-ink); background: var(--bb-bg); isolation: isolate; scroll-margin-top: calc(var(--nv-nav, 4.6rem) - 3.7rem); }   /* the page already leaves 3.7rem for the menu */
html.lights-on section#work.nv-built { --bb-ink: #121216; --bb-bg: #f7f6f4; --bb-line: rgba(60,60,140,0.22); --bb-grid: rgba(20,20,40,0.055); background: var(--bb-bg); }
/* drafting paper, and a pool of coloured light behind the name */
.nv-built::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--bb-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bb-grid) 1px, transparent 1px); background-size: 64px 64px; background-position: center; -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(75% 70% at 50% 50%, #000, transparent); }
.nv-built::after { content: ""; position: absolute; z-index: -2; left: 50%; top: 52%; width: 90vw; height: 46vh; translate: -50% -50%; border-radius: 50%; background: linear-gradient(90deg, #38bdf8, #6366f1, #d946ef, #f97316); filter: blur(110px); opacity: 0; transition: opacity 1.4s ease 1.1s; }
.nv-built.go::after { opacity: 0.22; }
.nv-built .bb-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0; }
.nv-built h2 { display: flex; flex-direction: column; align-items: center; margin-top: 1.1rem; }
.nv-built .bb-by { font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(2.6rem, min(7vw, 11svh), 7rem); line-height: 1; letter-spacing: -0.02em; opacity: 0; }
/* the name */
.nv-built .bb-site { position: relative; padding: 0.04em 0.12em; margin-top: 0.06em; font: 700 min(11.5vw, 18svh) / 0.92 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.025em; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.nv-built .bb-word { display: block; padding: 0 0.04em; background: linear-gradient(90deg, #38bdf8, #6366f1, #d946ef, #f97316, #d946ef, #6366f1, #38bdf8) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.nv-built .bb-solid { visibility: hidden; }
/* the code and pixels are painted behind the words */
.nv-built .bb-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.nv-built.done .bb-solid { visibility: visible; animation: bb-flow 9s linear infinite; }
@keyframes bb-flow { to { background-position: 200% 0; } }
.nv-built.go .bb-eyebrow, .nv-built.go .bb-by { opacity: 1; }
.nv-built.go .bb-eyebrow, .nv-built.go .bb-by { animation: bb-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.nv-built.go .bb-by { animation-delay: 0.15s; }
@keyframes bb-rise { from { opacity: 0; translate: 0 26px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@media (max-width: 760px) { .nv-built .bb-site { font-size: 16vw; } .nv-built .bb-by { font-size: 11vw; } }
@media (prefers-reduced-motion: reduce) { .nv-built .bb-eyebrow, .nv-built .bb-by { opacity: 1; } .nv-built .bb-solid { visibility: visible; animation: none !important; } }
