/* nikhildadhich.si - the lab. "Neural Aurora": neon cyan, electric violet, hot magenta on deep blue-black (its own colours, not the .com butter). */
:root { --bg: #04050f; --text: #eef3ff; --muted: #8f9bc2; --cyan: #22e8ff; --violet: #8b5cff; --magenta: #ff3db4; --butter: var(--cyan); --grad: linear-gradient(100deg, #22e8ff 0%, #8b5cff 50%, #ff3db4 100%); --line: rgba(160, 190, 255, .16);
  --f-display: "Big Shoulders Display", Impact, sans-serif; --f-body: "DM Sans", system-ui, sans-serif; --f-mono: "JetBrains Mono", Consolas, monospace; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--text); font: 400 18px/1.6 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--butter); color: #111; }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 4px; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-gl #gl { display: none; }
.no-gl body, .no-gl { background: radial-gradient(900px 600px at 20% 20%, rgba(34, 232, 255, .25), transparent 60%), radial-gradient(900px 600px at 80% 70%, rgba(255, 61, 180, .22), transparent 60%), #04050f fixed; }
.mono { font: 500 12.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
main { position: relative; z-index: 1; }
.top { position: fixed; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(18px, 4vw, 48px); pointer-events: none; }
.top > * { pointer-events: auto; }
.top .logo { width: 76px; color: var(--text); }
/* floating pill menu */
.top nav { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 9, 12, .55); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top nav a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s; }
.top nav a:hover { background: var(--text); color: var(--bg); }
section { min-height: 100vh; display: flex; align-items: center; padding: 120px clamp(18px, 5vw, 72px); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; }
.hero { align-items: flex-end; padding-top: 104px; padding-bottom: 9vh; }
/* two lines (NIKHIL / DADHICH.SI), sized by width AND height so the whole banner fits a laptop screen */
.hero .big { margin: clamp(14px, 2.6vh, 28px) 0 0; font: 900 clamp(72px, min(15vw, 27vh), 250px)/.84 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.hero .big > span { display: block; overflow: hidden; }
.hero .big > span > span { display: inline-block; }
.hero .big .si { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.hero .meta p { margin: 0; max-width: 46ch; color: var(--muted); }
.hero .meta b { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 7, 10, .4); backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 14px var(--butter); }
.center { text-align: center; justify-content: center; }
.huge { margin: 0; font: 900 clamp(64px, 12vw, 200px)/.82 var(--f-display); text-transform: uppercase; }
.huge em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(19px, 2vw, 26px); line-height: 1.45; max-width: 40ch; margin: 26px auto 0; color: var(--text); text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.side { max-width: 560px; }
.side.right { margin-left: auto; }
.box { background: rgba(7, 7, 10, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.box h2 { margin: 14px 0 12px; font: 800 clamp(38px, 4.4vw, 64px)/.92 var(--f-display); text-transform: uppercase; }
.box p { margin: 0 0 12px; color: var(--muted); }
.box p strong { color: var(--text); }
#flight { min-height: 420vh; align-items: flex-start; }
#flight .sticky { position: sticky; top: 14vh; }
/* lab: big stacked rows with hairlines; hover sweeps a colour band in and nudges the word */
.lab { display: grid; margin-top: 30px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 12, .3); background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lab a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 30ch) 36px; align-items: center; gap: 20px; padding: 18px 10px; text-decoration: none; border-top: 1px solid var(--line); }
.lab a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: .16; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lab a:hover::before, .lab a:focus-visible::before { transform: scaleX(1); }
.lab a::after { content: "↗"; justify-self: end; font: 400 28px/1 var(--f-body); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.lab a:hover::after { transform: rotate(45deg); }
.lab b { display: block; margin: 0; font: 900 clamp(40px, 7vw, 110px)/.86 var(--f-display); text-transform: uppercase; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.lab a:hover b { transform: translateX(14px); }
.lab span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .lab a { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px 4px; } .lab a > span { grid-column: 1 / -1; } .lab a > span.mono { grid-row: 1; } .lab a > b { grid-row: 2; } .lab a::after { grid-row: 2; grid-column: 2; } }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 30px; border-radius: 999px; background: var(--grad); color: #05060f; font-weight: 700; box-shadow: 0 10px 40px rgba(139, 92, 255, .45); text-decoration: none; margin-top: 30px; transition: transform .3s; }
.btn:hover { transform: scale(1.05); }
.lite-note { display: none; }
.lite .lite-note, .no-gl .lite-note { display: inline; }
.ring { position: fixed; left: 0; top: 0; z-index: 9; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid var(--butter); border-radius: 50%; pointer-events: none; transition: width .3s, height .3s, margin .3s, background .3s; mix-blend-mode: difference; }
.ring.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--magenta); border-color: var(--magenta); }
@media (hover: none) { .ring { display: none; } }
@media (max-width: 760px) { .top .logo { width: 60px; } .top nav { position: static; transform: none; padding: 4px; } .top nav a { padding: 8px 10px; font-size: 10.5px; letter-spacing: .1em; } .top nav .hide-sm { display: none; } .side.right { margin-left: 0; } }
/* keep the particle word and signature in view: the text boxes sit low */
#name, #meaning { align-items: flex-end; padding-bottom: 7vh; }
#name .box, #meaning .box { max-width: 460px; }
@media (max-width: 760px) { #name .box, #meaning .box { padding: 18px; } .box h2 { font-size: 34px; } }
.hero .meta p, .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .85); }

/* aurora details */
.box { background: rgba(6, 8, 24, .55); border-color: rgba(139, 92, 255, .28); box-shadow: 0 30px 80px rgba(5, 6, 20, .5), inset 0 1px 0 rgba(34, 232, 255, .12); }
.box .mono, .lab .mono, .chip.mono { color: var(--cyan); }
.chip { border-color: rgba(34, 232, 255, .35); }
.dot { background: var(--magenta); box-shadow: 0 0 14px var(--magenta), 0 0 30px var(--violet); }

/* ---------- palettes: c1 -> --cyan, c2 -> --violet, c3 -> --magenta (names kept from the first version) ---------- */
[data-palette="chrome"]   { --bg: #08090c; --text: #f2f4f8; --muted: #8e96a8; --cyan: #eef1f7; --violet: #9aa6bd; --magenta: #c9b8ff; --grad: linear-gradient(100deg, #ffffff 0%, #aab4c8 45%, #c9b8ff 100%); --on: #0a0b0f; --line: rgba(220, 228, 245, .16); }
[data-palette="acid"]     { --bg: #050605; --text: #f2f5ea; --muted: #94a08a; --cyan: #c6ff00; --violet: #f2f5ea; --magenta: #46e07a; --grad: linear-gradient(100deg, #c6ff00, #e8ff8a 55%, #46e07a); --on: #0a0d02; --line: rgba(198, 255, 0, .18); }
[data-palette="infrared"] { --bg: #090403; --text: #fff1ea; --muted: #b0928a; --cyan: #ff3b1f; --violet: #ff9a3c; --magenta: #ffe3d6; --grad: linear-gradient(100deg, #ff3b1f, #ff9a3c 60%, #ffd9b8); --on: #140503; --line: rgba(255, 110, 70, .2); }
[data-palette="electric"] { --bg: #03060f; --text: #f3f7ff; --muted: #8b9ac0; --cyan: #2f6bff; --violet: #8fb8ff; --magenta: #ffffff; --grad: linear-gradient(100deg, #2f6bff, #8fb8ff 60%, #ffffff); --on: #ffffff; --line: rgba(120, 160, 255, .2); }
html { background: var(--bg); }
.btn { color: var(--on); }
[data-palette="electric"] .btn { color: #03060f; }

/* ---------- loader ---------- */
.boot { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: var(--muted); text-align: center; }
.booted .boot { pointer-events: none; }
/* the "nikhil" signature draws itself as the page loads */
.boot-sig { width: clamp(110px, 14vw, 170px); overflow: visible; }
.boot-sig path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.boot-sig .ghost { stroke: var(--line); }
.boot-sig .ink { stroke: url(#boot-g); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s linear; }
/* rolling digits (odometer) */
.odo { display: flex; align-items: flex-start; font: 900 clamp(88px, 15vw, 200px)/1 var(--f-display); color: var(--text); }
.odo .col { display: block; height: 1em; overflow: hidden; }
.odo .strip { display: block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.odo .strip b { display: block; height: 1em; font-weight: 900; }
.odo .unit { font-size: .3em; margin: .14em 0 0 .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-line { color: var(--text); transition: opacity .22s, transform .22s; }
.boot-line.swap { opacity: 0; transform: translateY(6px); }
.boot-fact { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(560px, calc(100% - 48px)); font-size: 10.5px; line-height: 1.7; letter-spacing: .12em; opacity: .75; }

/* ---------- section dots ---------- */
.dots { position: fixed; z-index: 6; right: clamp(14px, 2.4vw, 32px); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.dots button { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; cursor: pointer; transition: all .3s; }
.dots button.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px var(--cyan); transform: scale(1.25); }
.dots button span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); opacity: 0; transition: opacity .25s; pointer-events: none; }
.dots button:hover span, .dots button.on span { opacity: .9; }
@media (max-width: 760px) { .dots { right: 8px; gap: 9px; } .dots button { width: 9px; height: 9px; } .dots button span { display: none; } }

/* ---------- project label (fly-through) ---------- */
.panel-label { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; padding: 12px 16px; border-radius: 14px; background: var(--grad); color: var(--on); opacity: 0; transform: translate(-200px, -200px); transition: opacity .2s; display: grid; gap: 2px; }
[data-palette="electric"] .panel-label { color: #03060f; }
.panel-label.on { opacity: 1; }
.panel-label b { font: 800 22px/1 var(--f-display); text-transform: uppercase; }
.panel-label span { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- talk to the swarm ---------- */
.talk { align-items: flex-end; padding-bottom: 8vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- SI terminal (CRT screen) ---------- */
.term { max-width: 600px; }
.term kbd { font: 500 .85em var(--f-mono); padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.crt-wrap { position: relative; margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.crt-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 40px rgba(0, 0, 0, .75); }
.crt { height: 8.4em; overflow-y: auto; padding: 12px 16px; background: radial-gradient(130% 150% at 50% 0%, color-mix(in srgb, var(--cyan) 8%, #020305), #020305 70%); font: 500 13px/1.6 var(--f-mono); color: color-mix(in srgb, var(--cyan) 75%, #ffffff); text-shadow: 0 0 8px color-mix(in srgb, var(--cyan) 45%, transparent); scrollbar-width: thin; }
.crt:focus-visible { outline-offset: -3px; }
.box .crt p { margin: 0; color: inherit; }
.box .crt p.me { color: var(--text); }
.box .crt p.ok { color: var(--magenta); }
.box .crt p.err { color: #ff7a6b; }
.term form { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 5px 5px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); transition: border-color .25s, box-shadow .25s; }
.term form:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
.term .prompt { color: var(--cyan); letter-spacing: .06em; }
.term input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; padding: 0; background: transparent; color: var(--text); font: 500 17px var(--f-mono); caret-color: var(--cyan); outline: none; }
.term button { height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--grad); color: var(--on); font-weight: 700; cursor: pointer; }
[data-palette="electric"] .term button { color: #03060f; }
@media (max-width: 760px) { .crt { height: 7.6em; font-size: 12px; } }

/* ---------- camera viewfinder: corner brackets + live read-out ---------- */
.vf { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity .5s; }
.at-end .vf { opacity: 0; }
.vf .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--muted); opacity: .8; }
.vf .tl { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.vf .tr { top: 12px; right: 12px; border-width: 1.5px 1.5px 0 0; }
.vf .bl { bottom: 12px; left: 12px; border-width: 0 0 1.5px 1.5px; }
.vf .br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }
.vf-read { position: absolute; left: 46px; right: 46px; bottom: 15px; margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.vf-read span { white-space: nowrap; }
.vf .live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; vertical-align: 1px; animation: vf-blink 1.6s steps(2, start) infinite; }
@keyframes vf-blink { 50% { opacity: .15; } }
.vf .keys { transition: opacity .4s; }
.keys-used .vf .keys { opacity: .35; }
@media (hover: none), (max-width: 900px) { .vf .keys { display: none; } }
@media (max-width: 760px) {
  .vf .c { width: 13px; height: 13px; }
  .vf .tl, .vf .tr { top: 7px; } .vf .bl, .vf .br { bottom: 7px; } .vf .tl, .vf .bl { left: 7px; } .vf .tr, .vf .br { right: 7px; }
  .vf-read { left: 26px; right: 26px; bottom: 9px; font-size: 9.5px; letter-spacing: .1em; }
}

/* ---------- hero: a small live "orb" pill inside the giant name ---------- */
/* a dark glass capsule with a light that keeps circling inside, like the lab "thinking" */
.orb { position: relative; display: inline-block; width: 1.05em; height: .44em; margin-left: .16em; vertical-align: .14em; border-radius: 999px; overflow: hidden; background: #07080b; border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 0 .1em rgba(255, 255, 255, .08), 0 0 .35em rgba(201, 184, 255, .18); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.orb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; background: conic-gradient(from 0deg, transparent 0 50%, var(--magenta) 72%, var(--cyan) 88%, transparent 100%); filter: blur(.06em); opacity: .9; animation: orb-spin 3.2s linear infinite; }
.orb::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; background: radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.6px) 0 0 / 9px 8px; animation: orb-drift 9s linear infinite; opacity: .28; }
.hero .big:hover .orb { width: 1.5em; }
@keyframes orb-spin { to { transform: rotate(1turn); } }
@keyframes orb-drift { to { background-position: 90px 0; } }
@media (max-width: 480px) { .orb { width: .9em; } .hero .big:hover .orb { width: .9em; } }

/* ---------- words light up as they scroll by; headings get one light sweep ---------- */
.words .w { opacity: .25; transition: opacity .35s; }
.words .w.on { opacity: 1; }
.sweep { background: linear-gradient(100deg, var(--text) 0 40%, var(--cyan) 46%, #fff 50%, var(--magenta) 54%, var(--text) 60% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 1.7s cubic-bezier(.3, .6, .2, 1) forwards; }
@keyframes sweep { to { background-position: 0 0; } }

/* ---------- footer: giant words, scene jump links ---------- */
.foot { position: relative; z-index: 1; padding: 14vh clamp(18px, 5vw, 72px) 26px; background: linear-gradient(to bottom, transparent, var(--bg) 26%); color: var(--muted); font-size: 14px; }
.giant { margin: 0; color: var(--text); font: 900 clamp(48px, 15.2vw, 270px)/.8 var(--f-display); text-transform: uppercase; }
.giant > span { display: block; white-space: nowrap; }
.giant small { display: inline-block; vertical-align: top; margin: .4em 0 0 .7em; font-size: 11px; line-height: 1.6; letter-spacing: .16em; color: var(--muted); }
.giant .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 6vh; padding-top: 22px; border-top: 1px solid var(--line); }
.foot .cols > div { display: grid; gap: 8px; align-content: start; }
.foot .cols .mono { margin-bottom: 6px; font-size: 11px; color: var(--cyan); }
.foot .cols a { width: fit-content; color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; }
.foot .cols a:hover { background-size: 100% 1px; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 5vh 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (hover: none) { .foot .keys-col { display: none; } }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- page curtain (between the lab and /work/), ghost button, current menu item ---------- */
/* no glow while it waits off screen (it would leak into the page); the glowing edge exists only while it moves */
.curtain { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: var(--bg); transform: translateY(100%); box-shadow: none; }
.wk .curtain { animation: curtain-lift .9s cubic-bezier(.7, 0, .3, 1) .05s both; }
@keyframes curtain-lift {
  from { transform: translateY(0); box-shadow: 0 2px 0 var(--magenta), 0 40px 90px rgba(201, 184, 255, .22); }
  88% { box-shadow: 0 2px 0 var(--magenta), 0 40px 90px rgba(201, 184, 255, .22); }
  to { transform: translateY(-100%); box-shadow: none; }
}
.btn.ghost { display: flex; width: fit-content; margin: 24px auto 0; height: 50px; padding: 0 24px; background: rgba(8, 9, 12, .55); color: var(--text); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; }
.btn.ghost:hover { border-color: var(--text); }
.top nav a[aria-current] { background: var(--text); color: var(--bg); }

/* ---------- reduced motion: everything still works, nothing moves on its own ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb::before, .orb::after, .vf .live::before { animation: none; }
  .odo .strip, .boot-sig .ink, .boot-line, .lab a::before, .lab a::after, .lab b, .orb { transition: none; }
  .sweep { animation: none; background: none; color: inherit; }
  .wk .curtain { animation: none; }
}
